This is an automated email from the ASF dual-hosted git repository.
haonan pushed a commit to branch query_v3_py
in repository https://gitbox.apache.org/repos/asf/iotdb.git
The following commit(s) were added to refs/heads/query_v3_py by this push:
new 20b91099c76 fix IT
20b91099c76 is described below
commit 20b91099c7623f0a1d67bebe876a36e2151a1984
Author: HTHou <[email protected]>
AuthorDate: Tue Mar 25 15:39:33 2025 +0800
fix IT
---
iotdb-client/client-py/iotdb/utils/iotdb_rpc_dataset.py | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/iotdb-client/client-py/iotdb/utils/iotdb_rpc_dataset.py
b/iotdb-client/client-py/iotdb/utils/iotdb_rpc_dataset.py
index 878646546f9..d57627da9c3 100644
--- a/iotdb-client/client-py/iotdb/utils/iotdb_rpc_dataset.py
+++ b/iotdb-client/client-py/iotdb/utils/iotdb_rpc_dataset.py
@@ -252,7 +252,7 @@ class IoTDBRpcDataSet(object):
self.__query_result_index += 1
if self.ignore_timestamp is None or self.ignore_timestamp is False:
if time_array.dtype.byteorder == ">" and len(time_array) > 0:
- time_array = time_array.byteswap().newbyteorder()
+
time_array.byteswap().view(time_array.dtype.newbyteorder("="))
result[0].append(time_array)
for i, location in enumerate(
@@ -265,8 +265,12 @@ class IoTDBRpcDataSet(object):
# BOOLEAN, INT32, INT64, FLOAT, DOUBLE, TIMESTAMP, BLOB
if data_type in (0, 1, 2, 3, 4, 8, 10):
data_array = column_array
- if data_array.dtype.byteorder == ">" and len(data_array) >
0:
- data_array = data_array.byteswap().newbyteorder()
+ if (
+ data_type != 10
+ and data_array.dtype.byteorder == ">"
+ and len(data_array) > 0
+ ):
+
data_array.byteswap().view(data_array.dtype.newbyteorder("="))
# TEXT, STRING
elif data_type in (5, 11):
data_array = np.array([x.decode("utf-8") for x in
column_array])