korowa commented on issue #12075:
URL: https://github.com/apache/datafusion/issues/12075#issuecomment-2308777855

   There are already aggregation variants of first/last which seem to solve the 
issue 
([example](https://github.com/apache/datafusion/blob/main/datafusion/sqllogictest/test_files/aggregate.slt#L170)),
 and, at first glance, they should not perform normal sorting, only compare 
incoming ordering column values with "accumulated" ones.
   
   It also seems that their performance could be improved by implementing 
GroupsAccumulator for them (or for majority of input types at least), as their 
state is somehow similar to AVGs state in terms of comlexity.


-- 
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: github-unsubscr...@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org
For additional commands, e-mail: github-h...@datafusion.apache.org

Reply via email to