hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-3381) Result of outer join is not valid
Date Wed, 27 Mar 2013 16:59:18 GMT

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

Hudson commented on HIVE-3381:
------------------------------

Integrated in Hive-trunk-h0.21 #2033 (See [https://builds.apache.org/job/Hive-trunk-h0.21/2033/])
    HIVE-3381 : Result of outer join is not valid (Navis via Ashutosh Chauhan) (Revision 1461234)

     Result = ABORTED
hashutosh : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1461234
Files : 
* /hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/exec/CommonJoinOperator.java
* /hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/exec/HashTableSinkOperator.java
* /hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/exec/JoinOperator.java
* /hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/exec/JoinUtil.java
* /hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/exec/MapJoinOperator.java
* /hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/exec/SMBMapJoinOperator.java
* /hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/exec/persistence/MapJoinObjectValue.java
* /hive/trunk/ql/src/test/queries/clientpositive/mapjoin_test_outer.q
* /hive/trunk/ql/src/test/results/clientpositive/auto_join21.q.out
* /hive/trunk/ql/src/test/results/clientpositive/auto_join29.q.out
* /hive/trunk/ql/src/test/results/clientpositive/auto_join7.q.out
* /hive/trunk/ql/src/test/results/clientpositive/auto_join_filters.q.out
* /hive/trunk/ql/src/test/results/clientpositive/join21.q.out
* /hive/trunk/ql/src/test/results/clientpositive/join7.q.out
* /hive/trunk/ql/src/test/results/clientpositive/join_1to1.q.out
* /hive/trunk/ql/src/test/results/clientpositive/join_filters.q.out
* /hive/trunk/ql/src/test/results/clientpositive/join_filters_overlap.q.out
* /hive/trunk/ql/src/test/results/clientpositive/mapjoin1.q.out
* /hive/trunk/ql/src/test/results/clientpositive/mapjoin_test_outer.q.out

                
> Result of outer join is not valid
> ---------------------------------
>
>                 Key: HIVE-3381
>                 URL: https://issues.apache.org/jira/browse/HIVE-3381
>             Project: Hive
>          Issue Type: Bug
>          Components: Query Processor
>    Affects Versions: 0.10.0
>            Reporter: Navis
>            Assignee: Navis
>            Priority: Critical
>             Fix For: 0.11.0
>
>         Attachments: HIVE-3381.D5565.3.patch, HIVE-3381.D5565.4.patch, HIVE-3381.D5565.5.patch,
HIVE-3381.D5565.6.patch, HIVE-3381.D5565.7.patch, mapjoin_testOuter.q
>
>
> Outer joins, especially full outer joins or outer join with filter on 'ON clause' is
not showing proper results. For example, query in test join_1to1.q
> {code}
> SELECT * FROM join_1to1_1 a full outer join join_1to1_2 b on a.key1 = b.key1 and a.value
= 66 and b.value = 66 ORDER BY a.key1 ASC, a.key2 ASC, a.value ASC, b.key1 ASC, b.key2 ASC,
b.value ASC;
> {code}
> results
> {code}
> NULL	NULL	NULL	NULL	NULL	66
> NULL	NULL	NULL	NULL	10050	66
> NULL	NULL	NULL	10	10010	66
> NULL	NULL	NULL	30	10030	88
> NULL	NULL	NULL	35	10035	88
> NULL	NULL	NULL	40	10040	88
> NULL	NULL	NULL	40	10040	88
> NULL	NULL	NULL	50	10050	88
> NULL	NULL	NULL	50	10050	88
> NULL	NULL	NULL	50	10050	88
> NULL	NULL	NULL	70	10040	88
> NULL	NULL	NULL	70	10040	88
> NULL	NULL	NULL	70	10040	88
> NULL	NULL	NULL	70	10040	88
> NULL	NULL	66	NULL	NULL	NULL
> NULL	10050	66	NULL	NULL	NULL
> 5	10005	66	5	10005	66
> 15	10015	66	NULL	NULL	NULL
> 20	10020	66	20	10020	66
> 25	10025	88	NULL	NULL	NULL
> 30	10030	66	NULL	NULL	NULL
> 35	10035	88	NULL	NULL	NULL
> 40	10040	66	NULL	NULL	NULL
> 40	10040	66	40	10040	66
> 40	10040	88	NULL	NULL	NULL
> 40	10040	88	NULL	NULL	NULL
> 50	10050	66	NULL	NULL	NULL
> 50	10050	66	50	10050	66
> 50	10050	66	50	10050	66
> 50	10050	88	NULL	NULL	NULL
> 50	10050	88	NULL	NULL	NULL
> 50	10050	88	NULL	NULL	NULL
> 50	10050	88	NULL	NULL	NULL
> 50	10050	88	NULL	NULL	NULL
> 50	10050	88	NULL	NULL	NULL
> 60	10040	66	60	10040	66
> 60	10040	66	60	10040	66
> 60	10040	66	60	10040	66
> 60	10040	66	60	10040	66
> 70	10040	66	NULL	NULL	NULL
> 70	10040	66	NULL	NULL	NULL
> 70	10040	66	NULL	NULL	NULL
> 70	10040	66	NULL	NULL	NULL
> 80	10040	88	NULL	NULL	NULL
> 80	10040	88	NULL	NULL	NULL
> 80	10040	88	NULL	NULL	NULL
> 80	10040	88	NULL	NULL	NULL
> {code} 
> but it seemed not right. This should be 
> {code}
> NULL	NULL	NULL	NULL	NULL	66
> NULL	NULL	NULL	NULL	10050	66
> NULL	NULL	NULL	10	10010	66
> NULL	NULL	NULL	25	10025	66
> NULL	NULL	NULL	30	10030	88
> NULL	NULL	NULL	35	10035	88
> NULL	NULL	NULL	40	10040	88
> NULL	NULL	NULL	50	10050	88
> NULL	NULL	NULL	70	10040	88
> NULL	NULL	NULL	70	10040	88
> NULL	NULL	NULL	80	10040	66
> NULL	NULL	NULL	80	10040	66
> NULL	NULL	66	NULL	NULL	NULL
> NULL	10050	66	NULL	NULL	NULL
> 5	10005	66	5	10005	66
> 15	10015	66	NULL	NULL	NULL
> 20	10020	66	20	10020	66
> 25	10025	88	NULL	NULL	NULL
> 30	10030	66	NULL	NULL	NULL
> 35	10035	88	NULL	NULL	NULL
> 40	10040	66	40	10040	66
> 40	10040	88	NULL	NULL	NULL
> 50	10050	66	50	10050	66
> 50	10050	66	50	10050	66
> 50	10050	88	NULL	NULL	NULL
> 50	10050	88	NULL	NULL	NULL
> 60	10040	66	60	10040	66
> 60	10040	66	60	10040	66
> 60	10040	66	60	10040	66
> 60	10040	66	60	10040	66
> 70	10040	66	NULL	NULL	NULL
> 70	10040	66	NULL	NULL	NULL
> 80	10040	88	NULL	NULL	NULL
> 80	10040	88	NULL	NULL	NULL
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message