Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-11150

Dynamic partition pruning

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.5.1, 1.6.0, 2.0.0, 2.1.2, 2.2.1, 2.3.0
    • 3.0.0
    • SQL

    Description

      Implements dynamic partition pruning by adding a dynamic-partition-pruning filter if there is a partitioned table and a filter on the dimension table. The filter is then planned using a heuristic approach:

      1. As a broadcast relation if it is a broadcast hash join. The broadcast relation will then be transformed into a reused broadcast exchange by the ReuseExchange rule; or
      2. As a subquery duplicate if the estimated benefit of partition table scan being saved is greater than the estimated cost of the extra scan of the duplicated subquery; otherwise
      3. As a bypassed condition (true).

       Below shows a basic example of DPP.

      Attachments

        Issue Links

          Activity

            People

              maryannxue Wei Xue
              ynaguib Younes
              Votes:
              12 Vote for this issue
              Watchers:
              41 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: