hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hive QA (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-14530) Union All query returns incorrect results.
Date Mon, 29 Aug 2016 13:51:20 GMT

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

Hive QA commented on HIVE-14530:
--------------------------------



Here are the results of testing the latest attachment:
https://issues.apache.org/jira/secure/attachment/12825995/HIVE-14530.patch

{color:green}SUCCESS:{color} +1 due to 1 test(s) being added or modified.

{color:red}ERROR:{color} -1 due to 11 failed/errored test(s), 10467 tests executed
*Failed tests:*
{noformat}
org.apache.hadoop.hive.cli.TestCliDriver.org.apache.hadoop.hive.cli.TestCliDriver
org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver[acid_mapjoin]
org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver[correlationoptimizer8]
org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver[join34]
org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver[join35]
org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver[vector_join_part_col_char]
org.apache.hadoop.hive.cli.TestMiniTezCliDriver.testCliDriver[explainuser_3]
org.apache.hadoop.hive.cli.TestMinimrCliDriver.testCliDriver[schemeAuthority]
org.apache.hadoop.hive.cli.TestSparkCliDriver.testCliDriver[join34]
org.apache.hadoop.hive.cli.TestSparkCliDriver.testCliDriver[join35]
org.apache.hadoop.hive.thrift.TestHadoopAuthBridge23.testDelegationTokenSharedStore
{noformat}

Test results: https://builds.apache.org/job/PreCommit-HIVE-MASTER-Build/1031/testReport
Console output: https://builds.apache.org/job/PreCommit-HIVE-MASTER-Build/1031/console
Test logs: http://ec2-204-236-174-241.us-west-1.compute.amazonaws.com/logs/PreCommit-HIVE-MASTER-Build-1031/

Messages:
{noformat}
Executing org.apache.hive.ptest.execution.TestCheckPhase
Executing org.apache.hive.ptest.execution.PrepPhase
Executing org.apache.hive.ptest.execution.ExecutionPhase
Executing org.apache.hive.ptest.execution.ReportingPhase
Tests exited with: TestsFailedException: 11 tests failed
{noformat}

This message is automatically generated.

ATTACHMENT ID: 12825995 - PreCommit-HIVE-MASTER-Build

> Union All query returns incorrect results.
> ------------------------------------------
>
>                 Key: HIVE-14530
>                 URL: https://issues.apache.org/jira/browse/HIVE-14530
>             Project: Hive
>          Issue Type: Bug
>          Components: Query Planning
>    Affects Versions: 2.1.0
>         Environment: Hadoop 2.6
> Hive 2.1
>            Reporter: wenhe li
>            Assignee: Jesus Camacho Rodriguez
>         Attachments: HIVE-14530.01.patch
>
>
> create table dw_tmp.l_test1 (id bigint,val string,trans_date string) row format delimited
fields terminated by ' ' ;
> create table dw_tmp.l_test2 (id bigint,val string,trans_date string) row format delimited
fields terminated by ' ' ;  
> select * from dw_tmp.l_test1;
> 1       table_1      2016-08-11
> select * from dw_tmp.l_test2;
> 2       table_2      2016-08-11
> -- right like this
> select 
>     id,
>     'table_1' ,
>     trans_date
> from dw_tmp.l_test1
> union all
> select 
>     id,
>     val,
>     trans_date
> from dw_tmp.l_test2 ;
> 1       table_1     2016-08-11
> 2       table_2     2016-08-11
> -- incorrect
> select 
>     id,
>     999,
>     'table_1' ,
>     trans_date
> from dw_tmp.l_test1
> union all
> select 
>     id,
>     999,
>     val,
>     trans_date
> from dw_tmp.l_test2 ;
> 1       999     table_1     2016-08-11
> 2       999     table_1     2016-08-11     <-- here is wrong
> -- incorrect
> select 
>     id,
>     999,
>     666,
>     'table_1' ,
>     trans_date
> from dw_tmp.l_test1
> union all
> select 
>     id,
>     999,
>     666,
>     val,
>     trans_date
> from dw_tmp.l_test2 ;
> 1       999     666     table_1 2016-08-11
> 2       999     666     table_1 2016-08-11     <-- here is wrong
> -- right
> select 
>     id,
>     999,
>     'table_1' ,
>     trans_date,
>     '2016-11-11'
> from dw_tmp.l_test1
> union all
> select 
>     id,
>     999,
>     val,
>     trans_date,
>     trans_date
> from dw_tmp.l_test2 ;
> 1       999     table_1 2016-08-11      2016-11-11
> 2       999     table_2 2016-08-11      2016-08-11



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

Mime
View raw message