Skip to content

Commit

Permalink
Change the check to allow using only all columns
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-narozniak committed Dec 13, 2024
1 parent 8634269 commit ac3bc68
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -259,9 +259,9 @@ def _validate_parameters_while_partitioning(
)
num_columns = len(all_columns)
if all(isinstance(size, int) for size in self._partition_sizes):
if sum(self._partition_sizes) > num_columns:
if sum(self._partition_sizes) != num_columns:
raise ValueError(
"Sum of partition sizes cannot exceed the total number of columns."
"Sum of partition sizes cannot differ from the total number of columns."
)
else:
pass
Expand Down

0 comments on commit ac3bc68

Please sign in to comment.