[ 
https://issues.apache.org/jira/browse/SPARK-56567?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Wenchen Fan resolved SPARK-56567.
---------------------------------
    Fix Version/s: 4.2.0
       Resolution: Fixed

Issue resolved by pull request 55476
[https://github.com/apache/spark/pull/55476]

> Fix array_insert handling of Int.MinValue position
> --------------------------------------------------
>
>                 Key: SPARK-56567
>                 URL: https://issues.apache.org/jira/browse/SPARK-56567
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 4.2.0
>            Reporter: Akash Nayar
>            Assignee: Akash Nayar
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 4.2.0
>
>
> array_insert tries to calculate `-pos`, which will overflow when `pos == 
> Int.MinValue`, failing with an internal error instead of raising 
> COLLECTION_SIZE_LIMIT_EXCEEDED.FUNCTION. Fix by promoting pos to `Long` for 
> all arithmetic.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to