HTHou commented on code in PR #13443:
URL: https://github.com/apache/iotdb/pull/13443#discussion_r1751143017
##########
iotdb-client/client-py/iotdb/utils/Field.py:
##########
@@ -38,13 +38,19 @@ def copy(field):
output.set_bool_value(field.get_bool_value())
elif output.get_data_type() == TSDataType.INT32:
output.set_int_value(field.get_int_value())
- elif output.get_data_type() == TSDataType.INT64:
+ elif (
+ output.get_data_type() == TSDataType.INT64
+ or output.get_data_type() == TSDataType.TIMESTAMP
+ ):
output.set_long_value(field.get_long_value())
elif output.get_data_type() == TSDataType.FLOAT:
output.set_float_value(field.get_float_value())
elif output.get_data_type() == TSDataType.DOUBLE:
output.set_double_value(field.get_double_value())
- elif output.get_data_type() == TSDataType.TEXT:
+ elif (
+ output.get_data_type() == TSDataType.TEXT
+ or output.get_data_type() == TSDataType.STRING
+ ):
output.set_binary_value(field.get_binary_value())
else:
Review Comment:
This pr is focus on the table model, I think we need another pr to
completely support the new data types.
--
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]