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

tustvold 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 86836a8d4 Remove unreachable decimal take (#3716)
86836a8d4 is described below

commit 86836a8d49059603b833395655c6f6c4a67be7e7
Author: Raphael Taylor-Davies <[email protected]>
AuthorDate: Tue Feb 14 18:37:04 2023 +0000

    Remove unreachable decimal take (#3716)
---
 arrow-select/src/take.rs | 14 --------------
 1 file changed, 14 deletions(-)

diff --git a/arrow-select/src/take.rs b/arrow-select/src/take.rs
index 22991c4f2..6436dc0d5 100644
--- a/arrow-select/src/take.rs
+++ b/arrow-select/src/take.rs
@@ -127,20 +127,6 @@ where
             let values = 
values.as_any().downcast_ref::<BooleanArray>().unwrap();
             Ok(Arc::new(take_boolean(values, indices)?))
         }
-        DataType::Decimal128(p, s) => {
-            let decimal_values = 
values.as_any().downcast_ref::<Decimal128Array>().unwrap();
-            let array = take_primitive(decimal_values, indices)?
-                .with_precision_and_scale(*p, *s)
-                .unwrap();
-            Ok(Arc::new(array))
-        }
-        DataType::Decimal256(p, s) => {
-            let decimal_values = 
values.as_any().downcast_ref::<Decimal256Array>().unwrap();
-            let array = take_primitive(decimal_values, indices)?
-                .with_precision_and_scale(*p, *s)
-                .unwrap();
-            Ok(Arc::new(array))
-        }
         DataType::Utf8 => {
             Ok(Arc::new(take_bytes(as_string_array(values), indices)?))
         }

Reply via email to