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 2022/12/19 01:49:34 UTC
[iotdb] 01/01: Fix python ITs
This is an automated email from the ASF dual-hosted git repository.
haonan pushed a commit to branch fix_python_ci
in repository https://gitbox.apache.org/repos/asf/iotdb.git
commit ea914a6c4644805b8d287618b5918574038b716e
Author: HTHou <hh...@outlook.com>
AuthorDate: Mon Dec 19 09:34:50 2022 +0800
Fix python ITs
---
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