Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
comphead committed Sep 6, 2023
1 parent a490b68 commit c0d7287
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions datafusion/physical-expr/src/expressions/column.rs
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ mod test {
let col = Column::new("id", 9);
let error = col.data_type(&schema).expect_err("error").strip_backtrace();
assert!("Internal error: PhysicalExpr Column references column 'id' at index 9 (zero-based) \
but input schema only has 1 columns: [\"foo\"]. This was likely caused by a bug in \
but input schema only has 1 columns: [\"foo\"].\nThis was likely caused by a bug in \
DataFusion's code and we would welcome that you file an bug report in our issue tracker".starts_with(&error))
}

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

Expand All @@ -250,7 +250,7 @@ mod test {
let col = Column::new("id", 9);
let error = col.evaluate(&batch).expect_err("error").strip_backtrace();
assert!("Internal error: PhysicalExpr Column references column 'id' at index 9 (zero-based) \
but input schema only has 1 columns: [\"foo\"]. This was likely caused by a bug in \
but input schema only has 1 columns: [\"foo\"].\nThis was likely caused by a bug in \
DataFusion's code and we would welcome that you file an bug report in our issue tracker".starts_with(&error));
Ok(())
}
Expand Down
4 changes: 2 additions & 2 deletions datafusion/sql/src/expr/identifier.rs
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ mod test {
#[test]
fn test_form_identifier() -> Result<()> {
let err = form_identifier(&[]).expect_err("empty identifiers didn't fail");
let expected = "Internal error: Incorrect number of identifiers: 0. \
let expected = "Internal error: Incorrect number of identifiers: 0.\n\
This was likely caused by a bug in DataFusion's code and we would \
welcome that you file an bug report in our issue tracker";
assert!(expected.starts_with(&err.strip_backtrace()));
Expand Down Expand Up @@ -467,7 +467,7 @@ mod test {
"e".to_string(),
])
.expect_err("too many identifiers didn't fail");
let expected = "Internal error: Incorrect number of identifiers: 5. \
let expected = "Internal error: Incorrect number of identifiers: 5.\n\
This was likely caused by a bug in DataFusion's code and we would \
welcome that you file an bug report in our issue tracker";
assert!(expected.starts_with(&err.strip_backtrace()));
Expand Down

0 comments on commit c0d7287

Please sign in to comment.