You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2022/11/05 20:00:00 UTC
[jira] [Updated] (HIVE-26676) Count distinct in subquery returning wrong results
[ https://issues.apache.org/jira/browse/HIVE-26676?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
ASF GitHub Bot updated HIVE-26676:
----------------------------------
Labels: pull-request-available (was: )
> 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
> Priority: Major
> Labels: pull-request-available
> Time Spent: 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)