[
https://issues.apache.org/jira/browse/HIVE-22256?focusedWorklogId=429738&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-429738
]
ASF GitHub Bot logged work on HIVE-22256:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 02/May/20 00:09
Start Date: 02/May/20 00:09
Worklog Time Spent: 10m
Work Description: jcamachor commented on a change in pull request #1002:
URL: https://github.com/apache/hive/pull/1002#discussion_r418784188
##########
File path: ql/src/java/org/apache/hadoop/hive/ql/parse/CalcitePlanner.java
##########
@@ -2463,6 +2473,15 @@ private RelNode applyPostJoinOrderingTransform(RelNode
basePlan, RelMetadataProv
HiveProjectSortExchangeTransposeRule.INSTANCE,
HiveProjectMergeRule.INSTANCE);
}
+ // 10. We need to expand IN/BETWEEN expressions when loading a
materialized view
Review comment:
This is called only when we are loading the materialized view in the
registry so we can keep the plan in the correct form (IN and BETWEEN expanded)
and we do not have to do it at compilation time.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 429738)
Time Spent: 50m (was: 40m)
> Rewriting fails when `IN` clause has items in different order in MV and query.
> ------------------------------------------------------------------------------
>
> Key: HIVE-22256
> URL: https://issues.apache.org/jira/browse/HIVE-22256
> Project: Hive
> Issue Type: Sub-task
> Components: CBO, Materialized views
> Affects Versions: 3.1.2
> Reporter: Steve Carlin
> Assignee: Jesus Camacho Rodriguez
> Priority: Major
> Labels: pull-request-available
> Attachments: HIVE-22256.01.patch, HIVE-22256.patch, expr2.sql
>
> Time Spent: 50m
> Remaining Estimate: 0h
>
> Rewriting fails on following materialized view and query (script is also
> attached):
> create materialized view view2 stored as orc as (select prod_id, cust_id,
> store_id, sale_date, qty, amt, descr from sales where cust_id in (1,2,3,4,5));
> explain extended select prod_id, cust_id from sales where cust_id in
> (5,1,2,3,4);
--
This message was sent by Atlassian Jira
(v8.3.4#803005)