ILuffZhe commented on code in PR #4126:
URL: https://github.com/apache/calcite/pull/4126#discussion_r1906237026


##########
core/src/main/java/org/apache/calcite/prepare/CalciteCatalogReader.java:
##########
@@ -368,6 +366,20 @@ private static SqlOperator toOp(SqlIdentifier name,
     }
   }
 
+  private static SqlSyntax getSqlSyntax(org.apache.calcite.schema.Function 
function,
+      CalciteConnectionConfig config) {
+    if (!function.getParameters().isEmpty()) {
+      return SqlSyntax.FUNCTION;
+    }
+    // Keep compatible with both Foo() and Foo function syntax for Calcite's 
default conformance

Review Comment:
   Does this change only affect UDF behavior?



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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to