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

Improve filter condition in Join

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • None
    • None
    • None

    Description

      Currently, filter condition in join have not been optimized very well, let's take a simple example

      select a.id, b.name from Ta a inner join Tb b on a.id = b.id and a.id < 5;
      
      

      now, only a.id < 5 can push down, however, as for the sql above,
      we can infer a.id < 5 and b.id < 5 and both of them can push down.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              yuqi yuqi
              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 - 50m
                  50m