-
Notifications
You must be signed in to change notification settings - Fork 66
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
Implement kernel for casting float to decimal #2078
Conversation
Signed-off-by: Nghia Truong <[email protected]>
Signed-off-by: Nghia Truong <[email protected]>
Signed-off-by: Nghia Truong <[email protected]>
Signed-off-by: Nghia Truong <[email protected]>
Signed-off-by: Nghia Truong <[email protected]>
Signed-off-by: Nghia Truong <[email protected]>
Signed-off-by: Nghia Truong <[email protected]>
Related: NVIDIA/spark-rapids#9847 and NVIDIA/spark-rapids#10890. |
# Conflicts: # thirdparty/cudf
This reverts commit e4a1d5d. # Conflicts: # thirdparty/cudf
This reverts commit c14b199.
Signed-off-by: Nghia Truong <[email protected]>
Signed-off-by: Nghia Truong <[email protected]>
Signed-off-by: Nghia Truong <[email protected]>
Signed-off-by: Nghia Truong <[email protected]>
Signed-off-by: Nghia Truong <[email protected]>
Signed-off-by: Nghia Truong <[email protected]>
Signed-off-by: Nghia Truong <[email protected]>
Signed-off-by: Nghia Truong <[email protected]>
Signed-off-by: Nghia Truong <[email protected]>
8607d14
to
98f603b
Compare
Signed-off-by: Nghia Truong <[email protected]>
98f603b
to
90492aa
Compare
Signed-off-by: Nghia Truong <[email protected]>
Signed-off-by: Nghia Truong <[email protected]>
Signed-off-by: Nghia Truong <[email protected]>
Signed-off-by: Nghia Truong <[email protected]>
Signed-off-by: Nghia Truong <[email protected]>
Signed-off-by: Nghia Truong <[email protected]>
build |
Signed-off-by: Nghia Truong <[email protected]>
Signed-off-by: Nghia Truong <[email protected]>
Signed-off-by: Nghia Truong <[email protected]>
build |
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.
Minor nits on comments. Do we have any performance measurements for the new kernel? Wondering if it's worth making a benchmark for it.
src/test/java/com/nvidia/spark/rapids/jni/DecimalUtilsTest.java
Outdated
Show resolved
Hide resolved
Previously @thirtiseven helped with benchmarking, like this NVIDIA/spark-rapids#10917 (comment). @thirtiseven can you run such benchmark again on this please? Thanks. |
Signed-off-by: Nghia Truong <[email protected]>
Signed-off-by: Nghia Truong <[email protected]>
build |
New perf numbers:
Float type is a little slower than current code, but it runs much faster than cpu and gluten. |
This implements a casting operation from floating point values to decimal values, following the rules of Apache Spark. The casting function also returns an additional boolean flag indicating if there was any failures with any input rows, leaving the caller to make decision whether to accept the result as-is or raise an exception.