[ 
https://issues.apache.org/jira/browse/SPARK-29946?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16976960#comment-16976960
 ] 

L. C. Hsieh commented on SPARK-29946:
-------------------------------------

Ur, this is for Map type data serialization in JacksonGenerator, not 
MapType.toString.

You can check how JacksonGenerator serializes map type data.

> Special serialization for certain key types of Map type in JacksonGenerator
> ---------------------------------------------------------------------------
>
>                 Key: SPARK-29946
>                 URL: https://issues.apache.org/jira/browse/SPARK-29946
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 3.0.0
>            Reporter: L. C. Hsieh
>            Priority: Major
>         Attachments: image-2019-11-18-16-54-46-341.png
>
>
> Currently JacksonGenerator serializes MapType to JSON, the key of map is 
> serialized by calling toString() of the key. For some types, like UnsafeRow, 
> the toString is not human readable. So currently the map key in JSON is not 
> very useful for some types.
> We should do special serialization for certain key types of Map.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to