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

liyunzhang_intel commented on HIVE-17486:
-----------------------------------------

the reason why CombineEquivalentWorkResolver does not think Map1 is same as 
Map5, Map4 is same as Map7 is:
when comparing Map4 and Map7
Map4
{code}
TS[2]-SEL[3]-RS[13]
{code}
Map7 
{code}
TS[6]-SEL[7]-RS[9]
{code}

It returns not equal when comparing RS\[13\] and RS\[9\] at 
[ExprNodeColumnDesc#isSame|https://github.com/apache/hive/blob/master/ql/src/java/org/apache/hadoop/hive/ql/plan/ExprNodeColumnDesc.java#L181].
 {code}
if ( tabAlias != null && dest.tabAlias != null ) {
      if ( !tabAlias.equals(dest.tabAlias) ) {
        return false;
      }
    }
{code}

here {{tabAlias}} is {{$hdt$_1}} while dest.tabAlias is {{$hdt$_3}}, actually 
{{$hdt$_1}} and {{$hdt$_3}} points to table {{test2}}.

> Enable SharedWorkOptimizer in tez on HOS
> ----------------------------------------
>
>                 Key: HIVE-17486
>                 URL: https://issues.apache.org/jira/browse/HIVE-17486
>             Project: Hive
>          Issue Type: Bug
>            Reporter: liyunzhang_intel
>            Assignee: liyunzhang_intel
>
> in HIVE-16602, Implement shared scans with Tez.
> Given a query plan, the goal is to identify scans on input tables that can be 
> merged so the data is read only once. Optimization will be carried out at the 
> physical level.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to