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

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

Jesus Camacho Rodriguez created HIVE-19073:
----------------------------------------------

             Summary: 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


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)