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

UnsafeExternalSorter.SpillableIterator cannot spill when there are NULLs in the input and radix sorting is used.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.4.7, 3.0.1
    • 2.4.8, 3.0.2, 3.1.0
    • Spark Core
    • None

    Description

      In order to determine whether UnsafeExternalSorter.SpillableIterator has spilled already it checks whether upstream is an instance of UnsafeInMemorySorter.SortedIterator. When radix sorting is used (added by SPARK-14851) and there are NULLs in the input however, upstream will be an instance of UnsafeExternalSorter.ChainedIterator instead, but should still be spilled.

      Attachments

        Issue Links

          Activity

            People

              tomvanbussel Tom van Bussel
              tomvanbussel Tom van Bussel
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: