File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
datafusion/functions/src/string Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -20,8 +20,10 @@ use std::sync::Arc;
2020
2121use arrow:: array:: ArrayRef ;
2222use arrow:: datatypes:: DataType ;
23- use datafusion_expr:: binary:: { binary_to_string_coercion, string_coercion} ;
2423use datafusion_expr:: simplify:: { ExprSimplifyResult , SimplifyInfo } ;
24+ use datafusion_expr:: type_coercion:: binary:: {
25+ binary_to_string_coercion, string_coercion,
26+ } ;
2527
2628use crate :: utils:: make_scalar_function;
2729use datafusion_common:: types:: logical_string;
@@ -34,7 +36,7 @@ use datafusion_macros::user_doc;
3436
3537/// Returns true if string starts with prefix.
3638/// starts_with('alphabet', 'alph') = 't'
37- pub fn starts_with ( args : & [ ArrayRef ] ) -> Result < ArrayRef > {
39+ fn starts_with ( args : & [ ArrayRef ] ) -> Result < ArrayRef > {
3840 if let Some ( coercion_data_type) =
3941 string_coercion ( args[ 0 ] . data_type ( ) , args[ 1 ] . data_type ( ) ) . or_else ( || {
4042 binary_to_string_coercion ( args[ 0 ] . data_type ( ) , args[ 1 ] . data_type ( ) )
You can’t perform that action at this time.
0 commit comments