Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-3405

Prune columns for ProjectableFilterableTable when Project is not simple mapping

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.22.0
    • Component/s: None

      Description

      Say beatles is a ProjectableFilterableTable, below Sqls fail to do column pruning by BindableTableScan

      Schema of beatles:
      i int
      j int
      k int
      
      
      select k, 3 from beatles;
      
      select k + j from beatles;

      The reason is that ProjectableFilterableTable only works when the Project is a simple mapping.

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jinxing6042@126.com Jin Xing
                Reporter:
                jinxing6042@126.com Jin Xing
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 2.5h
                  2.5h