[fix](planner) Fix incosistency between groupby expression and output of aggregation node (#17438)

This commit is contained in:
AKIRA
2023-03-07 10:38:20 +09:00
committed by GitHub
parent d8f0ca7108
commit f85f89f240
3 changed files with 77 additions and 0 deletions

View File

@ -369,4 +369,14 @@ public class AggregationNode extends PlanNode {
}
return result;
}
@Override
public void finalize(Analyzer analyzer) throws UserException {
super.finalize(analyzer);
List<Expr> groupingExprs = aggInfo.getGroupingExprs();
for (int i = 0; i < groupingExprs.size(); i++) {
aggInfo.getOutputTupleDesc().getSlots().get(i).setIsNullable(groupingExprs.get(i).isNullable());
aggInfo.getOutputTupleDesc().computeMemLayout();
}
}
}