Skip to content

Commit

Permalink
fix(common): fix conversion between Decimal to arrow Decimal128 (#19026)
Browse files Browse the repository at this point in the history
  • Loading branch information
wcy-fdu authored Oct 21, 2024
1 parent d22500c commit 91d03a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/common/src/array/arrow/arrow_iceberg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,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)
}

Expand Down

0 comments on commit 91d03a8

Please sign in to comment.