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

Refactor conditional joins #8815

Merged
merged 10 commits into from
Jul 28, 2021

Conversation

vyasr
Copy link
Contributor

@vyasr vyasr commented Jul 21, 2021

#8214 made use of a number of functions defined for hash joins, but to expedite the review process no attempt was made to improve the organization of code into shared files. This PR improves that organization for improved conceptual clarity and faster parallel compilation and recompilation times. As a result, most of the changes in this PR are simply preexisting code to new files, as well as removing a number of unnecessary headers. The main new code is a few minor improvements that were suggested but not implemented on #8214 are included, mainly 1) a new nullable(table_view const&) API for checking if any columns in a table are nullable (requested here), and 2) some extra comments on the behavior of conditional joins when the condition returns null (requested here).

Contributes to #8145.

@vyasr vyasr added 3 - Ready for Review Ready for review by team libcudf Affects libcudf (C++/CUDA) code. tech debt improvement Improvement / enhancement to an existing function labels Jul 21, 2021
@vyasr vyasr self-assigned this Jul 21, 2021
@vyasr vyasr requested review from a team as code owners July 21, 2021 18:49
@github-actions github-actions bot added the CMake CMake build issue label Jul 21, 2021
@vyasr vyasr added the non-breaking Non-breaking change label Jul 21, 2021
@vyasr
Copy link
Contributor Author

vyasr commented Jul 21, 2021

@harrism @hyperbolic2346 I've re-requested your review here since I think this is the part of #8783 that requires the least knowledge of the AST internals.

Copy link
Contributor

@hyperbolic2346 hyperbolic2346 left a comment

Choose a reason for hiding this comment

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

Mostly nits here. Looks good overall.

cpp/src/join/conditional_join_kernels.cuh Outdated Show resolved Hide resolved
cpp/src/join/conditional_join_kernels.cuh Outdated Show resolved Hide resolved
cpp/src/join/join_common_utils.cuh Outdated Show resolved Hide resolved
cpp/src/join/join_kernels.cuh Outdated Show resolved Hide resolved
cpp/src/join/join_kernels.cuh Outdated Show resolved Hide resolved
@codecov
Copy link

codecov bot commented Jul 22, 2021

Codecov Report

Merging #8815 (f19641b) into branch-21.10 (18f7c01) will decrease coverage by 0.08%.
The diff coverage is 0.27%.

Impacted file tree graph

@@               Coverage Diff                @@
##           branch-21.10    #8815      +/-   ##
================================================
- Coverage         10.67%   10.59%   -0.09%     
================================================
  Files               110      116       +6     
  Lines             18271    19037     +766     
================================================
+ Hits               1951     2017      +66     
- Misses            16320    17020     +700     
Impacted Files Coverage Δ
python/cudf/cudf/__init__.py 0.00% <0.00%> (ø)
python/cudf/cudf/core/__init__.py 0.00% <0.00%> (ø)
python/cudf/cudf/core/column/categorical.py 0.00% <0.00%> (ø)
python/cudf/cudf/core/column/column.py 0.00% <0.00%> (ø)
python/cudf/cudf/core/column/lists.py 0.00% <0.00%> (ø)
python/cudf/cudf/core/column/numerical.py 0.00% <0.00%> (ø)
python/cudf/cudf/core/column/string.py 0.00% <0.00%> (ø)
python/cudf/cudf/core/column/struct.py 0.00% <0.00%> (ø)
python/cudf/cudf/core/dataframe.py 0.00% <0.00%> (ø)
python/cudf/cudf/core/frame.py 0.00% <0.00%> (ø)
... and 67 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 61ebf96...f19641b. Read the comment docs.

@vyasr vyasr added this to the Conditional Joins milestone Jul 26, 2021
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.

Looks good, a few nits.

cpp/include/cudf/join.hpp Outdated Show resolved Hide resolved
cpp/src/join/conditional_join_kernels.cuh Show resolved Hide resolved
cpp/src/join/join_common_utils.cuh Outdated Show resolved Hide resolved
cpp/src/join/join_common_utils.cuh Outdated Show resolved Hide resolved
cpp/src/join/join_common_utils.cuh Show resolved Hide resolved
@vyasr
Copy link
Contributor Author

vyasr commented Jul 28, 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 CMake CMake build issue improvement Improvement / enhancement to an existing function libcudf Affects libcudf (C++/CUDA) code. non-breaking Non-breaking change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants