You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Ashutosh Chauhan (JIRA)" <ji...@apache.org> on 2014/12/04 01:30:12 UTC

[jira] [Updated] (HIVE-8907) Partition Condition Remover doesn't remove conditions involving cast on partition column

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

Ashutosh Chauhan updated HIVE-8907:
-----------------------------------
    Fix Version/s:     (was: 0.14.0)

> Partition Condition Remover doesn't remove conditions involving cast on partition column
> ----------------------------------------------------------------------------------------
>
>                 Key: HIVE-8907
>                 URL: https://issues.apache.org/jira/browse/HIVE-8907
>             Project: Hive
>          Issue Type: Improvement
>          Components: Logical Optimizer
>            Reporter: Ashutosh Chauhan
>
> e.g,
> {code}
> create table partition_test_partitioned(key string, value string) partitioned by (dt string)
>  explain select * from partition_test_partitioned where cast(dt as double) >=100.0 and cast(dt as double) <= 102.0
> {code}
> For queries like above, although {{PartitionPruner}} is able to prune partitions correctly, filter is still not optimized away by PCR, where it could.



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