[ 
https://issues.apache.org/jira/browse/HIVE-14496?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15735938#comment-15735938
 ] 

Jesus Camacho Rodriguez commented on HIVE-14496:
------------------------------------------------

[~ashutoshc], let's try to check this one in. I have addressed the most 
important comments in the last patch. In particular:
- Loading all materialized views definitions for all users when HS2 starts 
(instead of per session).
- Adding just an additional field for rewrite enabled (instead of creating a 
'view descriptor'). This simplified a lot the changes in the scripts to upgrade 
metastore.

I left for a follow-up:
- Extension of rules to match new patterns.

> Enable Calcite rewriting with materialized views
> ------------------------------------------------
>
>                 Key: HIVE-14496
>                 URL: https://issues.apache.org/jira/browse/HIVE-14496
>             Project: Hive
>          Issue Type: Sub-task
>          Components: Materialized views
>    Affects Versions: 2.2.0
>            Reporter: Jesus Camacho Rodriguez
>            Assignee: Jesus Camacho Rodriguez
>         Attachments: HIVE-14496.01.patch, HIVE-14496.02.patch, 
> HIVE-14496.03.patch, HIVE-14496.04.patch, HIVE-14496.patch
>
>
> Calcite already supports query rewriting using materialized views. We will 
> use it to support this feature in Hive.
> In order to do that, we need to register the existing materialized views with 
> Calcite view service and enable the materialized views rewriting rules. 
> We should include a HiveConf flag to completely disable query rewriting using 
> materialized views if necessary.



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

Reply via email to