dawidwys commented on a change in pull request #8661:  [FLINK-12711][table] 
Separate function implementation and definition
URL: https://github.com/apache/flink/pull/8661#discussion_r294780075
 
 

 ##########
 File path: 
flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/catalog/FunctionCatalog.java
 ##########
 @@ -104,7 +128,8 @@ public void registerScalarFunction(String name, 
ScalarFunction function) {
                        foundDefinition = 
BuiltInFunctionDefinitions.getDefinitions()
                                .stream()
                                .filter(f -> 
normalizeName(name).equals(normalizeName(f.getName())))
-                               .findFirst();
+                               .findFirst()
+                               .map(Function.identity());
 
 Review comment:
   neat didn't know about this trick

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

Reply via email to