manner commented on code in PR #29343:
URL: https://github.com/apache/flink/pull/29343#discussion_r4145387979


##########
flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/functions/scalar/ParseJsonFunction.java:
##########
@@ -38,8 +38,9 @@ public 
ParseJsonFunction(SpecializedFunction.SpecializedContext context) {
         return eval(jsonStr, false);
     }
 
-    public @Nullable Variant eval(@Nullable StringData jsonStr, boolean 
allowDuplicateKeys) {
-        if (jsonStr == null) {
+    public @Nullable Variant eval(
+            @Nullable StringData jsonStr, @Nullable Boolean 
allowDuplicateKeys) {
+        if (jsonStr == null || allowDuplicateKeys == null) {

Review Comment:
   Yes, you would get back `NULL` in your example. I'm unsure what the best 
option would be here. 



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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to