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 2017/09/08 08:30:00 UTC
[jira] [Assigned] (SPARK-21954) JacksonUtils should verify
MapType's value type instead of key type
[ https://issues.apache.org/jira/browse/SPARK-21954?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Apache Spark reassigned SPARK-21954:
------------------------------------
Assignee: Apache Spark
> JacksonUtils should verify MapType's value type instead of key type
> -------------------------------------------------------------------
>
> Key: SPARK-21954
> URL: https://issues.apache.org/jira/browse/SPARK-21954
> Project: Spark
> Issue Type: Bug
> Components: SQL
> Affects Versions: 2.2.0
> Reporter: Liang-Chi Hsieh
> Assignee: Apache Spark
>
> {{JacksonUtils.verifySchema}} verifies if a data type can be converted to JSON. For {{MapType}}, it now verifies the key type. However, in {{JacksonGenerator}}, when converting a map to JSON, we only care about its values and create a writer for the values. The keys in a map are treated as strings by calling {{toString}} on the keys.
> Thus, we should change {{JacksonUtils.verifySchema}} to verify the value type of {{MapType}}.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org