You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "jiaan.geng (Jira)" <ji...@apache.org> on 2023/04/14 03:38:00 UTC

[jira] [Created] (SPARK-43137) Improve ArrayInsert if the position is foldable and equals to zero.

jiaan.geng created SPARK-43137:
----------------------------------

             Summary: Improve ArrayInsert if the position is foldable and equals to zero.
                 Key: SPARK-43137
                 URL: https://issues.apache.org/jira/browse/SPARK-43137
             Project: Spark
          Issue Type: Improvement
          Components: SQL
    Affects Versions: 3.5.0
            Reporter: jiaan.geng


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.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org