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

[jira] [Commented] (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:comment-tabpanel&focusedCommentId=16550981#comment-16550981 ] 

Apache Spark commented on SPARK-24878:
--------------------------------------

User 'ueshin' has created a pull request for this issue:
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
>            Priority: Major
>
> 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