You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ha...@apache.org on 2024/06/17 11:54:47 UTC

(iotdb) branch fix_python_ci4 created (now 55663643709)

This is an automated email from the ASF dual-hosted git repository.

haonan pushed a change to branch fix_python_ci4
in repository https://gitbox.apache.org/repos/asf/iotdb.git


      at 55663643709 Fix python CI

This branch includes the following new commits:

     new 55663643709 Fix python CI

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(iotdb) 01/01: Fix python CI

Posted by ha...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

haonan pushed a commit to branch fix_python_ci4
in repository https://gitbox.apache.org/repos/asf/iotdb.git

commit 5566364370920947b5fc6b8c1f8f076772c0646c
Author: HTHou <hh...@outlook.com>
AuthorDate: Mon Jun 17 19:54:24 2024 +0800

    Fix python CI
---
 iotdb-client/client-py/iotdb/utils/IoTDBRpcDataSet.py | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)

diff --git a/iotdb-client/client-py/iotdb/utils/IoTDBRpcDataSet.py b/iotdb-client/client-py/iotdb/utils/IoTDBRpcDataSet.py
index 53ef09b8e7a..eb859d7d30c 100644
--- a/iotdb-client/client-py/iotdb/utils/IoTDBRpcDataSet.py
+++ b/iotdb-client/client-py/iotdb/utils/IoTDBRpcDataSet.py
@@ -151,7 +151,7 @@ class IoTDBRpcDataSet(object):
             self.__query_data_set.time, np.dtype(np.longlong).newbyteorder(">")
         )
         if time_array.dtype.byteorder == ">":
-            time_array = time_array.byteswap().newbyteorder("<")
+            time_array = time_array.byteswap().view(time_array.dtype.newbyteorder("<"))
         result[0] = time_array
         total_length = len(time_array)
         for i in range(self.column_size):
@@ -205,7 +205,9 @@ class IoTDBRpcDataSet(object):
             else:
                 raise RuntimeError("unsupported data type {}.".format(data_type))
             if data_array.dtype.byteorder == ">":
-                data_array = data_array.byteswap().newbyteorder("<")
+                data_array = data_array.byteswap().view(
+                    data_array.dtype.newbyteorder("<")
+                )
             # self.__query_data_set.valueList[location] = None
             if len(data_array) < total_length:
                 # INT32 or INT64 or boolean
@@ -258,7 +260,9 @@ class IoTDBRpcDataSet(object):
                 self.__query_data_set.time, np.dtype(np.longlong).newbyteorder(">")
             )
             if time_array.dtype.byteorder == ">":
-                time_array = time_array.byteswap().newbyteorder("<")
+                time_array = time_array.byteswap().view(
+                    time_array.dtype.newbyteorder("<")
+                )
             if self.ignore_timestamp is None or self.ignore_timestamp is False:
                 result[IoTDBRpcDataSet.TIMESTAMP_STR].append(time_array)
 
@@ -317,7 +321,9 @@ class IoTDBRpcDataSet(object):
                 else:
                     raise RuntimeError("unsupported data type {}.".format(data_type))
                 if data_array.dtype.byteorder == ">":
-                    data_array = data_array.byteswap().newbyteorder("<")
+                    data_array = data_array.byteswap().view(
+                        data_array.dtype.newbyteorder("<")
+                    )
                 self.__query_data_set.valueList[location] = None
                 tmp_array = []
                 if len(data_array) < total_length: