Skip to content

Add JNI support for the join_strings API - #11309

Merged
rapids-bot[bot] merged 4 commits into
NVIDIA:branch-22.08from
revans2:join_strings_jni
Jul 21, 2022
Merged

Add JNI support for the join_strings API#11309
rapids-bot[bot] merged 4 commits into
NVIDIA:branch-22.08from
revans2:join_strings_jni

Conversation

@revans2

@revans2 revans2 commented Jul 20, 2022

Copy link
Copy Markdown
Contributor

This just adds in a simple JNI binding for the join_strings cudf function.

@revans2 revans2 added 3 - Ready for Review Ready for review by team Java Affects Java cuDF API. Spark Functionality that helps Spark RAPIDS 4 - Needs cuDF (Java) Reviewer improvement Improvement / enhancement to an existing function non-breaking Non-breaking change labels Jul 20, 2022
@revans2 revans2 self-assigned this Jul 20, 2022
@revans2
revans2 requested a review from a team as a code owner July 20, 2022 14:44

@jlowe jlowe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

There should be a unit test to at least smoke-test the binding is working properly and the functionality isn't surprisingly changed underneath in libcudf.

@revans2

revans2 commented Jul 20, 2022

Copy link
Copy Markdown
Contributor Author

@jlowe added the test please take another look

return new ColumnVector(joinStrings(getNativeView(), separator.getScalarHandle(),
narep.getScalarHandle()));
}
throw new IllegalArgumentException("The input, spearator, and narep all need to be the STRINGs");

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

minor nit,

Suggested change
throw new IllegalArgumentException("The input, spearator, and narep all need to be the STRINGs");
throw new IllegalArgumentException("The input, spearator, and narep all need to be STRINGs");

Comment thread java/src/main/java/ai/rapids/cudf/ColumnView.java
@revans2

revans2 commented Jul 20, 2022

Copy link
Copy Markdown
Contributor Author

@abellina I have fixed the error message

@razajafri razajafri left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@@ -0,0 +1,2 @@
package ai.rapids.cudf;public class TableWithMeta {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
package ai.rapids.cudf;public class TableWithMeta {
package ai.rapids.cudf;
public class TableWithMeta {

@ttnghia ttnghia Jul 20, 2022

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Wait, I don't see this class is used anywhere in this PR? And it is an empty class without anything inside? And this file has just this class, nothing else like copyright header?

So was this file/class added by mistake?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

oops

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Good catch!

@revans2

revans2 commented Jul 21, 2022

Copy link
Copy Markdown
Contributor Author

rerun tests

@codecov

codecov Bot commented Jul 21, 2022

Copy link
Copy Markdown

Codecov Report

Merging #11309 (166844f) into branch-22.08 (b2dd1bf) will increase coverage by 0.03%.
The diff coverage is n/a.

@@               Coverage Diff                @@
##           branch-22.08   #11309      +/-   ##
================================================
+ Coverage         86.34%   86.37%   +0.03%     
================================================
  Files               144      144              
  Lines             22826    22826              
================================================
+ Hits              19708    19715       +7     
+ Misses             3118     3111       -7     
Impacted Files Coverage Δ
python/cudf/cudf/core/dataframe.py 93.57% <0.00%> (+0.04%) ⬆️
python/cudf/cudf/core/column/string.py 88.80% <0.00%> (+0.12%) ⬆️
python/cudf/cudf/core/groupby/groupby.py 91.02% <0.00%> (+0.21%) ⬆️
python/cudf/cudf/core/column/numerical.py 96.19% <0.00%> (+0.29%) ⬆️
python/cudf/cudf/core/tools/datetimes.py 84.49% <0.00%> (+0.30%) ⬆️
python/cudf/cudf/core/column/lists.py 91.70% <0.00%> (+0.97%) ⬆️

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 b2dd1bf...166844f. Read the comment docs.

@revans2

revans2 commented Jul 21, 2022

Copy link
Copy Markdown
Contributor Author

@gpucibot merge

@rapids-bot
rapids-bot Bot merged commit d0b788a into NVIDIA:branch-22.08 Jul 21, 2022
@revans2
revans2 deleted the join_strings_jni branch July 21, 2022 18:01
@vyasr vyasr added 4 - Needs Review Waiting for reviewer to review or respond and removed 4 - Needs cuDF (Java) Reviewer labels Feb 23, 2024
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 4 - Needs Review Waiting for reviewer to review or respond improvement Improvement / enhancement to an existing function Java Affects Java cuDF API. non-breaking Non-breaking change Spark Functionality that helps Spark RAPIDS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants