2010YOUY01 commented on issue #23603:
URL: https://github.com/apache/datafusion/issues/23603#issuecomment-4999335649

   I found `arg_max()` or `max_by()` aggregate function are more ergonomic for 
such workloads
   
   https://duckdb.org/docs/lts/sql/functions/aggregates#arg_maxarg-val
   https://docs.snowflake.com/en/sql-reference/functions/max_by
   
   Its internal mechanism should be the same as `first_value(v1 order by v2)`, 
perhaps we can support them as an alias to `first_value()`


-- 
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]

Reply via email to