Skip to content

Commit c0d7287

Browse files
committed
tests
1 parent a490b68 commit c0d7287

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

datafusion/physical-expr/src/expressions/column.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ mod test {
228228
let col = Column::new("id", 9);
229229
let error = col.data_type(&schema).expect_err("error").strip_backtrace();
230230
assert!("Internal error: PhysicalExpr Column references column 'id' at index 9 (zero-based) \
231-
but input schema only has 1 columns: [\"foo\"]. This was likely caused by a bug in \
231+
but input schema only has 1 columns: [\"foo\"].\nThis was likely caused by a bug in \
232232
DataFusion's code and we would welcome that you file an bug report in our issue tracker".starts_with(&error))
233233
}
234234

@@ -238,7 +238,7 @@ mod test {
238238
let col = Column::new("id", 9);
239239
let error = col.nullable(&schema).expect_err("error").strip_backtrace();
240240
assert!("Internal error: PhysicalExpr Column references column 'id' at index 9 (zero-based) \
241-
but input schema only has 1 columns: [\"foo\"]. This was likely caused by a bug in \
241+
but input schema only has 1 columns: [\"foo\"].\nThis was likely caused by a bug in \
242242
DataFusion's code and we would welcome that you file an bug report in our issue tracker".starts_with(&error))
243243
}
244244

@@ -250,7 +250,7 @@ mod test {
250250
let col = Column::new("id", 9);
251251
let error = col.evaluate(&batch).expect_err("error").strip_backtrace();
252252
assert!("Internal error: PhysicalExpr Column references column 'id' at index 9 (zero-based) \
253-
but input schema only has 1 columns: [\"foo\"]. This was likely caused by a bug in \
253+
but input schema only has 1 columns: [\"foo\"].\nThis was likely caused by a bug in \
254254
DataFusion's code and we would welcome that you file an bug report in our issue tracker".starts_with(&error));
255255
Ok(())
256256
}

datafusion/sql/src/expr/identifier.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ mod test {
429429
#[test]
430430
fn test_form_identifier() -> Result<()> {
431431
let err = form_identifier(&[]).expect_err("empty identifiers didn't fail");
432-
let expected = "Internal error: Incorrect number of identifiers: 0. \
432+
let expected = "Internal error: Incorrect number of identifiers: 0.\n\
433433
This was likely caused by a bug in DataFusion's code and we would \
434434
welcome that you file an bug report in our issue tracker";
435435
assert!(expected.starts_with(&err.strip_backtrace()));
@@ -467,7 +467,7 @@ mod test {
467467
"e".to_string(),
468468
])
469469
.expect_err("too many identifiers didn't fail");
470-
let expected = "Internal error: Incorrect number of identifiers: 5. \
470+
let expected = "Internal error: Incorrect number of identifiers: 5.\n\
471471
This was likely caused by a bug in DataFusion's code and we would \
472472
welcome that you file an bug report in our issue tracker";
473473
assert!(expected.starts_with(&err.strip_backtrace()));

0 commit comments

Comments
 (0)