zhengruifeng commented on PR #53400:
URL: https://github.com/apache/spark/pull/53400#issuecomment-3639978666

   > The basic idea is to implement aggregation (and partial aggregation) by:
   `df.selectExpr("rand() as 
key").mapInArrow(reduce).groupBy(key).applyInArrow(merge)`
   
   I think there should be a `sortWithinPartitions` before `mapInArrow` for 
partial aggregation.
   


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