diff --git a/src/backend/executor/execScan.c b/src/backend/executor/execScan.c index fb10cccdc31..51adbd51243 100644 --- a/src/backend/executor/execScan.c +++ b/src/backend/executor/execScan.c @@ -223,6 +223,15 @@ ExecScan(ScanState *node, */ econtext->ecxt_scantuple = slot; + /* + * reinit qual + * + * CBDB already support pushdown qual-clause. + * If current qual-clause have been process in access method + * Then ExprState inside PlanState should reset to NULL. + */ + qual = node->ps.qual; + /* * check that the current tuple satisfies the qual-clause *