Cpaulyz commented on code in PR #14223:
URL: https://github.com/apache/iotdb/pull/14223#discussion_r1868812804


##########
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/relational/metadata/TableMetadataImpl.java:
##########
@@ -627,7 +630,26 @@ && isIntegerNumber(argumentTypes.get(2)))) {
         // ignore
     }
 
-    // TODO scalar UDF function
+    // User-defined scalar function
+    ScalarFunction scalarFunction = 
TableUDFUtils.tryGetScalarFunction(functionName);

Review Comment:
   I add a new interface `TableUDFUtils#isScalarFunction(String functionName)` 
to check syntax. 
   
   `TableUDFUtils#getScalarFunction` will only be invoked if there is 
corresponding UDFInfomation on DataNode's UDFTable.  So we will not print warn 
log unless normally.



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