From 8d136accb953cfa1ba3265a33cffa67f350f27df Mon Sep 17 00:00:00 2001 From: jiaqizho Date: Thu, 14 Mar 2024 14:40:59 +0800 Subject: [PATCH] Fix: no need to do the qual-clause twice --- src/backend/executor/execScan.c | 9 +++++++++ 1 file changed, 9 insertions(+) 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 *