File tree 1 file changed +7
-7
lines changed
datafusion/functions/src/crypto
1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 19
19
use super :: basic:: { sha512, utf8_or_binary_to_binary_type} ;
20
20
use arrow:: datatypes:: DataType ;
21
21
use datafusion_common:: {
22
- types:: { logical_binary, logical_string} ,
22
+ types:: { logical_binary, logical_string, NativeType } ,
23
23
Result ,
24
24
} ;
25
25
use datafusion_expr:: {
@@ -58,14 +58,14 @@ impl SHA512Func {
58
58
pub fn new ( ) -> Self {
59
59
Self {
60
60
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![
63
64
TypeSignatureClass :: Native ( logical_string( ) ) ,
64
- ) ] ) ,
65
- TypeSignature :: Coercible ( vec![ Coercion :: new_exact(
66
65
TypeSignatureClass :: Native ( logical_binary( ) ) ,
67
- ) ] ) ,
68
- ] ,
66
+ ] ,
67
+ NativeType :: Binary ,
68
+ ) ] ) ] ,
69
69
Volatility :: Immutable ,
70
70
) ,
71
71
}
You can’t perform that action at this time.
0 commit comments