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

[Java] Added JNI for getMapValueForKeys #11104

Merged
merged 2 commits into from
Jun 16, 2022

Conversation

razajafri
Copy link
Contributor

@razajafri razajafri commented Jun 14, 2022

This PR adds Java method for getting values for a list of keys

fixes #10818

@razajafri razajafri added feature request New feature or request 3 - Ready for Review Ready for review by team non-breaking Non-breaking change labels Jun 14, 2022
@razajafri razajafri requested a review from a team as a code owner June 14, 2022 00:47
@github-actions github-actions bot added the Java Affects Java cuDF API. label Jun 14, 2022
@res-life
Copy link
Contributor

Seems need to format C++ code.

cd cudf
pre-commit run --all-files
...
clang-format.............................................................Failed
...

refer to https://github.com/rapidsai/cudf/blob/branch-22.04/CONTRIBUTING.md#pre-commit-hooks

Copy link
Contributor

@revans2 revans2 left a comment

Choose a reason for hiding this comment

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

Just a nit.

* @param keys the column view with keys to lookup in the column
* @return a column of values or nulls based on the lookup result
*/
public final ColumnVector getMapValueForKeys(ColumnView keys) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Why not just call it getMapValue just like the Scalar API is called? If they do the same thing, then to me it is ideal to call them the same thing.

@razajafri
Copy link
Contributor Author

rerun tests

@razajafri
Copy link
Contributor Author

rerun tests

@codecov
Copy link

codecov bot commented Jun 15, 2022

Codecov Report

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

@@               Coverage Diff               @@
##             branch-22.08   #11104   +/-   ##
===============================================
  Coverage                ?   86.30%           
===============================================
  Files                   ?      144           
  Lines                   ?    22844           
  Branches                ?        0           
===============================================
  Hits                    ?    19715           
  Misses                  ?     3129           
  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 9e8e92c...28ba9cc. Read the comment docs.

@razajafri
Copy link
Contributor Author

rerun tests

@razajafri
Copy link
Contributor Author

@gpucibot merge

@rapids-bot rapids-bot bot merged commit ef6a390 into rapidsai:branch-22.08 Jun 16, 2022
@razajafri razajafri deleted the CU-10818-get-value-for branch June 16, 2022 22:06
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 feature request New feature or request Java Affects Java cuDF API. non-breaking Non-breaking change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEA] JNI bindings for maps_column_view::get_value_for(column_view)
3 participants