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

Prune columns for ProjectableFilterableTable when Project is not simple mapping

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.22.0
    • 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

              jinxing6042@126.com Jin Xing
              jinxing6042@126.com Jin Xing
              Votes:
              0 Vote for this issue
              Watchers:
              3 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