You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Sean Owen (JIRA)" <ji...@apache.org> on 2018/08/02 14:23:00 UTC
[jira] [Resolved] (SPARK-24742) Field Metadata raises
NullPointerException in hashCode method
[ https://issues.apache.org/jira/browse/SPARK-24742?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sean Owen resolved SPARK-24742.
-------------------------------
Resolution: Fixed
Fix Version/s: 2.4.0
Issue resolved by pull request 21722
[https://github.com/apache/spark/pull/21722]
> Field Metadata raises NullPointerException in hashCode method
> -------------------------------------------------------------
>
> Key: SPARK-24742
> URL: https://issues.apache.org/jira/browse/SPARK-24742
> Project: Spark
> Issue Type: Bug
> Components: SQL
> Affects Versions: 2.3.1
> Reporter: Kaya Kupferschmidt
> Assignee: Kaya Kupferschmidt
> Priority: Minor
> Fix For: 2.4.0
>
>
> The class org.apache.spark.sql.types.Metadata has a method *putNull* for storing null pointers as Metadata. Unfortunately the hashCode method throws a NullPointerException when there are null values in a Metadata object, rendering the *puNull* method useless.
> h2. How to Reproduce
> The following code will raise a NullPointerException
> {code}
> new MetadataBuilder().putNull("key").build().hashCode
> {code}
--
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