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 dbe56c58127 fix IT
dbe56c58127 is described below

commit dbe56c581277076c2144252610a0157051720e6b
Author: HTHou <[email protected]>
AuthorDate: Tue Mar 25 16:03:35 2025 +0800

    fix IT
---
 iotdb-client/client-py/iotdb/utils/iotdb_rpc_dataset.py | 6 +++---
 1 file changed, 3 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 d57627da9c3..edbdd28b825 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.byteswap().view(time_array.dtype.newbyteorder("="))
+                    
time_array.byteswap().view(time_array.dtype.newbyteorder("<"))
                 result[0].append(time_array)
 
             for i, location in enumerate(
@@ -267,10 +267,10 @@ class IoTDBRpcDataSet(object):
                     data_array = column_array
                     if (
                         data_type != 10
-                        and data_array.dtype.byteorder == ">"
                         and len(data_array) > 0
+                        and data_array.dtype.byteorder == ">"
                     ):
-                        
data_array.byteswap().view(data_array.dtype.newbyteorder("="))
+                        
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])

Reply via email to