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

Dynamic partition pruning

Log workAgile BoardRank to TopRank to BottomAttach filesAttach ScreenshotVotersStop watchingWatchersCreate sub-taskConvert to sub-taskLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            maryannxue Wei Xue Assign to me
            ynaguib Younes
            Votes:
            12 Vote for this issue
            Watchers:
            40 Stop watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Issue deployment