dawidwys 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_r343550636
##########
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:
We can. It's just that the resolution would happen in the `lookupFunction`.
Not externally. The same logic that now happens in `toFunctionIdentifier` would
happen as the first step in `lookupFunction`.
----------------------------------------------------------------
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