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 02:59:15 UTC

[iotdb] branch master updated: Fix python ITs (#8502)

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

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


The following commit(s) were added to refs/heads/master by this push:
     new 97b10775ad Fix python ITs (#8502)
97b10775ad is described below

commit 97b10775ad46786fc8f7320b328506cec7ca04d7
Author: Haonan <hh...@outlook.com>
AuthorDate: Mon Dec 19 10:59:09 2022 +0800

    Fix python ITs (#8502)
    
    Fix python ITs (#8502)
---
 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