Skip to content

Commit

Permalink
Remove unused imports and simplify code
Browse files Browse the repository at this point in the history
  • Loading branch information
Weijun-H committed Feb 18, 2024
1 parent 9b22063 commit e9346fe
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions datafusion/expr/src/signature.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,8 @@
//! Signature module contains foundational types that are used to represent signatures, types,
//! and return types of functions in DataFusion.
use std::sync::Arc;

use crate::type_coercion::binary::comparison_coercion;
use arrow::datatypes::{DataType, Field};
use arrow::datatypes::DataType;
use datafusion_common::utils::coerced_fixed_size_list_to_list;
use datafusion_common::{internal_datafusion_err, DataFusionError, Result};

Expand Down Expand Up @@ -255,11 +253,7 @@ impl ArrayFunctionSignature {
Ok(vec![vec![array_type]])
}
DataType::Null => Ok(vec![vec![array_type.clone()]]),
_ => Ok(vec![vec![DataType::List(Arc::new(Field::new(
"item",
array_type.to_owned(),
true,
)))]]),
_ => Ok(vec![vec![]]),
}
}
match self {
Expand Down

0 comments on commit e9346fe

Please sign in to comment.