hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pengcheng Xiong (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-16797) Enhance HiveFilterSetOpTransposeRule to remove union branches
Date Tue, 20 Jun 2017 17:46:00 GMT

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

Pengcheng Xiong commented on HIVE-16797:
----------------------------------------

yes, i did update the golden file.

> Enhance HiveFilterSetOpTransposeRule to remove union branches
> -------------------------------------------------------------
>
>                 Key: HIVE-16797
>                 URL: https://issues.apache.org/jira/browse/HIVE-16797
>             Project: Hive
>          Issue Type: Sub-task
>    Affects Versions: 2.0.0
>            Reporter: Pengcheng Xiong
>            Assignee: Pengcheng Xiong
>             Fix For: 3.0.0
>
>         Attachments: HIVE-16797.01.patch, HIVE-16797.02.patch, HIVE-16797.03.patch, HIVE-16797.04.patch,
HIVE-16797.05.patch
>
>
> in query4.q, we can see that it creates a CTE with union all of 3 branches. Then it is
going to do a 3 way self-join of the CTE with predicates. The predicates actually specifies
only one of the branch in CTE to participate in the join. Thus, in some cases, e.g.,
> {code}
>                /- filter(false) -----TS0 
> union all  - filter(false) -----TS1
>                \-----TS2
> {code}
> we can cut the branches of TS0 and TS1. The union becomes only TS2.



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

Mime
View raw message