Skip to content

Commit 9bca470

Browse files
committed
chore: handle option trailer to error message
1 parent 00700ae commit 9bca470

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

datafusion/optimizer/src/optimizer.rs

+3-5
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,7 @@ mod tests {
544544
schema: Arc::new(DFSchema::empty()),
545545
});
546546
let err = opt.optimize(plan, &config, &observe).unwrap_err();
547-
assert_eq!(
547+
assert!(err.strip_backtrace().starts_with(
548548
"Optimizer rule 'get table_scan rule' failed\n\
549549
caused by\n\
550550
Check optimizer-specific invariants after optimizer rule: get table_scan rule\n\
@@ -564,10 +564,8 @@ mod tests {
564564
], \
565565
metadata: {} }, \
566566
field_qualifiers: [Some(Bare { table: \"test\" }), Some(Bare { table: \"test\" }), Some(Bare { table: \"test\" })], \
567-
functional_dependencies: FunctionalDependencies { deps: [] } }.\n\
568-
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",
569-
err.strip_backtrace()
570-
);
567+
functional_dependencies: FunctionalDependencies { deps: [] } }",
568+
));
571569
}
572570

573571
#[test]

0 commit comments

Comments
 (0)