CuteChuanChuan commented on PR #27827:
URL: https://github.com/apache/datafusion/pull/27827#issuecomment-7258475399

   Thanks @jayzhan211 for catching both, and for the tested fix!
   
   You're right on both:
   
   - I copied the whole Partial expression into the Final, so it also carried 
over is_input_pre_ordered. That holds for the Partial's sorted input, but not 
for the Final, which merges states from many partitions in no particular order. 
Copying only the direction fixes it.
    
   - PartialReduce: my helper only accepted AggregateMode::Partial, so the PR 
description was wrong. Checking output_mode() covers both.
   
   I applied your suggestion, added both tests, and shortened the doc comments 
a bit.


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