[Feature] max_by, min_by aggregate function support #7678
Labels
area/sql/function
Issues or PRs related to the SQL functions
kind/feature
Categorizes issue or PR as related to a new feature.
Search before asking
Description
max_by(x, y) Query the corresponding x value when y is the maximum value.
max_by(x, y, n) Query the x values corresponding to the largest n y values, and return the result as an array.
min_by(x, y) Query the corresponding x value when y is the minimum value.
min_by(x, y, n) Query the x value corresponding to the smallest n y values. The result is returned as an array.
Use case
No response
Related issues
No response
Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: