alamb commented on issue #9924:
URL: 
https://github.com/apache/arrow-datafusion/issues/9924#issuecomment-2037406494

   > I think for AVG, or COUNT type of aggregates we can safely ignore ORDER BY 
expression. Since operation result is same for any permutation of the input.
   
   That is true, though applying an ORDER BY to the argument of COUNT may be 
much slower 🤔  But maybe we could remove `ORDER BY` that don't change the 
output as a follow on optimization


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

Reply via email to