-
Notifications
You must be signed in to change notification settings - Fork 930
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
Make cudf::test::expect_columns_equal() to fail when comparing unsanitary lists. #10880
Make cudf::test::expect_columns_equal() to fail when comparing unsanitary lists. #10880
Conversation
Codecov Report
@@ Coverage Diff @@
## branch-22.06 #10880 +/- ##
================================================
+ Coverage 86.29% 86.33% +0.03%
================================================
Files 144 144
Lines 22656 22665 +9
================================================
+ Hits 19551 19567 +16
+ Misses 3105 3098 -7
Continue to review full report at Codecov.
|
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.
looks good, just one very minor suggestion
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.
One minor comment on clarity, otherwise looks good!
@gpucibot merge |
Addresses: #10800 Previously, `concatenate_rows()` only handled lists one level deep. This PR adds support for arbitrary nesting. <s>This PR is dependent on : #10880 so some of the files currently showing up on the diff are unrelated to the `concatenate_rows()` change.</s> Authors: - https://github.com/nvdbaranec Approvers: - Robert (Bobby) Evans (https://github.com/revans2) - Vukasin Milovanovic (https://github.com/vuule) - Nghia Truong (https://github.com/ttnghia) URL: #10890
Fixes: #10855
Unsanitary lists (those with null rows that actually have backing underlying data) should not compare as equal to sanitized lists, but should compare as equivalent. Only one test in cudf was affected by this change, which I've opened a second issue for:
#10856
This PR also adds a utility function to
cudf::test::lists_column_wrapper
,static lists_column_wrapper<T> make_one_empty_row_column(bool valid = true)
Due to the way initializer lists and nested class initialization work, it was impossible to create a list column with 1 row that was empty, so I added this explicit function to handle the edge case.