[fix](planner)shouldn't force push down conjuncts for union statement (#22079)

* [fix](planner)shouldn't force push down conjuncts for union statement
This commit is contained in:
starocean999
2023-07-21 21:12:56 +08:00
committed by GitHub
parent 85cc044aaa
commit acf4aa2818
2 changed files with 1 additions and 13 deletions

View File

@ -1823,18 +1823,6 @@ public class SingleNodePlanner {
e.setIsOnClauseConjunct(false);
}
inlineViewRef.getAnalyzer().registerConjuncts(viewPredicates, inlineViewRef.getAllTupleIds());
QueryStmt queryStmt = inlineViewRef.getQueryStmt();
if (queryStmt instanceof SetOperationStmt) {
// registerConjuncts for every set operand
SetOperationStmt setOperationStmt = (SetOperationStmt) queryStmt;
for (SetOperationStmt.SetOperand setOperand : setOperationStmt.getOperands()) {
setOperand.getAnalyzer().registerConjuncts(
Expr.substituteList(viewPredicates, setOperand.getSmap(),
setOperand.getAnalyzer(), false),
inlineViewRef.getAllTupleIds());
}
}
// mark (fully resolve) slots referenced by remaining unassigned conjuncts as
// materialized
List<Expr> substUnassigned = Expr.substituteList(unassignedConjuncts,