apache / iceberg

Apache Iceberg
https://iceberg.apache.org/
Apache License 2.0
6.34k stars 2.19k forks source link

Regarding the issue of decimal scale #9350

Open leo-livis opened 9 months ago

leo-livis commented 9 months ago

Apache Iceberg version

1.4.2 (latest release)

Query engine

None

Please describe the bug 🐞

When I set the decimal type to decimal (10,2), if I insert a number less than this precision, an error will be reported, such as 3.1. If it is a number like 3.42 or 3.51, an error will not be reported. The error message and the logic in the source code are shown in the figure. Is it necessary to change the comparison scale to be less than or equal to WechatIMG774 WechatIMG775 WechatIMG776

github-actions[bot] commented 6 days ago

This issue has been automatically marked as stale because it has been open for 180 days with no activity. It will be closed in next 14 days if no further activity occurs. To permanently prevent this issue from being considered stale, add the label 'not-stale', but commenting on the issue is preferred when possible.