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

[Rust] [DataFusion] ResolveColumnsRule not implemented fully for aggregate queries

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Invalid
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Rust, Rust - DataFusion
    • Labels:

      Description

      ResolveColumnsRule does not resolve columns for inputs to aggregate queries. This makes it impossible to apply a filter before an aggregate, for example.

      The fix is simple. The following code around line 52 ...

      LogicalPlanBuilder::from(input) 

      Should be ...

      LogicalPlanBuilder::from(&self.optimize(input.as_ref())? 

      It looks like the same applies for Selection and we should review this carefully and add tests.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              andygrove Andy Grove
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: