wangxlong commented on a change in pull request #13972:
URL: https://github.com/apache/flink/pull/13972#discussion_r520344156
##########
File path:
flink-formats/flink-json/src/main/java/org/apache/flink/formats/json/RowDataToJsonConverters.java
##########
@@ -272,8 +271,10 @@ private RowDataToJsonConverter createMapConverter(
case DROP:
continue;
case FAIL:
- throw new
RuntimeException("Map key is null, please have a check."
- + " You can
setup null key handling mode to drop entry or replace with a no-null literal.");
+ throw new
RuntimeException(String.format(
+ "JSON format
doesn't support to serialize map data with null keys. "
+ + "You
can drop null key entries or encode null in literals by specifying %s option.",
+
JsonOptions.MAP_NULL_KEY_LITERAL.key()));
Review comment:
done~
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]