[ https://issues.apache.org/jira/browse/HIVE-8907?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ashutosh Chauhan updated HIVE-8907: ----------------------------------- Affects Version/s: 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 > Affects Versions: 0.14.0 > 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)