matriv commented on a change in pull request #17313:
URL: https://github.com/apache/flink/pull/17313#discussion_r714024229



##########
File path: 
flink-table/flink-table-common/src/main/java/org/apache/flink/table/types/inference/strategies/SpecificInputTypeStrategies.java
##########
@@ -76,6 +77,18 @@
                                             logical(LogicalTypeRoot.BOOLEAN),
                                             
logical(LogicalTypeFamily.NUMERIC))));
 
+    /** Input strategy for {@link BuiltInFunctionDefinitions#JSON_ARRAY}. */
+    public static final InputTypeStrategy JSON_ARRAY =
+            varyingSequence(
+                    symbol(JsonOnNull.class),
+                    or(
+                            logical(LogicalTypeFamily.CHARACTER_STRING),
+                            logical(LogicalTypeFamily.BINARY_STRING),
+                            logical(LogicalTypeFamily.TIMESTAMP),
+                            logical(LogicalTypeFamily.CONSTRUCTED),
+                            logical(LogicalTypeRoot.BOOLEAN),
+                            logical(LogicalTypeFamily.NUMERIC)));

Review comment:
       I mean in the places where you list some examples, like here: 
https://github.com/apache/flink/pull/17313/files#diff-539fb22ee6aeee4cf07230bb4155500c6680c4cc889260e2c58bfa9d63fb7de5R775
   to also include an example of an array with nested json objects.




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