You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by ja...@apache.org on 2023/06/22 07:26:51 UTC

[arrow-datafusion] branch main updated: Minor: remove dead code with decimal datatype from in_list (#6737)

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

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


The following commit(s) were added to refs/heads/main by this push:
     new 89669907c3 Minor: remove dead code with decimal datatype from in_list (#6737)
89669907c3 is described below

commit 89669907c37bbe19e521b0a68da6887d0637c580
Author: Igor Izvekov <iz...@gmail.com>
AuthorDate: Thu Jun 22 10:26:45 2023 +0300

    Minor: remove dead code with decimal datatype from in_list (#6737)
---
 datafusion/physical-expr/src/expressions/in_list.rs | 12 +-----------
 1 file changed, 1 insertion(+), 11 deletions(-)

diff --git a/datafusion/physical-expr/src/expressions/in_list.rs b/datafusion/physical-expr/src/expressions/in_list.rs
index 0bcddb4ec8..3eb25cea82 100644
--- a/datafusion/physical-expr/src/expressions/in_list.rs
+++ b/datafusion/physical-expr/src/expressions/in_list.rs
@@ -34,9 +34,7 @@ use arrow::record_batch::RecordBatch;
 use arrow::util::bit_iterator::BitIndexIterator;
 use arrow::{downcast_dictionary_array, downcast_primitive_array};
 use datafusion_common::{
-    cast::{
-        as_boolean_array, as_generic_binary_array, as_primitive_array, as_string_array,
-    },
+    cast::{as_boolean_array, as_generic_binary_array, as_string_array},
     DataFusionError, Result, ScalarValue,
 };
 use datafusion_expr::ColumnarValue;
@@ -179,14 +177,6 @@ fn make_set(array: &dyn Array) -> Result<Arc<dyn Set>> {
             let array = as_boolean_array(array)?;
             Arc::new(ArraySet::new(array, make_hash_set(array)))
         },
-        DataType::Decimal128(_, _) => {
-            let array = as_primitive_array::<Decimal128Type>(array)?;
-            Arc::new(ArraySet::new(array, make_hash_set(array)))
-        }
-        DataType::Decimal256(_, _) => {
-            let array = as_primitive_array::<Decimal256Type>(array)?;
-            Arc::new(ArraySet::new(array, make_hash_set(array)))
-        }
         DataType::Utf8 => {
             let array = as_string_array(array)?;
             Arc::new(ArraySet::new(array, make_hash_set(array)))