File tree 1 file changed +8
-7
lines changed
datafusion/expr-common/src
1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change 18
18
//! Signature module contains foundational types that are used to represent signatures, types,
19
19
//! and return types of functions in DataFusion.
20
20
21
- use crate :: type_coercion:: aggregates:: { NUMERICS , STRINGS } ;
21
+ use crate :: type_coercion:: aggregates:: NUMERICS ;
22
22
use arrow:: datatypes:: DataType ;
23
23
use datafusion_common:: types:: { LogicalTypeRef , NativeType } ;
24
24
use itertools:: Itertools ;
@@ -292,12 +292,13 @@ impl TypeSignature {
292
292
. cloned ( )
293
293
. map ( |numeric_type| vec ! [ numeric_type; * arg_count] )
294
294
. collect ( ) ,
295
- TypeSignature :: String ( arg_count) => STRINGS
296
- . iter ( )
297
- . cloned ( )
298
- . map ( |string_type| vec ! [ string_type; * arg_count] )
299
- . collect ( ) ,
300
- TypeSignature :: Boolean ( arg_count) => vec ! [ vec![ DataType :: Boolean ; * arg_count] ] ,
295
+ TypeSignature :: String ( arg_count) => get_data_types ( & NativeType :: String )
296
+ . into_iter ( )
297
+ . map ( |dt| vec ! [ dt; * arg_count] )
298
+ . collect :: < Vec < _ > > ( ) ,
299
+ TypeSignature :: Boolean ( arg_count) => {
300
+ vec ! [ vec![ DataType :: Boolean ; * arg_count] ]
301
+ }
301
302
// TODO: Implement for other types
302
303
TypeSignature :: Any ( _)
303
304
| TypeSignature :: VariadicAny
You can’t perform that action at this time.
0 commit comments