We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Describe the bug
If I try and cast floating-point value 12345.67 to decimal(6,2) then I get an error, as expected:
12345.67
decimal(6,2)
"1234567 is too large to store in a Decimal128 of precision 6. Max is 999999"
However, if I try and cast a decimal(24,2) value of 12345.67 to decimal(6,2) then I do not get an error but instead have an invalid decimal value.
decimal(24,2)
PrimitiveArray<Decimal128(6, 2)> [ 1234567, ]
If I then convert this decimal to a string, it produces 1234.56 instead of 12345.67
1234.56
StringArray [ "1234.56", ]
To Reproduce
Expected behavior
Additional context
This is the root cause of apache/datafusion#13492
The text was updated successfully, but these errors were encountered:
Working on it
Sorry, something went wrong.
label_issue.py automatically added labels {'arrow'} from #6850
label_issue.py
Successfully merging a pull request may close this issue.
Describe the bug
If I try and cast floating-point value
12345.67
todecimal(6,2)
then I get an error, as expected:However, if I try and cast a
decimal(24,2)
value of12345.67
todecimal(6,2)
then I do not get an error but instead have an invalid decimal value.If I then convert this decimal to a string, it produces
1234.56
instead of12345.67
To Reproduce
Expected behavior
Additional context
This is the root cause of apache/datafusion#13492
The text was updated successfully, but these errors were encountered: