wuchong commented on a change in pull request #10039: [FLINK-14262][table]
Support referencing function with fully/partially qualified names in SQL
URL: https://github.com/apache/flink/pull/10039#discussion_r343620400
##########
File path:
flink-table/flink-table-planner-blink/src/main/java/org/apache/flink/table/planner/catalog/FunctionCatalogOperatorTable.java
##########
@@ -84,12 +89,12 @@ public void lookupOperatorOverloads(
return;
}
- String name = opName.getSimple();
- Optional<FunctionLookup.Result> candidateFunction =
functionCatalog.lookupFunction(
- FunctionIdentifier.of(name));
+ FunctionIdentifier identifier =
toFunctionIdentifier(opName.names.toArray(new String[0]), catalogManager);
Review comment:
I agree with @dawidwys . What `toFunctionIdentifier` does is just qualify
2-parts to 3-parts and this can happen in `FunctionCatalog`, because it holds
the `CatalogManager`.
----------------------------------------------------------------
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