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: [email protected]
For additional commands, e-mail: [email protected]