Cpaulyz commented on code in PR #14331:
URL: https://github.com/apache/iotdb/pull/14331#discussion_r1888096527
##########
iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/udf/utils/UDFDataTypeTransformer.java:
##########
@@ -122,19 +126,54 @@ public static org.apache.tsfile.read.common.type.Type
transformUDFDataTypeToRead
case BOOLEAN:
return BooleanType.BOOLEAN;
case INT32:
- case DATE:
return IntType.INT32;
+ case DATE:
+ return DateType.DATE;
case INT64:
- case TIMESTAMP:
return LongType.INT64;
+ case TIMESTAMP:
+ return TimestampType.TIMESTAMP;
case FLOAT:
return FloatType.FLOAT;
case DOUBLE:
return DoubleType.DOUBLE;
case TEXT:
+ return BinaryType.TEXT;
case BLOB:
+ return BlobType.BLOB;
case STRING:
+ return StringType.STRING;
+ default:
+ throw new IllegalArgumentException("Invalid input: " + type);
+ }
+ }
+
+ public static org.apache.tsfile.read.common.type.Type
transformTSDataTypeToReadType(
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]