You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by zy...@apache.org on 2022/12/19 03:01:38 UTC

[iotdb] branch rel/1.0 updated: Fix python ITs (#8503)

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

zyk pushed a commit to branch rel/1.0
in repository https://gitbox.apache.org/repos/asf/iotdb.git


The following commit(s) were added to refs/heads/rel/1.0 by this push:
     new 77ae2fe17c Fix python ITs (#8503)
77ae2fe17c is described below

commit 77ae2fe17c2cf4e6933e2568ab5a12ff1ab0fa4d
Author: Haonan <hh...@outlook.com>
AuthorDate: Mon Dec 19 11:01:33 2022 +0800

    Fix python ITs (#8503)
    
    Fix python ITs (#8503)
---
 client-py/iotdb/utils/IoTDBRpcDataSet.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/client-py/iotdb/utils/IoTDBRpcDataSet.py b/client-py/iotdb/utils/IoTDBRpcDataSet.py
index de0fe7728c..e9dfa7bfe6 100644
--- a/client-py/iotdb/utils/IoTDBRpcDataSet.py
+++ b/client-py/iotdb/utils/IoTDBRpcDataSet.py
@@ -252,7 +252,7 @@ class IoTDBRpcDataSet(object):
 
                     bitmap_buffer = self.__query_data_set.bitmapList[location]
                     bitmap_str = self._to_bitstring(bitmap_buffer)
-                    bit_mask = (np.fromstring(bitmap_str, 'u1') - ord('0')).astype(np.bool)
+                    bit_mask = (np.fromstring(bitmap_str, 'u1') - ord('0')).astype(bool)
                     if len(bit_mask) != total_length:
                         bit_mask = bit_mask[:total_length]
                     tmp_array[bit_mask] = data_array