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


##########
iotdb-api/udf-api/src/main/java/org/apache/iotdb/udf/api/relational/ScalarFunction.java:
##########
@@ -19,4 +19,50 @@
 
 package org.apache.iotdb.udf.api.relational;
 
-public interface ScalarFunction extends SQLFunction {}
+import org.apache.iotdb.udf.api.customizer.config.ScalarFunctionConfig;
+import org.apache.iotdb.udf.api.customizer.parameter.FunctionParameters;
+import org.apache.iotdb.udf.api.relational.access.Record;
+
+public interface ScalarFunction extends SQLFunction {
+
+  /**
+   * This method is used to validate {@link FunctionParameters}.
+   *
+   * @param parameters parameters used to validate
+   * @throws Exception if any parameter is not valid
+   */
+  void validate(FunctionParameters parameters) throws Exception;
+
+  /**
+   * This method is mainly used to initialize {@link ScalarFunction}. In this 
method, the user can

Review Comment:
   Done



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