viirya opened a new pull request #24557: [SPARK-27653][SQL] Add max_by() SQL 
aggregate function
URL: https://github.com/apache/spark/pull/24557
 
 
   ## What changes were proposed in this pull request?
   
   This PR goes to add `max_by()` SQL aggregate function.
   
   Quoting from the [Presto 
docs](https://prestodb.github.io/docs/current/functions/aggregate.html#max_by)
   
   > max_by(x, y) → [same as x]
   > Returns the value of x associated with the maximum value of y over all 
input values.
   
   ## How was this patch tested?
   
   Added tests.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to