-
Notifications
You must be signed in to change notification settings - Fork 915
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] Add JNI for substring
without 'end' parameter.
#12113
Conversation
cudf substring has its own behavior when end is -1, which is different from that in JNI, so JNI should not override it. Signed-off-by: Liangcai Li <[email protected]>
NOTE: This is a breaking change, and I have filed PR NVIDIA/spark-rapids#7040 for the plugin. |
Could you please describe the behaviour you want in the PR description? |
Signed-off-by: Liangcai Li <[email protected]>
The one described in the doc of |
Codecov ReportBase: 88.06% // Head: 88.09% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## branch-22.12 #12113 +/- ##
================================================
+ Coverage 88.06% 88.09% +0.03%
================================================
Files 135 135
Lines 22101 22100 -1
================================================
+ Hits 19463 19469 +6
+ Misses 2638 2631 -7
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good to me but it would be nice to address the comments by @ttnghia
Co-authored-by: Nghia Truong <[email protected]>
Co-authored-by: Nghia Truong <[email protected]>
Co-authored-by: Nghia Truong <[email protected]>
@gpucibot merge |
cudf
substring(column, int, int)
has its own behavior whenend
is -1 (a valid position pointing to the last char), which is different from that in JNI. So JNI should not override it.Besides, JNI's behavior does not match its doc when
end
is "-1". According to the doc, the last char should not be included in the result substring. But currently it does.Signed-off-by: Liangcai Li [email protected]
Description
Checklist