Skip to content

Commit

Permalink
Bring back None check
Browse files Browse the repository at this point in the history
  • Loading branch information
G-D-Petrov committed Dec 23, 2024
1 parent fef67be commit adee4d7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions python/arcticdb/version_store/_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit adee4d7

Please sign in to comment.