Skip to content

Commit 8866d95

Browse files
committed
test: fix OneOf error expectations in CI
Signed-off-by: yaommen <myanstu@163.com>
1 parent b8e2dc1 commit 8866d95

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

datafusion/expr/src/type_coercion/functions.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)