-
Notifications
You must be signed in to change notification settings - Fork 906
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 support of casting string from/to decimal [skip ci] #7623
Java support of casting string from/to decimal [skip ci] #7623
Conversation
|
||
/** | ||
* Helper function to create decimal strings which can be processed by castStringToDecimal functor. | ||
* We can not simply create decimal string via `String.valueOf`, because castStringToDecimal doesn't |
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.
Could you please file a follow on issue for this?
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.
I've filed issue for scientific notation. And appended the issue link here.
Codecov Report
@@ Coverage Diff @@
## branch-0.19 #7623 +/- ##
===============================================
+ Coverage 81.86% 82.41% +0.54%
===============================================
Files 101 101
Lines 16884 17353 +469
===============================================
+ Hits 13822 14301 +479
+ Misses 3062 3052 -10
Continue to review full report at Codecov.
|
@gpucibot merge |
This pull request provided Java side support of casting string from/to decimal, which is required by spark-rapids.
Although parsing of string formatted as scientific notation to decimal has not been supported yet by cuDF, we are able to implement string to decimal conversion at spark-rapids side through a two-steps hack:
In addition, this pull request also addressed issue #6795.