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_r342393287
##########
File path:
flink-table/flink-table-planner-blink/src/main/java/org/apache/flink/table/planner/catalog/FunctionCatalogOperatorTable.java
##########
@@ -74,7 +84,7 @@ public void lookupOperatorOverloads(
SqlSyntax syntax,
List<SqlOperator> operatorList,
SqlNameMatcher nameMatcher) {
- if (!opName.isSimple()) {
+ if (opName.isStar()) {
Review comment:
nit: `opName.isStar() && syntax == SqlSyntax.FUNCTION`.
I just add a test in local, `f0 is not null` will also go into
`lookupFunction` which should never happen. `FunctionCatalog.lookupFunction`
should only handle functions, not prefix or postfix syntax.
----------------------------------------------------------------
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