Use cudf::tables_equal API in libcudf examples - #22428
Merged
rapids-bot[bot] merged 18 commits intoMay 15, 2026
Merged
Conversation
At various times, it is useful to check whether two tables are equal. For example, in cudf-polars we use this to check if two tables are "compatibly" partitioned. Previously there have been no such utilities in libcudf proper. The best one can do is to loop over the columns, call cudf::binary_operation with NULL_EQUALS and then cudf::reduce on the result. This launches many more kernels than necessary. Instead, use the existing row_equality operators to perform a single transform_reduce over the table checking for equality.
The row_operator function is too complex for transform-reduce, resulting in very long compile times in general, and a bug in cicc 13.1.
Previously if two tables had column types that were not equality-comparable, cudf::logic_error was thrown, while the documented exception was std::invalid_argument. Fix this by throwing the correct exception.
mhaseeb123
marked this pull request as draft
May 8, 2026 19:03
mhaseeb123
marked this pull request as ready for review
May 13, 2026 00:23
|
ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (3)
💤 Files with no reviewable changes (1)
📝 WalkthroughSummary by CodeRabbit
WalkthroughThis PR refactors table equality checking in RAPIDS cuDF C++ examples, replacing anti-join-based comparisons with direct ChangesTable Equality Refactoring
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested reviewers
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Contributor
Author
|
/ok to test 774d67e |
shrshi
approved these changes
May 13, 2026
Contributor
Author
|
/ok to test 86af179 |
Contributor
|
/ok to test 919af4e |
Contributor
Author
|
/ok to test d10fd7b |
Contributor
Author
|
/merge |
3 tasks
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
Follow up #22319
Use
cudf::tables_equalAPI in libcudf examples instead of anti join to check if two tables are equalChecklist