Skip to content

Commit

Permalink
Raise error when unsupported arguments are passed to `dask_cudf.DataF…
Browse files Browse the repository at this point in the history
…rame.sort_values` (#8349)

Fixes: #8165 

This PR raises error when unsupported arguments are passed to `sort_values`.

Authors:
  - GALI PREM SAGAR (https://github.com/galipremsagar)

Approvers:
  - Keith Kraus (https://github.com/kkraus14)

URL: #8349
  • Loading branch information
galipremsagar authored May 26, 2021
1 parent 96f8df7 commit 2a19a31
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions python/dask_cudf/dask_cudf/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,11 @@ def sort_values(
set_divisions=False,
**kwargs,
):
if kwargs:
raise ValueError(
f"Unsupported input arguments passed : {list(kwargs.keys())}"
)

if self.npartitions == 1:
df = self.map_partitions(M.sort_values, by)
else:
Expand Down

0 comments on commit 2a19a31

Please sign in to comment.