From 2a19a315ba8560e0108ccfe1006eca1e410f3506 Mon Sep 17 00:00:00 2001 From: GALI PREM SAGAR Date: Wed, 26 May 2021 15:09:06 -0500 Subject: [PATCH] Raise error when unsupported arguments are passed to `dask_cudf.DataFrame.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: https://github.com/rapidsai/cudf/pull/8349 --- python/dask_cudf/dask_cudf/core.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/python/dask_cudf/dask_cudf/core.py b/python/dask_cudf/dask_cudf/core.py index 1f1af7ab07e..dc63c5c435e 100644 --- a/python/dask_cudf/dask_cudf/core.py +++ b/python/dask_cudf/dask_cudf/core.py @@ -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: