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

Improve ArrayInsert if the position is foldable and equals to zero.

    XMLWordPrintableJSON

Details

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

    Description

      We want make array_prepend reuse the implementation of array_insert, but it seems a bit performance worse if the position is foldable and equals to zero.
      The reason is that always do the check for position is negative or positive, and the code is too long. Too long code will lead to JIT failed.

      Attachments

        Activity

          People

            beliefer Jiaan Geng
            beliefer Jiaan Geng
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: