beliefer opened a new pull request, #43786: URL: https://github.com/apache/spark/pull/43786
### What changes were proposed in this pull request? Currently, the mode aggregate function only support sort desc with the input column. But the mainstream database (e.g. H2 and Postgres) supports sort desc or asc. https://github.com/apache/spark/pull/43663 will support `MODE() WITHIN GROUP (ORDER BY col [ASC|DESC])` syntax. ### Why are the changes needed? Mode function should supports sort with order direction. ### Does this PR introduce _any_ user-facing change? 'No'. New feature. ### How was this patch tested? Test cases updated. ### Was this patch authored or co-authored using generative AI tooling? 'No'. -- 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]
