[ https://issues.apache.org/jira/browse/HIVE-9347?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14279431#comment-14279431 ]
Hive QA commented on HIVE-9347: ------------------------------- {color:red}Overall{color}: -1 at least one tests failed Here are the results of testing the latest attachment: https://issues.apache.org/jira/secure/attachment/12692183/HIVE-9347.1.patch.txt {color:red}ERROR:{color} -1 due to 14 failed/errored test(s), 7312 tests executed *Failed tests:* {noformat} org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver_groupby12 org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver_groupby_grouping_window org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver_limit_pushdown org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver_semijoin org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver_subquery_multiinsert org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver_udaf_percentile_approx_23 org.apache.hadoop.hive.cli.TestMiniTezCliDriver.testCliDriver_limit_pushdown org.apache.hadoop.hive.cli.TestSparkCliDriver.testCliDriver_groupby_cube1 org.apache.hadoop.hive.cli.TestSparkCliDriver.testCliDriver_groupby_rollup1 org.apache.hadoop.hive.cli.TestSparkCliDriver.testCliDriver_limit_pushdown org.apache.hadoop.hive.cli.TestSparkCliDriver.testCliDriver_semijoin org.apache.hadoop.hive.cli.TestSparkCliDriver.testCliDriver_subquery_multiinsert org.apache.hadoop.hive.ql.TestMTQueries.testMTQueries1 org.apache.hive.hcatalog.streaming.TestStreaming.testEndpointConnection {noformat} Test results: http://ec2-174-129-184-35.compute-1.amazonaws.com/jenkins/job/PreCommit-HIVE-TRUNK-Build/2378/testReport Console output: http://ec2-174-129-184-35.compute-1.amazonaws.com/jenkins/job/PreCommit-HIVE-TRUNK-Build/2378/console Test logs: http://ec2-174-129-184-35.compute-1.amazonaws.com/logs/PreCommit-HIVE-TRUNK-Build-2378/ Messages: {noformat} 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: 12692183 - PreCommit-HIVE-TRUNK-Build > Bug with max() together with rank() and grouping sets > ----------------------------------------------------- > > Key: HIVE-9347 > URL: https://issues.apache.org/jira/browse/HIVE-9347 > Project: Hive > Issue Type: Bug > Affects Versions: 0.13.1 > Environment: Amazon Elastic Map Reduce, AMI 3.3.1, Hadoop Amazon > 2.4.0, Hive 0.13.1 > Reporter: Michal Krawczyk > Assignee: Navis > Attachments: HIVE-9347.1.patch.txt > > > It looks like the query below returns incorrect results on Hive 0.13.1, but > it was working fine on Hive 0.11. > I have the following table: > CREATE TABLE `t`( > `category` int, > `live` int, > `comments` int) > with the following data: > hive> select * from t; > OK > 3 0 2 > 2 0 2 > 8 0 2 > The query: > hive> select category, max(live) live, max(comments) comments, rank() OVER > (PARTITION BY category ORDER BY comments) rank1 > FROM t > GROUP BY category > GROUPING SETS ((), (category)) > HAVING max(comments) > 0; > return the following results: > NULL 1 48 1 > 2 1 49 1 > 3 1 49 1 > 8 1 49 1 > When using grouping sets with the rank() function the max() function return > incorrect results. Everything works fine if I remove grouping sets clause and > split the query into two independent queries or remove the rank() function. > This looks like a bug to me but please review. That said, I'm not sure if > it's just Amazon issue or general Hive issue. -- This message was sent by Atlassian JIRA (v6.3.4#6332)