You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Wenchen Fan (JIRA)" <ji...@apache.org> on 2018/07/26 07:08:00 UTC

[jira] [Resolved] (SPARK-24878) Fix reverse function for array type of primitive type containing null.

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

Wenchen Fan resolved SPARK-24878.
---------------------------------
       Resolution: Fixed
    Fix Version/s: 2.4.0

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

> Fix reverse function for array type of primitive type containing null.
> ----------------------------------------------------------------------
>
>                 Key: SPARK-24878
>                 URL: https://issues.apache.org/jira/browse/SPARK-24878
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 2.4.0
>            Reporter: Takuya Ueshin
>            Assignee: Takuya Ueshin
>            Priority: Major
>             Fix For: 2.4.0
>
>
> If we use {{reverse}} function for array type of primitive type containing {{null}} and the child array is {{UnsafeArrayData}}, the function returns a wrong result because {{UnsafeArrayData}} doesn't define the behavior of re-assignment, especially we can't set a valid value after we set {{null}}.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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