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

Jark Wu commented on FLINK-19912:
---------------------------------

Thanks for the suggestion [~twalthr]. 
I think it's a good idea to have a format option. For example 
{{json.map-null-key.behavior}}, the option values can be:
- {{fail}} (default): throw exception 
- {{drop}}: drop the null key entries
- {{string-literal}}: serialize the {{null}} key as string literal, {{"null"}} 
by defualt, but can be configured by {{json.map-null-key.string-literal}} 
option. 

> JSON format fails to serialize map value with null keys
> -------------------------------------------------------
>
>                 Key: FLINK-19912
>                 URL: https://issues.apache.org/jira/browse/FLINK-19912
>             Project: Flink
>          Issue Type: Improvement
>          Components: Formats (JSON, Avro, Parquet, ORC, SequenceFile)
>    Affects Versions: 1.12.0
>            Reporter: hailong wang
>            Priority: Major
>             Fix For: 1.12.0
>
>
> Support ignoreParseErrors to skip error when serializing `RowData` in json 
> serializationSchema.



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

Reply via email to