spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hyukjin Kwon (JIRA)" <j...@apache.org>
Subject [jira] [Assigned] (SPARK-21954) JacksonUtils should verify MapType's value type instead of key type
Date Sat, 09 Sep 2017 10:15:01 GMT

     [ https://issues.apache.org/jira/browse/SPARK-21954?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Hyukjin Kwon reassigned SPARK-21954:
------------------------------------

    Assignee: Liang-Chi Hsieh

> 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: 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


Mime
View raw message