twalthr commented on code in PR #30092:
URL: https://github.com/apache/flink/pull/30092#discussion_r4692349272
##########
flink-table/flink-table-common/src/main/java/org/apache/flink/table/functions/BuiltInFunctionDefinitions.java:
##########
@@ -3313,6 +3313,16 @@ ANY, and(logical(LogicalTypeRoot.BOOLEAN), LITERAL)
"org.apache.flink.table.runtime.functions.scalar.XmlStringFunction")
.build();
+ public static final BuiltInFunctionDefinition IS_VALID_VARIANT =
+ BuiltInFunctionDefinition.newBuilder()
+ .name("IS_VALID_VARIANT")
+ .kind(SCALAR)
+
.inputTypeStrategy(sequence(logical(LogicalTypeRoot.VARIANT)))
Review Comment:
The docs say the name of the arg is `variant`. We should update our agend.md
to add names using `sequence`. Otherwise, named params won't be possible:
`IS_VALID_VARIANT(variant => x)`. Ideally we don't use a keyword as a parameter
name.
--
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]