alamb opened a new issue #86:
URL: https://github.com/apache/arrow-datafusion/issues/86


   *Note*: migrated from original JIRA: 
https://issues.apache.org/jira/browse/ARROW-6892
   
   Currently we have code in the SQL query planner that wraps aggregate queries 
in a projection (if needed) to preserve the order of the final results. This is 
needed because the aggregate query execution always returns a result with 
grouping expressions first and then aggregate expressions.
   
   It would be better (simpler, more readable code) to always wrap aggregates 
in projections and have an optimizer rule to remove redundant projections. 
There are likely other use cases where redundant projections might exist too.


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

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


Reply via email to