[fix](planner)should keep at least one slot materialized in agg node (#26116)
This commit is contained in:
@ -905,7 +905,9 @@ public final class AggregateInfo extends AggregateInfoBase {
|
||||
intermediateSlotDesc.setIsMaterialized(true);
|
||||
}
|
||||
|
||||
if (!slotDesc.isMaterialized()) {
|
||||
if (!slotDesc.isMaterialized()
|
||||
&& !(i == aggregateExprsSize - 1 && materializedSlots.isEmpty() && groupingExprs.isEmpty())) {
|
||||
// we need keep at least one materialized slot in agg node
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user