-
Notifications
You must be signed in to change notification settings - Fork 915
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes: #8913 This PR fixes multiple code-paths that incorrectly handle `list` and `struct` types for metadata generation in `dask-cudf`. ```python >>> ddf = dask_cudf.from_cudf(df, 1) >>> ddf._meta_nonempty a b c 0 0 [[0, 1]] {'a': None, 'b': None} 1 1 [[0, 1]] {'a': None, 'b': None} >>> df a b c 0 1 [[1, 2]] {'a': 1, 'b': [[1, 2]]} 1 2 [[2, 3]] {'a': 2, 'b': [[2, 3]]} 2 3 None {'a': 3, 'b': None} >>> ddf._meta_nonempty.c.dtype StructDtype({'a': dtype('int64'), 'b': ListDtype(ListDtype(int64))}) >>> df.c.dtype StructDtype({'a': dtype('int64'), 'b': ListDtype(ListDtype(int64))}) >>> ddf._meta_nonempty.b.dtype ListDtype(ListDtype(int64)) >>> df.b.dtype ListDtype(ListDtype(int64)) ``` Authors: - GALI PREM SAGAR (https://github.com/galipremsagar) Approvers: - Richard (Rick) Zamora (https://github.com/rjzamora) - Bradley Dice (https://github.com/bdice) URL: #10434
- Loading branch information
1 parent
deb39db
commit 1649955
Showing
3 changed files
with
63 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,9 @@ coverage: | |
status: | ||
project: off | ||
patch: on | ||
default: | ||
target: auto | ||
threshold: 0% | ||
|
||
github_checks: | ||
annotations: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters