Skip to content

Commit 38e3e41

Browse files
Ian LaiIan Lai
Ian Lai
authored and
Ian Lai
committed
replace new_implicit with new_exact
1 parent e4a82cf commit 38e3e41

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

datafusion/functions/src/crypto/sha512.rs

+7-7
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
use super::basic::{sha512, utf8_or_binary_to_binary_type};
2020
use arrow::datatypes::DataType;
2121
use datafusion_common::{
22-
types::{logical_binary, logical_string},
22+
types::{logical_binary, logical_string, NativeType},
2323
Result,
2424
};
2525
use datafusion_expr::{
@@ -58,14 +58,14 @@ impl SHA512Func {
5858
pub fn new() -> Self {
5959
Self {
6060
signature: Signature::one_of(
61-
vec![
62-
TypeSignature::Coercible(vec![Coercion::new_exact(
61+
vec![TypeSignature::Coercible(vec![Coercion::new_implicit(
62+
TypeSignatureClass::Native(logical_binary()),
63+
vec![
6364
TypeSignatureClass::Native(logical_string()),
64-
)]),
65-
TypeSignature::Coercible(vec![Coercion::new_exact(
6665
TypeSignatureClass::Native(logical_binary()),
67-
)]),
68-
],
66+
],
67+
NativeType::Binary,
68+
)])],
6969
Volatility::Immutable,
7070
),
7171
}

0 commit comments

Comments
 (0)