Skip to content

Commit d4f1924

Browse files
committed
fix existing test
Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
1 parent fcd903d commit d4f1924

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

datafusion-examples/examples/sql_analysis.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,10 @@ from
274274
for table in tables {
275275
ctx.register_table(
276276
table.name,
277-
Arc::new(MemTable::try_new(Arc::new(table.schema.clone()), vec![vec![]])?),
277+
Arc::new(MemTable::try_new(
278+
Arc::new(table.schema.clone()),
279+
vec![vec![]],
280+
)?),
278281
)?;
279282
}
280283
// We can create a LogicalPlan from a SQL query like this

datafusion/core/src/datasource/memory_test.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ mod tests {
446446
.unwrap_err();
447447
// Ensure that there is a descriptive error message
448448
assert_eq!(
449-
"Error during planning: Cannot insert into MemTable with zero partitions",
449+
"Error during planning: No partitions provided, expected at least one partition",
450450
experiment_result.strip_backtrace()
451451
);
452452
Ok(())

0 commit comments

Comments
 (0)