[ https://issues.apache.org/jira/browse/HIVE-15848?focusedWorklogId=446732&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-446732 ]
ASF GitHub Bot logged work on HIVE-15848: ----------------------------------------- Author: ASF GitHub Bot Created on: 16/Jun/20 16:57 Start Date: 16/Jun/20 16:57 Worklog Time Spent: 10m Work Description: github-actions[bot] commented on pull request #150: URL: https://github.com/apache/hive/pull/150#issuecomment-644888225 This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Feel free to reach out on the d...@hive.apache.org list if the patch is in need of reviews. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org Issue Time Tracking ------------------- Worklog Id: (was: 446732) Remaining Estimate: 0h Time Spent: 10m > count or sum distinct incorrect when hive.optimize.reducededuplication set to > true > ---------------------------------------------------------------------------------- > > Key: HIVE-15848 > URL: https://issues.apache.org/jira/browse/HIVE-15848 > Project: Hive > Issue Type: Bug > Affects Versions: 0.13.0 > Reporter: Biao Wu > Assignee: Zoltan Haindrich > Priority: Critical > Fix For: 2.3.0 > > Attachments: HIVE-15848.1.patch, HIVE-15848.2.patch > > Time Spent: 10m > Remaining Estimate: 0h > > Test Table: > {code:sql} > create table test(id int,key int,name int); > {code} > Data: > ||id||key||name|| > |1 |1 |2 > |1 |2 |3 > |1 |3 |2 > |1 |4 |2 > |1 |5 |3 > Test SQL1: > {code:sql} > select id,count(Distinct key),count(Distinct name) > from (select id,key,name from count_distinct_test group by id,key,name)m > group by id; > {code} > result: > |1|5|4 > expect: > |1|5|2 > Test SQL2: > {code:sql} > select id,count(Distinct name),count(Distinct key) > from (select id,key,name from count_distinct_test group by id,name,key)m > group by id; > {code} > result: > |1|2|5 -- This message was sent by Atlassian Jira (v8.3.4#803005)