[fix](planner)nullable info of agg node's intermediate and output slots should be same (#29315)

This commit is contained in:
starocean999
2024-01-02 15:53:28 +08:00
committed by GitHub
parent 706463781c
commit 4692a62e47
3 changed files with 59 additions and 0 deletions

View File

@ -374,6 +374,7 @@ public class AggregationNode extends PlanNode {
List<Expr> groupingExprs = aggInfo.getGroupingExprs();
for (int i = 0; i < groupingExprs.size(); i++) {
aggInfo.getOutputTupleDesc().getSlots().get(i).setIsNullable(groupingExprs.get(i).isNullable());
aggInfo.getIntermediateTupleDesc().getSlots().get(i).setIsNullable(groupingExprs.get(i).isNullable());
aggInfo.getOutputTupleDesc().computeMemLayout();
}
}