maxburke commented on code in PR #23695:
URL: https://github.com/apache/datafusion/pull/23695#discussion_r4539914048


##########
datafusion/physical-plan/src/aggregates/aggregate_hash_table/common.rs:
##########
@@ -253,7 +274,13 @@ impl<AggrMode> AggregateHashTable<AggrMode> {
                 }
             };
 
-        let batch = output.next_batch(batch_size);
+        // Narrow internally-widened group key columns back to the output
+        // schema types. Each slice holds at most `batch_size` rows, so unlike
+        // the full materialized batch, the narrow representation fits.
+        let batch = output
+            .next_batch(batch_size)

Review Comment:
   Done!



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to