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

Calcite integration: Add push filter to join 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

      • FilterJoinRule
      • JoinPushExpressionsRule

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

      "select d.deptno, e.deptno from sales.dept d, sales.emp e\n"
          + " where d.deptno + 10 = e.deptno * 2"
      
      BEFORE=
      LogicalProject(DEPTNO=[$0], DEPTNO0=[$5])
        LogicalFilter(condition=[=(+($0, 10), *($5, 2))])
          LogicalJoin(condition=[true], joinType=[inner])
            IgniteTableScan(table=[[PUBLIC, DEPT]])
            IgniteTableScan(table=[[PUBLIC, EMP]])
      
      AFTER=
      IgniteProject(DEPTNO=[$0], DEPTNO0=[$5])
        IgniteJoin(condition=[=(+($0, 10), *($5, 2))], joinType=[inner])
          IgniteTableScan(table=[[PUBLIC, DEPT]])
          IgniteTableScan(table=[[PUBLIC, EMP]])
      

       

       

      Attachments

        Issue Links

          Activity

            People

              amashenkov Andrey Mashenkov
              rkondakov Roman Kondakov
              Votes:
              0 Vote for this issue
              Watchers:
              1 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