Skip to content

Commit 97ca42f

Browse files
committed
fix check
1 parent 39cbd28 commit 97ca42f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

datafusion/common/src/stats.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -695,6 +695,7 @@ impl ColumnStatistics {
695695
#[cfg(test)]
696696
mod tests {
697697
use super::*;
698+
use crate::assert_contains;
698699
use arrow::datatypes::Field;
699700
use std::sync::Arc;
700701

@@ -1145,6 +1146,6 @@ mod tests {
11451146
let items = vec![stats1, stats2];
11461147

11471148
let e = Statistics::try_merge_iter(&items, &schema).unwrap_err();
1148-
assert_eq!(e.to_string(), "Error during planning: Cannot merge statistics with different number of columns: 0 vs 1");
1149+
assert_contains!(e.to_string(), "Error during planning: Cannot merge statistics with different number of columns: 0 vs 1");
11491150
}
11501151
}

0 commit comments

Comments
 (0)