rapidsai / dask-cuda

Utilities for Dask and CUDA interactions
https://docs.rapids.ai/api/dask-cuda/stable/
Apache License 2.0
292 stars 93 forks source link

Filter dd deprecation #1312

Closed rjzamora closed 9 months ago

rjzamora commented 9 months ago

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.

rjzamora commented 9 months ago

Good point @pentschev - I suppose it's probably best to constrain the filter to tests for now. I'll revise, thanks!

pentschev commented 9 months ago

Previous run passed, I merged the latest changes just in case. @rjzamora feel free to move this to "Ready for Review" and merging soon afterwards if there's nothing more in this PR. Thanks for working on it!

rjzamora commented 9 months ago

/merge