Open Weijun-H opened 2 weeks ago
take
These probably could be an aliases (with some additional transformations) for first/last aggregation functions -- otherwise there it'll end with two implementations of basically the same function (not something bad, but still redundant).
Relevant discussion -- https://github.com/apache/datafusion/issues/12075
Given https://github.com/apache/datafusion/issues/12357 we may want to move this function to some other repo rather than the core
Is your feature request related to a problem or challenge?
max_by(arg, val)
Describe the solution you'd like
Describe alternatives you've considered
No response
Additional context
https://duckdb.org/docs/sql/functions/aggregates#max_byarg-val https://docs.databricks.com/en/sql/language-manual/functions/max_by.html