Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-12912

Calcite integration: Add filters merge rule to the planner

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • sql
    • None

    Description

      We need to add  next rules to planner

      • FilterMergeRule
      • FilterProjectTransposeRule

      In order to be able to make this transformation for the query:

      "select name from (\n"
              + "  select *\n"
              + "  from dept\n"
              + "  where deptno = 10)\n"
              + "where deptno = 10\n"
      
      BEFORE=
      LogicalProject(NAME=[$1])
        LogicalFilter(condition=[=(CAST($0):INTEGER, 10)])
          LogicalProject(DEPTNO=[$0], NAME=[$1])
            LogicalFilter(condition=[=(CAST($0):INTEGER, 10)])
              IgniteTableScan(table=[[PUBLIC, DEPT]])
      
      AFTER=
      IgniteProject(NAME=[$1])
        IgniteProject(DEPTNO=[$0], NAME=[$1])
          IgniteFilter(condition=[=(CAST($0):INTEGER, 10)])
            IgniteTableScan(table=[[PUBLIC, DEPT]])
      

       

       

      Attachments

        Issue Links

          Activity

            People

              tledkov-gridgain Taras Ledkov
              rkondakov Roman Kondakov
              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 - 0.5h
                  0.5h