-
Notifications
You must be signed in to change notification settings - Fork 230
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
[BUG] test_casting_from_double_to_timestamp failed for DATAGEN_SEED=1702329497 #10017
Labels
bug
Something isn't working
Comments
jlowe
added
bug
Something isn't working
? - Needs Triage
Need team to review and classify
labels
Dec 11, 2023
Specifically the data_gen1 case is failing:
|
The minimum repro boils down to the value
|
gerashegalov
added a commit
to gerashegalov/spark-rapids
that referenced
this issue
Dec 23, 2023
Fixes NVIDIA#10017 Spark and libcudf round are more like rould half away from zero Reimplementing Math.round from Orc TimestampFromDouble conversion using floor Signed-off-by: Gera Shegalov <gera@apache.org>
gerashegalov
added a commit
to gerashegalov/spark-rapids
that referenced
this issue
Dec 23, 2023
Fixes NVIDIA#10017 Spark and libcudf round are more like rould half away from zero Reimplementing Math.round from Orc TimestampFromDouble conversion using floor Signed-off-by: Gera Shegalov <gera@apache.org>
The root cause of the issue is the discrepancy between libcudf and java.lang.Math in how
|
gerashegalov
added a commit
that referenced
this issue
Dec 26, 2023
Fixes #10017 Spark and libcudf `round` round half away from zero, i.e. half up for positive numbers round(1.5)=2 and half down for negative round(-1.5)=-2 . `Math.round` rounds half up towards positive infinity regardless of the sign: round(1.5)=2.0, round(-1.5)=-1.0 Reimplementing Math.round from Orc TimestampFromDouble conversion using floor ``` Math.round(x) = n iff x is in [n-0.5, n+0.5) iff x+0.5 is in [n,n+1) iff floor(x+0.5) = n ``` Signed-off-by: Gera Shegalov <gera@apache.org>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Saw this fail in a premerge build:
Details
The text was updated successfully, but these errors were encountered: