matrixone icon indicating copy to clipboard operation
matrixone copied to clipboard

[Bug]: select constant decimal lose precision

Open zengyan1 opened this issue 1 year ago • 1 comments

Is there an existing issue for the same bug?

  • [X] I have checked the existing issues.

Branch Name

main

Commit ID

4ce6b31

Other Environment Information

- Hardware parameters:
- OS type:
- Others:

Actual Behavior

截屏2024-04-10 16 59 41

Expected Behavior

No response

Steps to Reproduce

select 111111111111111111111111111111111111111.11111111111111;

Additional information

No response

zengyan1 avatar Apr 10 '24 09:04 zengyan1

The integral part of mentioned constant has 39 digits, which exceeds Decimal128's upper limit 38 digits. So it is parsed as a double.

It complies with our type system, and is not a bug.

aunjgr avatar May 06 '25 09:05 aunjgr