You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2019/05/08 15:12:29 UTC

[GitHub] [spark] viirya opened a new pull request #24557: [SPARK-27653][SQL] Add max_by() SQL aggregate function

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:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org