You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Gunther Hagleitner (JIRA)" <ji...@apache.org> on 2014/11/28 06:49:12 UTC

[jira] [Reopened] (HIVE-8888) Mapjoin with LateralViewJoin generates wrong plan in Tez

     [ https://issues.apache.org/jira/browse/HIVE-8888?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gunther Hagleitner reopened HIVE-8888:
--------------------------------------

The original patch doesn't actually work. The problem is that we still collect the mj during visiting the nodes. We need to clear that before bailing out of work generation.

> Mapjoin with LateralViewJoin generates wrong plan in Tez
> --------------------------------------------------------
>
>                 Key: HIVE-8888
>                 URL: https://issues.apache.org/jira/browse/HIVE-8888
>             Project: Hive
>          Issue Type: Bug
>    Affects Versions: 0.13.0, 0.14.0, 0.13.1, 0.15.0
>            Reporter: Prasanth J
>            Assignee: Prasanth J
>             Fix For: 0.14.1
>
>         Attachments: HIVE-8888.1.patch, HIVE-8888.2.patch, HIVE-8888.3.patch, HIVE-8888.4.patch
>
>
> Queries like these 
> {code}
> with sub1 as
> (select aid, avalue from expod1 lateral view explode(av) avs as avalue ),
> sub2 as
> (select bid, bvalue from expod2 lateral view explode(bv) bvs as bvalue)
> select sub1.aid, sub1.avalue, sub2.bvalue
> from sub1,sub2
> where sub1.aid=sub2.bid;
> {code}
> generates twice the number of rows in Tez when compared to MR.



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