File tree 1 file changed +8
-8
lines changed
datafusion/functions/src/crypto
1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change 19
19
use super :: basic:: { sha256, 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:: {
@@ -57,15 +57,15 @@ impl Default for SHA256Func {
57
57
impl SHA256Func {
58
58
pub fn new ( ) -> Self {
59
59
Self {
60
- signature : Signature :: one_of (
61
- vec ! [
62
- TypeSignature :: Coercible ( vec![ Coercion :: new_exact(
60
+ signature : Signature :: new (
61
+ 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