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

Apply type metadata after column is slice-copied #9131

Merged
merged 3 commits into from
Aug 27, 2021

Conversation

isVoid
Copy link
Contributor

@isVoid isVoid commented Aug 26, 2021

Closes #9121

Child column type metadata is applied after column is sliced. This resolves the issues of missing field names for nested struct columns in __getitem__().

In the process of working on this, I also ran into some issue with StructColumn.to_arrow(). This blocks proper testing of the behavior because assert_eq requires comparing the object on host.

Unblocks #9086

@isVoid isVoid requested a review from a team as a code owner August 26, 2021 23:31
@isVoid isVoid requested review from shwina and galipremsagar August 26, 2021 23:31
@github-actions github-actions bot added the Python Affects Python cuDF API. label Aug 26, 2021
@isVoid isVoid added bug Something isn't working Python Affects Python cuDF API. non-breaking Non-breaking change 3 - Ready for Review Ready for review by team and removed Python Affects Python cuDF API. labels Aug 26, 2021
@isVoid isVoid changed the title Applies type metadata after children is slice constructed from base_children Apply type metadata after children is slice constructed from base_children Aug 27, 2021
@isVoid isVoid changed the title Apply type metadata after children is slice constructed from base_children Apply type metadata after column is slice-copied Aug 27, 2021
@isVoid isVoid marked this pull request as draft August 27, 2021 05:10
@isVoid isVoid added 2 - In Progress Currently a work in progress and removed 3 - Ready for Review Ready for review by team labels Aug 27, 2021
@isVoid isVoid marked this pull request as ready for review August 27, 2021 05:33
@isVoid isVoid added 3 - Ready for Review Ready for review by team and removed 2 - In Progress Currently a work in progress labels Aug 27, 2021
@codecov
Copy link

codecov bot commented Aug 27, 2021

Codecov Report

❗ No coverage uploaded for pull request base (branch-21.10@8aefeb4). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@               Coverage Diff               @@
##             branch-21.10    #9131   +/-   ##
===============================================
  Coverage                ?   10.83%           
===============================================
  Files                   ?      114           
  Lines                   ?    19101           
  Branches                ?        0           
===============================================
  Hits                    ?     2070           
  Misses                  ?    17031           
  Partials                ?        0           

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 8aefeb4...99f0d9a. Read the comment docs.

@shwina
Copy link
Contributor

shwina commented Aug 27, 2021

@gpucibot merge

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 bug Something isn't working non-breaking Non-breaking change Python Affects Python cuDF API.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Nested struct type Series does not maintain field name on slicing
2 participants