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)