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

[C++][Gandiva] Cast double to decimal with rounding returns 0 #22373

Closed
asfimport opened this issue Jul 17, 2019 · 1 comment
Closed

[C++][Gandiva] Cast double to decimal with rounding returns 0 #22373

asfimport opened this issue Jul 17, 2019 · 1 comment

Comments

@asfimport
Copy link
Collaborator

casting 1.15470053838 to decimal(18,0) gives 0. should return 1.

there is a bug in the overflow check after rounding.

Reporter: Pindikura Ravindra / @pravindra
Assignee: Pindikura Ravindra / @pravindra

PRs and other links:

Note: This issue was originally created as ARROW-5964. Please see the migration documentation for further details.

@asfimport
Copy link
Collaborator Author

Wes McKinney / @wesm:
Issue resolved by pull request 4894
#4894

@asfimport asfimport added this to the 0.15.0 milestone Jan 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants