aljoscha commented on a change in pull request #10519: [FLINK-12283][table]
Relax UDF constraints by using the ClosureCleaner
URL: https://github.com/apache/flink/pull/10519#discussion_r357698579
##########
File path:
flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/expressions/resolver/rules/ResolveCallByArgumentsRule.java
##########
@@ -220,6 +227,43 @@ private ResolvedExpression runLegacyTypeInference(
})
.collect(Collectors.toList());
}
+
+ /**
+ * Validates and cleans an inline, unregistered {@link
UserDefinedFunction}.
+ */
+ private FunctionDefinition
prepareUserDefinedFunction(FunctionDefinition definition) {
+ if (definition instanceof ScalarFunctionDefinition) {
+ final ScalarFunctionDefinition sf =
(ScalarFunctionDefinition) definition;
+
UserDefinedFunctionHelper.prepareFunction(resolutionContext.configuration(),
sf.getScalarFunction());
+ return new ScalarFunctionDefinition(
Review comment:
Ok, good to merge, then!
----------------------------------------------------------------
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:
[email protected]
With regards,
Apache Git Services