Skip to content

Commit e380c8b

Browse files
committed
Thanks Renjie!
1 parent cf67332 commit e380c8b

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

crates/iceberg/src/spec/values.rs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2712,13 +2712,7 @@ mod _serde {
27122712
}
27132713
}
27142714
Type::Primitive(PrimitiveType::Decimal { precision, .. }) => {
2715-
let required_bytes =
2716-
Type::decimal_required_bytes(*precision).map_err(|e| {
2717-
invalid_err_with_reason(
2718-
"bytes",
2719-
&format!("Invalid decimal precision: {}", e),
2720-
)
2721-
})? as usize;
2715+
let required_bytes = Type::decimal_required_bytes(*precision)? as usize;
27222716

27232717
if v.len() == required_bytes {
27242718
// Pad the bytes to 16 bytes (i128 size) with sign extension

0 commit comments

Comments
 (0)