From adee4d732689e03a0c1a2de5924177b27af43469 Mon Sep 17 00:00:00 2001 From: G-D-Petrov Date: Mon, 23 Dec 2024 13:32:12 +0200 Subject: [PATCH] Bring back None check --- python/arcticdb/version_store/_store.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/python/arcticdb/version_store/_store.py b/python/arcticdb/version_store/_store.py index 38d4450ccb..4a45c24fb7 100644 --- a/python/arcticdb/version_store/_store.py +++ b/python/arcticdb/version_store/_store.py @@ -1706,8 +1706,10 @@ def _postprocess_df_with_only_rowcount_idx(self, read_result, row_range): ) def _resolve_empty_columns(self, columns, implement_read_index): - is_columns_empty = (isinstance(columns, list) and len(columns) == 0) or ( - isinstance(columns, np.ndarray) and columns.size == 0 + is_columns_empty = ( + columns is None + or (isinstance(columns, list) and len(columns) == 0) + or (isinstance(columns, np.ndarray) and columns.size == 0) ) if not implement_read_index and is_columns_empty: columns = None