This is an automated email from the ASF dual-hosted git repository.
jackietien pushed a commit to branch test-4
in repository https://gitbox.apache.org/repos/asf/iotdb.git
The following commit(s) were added to refs/heads/test-4 by this push:
new 48ff08bc7f5 add check method
48ff08bc7f5 is described below
commit 48ff08bc7f56aa89335f44ac4e487737ebc1c9a0
Author: JackieTien97 <[email protected]>
AuthorDate: Fri Jun 20 09:52:04 2025 +0800
add check method
---
iotdb-api/udf-api/src/main/java/org/apache/iotdb/udf/api/UDF.java | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/iotdb-api/udf-api/src/main/java/org/apache/iotdb/udf/api/UDF.java
b/iotdb-api/udf-api/src/main/java/org/apache/iotdb/udf/api/UDF.java
index 03860c558b1..3fa7d36f74f 100644
--- a/iotdb-api/udf-api/src/main/java/org/apache/iotdb/udf/api/UDF.java
+++ b/iotdb-api/udf-api/src/main/java/org/apache/iotdb/udf/api/UDF.java
@@ -23,6 +23,8 @@ import
org.apache.iotdb.udf.api.customizer.config.UDTFConfigurations;
import org.apache.iotdb.udf.api.customizer.parameter.UDFParameterValidator;
import org.apache.iotdb.udf.api.customizer.parameter.UDFParameters;
+import java.util.Optional;
+
public interface UDF {
/**
@@ -37,6 +39,10 @@ public interface UDF {
// do nothing
}
+ default Optional<Exception> check() {
+ return Optional.empty();
+ }
+
/** This method is mainly used to release the resources used in the UDF. */
default void beforeDestroy() {
// do nothing