warrenzhu25 commented on issue #7146:
URL: 
https://github.com/apache/datafusion-comet/issues/7146#issuecomment-7302024226

   take
   
   Plan: behind a new config (off by default until the DataFusion 56 upgrade, 
which brings apache/datafusion#26154 for #6936 and the external sort fix), drop 
the `SortExec` on the grouping keys under a `SortAggregateExec` whose functions 
don't depend on input order (not `first`, `last` or `collect_list`):
   - a partial aggregate whose parent is a shuffle exchange reports no output 
ordering;
   - a final or complete aggregate keeps `ordered_by_grouping_keys`, so the 
native planner sorts the aggregated rows instead of the input.
   Skipping that output sort when a final aggregate's parent is an exchange can 
follow.


-- 
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