-
Notifications
You must be signed in to change notification settings - Fork 902
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 functionality to apply Dtype
metadata to ColumnBase
#8373
Merged
rapids-bot
merged 19 commits into
rapidsai:branch-21.08
from
charlesbluca:apply-type-meta
Jun 15, 2021
Merged
Changes from 18 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
918c8c5
Add _apply_type_metadata() to ColumnBase
charlesbluca 1a061e6
Return self if nothing needs to be done
charlesbluca 3c470ae
Use apply function in _copy_type_metadata()
charlesbluca b7329bd
Remove arrow dtype conversion for now
charlesbluca fed7075
Use apply function for arrow copy
charlesbluca d6dccbc
Add tests for arrow array conversion
charlesbluca a93084b
Merge remote-tracking branch 'upstream/branch-21.08' into apply-type-…
charlesbluca 7739a25
Add arrow StructArray test
charlesbluca 27290cb
Reuse computed cudf dtype
charlesbluca dc706bf
Migrate _apply_type_metadata to column subclasses
charlesbluca e04f052
Handle recursive calls in struct/list methods, consolidate copy method
charlesbluca ba5d067
Add build functions for struct/list columns
charlesbluca ec50e1b
Fix circular import
charlesbluca cbe027d
Rename apply function
charlesbluca 9e26743
Use utils function for arrow type conversion
charlesbluca d01f558
Remove ColumnBase copy type functions
charlesbluca 9139229
Return new columns directly
charlesbluca 7f09ab0
Add fix for ListColumn.base_size
charlesbluca ad80721
Merge remote-tracking branch 'upstream/branch-21.08' into apply-type-…
charlesbluca File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
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
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just noting this change; @shwina and I noticed that in some test cases, libcudf was returning empty a
ListColumn
with no indices (i.e.self.base_children[0]
is just an emptyNumericalColumn
). Before, this would result in aListColumn
with abase_size
of -1, which was breaking some test cases where this refactor required us to reconstruct the emptyListColumn
using this erroneous size.This change ensures that
ListColumn.base_size
will always be at least 0.