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


##########
iotdb-client/service-rpc/src/main/java/org/apache/iotdb/rpc/IoTDBJDBCDataSet.java:
##########
@@ -573,7 +588,18 @@ public String getString(int index, TSDataType tsDataType, 
byte[][] values) {
       case DOUBLE:
         return String.valueOf(BytesUtils.bytesToDouble(values[index]));
       case TEXT:
+      case STRING:
         return new String(values[index], StandardCharsets.UTF_8);
+      case BLOB:
+        return BytesUtils.parseBlobByteArrayToString(values[index]);
+      case TIMESTAMP:
+        return RpcUtils.formatDatetime(
+            RpcUtils.DEFAULT_TIME_FORMAT,
+            "ms",
+            BytesUtils.bytesToLong(values[index]),
+            ZoneId.systemDefault());

Review Comment:
   Added.



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