You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Chinmay Kolhatkar (JIRA)" <ji...@apache.org> on 2016/10/14 04:39:20 UTC

[jira] [Created] (CALCITE-1440) Implement planner for converting multiple SQL statements to unified RelNode Tree

Chinmay Kolhatkar created CALCITE-1440:
------------------------------------------

             Summary: Implement planner for converting multiple SQL statements to unified RelNode Tree
                 Key: CALCITE-1440
                 URL: https://issues.apache.org/jira/browse/CALCITE-1440
             Project: Calcite
          Issue Type: New Feature
            Reporter: Chinmay Kolhatkar
            Assignee: Julian Hyde


This can be implemented as a seperate 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';

Above 2 statements has a common path and hence can provide an unified RelNode tree as follows:

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



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)