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

Add JNI backend for Spark SQL function conv for (hexa)decimals #1314

Merged
merged 20 commits into from
Aug 17, 2023

Conversation

gerashegalov
Copy link
Collaborator

@gerashegalov gerashegalov commented Aug 3, 2023

Contributes to NVIDIA/spark-rapids#8511

POC supporting form/to radices 10 and 16 leveraging existing libcudf API

Signed-off-by: Gera Shegalov [email protected]

@gerashegalov gerashegalov marked this pull request as draft August 3, 2023 18:11
@gerashegalov gerashegalov changed the base branch from branch-23.08 to branch-23.10 August 3, 2023 18:12
Signed-off-by: Gera Shegalov <[email protected]>
Copy link
Collaborator

@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.

Generally it looks fine. Just a little curious about an error case.

src/main/cpp/src/CastStringJni.cpp Show resolved Hide resolved
@gerashegalov gerashegalov self-assigned this Aug 3, 2023
@gerashegalov gerashegalov marked this pull request as ready for review August 12, 2023 09:49
@gerashegalov gerashegalov changed the title [WIP] Add JNI backend for Spark SQL function conv Add JNI backend for Spark SQL function conv for (hexa)decimals Aug 12, 2023
@gerashegalov
Copy link
Collaborator Author

build

src/main/cpp/src/CastStringJni.cpp Outdated Show resolved Hide resolved
src/main/cpp/src/CastStringJni.cpp Outdated Show resolved Hide resolved
src/main/java/com/nvidia/spark/rapids/jni/CastStrings.java Outdated Show resolved Hide resolved
src/main/cpp/src/CastStringJni.cpp Outdated Show resolved Hide resolved
src/main/cpp/src/CastStringJni.cpp Outdated Show resolved Hide resolved
revans2
revans2 previously approved these changes Aug 16, 2023
Copy link
Collaborator

@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.

My only concern now is performance. I just want to be sure that the cost of the regular expressions/etc beats the CPU. But that can even wait for the plugin changes if needed, because that is where I actually care about the performance.

Signed-off-by: Gera Shegalov <[email protected]>
@gerashegalov
Copy link
Collaborator Author

build

Signed-off-by: Gera Shegalov <[email protected]>
Signed-off-by: Gera Shegalov <[email protected]>
@gerashegalov
Copy link
Collaborator Author

build

@gerashegalov
Copy link
Collaborator Author

build

@gerashegalov
Copy link
Collaborator Author

@gerashegalov gerashegalov merged commit 72cb837 into NVIDIA:branch-23.10 Aug 17, 2023
1 check passed
@gerashegalov gerashegalov deleted the conv_jni branch August 17, 2023 20:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants