[jira] [Commented] (HIVE-9053) select constant in union all followed by group by gives wrong result
[ https://issues.apache.org/jira/browse/HIVE-9053?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14286369#comment-14286369 ] Pengcheng Xiong commented on HIVE-9053: --- [~vikram.dixit], as per your request, the patch is attached. Please let me know if there is any problem. Thanks. > select constant in union all followed by group by gives wrong result > > > Key: HIVE-9053 > URL: https://issues.apache.org/jira/browse/HIVE-9053 > Project: Hive > Issue Type: Bug >Affects Versions: 0.13.0, 0.14.0 >Reporter: Pengcheng Xiong >Assignee: Pengcheng Xiong > Fix For: 0.15.0 > > Attachments: HIVE-9053.01.patch, HIVE-9053.02.patch, > HIVE-9053.03.patch, HIVE-9053.04.patch, HIVE-9053.patch-branch-1.0 > > > Here is the the way to reproduce with q test: > select key from (select '1' as key from src union all select key from src)tab > group by key; > will give > OK > NULL > 1 > This is not correct as src contains many other keys. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (HIVE-9053) select constant in union all followed by group by gives wrong result
[ https://issues.apache.org/jira/browse/HIVE-9053?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14286257#comment-14286257 ] Vikram Dixit K commented on HIVE-9053: -- [~pxiong] can you create a patch based on branch 1.0 instead of branch 0.14. > select constant in union all followed by group by gives wrong result > > > Key: HIVE-9053 > URL: https://issues.apache.org/jira/browse/HIVE-9053 > Project: Hive > Issue Type: Bug >Affects Versions: 0.13.0, 0.14.0 >Reporter: Pengcheng Xiong >Assignee: Pengcheng Xiong > Fix For: 0.15.0 > > Attachments: HIVE-9053.01.patch, HIVE-9053.02.patch, > HIVE-9053.03.patch, HIVE-9053.04.patch > > > Here is the the way to reproduce with q test: > select key from (select '1' as key from src union all select key from src)tab > group by key; > will give > OK > NULL > 1 > This is not correct as src contains many other keys. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (HIVE-9053) select constant in union all followed by group by gives wrong result
[ https://issues.apache.org/jira/browse/HIVE-9053?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14281155#comment-14281155 ] Thejas M Nair commented on HIVE-9053: - Looks like a fix we should include in hive 0.14 branch as well. > select constant in union all followed by group by gives wrong result > > > Key: HIVE-9053 > URL: https://issues.apache.org/jira/browse/HIVE-9053 > Project: Hive > Issue Type: Bug >Affects Versions: 0.13.0, 0.14.0 >Reporter: Pengcheng Xiong >Assignee: Pengcheng Xiong > Fix For: 0.15.0 > > Attachments: HIVE-9053.01.patch, HIVE-9053.02.patch, > HIVE-9053.03.patch, HIVE-9053.04.patch > > > Here is the the way to reproduce with q test: > select key from (select '1' as key from src union all select key from src)tab > group by key; > will give > OK > NULL > 1 > This is not correct as src contains many other keys. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (HIVE-9053) select constant in union all followed by group by gives wrong result
[ https://issues.apache.org/jira/browse/HIVE-9053?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14250347#comment-14250347 ] Pengcheng Xiong commented on HIVE-9053: --- [~prasanth_j], could you please review and help me commit "patch-013" to hive 0.13 branch? Thanks! > select constant in union all followed by group by gives wrong result > > > Key: HIVE-9053 > URL: https://issues.apache.org/jira/browse/HIVE-9053 > Project: Hive > Issue Type: Bug >Affects Versions: 0.13.0, 0.14.0 >Reporter: Pengcheng Xiong >Assignee: Pengcheng Xiong > Fix For: 0.15.0 > > Attachments: HIVE-9053.01.patch, HIVE-9053.02.patch, > HIVE-9053.03.patch, HIVE-9053.04.patch, HIVE-9053.04.patch-013 > > > Here is the the way to reproduce with q test: > select key from (select '1' as key from src union all select key from src)tab > group by key; > will give > OK > NULL > 1 > This is not correct as src contains many other keys. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (HIVE-9053) select constant in union all followed by group by gives wrong result
[ https://issues.apache.org/jira/browse/HIVE-9053?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14245772#comment-14245772 ] Pengcheng Xiong commented on HIVE-9053: --- [~ashutoshc], I think the test failure is unrelated and the patch is safe to check in. Could you please take a look? Thanks! > select constant in union all followed by group by gives wrong result > > > Key: HIVE-9053 > URL: https://issues.apache.org/jira/browse/HIVE-9053 > Project: Hive > Issue Type: Bug >Reporter: Pengcheng Xiong >Assignee: Pengcheng Xiong > Attachments: HIVE-9053.01.patch, HIVE-9053.02.patch, > HIVE-9053.03.patch, HIVE-9053.04.patch > > > Here is the the way to reproduce with q test: > select key from (select '1' as key from src union all select key from src)tab > group by key; > will give > OK > NULL > 1 > This is not correct as src contains many other keys. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (HIVE-9053) select constant in union all followed by group by gives wrong result
[ https://issues.apache.org/jira/browse/HIVE-9053?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14245770#comment-14245770 ] Hive QA commented on HIVE-9053: --- {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/12687078/HIVE-9053.04.patch {color:red}ERROR:{color} -1 due to 1 failed/errored test(s), 6703 tests executed *Failed tests:* {noformat} 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/2075/testReport Console output: http://ec2-174-129-184-35.compute-1.amazonaws.com/jenkins/job/PreCommit-HIVE-TRUNK-Build/2075/console Test logs: http://ec2-174-129-184-35.compute-1.amazonaws.com/logs/PreCommit-HIVE-TRUNK-Build-2075/ 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: 1 tests failed {noformat} This message is automatically generated. ATTACHMENT ID: 12687078 - PreCommit-HIVE-TRUNK-Build > select constant in union all followed by group by gives wrong result > > > Key: HIVE-9053 > URL: https://issues.apache.org/jira/browse/HIVE-9053 > Project: Hive > Issue Type: Bug >Reporter: Pengcheng Xiong >Assignee: Pengcheng Xiong > Attachments: HIVE-9053.01.patch, HIVE-9053.02.patch, > HIVE-9053.03.patch, HIVE-9053.04.patch > > > Here is the the way to reproduce with q test: > select key from (select '1' as key from src union all select key from src)tab > group by key; > will give > OK > NULL > 1 > This is not correct as src contains many other keys. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (HIVE-9053) select constant in union all followed by group by gives wrong result
[ https://issues.apache.org/jira/browse/HIVE-9053?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14245445#comment-14245445 ] Pengcheng Xiong commented on HIVE-9053: --- Good to hear that all tests passed. I still would like to investigate another small corner issue before checked in... Thanks! > select constant in union all followed by group by gives wrong result > > > Key: HIVE-9053 > URL: https://issues.apache.org/jira/browse/HIVE-9053 > Project: Hive > Issue Type: Bug >Reporter: Pengcheng Xiong >Assignee: Pengcheng Xiong > Attachments: HIVE-9053.01.patch, HIVE-9053.02.patch, > HIVE-9053.03.patch > > > Here is the the way to reproduce with q test: > select key from (select '1' as key from src union all select key from src)tab > group by key; > will give > OK > NULL > 1 > This is not correct as src contains many other keys. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (HIVE-9053) select constant in union all followed by group by gives wrong result
[ https://issues.apache.org/jira/browse/HIVE-9053?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14245318#comment-14245318 ] Hive QA commented on HIVE-9053: --- {color:green}Overall{color}: +1 all checks pass Here are the results of testing the latest attachment: https://issues.apache.org/jira/secure/attachment/12686979/HIVE-9053.03.patch {color:green}SUCCESS:{color} +1 6703 tests passed Test results: http://ec2-174-129-184-35.compute-1.amazonaws.com/jenkins/job/PreCommit-HIVE-TRUNK-Build/2072/testReport Console output: http://ec2-174-129-184-35.compute-1.amazonaws.com/jenkins/job/PreCommit-HIVE-TRUNK-Build/2072/console Test logs: http://ec2-174-129-184-35.compute-1.amazonaws.com/logs/PreCommit-HIVE-TRUNK-Build-2072/ Messages: {noformat} Executing org.apache.hive.ptest.execution.PrepPhase Executing org.apache.hive.ptest.execution.ExecutionPhase Executing org.apache.hive.ptest.execution.ReportingPhase {noformat} This message is automatically generated. ATTACHMENT ID: 12686979 - PreCommit-HIVE-TRUNK-Build > select constant in union all followed by group by gives wrong result > > > Key: HIVE-9053 > URL: https://issues.apache.org/jira/browse/HIVE-9053 > Project: Hive > Issue Type: Bug >Reporter: Pengcheng Xiong >Assignee: Pengcheng Xiong > Attachments: HIVE-9053.01.patch, HIVE-9053.02.patch, > HIVE-9053.03.patch > > > Here is the the way to reproduce with q test: > select key from (select '1' as key from src union all select key from src)tab > group by key; > will give > OK > NULL > 1 > This is not correct as src contains many other keys. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (HIVE-9053) select constant in union all followed by group by gives wrong result
[ https://issues.apache.org/jira/browse/HIVE-9053?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14244762#comment-14244762 ] Hive QA commented on HIVE-9053: --- {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/12686784/HIVE-9053.02.patch {color:red}ERROR:{color} -1 due to 4 failed/errored test(s), 6702 tests executed *Failed tests:* {noformat} org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver_metadataonly1 org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver_optimize_nullscan org.apache.hadoop.hive.cli.TestMiniTezCliDriver.testCliDriver_metadataonly1 org.apache.hadoop.hive.cli.TestMiniTezCliDriver.testCliDriver_optimize_nullscan {noformat} Test results: http://ec2-174-129-184-35.compute-1.amazonaws.com/jenkins/job/PreCommit-HIVE-TRUNK-Build/2059/testReport Console output: http://ec2-174-129-184-35.compute-1.amazonaws.com/jenkins/job/PreCommit-HIVE-TRUNK-Build/2059/console Test logs: http://ec2-174-129-184-35.compute-1.amazonaws.com/logs/PreCommit-HIVE-TRUNK-Build-2059/ 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: 4 tests failed {noformat} This message is automatically generated. ATTACHMENT ID: 12686784 - PreCommit-HIVE-TRUNK-Build > select constant in union all followed by group by gives wrong result > > > Key: HIVE-9053 > URL: https://issues.apache.org/jira/browse/HIVE-9053 > Project: Hive > Issue Type: Bug >Reporter: Pengcheng Xiong >Assignee: Pengcheng Xiong > Attachments: HIVE-9053.01.patch, HIVE-9053.02.patch > > > Here is the the way to reproduce with q test: > select key from (select '1' as key from src union all select key from src)tab > group by key; > will give > OK > NULL > 1 > This is not correct as src contains many other keys. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (HIVE-9053) select constant in union all followed by group by gives wrong result
[ https://issues.apache.org/jira/browse/HIVE-9053?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14244610#comment-14244610 ] Ashutosh Chauhan commented on HIVE-9053: +1 pending tests. > select constant in union all followed by group by gives wrong result > > > Key: HIVE-9053 > URL: https://issues.apache.org/jira/browse/HIVE-9053 > Project: Hive > Issue Type: Bug >Reporter: Pengcheng Xiong >Assignee: Pengcheng Xiong > Attachments: HIVE-9053.01.patch, HIVE-9053.02.patch > > > Here is the the way to reproduce with q test: > select key from (select '1' as key from src union all select key from src)tab > group by key; > will give > OK > NULL > 1 > This is not correct as src contains many other keys. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (HIVE-9053) select constant in union all followed by group by gives wrong result
[ https://issues.apache.org/jira/browse/HIVE-9053?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14243536#comment-14243536 ] Hive QA commented on HIVE-9053: --- {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/12686709/HIVE-9053.01.patch {color:red}ERROR:{color} -1 due to 4 failed/errored test(s), 6702 tests executed *Failed tests:* {noformat} org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver_optimize_nullscan org.apache.hadoop.hive.cli.TestMiniTezCliDriver.testCliDriver_optimize_nullscan org.apache.hadoop.hive.cli.TestMinimrCliDriver.testCliDriver_ql_rewrite_gbtoidx_cbo_1 org.apache.hadoop.hive.cli.TestMinimrCliDriver.testCliDriver_ql_rewrite_gbtoidx_cbo_2 {noformat} Test results: http://ec2-174-129-184-35.compute-1.amazonaws.com/jenkins/job/PreCommit-HIVE-TRUNK-Build/2047/testReport Console output: http://ec2-174-129-184-35.compute-1.amazonaws.com/jenkins/job/PreCommit-HIVE-TRUNK-Build/2047/console Test logs: http://ec2-174-129-184-35.compute-1.amazonaws.com/logs/PreCommit-HIVE-TRUNK-Build-2047/ 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: 4 tests failed {noformat} This message is automatically generated. ATTACHMENT ID: 12686709 - PreCommit-HIVE-TRUNK-Build > select constant in union all followed by group by gives wrong result > > > Key: HIVE-9053 > URL: https://issues.apache.org/jira/browse/HIVE-9053 > Project: Hive > Issue Type: Bug >Reporter: Pengcheng Xiong >Assignee: Pengcheng Xiong > Attachments: HIVE-9053.01.patch > > > Here is the the way to reproduce with q test: > select key from (select '1' as key from src union all select key from src)tab > group by key; > will give > OK > NULL > 1 > This is not correct as src contains many other keys. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (HIVE-9053) select constant in union all followed by group by gives wrong result
[ https://issues.apache.org/jira/browse/HIVE-9053?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14239948#comment-14239948 ] Pengcheng Xiong commented on HIVE-9053: --- union distinct will not also fail on tez in this situation. > select constant in union all followed by group by gives wrong result > > > Key: HIVE-9053 > URL: https://issues.apache.org/jira/browse/HIVE-9053 > Project: Hive > Issue Type: Bug >Reporter: Pengcheng Xiong >Assignee: Pengcheng Xiong > > Here is the the way to reproduce with q test: > select key from (select '1' as key from src union all select key from src)tab > group by key; > will give > OK > NULL > 1 > This is not correct as src contains many other keys. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (HIVE-9053) select constant in union all followed by group by gives wrong result
[ https://issues.apache.org/jira/browse/HIVE-9053?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14239903#comment-14239903 ] Pengcheng Xiong commented on HIVE-9053: --- cc'[~jpullokkaran], could you please comment > select constant in union all followed by group by gives wrong result > > > Key: HIVE-9053 > URL: https://issues.apache.org/jira/browse/HIVE-9053 > Project: Hive > Issue Type: Bug >Reporter: Pengcheng Xiong >Assignee: Pengcheng Xiong > > Here is the the way to reproduce with q test: > select key from (select '1' as key from src union all select key from src)tab > group by key; > will give > OK > NULL > 1 > This is not correct as src contains many other keys. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (HIVE-9053) select constant in union all followed by group by gives wrong result
[ https://issues.apache.org/jira/browse/HIVE-9053?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14239902#comment-14239902 ] Pengcheng Xiong commented on HIVE-9053: --- union distinct will give the same wrong result > select constant in union all followed by group by gives wrong result > > > Key: HIVE-9053 > URL: https://issues.apache.org/jira/browse/HIVE-9053 > Project: Hive > Issue Type: Bug >Reporter: Pengcheng Xiong >Assignee: Pengcheng Xiong > > Here is the the way to reproduce with q test: > select key from (select '1' as key from src union all select key from src)tab > group by key; > will give > OK > NULL > 1 > This is not correct as src contains many other keys. -- This message was sent by Atlassian JIRA (v6.3.4#6332)