raminqaf commented on code in PR #29154:
URL: https://github.com/apache/flink/pull/29154#discussion_r3980408921
##########
flink-table/flink-table-common/src/main/java/org/apache/flink/table/functions/BuiltInFunctionDefinitions.java:
##########
@@ -1713,6 +1713,26 @@ ANY, and(logical(LogicalTypeRoot.BOOLEAN), LITERAL)
.outputTypeStrategy(explicit(DataTypes.CHAR(36).notNull()))
.build();
+ public static final BuiltInFunctionDefinition UUID_V4 =
+ BuiltInFunctionDefinition.newBuilder()
+ .name("UUID_V4")
+ .kind(SCALAR)
+ .notDeterministic()
+ .inputTypeStrategy(NO_ARGS)
+ .outputTypeStrategy(explicit(DataTypes.UUID().notNull()))
+
.runtimeClass("org.apache.flink.table.runtime.functions.scalar.UuidV4Function")
+ .build();
+
+ public static final BuiltInFunctionDefinition UUID_V7 =
+ BuiltInFunctionDefinition.newBuilder()
+ .name("UUID_V7")
+ .kind(SCALAR)
+ .notDeterministic()
+ .inputTypeStrategy(NO_ARGS)
+ .outputTypeStrategy(explicit(DataTypes.UUID().notNull()))
+
.runtimeClass("org.apache.flink.table.runtime.functions.scalar.UuidV7Function")
+ .build();
Review Comment:
Please add a test into `ExpressionSerializationTest` for these two
--
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]