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


##########
iotdb-api/udf-api/src/main/java/org/apache/iotdb/udf/api/relational/TableFunction.java:
##########
@@ -19,4 +19,69 @@
 
 package org.apache.iotdb.udf.api.relational;
 
-public interface TableFunction extends SQLFunction {}
+import org.apache.iotdb.udf.api.exception.UDFException;
+import org.apache.iotdb.udf.api.relational.table.TableFunctionAnalysis;
+import 
org.apache.iotdb.udf.api.relational.table.TableFunctionProcessorProvider;
+import org.apache.iotdb.udf.api.relational.table.argument.Argument;
+import org.apache.iotdb.udf.api.relational.table.argument.ScalarArgument;
+import org.apache.iotdb.udf.api.relational.table.argument.TableArgument;
+import 
org.apache.iotdb.udf.api.relational.table.specification.ParameterSpecification;
+import 
org.apache.iotdb.udf.api.relational.table.specification.ScalarParameterSpecification;
+import 
org.apache.iotdb.udf.api.relational.table.specification.TableParameterSpecification;
+
+import java.util.List;
+import java.util.Map;
+
+public interface TableFunction extends SQLFunction {
+
+  /**
+   * This method is used to define the specification of the arguments required 
by the table
+   * function. Each argument is described using a {@link 
ParameterSpecification} object, which
+   * encapsulates details such as the argument name, whether it is required, 
its default value (if
+   * any), etc.
+   *
+   * <p>The {@link ParameterSpecification} class is abstract and has two 
concrete implementations:
+   *
+   * <ul>
+   *   <li>{@link TableParameterSpecification}: Used for parameters specific 
to table functions.
+   *   <li>{@link ScalarParameterSpecification}: Used for parameters specific 
to scalar functions.

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