[ 
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-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to