This is an automated email from the ASF dual-hosted git repository.

jackietien pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iotdb.git


The following commit(s) were added to refs/heads/master by this push:
     new 28cd29c930e Remove unknown and vector in udf-api Type
28cd29c930e is described below

commit 28cd29c930ee44bd2c7a4fa4d9d7dc9930e39877
Author: Liao Lanyu <[email protected]>
AuthorDate: Tue Jun 4 10:54:29 2024 +0800

    Remove unknown and vector in udf-api Type
---
 .../src/main/java/org/apache/iotdb/udf/api/type/Type.java    |  7 +------
 .../iotdb/commons/udf/utils/UDFDataTypeTransformer.java      | 12 ------------
 2 files changed, 1 insertion(+), 18 deletions(-)

diff --git 
a/iotdb-api/udf-api/src/main/java/org/apache/iotdb/udf/api/type/Type.java 
b/iotdb-api/udf-api/src/main/java/org/apache/iotdb/udf/api/type/Type.java
index b1c4dee2a5f..29aa5a45bb7 100644
--- a/iotdb-api/udf-api/src/main/java/org/apache/iotdb/udf/api/type/Type.java
+++ b/iotdb-api/udf-api/src/main/java/org/apache/iotdb/udf/api/type/Type.java
@@ -39,12 +39,7 @@ public enum Type {
   /* TEXT */
   TEXT((byte) 5),
 
-  /* VECTOR */
-  VECTOR((byte) 6),
-
-  /* UNKNOWN */
-  UNKNOWN((byte) 7),
-
+  /* TsDataType.Vector and TsDataType.UNKNOWN are inner types of 
TsFile-module, which should not be supported in UDF APIs. To be consistent with 
TsDataType, the next value starts with 8 */
   /* TIMESTAMP */
   TIMESTAMP((byte) 8),
 
diff --git 
a/iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/udf/utils/UDFDataTypeTransformer.java
 
b/iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/udf/utils/UDFDataTypeTransformer.java
index a8f0a09ca5c..eb5878433a2 100644
--- 
a/iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/udf/utils/UDFDataTypeTransformer.java
+++ 
b/iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/udf/utils/UDFDataTypeTransformer.java
@@ -34,14 +34,6 @@ public class UDFDataTypeTransformer {
     return type == null ? null : TSDataType.getTsDataType(type.getType());
   }
 
-  public static List<TSDataType> transformToTsDataTypeList(List<Type> 
typeList) {
-    return typeList == null
-        ? null
-        : typeList.stream()
-            .map(UDFDataTypeTransformer::transformToTsDataType)
-            .collect(Collectors.toList());
-  }
-
   public static Type transformToUDFDataType(TSDataType tsDataType) {
     return tsDataType == null ? null : getUDFDataType(tsDataType.getType());
   }
@@ -68,10 +60,6 @@ public class UDFDataTypeTransformer {
         return Type.DOUBLE;
       case 5:
         return Type.TEXT;
-      case 6:
-        return Type.VECTOR;
-      case 7:
-        return Type.UNKNOWN;
       case 8:
         return Type.TIMESTAMP;
       case 9:

Reply via email to