Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add dictionary support to cudf::copy_if_else #9887

Merged
merged 5 commits into from
Dec 15, 2021

Conversation

davidwendt
Copy link
Contributor

@davidwendt davidwendt commented Dec 10, 2021

Close #9885

Adds support for dictionary column types to cudf::copy_if_else. The column/scalar versions of this API will accept a scalar type that matches the dictionary's key type. The column/column version will accept 2 dictionary columns with matching key types. The result of the function will be a dictionary that incorporates both sets of keys or the scalar value as appropriate.

@davidwendt davidwendt added feature request New feature or request 2 - In Progress Currently a work in progress libcudf Affects libcudf (C++/CUDA) code. non-breaking Non-breaking change labels Dec 10, 2021
@davidwendt davidwendt self-assigned this Dec 10, 2021
@codecov
Copy link

codecov bot commented Dec 11, 2021

Codecov Report

Merging #9887 (cd26f04) into branch-22.02 (967a333) will decrease coverage by 0.06%.
The diff coverage is n/a.

❗ Current head cd26f04 differs from pull request most recent head 40d15df. Consider uploading reports for the commit 40d15df to get more accurate results
Impacted file tree graph

@@               Coverage Diff                @@
##           branch-22.02    #9887      +/-   ##
================================================
- Coverage         10.49%   10.42%   -0.07%     
================================================
  Files               119      119              
  Lines             20305    20473     +168     
================================================
+ Hits               2130     2134       +4     
- Misses            18175    18339     +164     
Impacted Files Coverage Δ
python/dask_cudf/dask_cudf/sorting.py 92.30% <0.00%> (-0.61%) ⬇️
python/cudf/cudf/__init__.py 0.00% <0.00%> (ø)
python/cudf/cudf/core/frame.py 0.00% <0.00%> (ø)
python/cudf/cudf/core/index.py 0.00% <0.00%> (ø)
python/cudf/cudf/io/parquet.py 0.00% <0.00%> (ø)
python/cudf/cudf/core/series.py 0.00% <0.00%> (ø)
python/cudf/cudf/utils/utils.py 0.00% <0.00%> (ø)
python/cudf/cudf/utils/ioutils.py 0.00% <0.00%> (ø)
python/cudf/cudf/core/dataframe.py 0.00% <0.00%> (ø)
python/cudf/cudf/core/multiindex.py 0.00% <0.00%> (ø)
... and 9 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b3b299a...40d15df. Read the comment docs.

@davidwendt davidwendt added 3 - Ready for Review Ready for review by team and removed 2 - In Progress Currently a work in progress labels Dec 14, 2021
@davidwendt davidwendt marked this pull request as ready for review December 14, 2021 16:50
@davidwendt davidwendt requested a review from a team as a code owner December 14, 2021 16:50
Copy link
Member

@harrism harrism left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are there no documentation updates needed (in copying.hpp)?

@davidwendt
Copy link
Contributor Author

Are there no documentation updates needed (in copying.hpp)?

I think the current documentation is sufficiently vague enough.

@davidwendt
Copy link
Contributor Author

@gpucibot merge

@rapids-bot rapids-bot bot merged commit 0c3f735 into rapidsai:branch-22.02 Dec 15, 2021
@davidwendt davidwendt deleted the dictionary-copy-if-else branch December 15, 2021 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3 - Ready for Review Ready for review by team feature request New feature or request libcudf Affects libcudf (C++/CUDA) code. non-breaking Non-breaking change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEA] Support dictionary type column for copy_if_else
3 participants