[fix](legacy-planner) fixed loss of BetweenPredicate rewrite on reanalyze in legacy planner (29798) (#30328)

This commit is contained in:
Nitin-Kashyap
2024-02-03 13:58:03 +05:30
committed by yiguolei
parent a3a73162e5
commit d99bb51d36
3 changed files with 104 additions and 0 deletions

View File

@ -1890,6 +1890,7 @@ public class SelectStmt extends QueryStmt {
if (havingClauseAfterAnalyzed != null) {
havingClauseAfterAnalyzed = rewriter.rewrite(havingClauseAfterAnalyzed, analyzer);
havingClauseAfterAnalyzed.collect(Subquery.class, subqueryExprs);
havingClause = havingClauseAfterAnalyzed.clone();
}
for (Subquery subquery : subqueryExprs) {