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

alamb pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-rs.git


The following commit(s) were added to refs/heads/main by this push:
     new 32ff76c48f Remove `force_validate` feature from `arrow-cast` (#10950)
32ff76c48f is described below

commit 32ff76c48f85f29ea0ec22d36a8cda4b3c8d376f
Author: Jeffrey Vo <[email protected]>
AuthorDate: Thu Sep 3 21:24:24 2026 +0900

    Remove `force_validate` feature from `arrow-cast` (#10950)
    
    This was added back in
    
    - https://github.com/apache/arrow-rs/pull/6116
    
    However theres no actual code (other than test code) that uses this
    feature; I'm assuming it was an artifact from some old code that was
    never removed.
    
    Alternatively we could forward that feature to enable `force_validate`
    in `arrow-data` and `arrow-array`, if we want to maintain it.
---
 arrow-cast/Cargo.toml      | 1 -
 arrow-cast/src/cast/mod.rs | 2 --
 2 files changed, 3 deletions(-)

diff --git a/arrow-cast/Cargo.toml b/arrow-cast/Cargo.toml
index ad66ffc3c3..5e8432949f 100644
--- a/arrow-cast/Cargo.toml
+++ b/arrow-cast/Cargo.toml
@@ -37,7 +37,6 @@ all-features = true
 
 [features]
 prettyprint = ["comfy-table"]
-force_validate = []
 
 [dependencies]
 arrow-array = { workspace = true }
diff --git a/arrow-cast/src/cast/mod.rs b/arrow-cast/src/cast/mod.rs
index f9ccdf8f67..f24724e4b7 100644
--- a/arrow-cast/src/cast/mod.rs
+++ b/arrow-cast/src/cast/mod.rs
@@ -3027,7 +3027,6 @@ mod tests {
     }
 
     #[test]
-    #[cfg(not(feature = "force_validate"))]
     #[should_panic(
         expected = "Cannot cast to Decimal128(20, 3). Overflowing on 
57896044618658097711785492504343953926634992332820282019728792003956564819967"
     )]
@@ -3064,7 +3063,6 @@ mod tests {
     }
 
     #[test]
-    #[cfg(not(feature = "force_validate"))]
     fn test_cast_decimal_to_decimal_round() {
         let array = vec![
             Some(1123454),

Reply via email to