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

Implement planner for converting multiple SQL statements to unified RelNode Tree

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      This can be implemented as a separate planner or in VolcanoPlanner itself. The planner should take multiple SQL statements as input and return a unified RelNode tree.

      Example of above is as follows:

      SELECT COL1, COL2 FROM TABLE WHERE COL3 > 10;
      SELECT COL1, COL2 FROM TABLE WHERE COL4 = 'abc';

      The above 2 statements have a common path and hence can provide a unified RelNode tree as follows:

       [Scan] -> [Project (COL1, COL2)] -> [Filter (COL4 = 'abc')] -> [Delta]
                          |
                          V
                  [Filter (COL3 > 10)]
                          |
                          v
                       [Delta]
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                chinmay Chinmay Kolhatkar
              • Votes:
                0 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated: