Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-6892

[Rust] [DataFusion] Implement optimizer rule to remove redundant projections

Details

    • New Feature
    • Status: Closed
    • Minor
    • Resolution: Invalid
    • None
    • None
    • Rust, Rust - DataFusion
    • None

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            andygrove Andy Grove
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment