-
Notifications
You must be signed in to change notification settings - Fork 853
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
precision is not considered when cast value to decimal #3223
Comments
I thought we had agreed to only care about overflow of the underlying type, and leave it to users to validate decimals if they care about precision. Provided we aren't overflowing and losing data, I'm not sure why we would validate precision at all? |
Now arrow-rs has the API of |
Adding a |
Currently we did as @tustvold mentioned. We validate decimals by I think it is trivial to do by users. Okay for me if you want to add something like |
Describe the bug
If the
CastOptions {safe: true}
and cast INT32(120) to decimal(3,1), the result should beNone
, butwe get the result of
decimal(Some(1200),3,1)
To Reproduce
Expected behavior
Additional context
The text was updated successfully, but these errors were encountered: