You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Neville Dipale (Jira)" <ji...@apache.org> on 2020/09/25 17:30:00 UTC

[jira] [Commented] (ARROW-6892) [Rust] [DataFusion] Implement optimizer rule to remove redundant projections

    [ https://issues.apache.org/jira/browse/ARROW-6892?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17202322#comment-17202322 ] 

Neville Dipale commented on ARROW-6892:
---------------------------------------

[~andygrove]  [~jorgecarleitao] [~alamb]  do you know if this is resolved? There's been a lot of improvements to the optimizer, so checking if they perhaps included this.

> [Rust] [DataFusion] Implement optimizer rule to remove redundant projections
> ----------------------------------------------------------------------------
>
>                 Key: ARROW-6892
>                 URL: https://issues.apache.org/jira/browse/ARROW-6892
>             Project: Apache Arrow
>          Issue Type: New Feature
>          Components: Rust, Rust - DataFusion
>            Reporter: Andy Grove
>            Priority: Minor
>
> 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 message was sent by Atlassian Jira
(v8.3.4#803005)