Jesus Camacho Rodriguez created CALCITE-1797: ------------------------------------------------
Summary: Support view partial rewriting in aggregate materialized view rewriting Key: CALCITE-1797 URL: https://issues.apache.org/jira/browse/CALCITE-1797 Project: Calcite Issue Type: Improvement Components: core Reporter: Jesus Camacho Rodriguez Assignee: Jesus Camacho Rodriguez Fix For: 1.13.0 Simple extension for AbstractMaterializedViewRule similar to CALCITE-1791, however for views/queries rooted with an Aggregate node. In this case, we need to rely on FK-UK relationship to check whether the missing tables are just appending columns to the view result or even filtering the result, but not changing their multiplicity. If they meet these requirements, we can join the missing tables to the view and the view plan (that will be modified accordingly), and let the rewriting algorithm work the same way and enforce any missing predicate. -- This message was sent by Atlassian JIRA (v6.3.15#6346)