This is an automated email from the ASF dual-hosted git repository.
viirya pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/arrow-rs.git
The following commit(s) were added to refs/heads/master by this push:
new 12ac5c770 Fix max and min decimal (#1917)
12ac5c770 is described below
commit 12ac5c770a77d215346cd38388dfb435aa64c03d
Author: Liang-Chi Hsieh <[email protected]>
AuthorDate: Mon Jun 20 21:57:34 2022 -0700
Fix max and min decimal (#1917)
---
arrow/src/datatypes/datatype.rs | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arrow/src/datatypes/datatype.rs b/arrow/src/datatypes/datatype.rs
index 895e5cc67..d0c9bb692 100644
--- a/arrow/src/datatypes/datatype.rs
+++ b/arrow/src/datatypes/datatype.rs
@@ -238,7 +238,7 @@ pub const MAX_DECIMAL_FOR_EACH_PRECISION: [i128; 38] = [
99999999999999999999999999999999999,
999999999999999999999999999999999999,
9999999999999999999999999999999999999,
- 170141183460469231731687303715884105727,
+ 99999999999999999999999999999999999999,
];
/// `MIN_DECIMAL_FOR_EACH_PRECISION[p]` holds the minimum `i128` value
@@ -281,7 +281,7 @@ pub const MIN_DECIMAL_FOR_EACH_PRECISION: [i128; 38] = [
-99999999999999999999999999999999999,
-999999999999999999999999999999999999,
-9999999999999999999999999999999999999,
- -170141183460469231731687303715884105728,
+ -99999999999999999999999999999999999999,
];
/// The maximum precision for [DataType::Decimal] values