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

DPP isn't triggered if static pruning is done for one of the partition columns

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      Queries such as:

      EXPLAIN select count(*) from srcpart join srcpart_date on (srcpart.ds = srcpart_date.ds) join srcpart_hour on (srcpart.hr = srcpart_hour.hr) 
      where srcpart_date.`date` = '2008-04-08' and srcpart.hr = 13
      

      Don't trigger DPP. srcpart is the partitioned by ds and hr. DPP could be triggered for the join (srcpart.ds = srcpart_date.ds). I'm guessing its because static pruning is triggered for the (srcpart.hr = srcpart_hour.hr) join condition.

      Affects Hive-on-Tez and Hive-on-Spark.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              stakiar Sahil Takiar
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: