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

Ruben Q L commented on HIVE-19114:
----------------------------------

[~zabetak] , Calcite upgrade 1.42.0 (HIVE-29641) was done  in 
https://github.com/apache/hive/commit/28fd3262e3757cec7ccca954706a47de948f6e26, 
and in fact materialized_view_rewrite_4.q output was changed and uses now 
{{default@mv1_n3}}.
Do you confirm we can mark this as resolved?

> MV rewriting not being triggered for last query in 
> materialized_view_rewrite_4.q
> --------------------------------------------------------------------------------
>
>                 Key: HIVE-19114
>                 URL: https://issues.apache.org/jira/browse/HIVE-19114
>             Project: Hive
>          Issue Type: Bug
>          Components: Materialized views
>    Affects Versions: 3.0.0
>            Reporter: Jesús Camacho Rodríguez
>            Assignee: Ruben Q L
>            Priority: Critical
>
> {code:sql}
> create materialized view mv1 enable rewrite as
> select dependents.empid, emps.deptno, count(distinct salary) as s
> from emps
> join dependents on (emps.empid = dependents.empid)
> group by dependents.empid, emps.deptno;
> select emps.deptno, count(distinct salary) as s
> from emps
> join dependents on (emps.empid = dependents.empid)
> group by dependents.empid, emps.deptno;
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to