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/10/14 09:08:33 UTC

(iotdb) branch fix_py_query updated: fix query dataset

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

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


The following commit(s) were added to refs/heads/fix_py_query by this push:
     new 0ead87d71f6 fix query dataset
0ead87d71f6 is described below

commit 0ead87d71f62cc3de72fa4e39db140382e948330
Author: HTHou <hh...@outlook.com>
AuthorDate: Mon Oct 14 17:08:18 2024 +0800

    fix query dataset
---
 iotdb-client/client-py/iotdb/utils/IoTDBRpcDataSet.py | 13 ++-----------
 1 file changed, 2 insertions(+), 11 deletions(-)

diff --git a/iotdb-client/client-py/iotdb/utils/IoTDBRpcDataSet.py b/iotdb-client/client-py/iotdb/utils/IoTDBRpcDataSet.py
index 73d4f317de6..4fda11861ed 100644
--- a/iotdb-client/client-py/iotdb/utils/IoTDBRpcDataSet.py
+++ b/iotdb-client/client-py/iotdb/utils/IoTDBRpcDataSet.py
@@ -216,17 +216,8 @@ class IoTDBRpcDataSet(object):
                     data_array.dtype.newbyteorder("<")
                 )
             if len(data_array) < total_length:
-                # INT32, INT64, BOOLEAN, TIMESTAMP, DATE
-                if (
-                    data_type == 0
-                    or data_type == 1
-                    or data_type == 2
-                    or data_type == 8
-                    or data_type == 9
-                ):
-                    tmp_array = np.full(total_length, np.nan, np.float32)
-                else:
-                    tmp_array = np.full(total_length, None, dtype=object)
+
+                tmp_array = np.full(total_length, None, dtype=object)
 
                 bitmap_buffer = self.__query_data_set.bitmapList[location]
                 buffer = _to_bitbuffer(bitmap_buffer)