Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-15852 Improve query planning performance for wide nested schema
  3. SPARK-15748

Replace inefficient foldLeft() call in PartitionStatistics

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.0.0
    • SQL
    • None

    Description

      PartitionStatistics uses foldLeft and list concatenation to flatten an iterator of lists, but this is extremely inefficient compared to simply doing flatMap/flatten because it performs many unnecessary object allocations. Simply replacing this foldLeft by a flatMap results in fair performance gains when constructing PartitionStatistics instances for tables with many columns.

      Attachments

        Activity

          People

            joshrosen Josh Rosen
            joshrosen Josh Rosen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: