You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Jesus Camacho Rodriguez (JIRA)" <ji...@apache.org> on 2018/03/29 04:49:01 UTC

[jira] [Assigned] (HIVE-19073) StatsOptimizer may mangle constant columns

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

Jesus Camacho Rodriguez reassigned HIVE-19073:
----------------------------------------------


> StatsOptimizer may mangle constant columns
> ------------------------------------------
>
>                 Key: HIVE-19073
>                 URL: https://issues.apache.org/jira/browse/HIVE-19073
>             Project: Hive
>          Issue Type: Bug
>          Components: Physical Optimizer
>    Affects Versions: 1.2.2
>            Reporter: Jesus Camacho Rodriguez
>            Assignee: Jesus Camacho Rodriguez
>            Priority: Major
>
> Following query is giving wrong result:
> {code:sql}
> SELECT DATE_SUB(CURRENT_DATE,0) as GROUP_BY_FIELD, count (*)  as src_cnt from mytable WHERE 1=1 group by DATE_SUB(CURRENT_DATE,0);
> +-----------------+----------+--+
> | group_by_field  | src_cnt  |
> +-----------------+----------+--+
> | 239             | NULL     |
> +-----------------+----------+--+
> 1 row selected (5.175 seconds)
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)