File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
datafusion/expr/src/type_coercion Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -1294,17 +1294,19 @@ mod tests {
12941294 let err =
12951295 fields_with_udf ( & current_fields, & AlwaysExecErrUdf ( signature) ) . unwrap_err ( ) ;
12961296
1297- assert_eq ! (
1298- err. to_string( ) ,
1297+ assert ! ( err. to_string( ) . starts_with(
12991298 "Execution error: Function 'test' user-defined coercion failed with: Execution error: boom"
1300- ) ;
1299+ ) ) ;
13011300 }
13021301
13031302 #[ test]
13041303 fn test_one_of_preserves_success_when_later_branch_errors ( ) -> Result < ( ) > {
13051304 let current_fields = vec ! [ Arc :: new( Field :: new( "t" , DataType :: Int32 , true ) ) ] ;
13061305 let signature = Signature :: one_of (
1307- vec ! [ TypeSignature :: Exact ( vec![ DataType :: Int32 ] ) , TypeSignature :: UserDefined ] ,
1306+ vec ! [
1307+ TypeSignature :: Exact ( vec![ DataType :: Int32 ] ) ,
1308+ TypeSignature :: UserDefined ,
1309+ ] ,
13081310 Volatility :: Immutable ,
13091311 ) ;
13101312
You can’t perform that action at this time.
0 commit comments