comphead commented on code in PR #6899:
URL: https://github.com/apache/datafusion-comet/pull/6899#discussion_r4260714116
##########
native/core/src/execution/planner.rs:
##########
@@ -1750,6 +1750,49 @@ impl PhysicalPlanner {
let (scans, shuffle_scans, child) =
self.create_plan(&children[0], inputs, partition_count)?;
+ // Spark plans a global aggregate with neither keys nor
functions when its output
+ // goes unused, as in `df.agg(sum($"a")).count()`. Each
partition emits one row
+ // with no columns, even for an empty input. DataFusion can't
run that aggregate:
Review Comment:
maybe this comment can be concised
--
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]