You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Steve Carlin (Jira)" <ji...@apache.org> on 2022/11/14 20:48:00 UTC

[jira] [Assigned] (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 ]

Steve Carlin reassigned HIVE-26676:
-----------------------------------

    Assignee: Steve Carlin

> 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
>  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)