Skip to content

Commit

Permalink
Test columns check without None
Browse files Browse the repository at this point in the history
  • Loading branch information
G-D-Petrov committed Dec 23, 2024
1 parent 162882a commit fef67be
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions python/arcticdb/version_store/_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -1706,10 +1706,8 @@ def _postprocess_df_with_only_rowcount_idx(self, read_result, row_range):
)

def _resolve_empty_columns(self, columns, implement_read_index):
is_columns_empty = (
columns is None
or (isinstance(columns, list) and len(columns) == 0)
or (isinstance(columns, np.ndarray) and columns.size == 0)
is_columns_empty = (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 fef67be

Please sign in to comment.