libenchao commented on a change in pull request #11186: [FLINK-16200][sql] 
Support JSON_EXISTS for blink planner
URL: https://github.com/apache/flink/pull/11186#discussion_r396104863
 
 

 ##########
 File path: 
flink-table/flink-table-common/src/main/java/org/apache/flink/table/functions/BuiltInFunctionDefinitions.java
 ##########
 @@ -674,6 +674,14 @@
                        .outputTypeStrategy(TypeStrategies.MISSING)
                        .build();
 
+       // json functions
+       public static final BuiltInFunctionDefinition JSON_EXISTS =
+               new BuiltInFunctionDefinition.Builder()
+                       .name("json_exists")
+                       .kind(SCALAR)
+                       .outputTypeStrategy(TypeStrategies.MISSING)
 
 Review comment:
   It's weird, why not directly specify the outputType? I know that all 
function definitions are all defined with `MISSING` strategy, and it make me 
more confuse.

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to