iceberg-rust icon indicating copy to clipboard operation
iceberg-rust copied to clipboard

rust_decimal only supports precision less than 28

Open Xuanwo opened this issue 1 year ago • 3 comments

rust_decimal looks promising but only supports precision less than 28, while the Iceberg spec requires 38. It's possible for an Iceberg table to contain a decimal value that exceeds this range.

I have initiated a discussion with the upstream to explore potential extensions. However, if we can't find an adequate solution, we might need to switch from rust_decimal to other crates that can support decimal(37, 10).

Xuanwo avatar Oct 14 '24 16:10 Xuanwo

Possible alternative:

  • https://crates.io/crates/bigdecimal
  • https://crates.io/crates/decimal-rs

Xuanwo avatar Dec 24 '24 16:12 Xuanwo

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.

github-actions[bot] avatar Sep 19 '25 00:09 github-actions[bot]

We should keep this an resolve it some day.

liurenjie1024 avatar Sep 25 '25 10:09 liurenjie1024