hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jesus Camacho Rodriguez (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HIVE-19073) StatsOptimizer may mangle constant columns
Date Thu, 29 Mar 2018 04:52:00 GMT

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

Jesus Camacho Rodriguez updated HIVE-19073:
-------------------------------------------
    Attachment: HIVE-19073.patch

> 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
>         Attachments: HIVE-19073.patch
>
>
> 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)

Mime
View raw message