Amogh Margoor created CALCITE-787:
-------------------------------------

             Summary: Star table is being assigned to MaterializedView even 
when it's not required.
                 Key: CALCITE-787
                 URL: https://issues.apache.org/jira/browse/CALCITE-787
             Project: Calcite
          Issue Type: Task
            Reporter: Amogh Margoor
            Assignee: Julian Hyde


cc: [~vrajat]

CalciteMaterializer tries to rewrite query relnode with the star table in 
schema (the first one that fits). Utility function used is 
RelOptMaterialization::tryUseStar. Utility function should return null when it 
cannot rewrite relnode using star table, but instead it is returning the same 
relnode back. This is causing MV being assigned star table even when it is not 
required. 



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

Reply via email to