Skip to content

Commit

Permalink
chore: handle option trailer to error message
Browse files Browse the repository at this point in the history
  • Loading branch information
wiedld committed Dec 25, 2024
1 parent 00700ae commit 1884564
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions datafusion/optimizer/src/optimizer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,7 @@ mod tests {
schema: Arc::new(DFSchema::empty()),
});
let err = opt.optimize(plan, &config, &observe).unwrap_err();
assert_eq!(
assert!(err.strip_backtrace().starts_with(
"Optimizer rule 'get table_scan rule' failed\n\
caused by\n\
Check optimizer-specific invariants after optimizer rule: get table_scan rule\n\
Expand All @@ -564,10 +564,8 @@ mod tests {
], \
metadata: {} }, \
field_qualifiers: [Some(Bare { table: \"test\" }), Some(Bare { table: \"test\" }), Some(Bare { table: \"test\" })], \
functional_dependencies: FunctionalDependencies { deps: [] } }.\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",
err.strip_backtrace()
);
functional_dependencies: FunctionalDependencies { deps: [] } }.",
));
}

#[test]
Expand Down

0 comments on commit 1884564

Please sign in to comment.