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

Unnecessary tasks are launched when input is empty with AQE

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.0.0
    • 3.0.1, 3.1.0
    • SQL
    • None

    Description

      https://github.com/apache/spark/pull/28226 meant to avoid launching unnecessary tasks for 0-size partitions when AQE is enabled. However, when all partitions are empty, the number of partitions will be `spark.sql.adaptive.coalescePartitions.initialPartitionNum` and (a lot of) unnecessary tasks are launched in this case.

      Attachments

        Activity

          People

            cloud_fan Wenchen Fan
            mauzhang Manu Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: