hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pengcheng Xiong (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HIVE-13452) StatsOptimizer should return no rows on empty table with group by
Date Tue, 13 Dec 2016 06:27:58 GMT

     [ https://issues.apache.org/jira/browse/HIVE-13452?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Pengcheng Xiong updated HIVE-13452:
-----------------------------------
    Affects Version/s: 1.0.0
                       1.2.0
                       1.1.0
                       2.0.0
                       2.1.0

> StatsOptimizer should return no rows on empty table with group by
> -----------------------------------------------------------------
>
>                 Key: HIVE-13452
>                 URL: https://issues.apache.org/jira/browse/HIVE-13452
>             Project: Hive
>          Issue Type: Bug
>          Components: Logical Optimizer
>    Affects Versions: 1.0.0, 1.2.0, 1.1.0, 2.0.0, 2.1.0
>            Reporter: Ashutosh Chauhan
>            Assignee: Pengcheng Xiong
>             Fix For: 2.2.0
>
>         Attachments: HIVE-13452.01.patch
>
>
> {code}
> create table t1 (a int);
> analyze table t1 compute statistics;
> analyze table t1 compute statistics for columns;
> select count(1) from t1 group by 1;
> set hive.compute.query.using.stats=true;
> select count(1) from t1 group by 1;
> {code}
> In both cases result set should be empty. However, with statsoptimizer on Hive returns
one row with value 0.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message