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

Push down filters through RebalancePartitions

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.3.0
    • 3.3.0
    • SQL
    • None

    Description

      How to reproduce this issue:

      spark.sql("SELECT * FROM (SELECT /*+ REBALANCE */  * from range(10)) t11 WHERE id = 3").explain(true)
      

      Output:

      == Optimized Logical Plan ==
      Filter (id#0L = 3)
      +- RebalancePartitions
         +- Range (0, 10, step=1, splits=None)
      

      Expected:

      == Optimized Logical Plan ==
      RebalancePartitions
      +- Filter (id#0L = 3)
         +- Range (0, 10, step=1, splits=None)
      
      

      Attachments

        Activity

          People

            yumwang Yuming Wang
            yumwang Yuming Wang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: