[ https://issues.apache.org/jira/browse/HIVE-26676?focusedWorklogId=826057&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-826057 ]
ASF GitHub Bot logged work on HIVE-26676: ----------------------------------------- Author: ASF GitHub Bot Created on: 15/Nov/22 09:27 Start Date: 15/Nov/22 09:27 Worklog Time Spent: 10m Work Description: kasakrisz merged PR #3734: URL: https://github.com/apache/hive/pull/3734 Issue Time Tracking ------------------- Worklog Id: (was: 826057) Time Spent: 1h 10m (was: 1h) > Count distinct in subquery returning wrong results > -------------------------------------------------- > > Key: HIVE-26676 > URL: https://issues.apache.org/jira/browse/HIVE-26676 > Project: Hive > Issue Type: Bug > Components: HiveServer2 > Reporter: Steve Carlin > Assignee: Steve Carlin > Priority: Major > Labels: pull-request-available > Time Spent: 1h 10m > Remaining Estimate: 0h > > The following select query should return 1 row > {code:java} > CREATE TABLE t_test( > a tinyint > ); > INSERT INTO t_test VALUES > (0), (1), (2), (3), (4), (5), (6), (7), (8), (9); > select 1 from (select count(distinct a) from t_test) x; > {code} > But it's returning 10 rows > -- This message was sent by Atlassian Jira (v8.20.10#820010)