This is an automated email from the ASF dual-hosted git repository. haonan pushed a commit to branch query_v4_py in repository https://gitbox.apache.org/repos/asf/iotdb.git
commit 8c34ba0f7dce48f07b36fea1deca022a5a472d3a Author: HTHou <[email protected]> AuthorDate: Wed Mar 26 08:37:20 2025 +0800 query_v4-py --- iotdb-client/client-py/iotdb/tsfile/utils/tsblock_serde.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iotdb-client/client-py/iotdb/tsfile/utils/tsblock_serde.py b/iotdb-client/client-py/iotdb/tsfile/utils/tsblock_serde.py index abdd19e0d0b..854be120ffb 100644 --- a/iotdb-client/client-py/iotdb/tsfile/utils/tsblock_serde.py +++ b/iotdb-client/client-py/iotdb/tsfile/utils/tsblock_serde.py @@ -74,7 +74,7 @@ def read_from_buffer(buffer, size): def read_column_types(buffer, value_column_count): data_types = np.frombuffer(buffer, dtype=np.uint8, count=value_column_count) new_buffer = buffer[value_column_count:] - if not np.all(np.isin(data_types, [0, 1, 2, 3, 4, 5])): + if not np.all(np.isin(data_types, (0, 1, 2, 3, 4, 5))): raise Exception("Invalid data type encountered: " + str(data_types)) return data_types, new_buffer
