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

Fix a bug: inner_join_size return zero if build table is empty #9128

Merged
merged 3 commits into from
Aug 26, 2021

Conversation

PointKernel
Copy link
Member

Closes #9092

This PR fixed a bug where inner_join_size would throw an exception if the build table is empty. Corresponding unit tests are added as well.

@PointKernel PointKernel added bug Something isn't working 3 - Ready for Review Ready for review by team tests Unit testing for project libcudf Affects libcudf (C++/CUDA) code. non-breaking Non-breaking change labels Aug 26, 2021
@PointKernel PointKernel requested a review from a team as a code owner August 26, 2021 18:42
@PointKernel PointKernel self-assigned this Aug 26, 2021
@PointKernel PointKernel requested a review from jlowe August 26, 2021 18:51
@codecov
Copy link

codecov bot commented Aug 26, 2021

Codecov Report

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

Impacted file tree graph

@@               Coverage Diff               @@
##             branch-21.10    #9128   +/-   ##
===============================================
  Coverage                ?   10.76%           
===============================================
  Files                   ?      114           
  Lines                   ?    19086           
  Branches                ?        0           
===============================================
  Hits                    ?     2055           
  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 40cad38...37797b6. Read the comment docs.

Copy link
Contributor

@vuule vuule left a comment

Choose a reason for hiding this comment

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

Short and sweet fix :D
Just have a nitpick to avoid implicit conversion to boolean.

cpp/src/join/hash_join.cu Outdated Show resolved Hide resolved
@PointKernel
Copy link
Member Author

@gpucibot merge

@rapids-bot rapids-bot bot merged commit 4d8e401 into rapidsai:branch-21.10 Aug 26, 2021
@PointKernel PointKernel deleted the empty-hash-join branch August 26, 2021 23:52
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 libcudf Affects libcudf (C++/CUDA) code. non-breaking Non-breaking change tests Unit testing for project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] cudf::hash_join throws exception when computing inner join size of empty build table
3 participants