You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Liang-Chi Hsieh (JIRA)" <ji...@apache.org> on 2017/09/08 08:27:02 UTC
[jira] [Created] (SPARK-21954) JacksonUtils should verify MapType's
value type instead of key type
Liang-Chi Hsieh created SPARK-21954:
---------------------------------------
Summary: 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
{{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