-
Notifications
You must be signed in to change notification settings - Fork 236
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_floor_scale_zero fails with DATAGEN_SEED=1700009407 #9722
Comments
test_floor is working with the same datagen and seed, so this is ultimately a difference in
|
The difference is tied to the output types and operations involved.
|
So this ends up being solely about the known imprecision when casting floating point values to decimals. The test has to explicitly set spark.rapids.sql.castFloatToDecimal.enabled=true to keep everything on the GPU, and that leads to the difference of -940459146980391.021204383727616 vs. -940459146980391.000000000000000 when casting the double to a decimal(30,15). Performing a floor on those values results in a difference, because floor moves to the next integral value towards negative infinity. If the GPU matched the CPU when casting floating point to decimals, the test would pass as written. |
Repro:
The text was updated successfully, but these errors were encountered: