From a225f06e712631b63a55f16ed0ef45f0cf0ad1f5 Mon Sep 17 00:00:00 2001 From: "Richard (Rick) Zamora" Date: Mon, 12 Feb 2024 21:47:09 -0600 Subject: [PATCH] Filter dd deprecation (#1312) Dask CUDA must use the deprecated `dask.dataframe` API until https://github.com/rapidsai/dask-cuda/issues/1311 and https://github.com/rapidsai/cudf/issues/15027 are both closed. This means that we must explicitly filter the following deprecation warning to avoid nighlty CI failures: ``` DeprecationWarning: The current Dask DataFrame implementation is deprecated. In a future release, Dask DataFrame will use new implementation that contains several improvements including a logical query planning. The user-facing DataFrame API will remain unchanged. The new implementation is already available and can be enabled by installing the dask-expr library: $ pip install dask-expr and turning the query planning option on: >>> import dask >>> dask.config.set({'dataframe.query-planning': True}) >>> import dask.dataframe as dd API documentation for the new implementation is available at https://docs.dask.org/en/stable/dask-expr-api.html Any feedback can be reported on the Dask issue tracker https://github.com/dask/dask/issues import dask.dataframe as dd ``` This PR adds the (temporarily) necessary warning filter. Authors: - Richard (Rick) Zamora (https://github.com/rjzamora) - Peter Andreas Entschev (https://github.com/pentschev) Approvers: - Peter Andreas Entschev (https://github.com/pentschev) URL: https://github.com/rapidsai/dask-cuda/pull/1312 --- dask_cuda/__init__.py | 1 - pyproject.toml | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/dask_cuda/__init__.py b/dask_cuda/__init__.py index e2cc5eaf..422c1a4f 100644 --- a/dask_cuda/__init__.py +++ b/dask_cuda/__init__.py @@ -25,7 +25,6 @@ if sys.platform != "linux": raise ImportError("Only Linux is supported by Dask-CUDA at this time") - import dask import dask.utils import dask.dataframe.core diff --git a/pyproject.toml b/pyproject.toml index f6378c21..ec91e682 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -147,6 +147,10 @@ filterwarnings = [ "error::FutureWarning", # remove after https://github.com/rapidsai/dask-cuda/issues/1087 is closed "ignore:There is no current event loop:DeprecationWarning:tornado", + # This warning must be filtered until dask-expr support + # is enabled in both dask-cudf and dask-cuda. + # See: https://github.com/rapidsai/dask-cuda/issues/1311 + "ignore:Dask DataFrame implementation is deprecated:DeprecationWarning", ] [tool.setuptools]