diff --git a/src/common/src/array/arrow/arrow_iceberg.rs b/src/common/src/array/arrow/arrow_iceberg.rs index 9cb7df6f809a7..ce15c5e3646e6 100644 --- a/src/common/src/array/arrow/arrow_iceberg.rs +++ b/src/common/src/array/arrow/arrow_iceberg.rs @@ -83,8 +83,8 @@ impl IcebergArrowConvert { impl ToArrow for IcebergArrowConvert { #[inline] fn decimal_type_to_arrow(&self, name: &str) -> arrow_schema::Field { - let data_type = - arrow_schema::DataType::Decimal128(arrow_schema::DECIMAL128_MAX_PRECISION, 0); + // Fixed-point decimal; precision P, scale S Scale is fixed, precision must be less than 38. + let data_type = arrow_schema::DataType::Decimal128(28, 10); arrow_schema::Field::new(name, data_type, true) } @@ -178,7 +178,7 @@ impl ToArrow for IcebergCreateTableArrowConvert { // We choose 28 here // The decimal type finally will be converted to an iceberg decimal type. // Iceberg decimal(P,S) - // Fixed-point decimal; precision P, scale S Scale is fixed, precision must be 38 or less. + // Fixed-point decimal; precision P, scale S Scale is fixed, precision must be less than 38. let data_type = arrow_schema::DataType::Decimal128(28, 10); let mut arrow_field = arrow_schema::Field::new(name, data_type, true);