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

Fix zero-scale floor and ceil tests #9874

Merged
merged 1 commit into from
Nov 29, 2023

Conversation

jlowe
Copy link
Member

@jlowe jlowe commented Nov 28, 2023

Fixes #9722 and #9846. Floor and ceiling operations that take a specified scale do not take floating point operations as inputs, so Spark is implicitly casting the floating point inputs to decimal types before the operation. Casting of floating point to decimal types is a known, documented limitation, and it's disabled by default. Since these tests are not trying to test casting from floating point to decimal tests but rather just the floor and ceiling operations with a specified scale, the tests were updated to not test floating point inputs since those are known to not match Spark because of the implicit cast to decimal.

Signed-off-by: Jason Lowe <jlowe@nvidia.com>
@jlowe
Copy link
Member Author

jlowe commented Nov 28, 2023

build

@jlowe
Copy link
Member Author

jlowe commented Nov 29, 2023

build

@jlowe jlowe merged commit 8d43a01 into NVIDIA:branch-23.12 Nov 29, 2023
38 checks passed
@jlowe jlowe deleted the fix-floor-ceil-scale-zero-tests branch November 29, 2023 21:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test Only impacts tests
Projects
None yet
2 participants