[ https://issues.apache.org/jira/browse/HIVE-12788?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15090936#comment-15090936 ]
Hive QA commented on HIVE-12788: -------------------------------- Here are the results of testing the latest attachment: https://issues.apache.org/jira/secure/attachment/12781288/HIVE-12788.patch {color:green}SUCCESS:{color} +1 due to 1 test(s) being added or modified. {color:red}ERROR:{color} -1 due to 14 failed/errored test(s), 10001 tests executed *Failed tests:* {noformat} TestHWISessionManager - did not produce a TEST-*.xml file org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver_union_remove_26 org.apache.hadoop.hive.cli.TestNegativeCliDriver.testNegativeCliDriver_authorization_uri_import org.apache.hadoop.hive.ql.exec.spark.session.TestSparkSessionManagerImpl.testMultiSessionMultipleUse org.apache.hadoop.hive.ql.exec.spark.session.TestSparkSessionManagerImpl.testSingleSessionMultipleUse org.apache.hive.jdbc.TestSSL.testSSLVersion org.apache.hive.spark.client.TestSparkClient.testAddJarsAndFiles org.apache.hive.spark.client.TestSparkClient.testCounters org.apache.hive.spark.client.TestSparkClient.testErrorJob org.apache.hive.spark.client.TestSparkClient.testJobSubmission org.apache.hive.spark.client.TestSparkClient.testMetricsCollection org.apache.hive.spark.client.TestSparkClient.testRemoteClient org.apache.hive.spark.client.TestSparkClient.testSimpleSparkJob org.apache.hive.spark.client.TestSparkClient.testSyncRpc {noformat} Test results: http://ec2-174-129-184-35.compute-1.amazonaws.com/jenkins/job/PreCommit-HIVE-TRUNK-Build/6573/testReport Console output: http://ec2-174-129-184-35.compute-1.amazonaws.com/jenkins/job/PreCommit-HIVE-TRUNK-Build/6573/console Test logs: http://ec2-174-129-184-35.compute-1.amazonaws.com/logs/PreCommit-HIVE-TRUNK-Build-6573/ 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: 14 tests failed {noformat} This message is automatically generated. ATTACHMENT ID: 12781288 - PreCommit-HIVE-TRUNK-Build > Setting hive.optimize.union.remove to TRUE will break UNION ALL with > aggregate functions > ---------------------------------------------------------------------------------------- > > Key: HIVE-12788 > URL: https://issues.apache.org/jira/browse/HIVE-12788 > Project: Hive > Issue Type: Bug > Components: Hive > Affects Versions: 1.1.1 > Reporter: Eric Lin > Assignee: Chaoyu Tang > Attachments: HIVE-12788.patch > > > See the test case below: > {code} > 0: jdbc:hive2://localhost:10000/default> create table test (a int); > 0: jdbc:hive2://localhost:10000/default> insert overwrite table test values > (1); > 0: jdbc:hive2://localhost:10000/default> set hive.optimize.union.remove=true; > No rows affected (0.01 seconds) > 0: jdbc:hive2://localhost:10000/default> set > hive.mapred.supports.subdirectories=true; > No rows affected (0.007 seconds) > 0: jdbc:hive2://localhost:10000/default> SELECT COUNT(1) FROM test UNION ALL > SELECT COUNT(1) FROM test; > +----------+--+ > | _u1._c0 | > +----------+--+ > +----------+--+ > {code} > UNION ALL without COUNT function will work as expected: > {code} > 0: jdbc:hive2://localhost:10000/default> select * from test UNION ALL SELECT > * FROM test; > +--------+--+ > | _u1.a | > +--------+--+ > | 1 | > | 1 | > +--------+--+ > {code} > Run the same query without setting hive.mapred.supports.subdirectories and > hive.optimize.union.remove to true will give correct result: > {code} > 0: jdbc:hive2://localhost:10000/default> set hive.optimize.union.remove; > +-----------------------------------+--+ > | set | > +-----------------------------------+--+ > | hive.optimize.union.remove=false | > +-----------------------------------+--+ > 0: jdbc:hive2://localhost:10000/default> SELECT COUNT(1) FROM test UNION ALL > SELECT COUNT(1) FROM test; > +----------+--+ > | _u1._c0 | > +----------+--+ > | 1 | > | 1 | > +----------+--+ > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)