Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-8907

Partition Condition Remover doesn't remove conditions involving cast on partition column

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 0.14.0
    • None
    • Logical Optimizer
    • None

    Description

      e.g,

      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
      

      For queries like above, although PartitionPruner is able to prune partitions correctly, filter is still not optimized away by PCR, where it could.

      Attachments

        Activity

          People

            ashutoshc Ashutosh Chauhan
            ashutoshc Ashutosh Chauhan
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: