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

Sushanth Sowmyan edited comment on HIVE-10792 at 6/29/15 1:15 AM:
------------------------------------------------------------------

Removing fix version of 1.2.1 since this is not part of the already-released 
1.2.1 release. Please set appropriate commit version when this fix is committed.


was (Author: sushanth):
Removing fix version of 1.2.1 since this is not part of the already-released 
1.2.` release. Please set appropriate commit version when this fix is committed.

> PPD leads to wrong answer when mapper scans the same table with multiple 
> aliases
> --------------------------------------------------------------------------------
>
>                 Key: HIVE-10792
>                 URL: https://issues.apache.org/jira/browse/HIVE-10792
>             Project: Hive
>          Issue Type: Bug
>          Components: File Formats, Query Processor
>    Affects Versions: 0.13.0, 0.14.0, 0.13.1, 1.0.0, 1.2.0, 1.1.0, 1.2.1
>            Reporter: Dayue Gao
>            Assignee: Dayue Gao
>            Priority: Critical
>         Attachments: HIVE-10792.1.patch, HIVE-10792.2.patch, 
> HIVE-10792.test.sql
>
>
> Here's the steps to reproduce the bug.
> First of all, prepare a simple ORC table with one row
> {code}
> create table test_orc (c0 int, c1 int) stored as ORC;
> {code}
> Table: test_orc
> ||c0||c1||
> |0|1|
> The following SQL gets empty result which is not expected
> {code}
> select * from test_orc t1
> union all
> select * from test_orc t2
> where t2.c0 = 1
> {code}
> Self join is also broken
> {code}
> set hive.auto.convert.join=false; -- force common join
> select * from test_orc t1
> left outer join test_orc t2 on (t1.c0=t2.c0 and t2.c1=0);
> {code}
> It gets empty result while the expected answer is
> ||t1.c0||t1.c1||t2.c0||t2.c1||
> |0|1|NULL|NULL|
> In these cases, we pushdown predicates into OrcInputFormat. As a result, 
> TableScanOperator for "t1" can't receive its rows.



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

Reply via email to