snuyanzin commented on code in PR #28688:
URL: https://github.com/apache/flink/pull/28688#discussion_r3645327483


##########
flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/functions/SqlJsonUtils.java:
##########
@@ -392,13 +388,8 @@ public static Integer jsonLength(final JsonValueContext 
parsedInput) {
 
     /** Accepts a pre-parsed context from {@link #jsonParse}. */
     public static Integer jsonLength(final JsonValueContext parsedInput, final 
String pathSpec) {
-        try{
-            if (parsedInput.hasException()) {
-                // invalid input JSON
-                return null;
-            }
-        }
-        catch (NullPointerException e){
+        // TODO FLINK-39419: A null context can result from a shared parse 
that was short-circuited before parsing.

Review Comment:
   why do we need a link to a not related issue 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