You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by al...@apache.org on 2022/07/30 11:56:03 UTC

[arrow-rs] branch master updated: Disable value validation for decimal256 case (#2232)

This is an automated email from the ASF dual-hosted git repository.

alamb 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 ca4371921 Disable value validation for decimal256 case (#2232)
ca4371921 is described below

commit ca43719217d83b551370791521af1260b5419a2e
Author: Liang-Chi Hsieh <vi...@gmail.com>
AuthorDate: Sat Jul 30 04:55:58 2022 -0700

    Disable value validation for decimal256 case (#2232)
---
 integration-testing/src/lib.rs | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/integration-testing/src/lib.rs b/integration-testing/src/lib.rs
index 212c254d9..7be70bfa2 100644
--- a/integration-testing/src/lib.rs
+++ b/integration-testing/src/lib.rs
@@ -618,6 +618,10 @@ fn array_from_json(
         }
         DataType::Decimal256(precision, scale) => {
             let mut b = Decimal256Builder::new(json_col.count, *precision, *scale);
+            // C++ interop tests involve incompatible decimal values
+            unsafe {
+                b.disable_value_validation();
+            }
             for (is_valid, value) in json_col
                 .validity
                 .as_ref()