From 43199b200af732ad5dc6b38e6fc06b6ec8ad4b63 Mon Sep 17 00:00:00 2001 From: berkaysynnada Date: Mon, 8 Jul 2024 13:19:16 +0300 Subject: [PATCH 1/2] Update sql_planner.rs --- datafusion/core/benches/sql_planner.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/datafusion/core/benches/sql_planner.rs b/datafusion/core/benches/sql_planner.rs index c0e02d388af4..22162a897276 100644 --- a/datafusion/core/benches/sql_planner.rs +++ b/datafusion/core/benches/sql_planner.rs @@ -82,9 +82,9 @@ fn register_defs(ctx: SessionContext, defs: Vec) -> SessionContext { defs.iter().for_each(|TableDef { name, schema }| { ctx.register_table( name, - Arc::new(MemTable::try_new(Arc::new(schema.clone()), vec![]).unwrap()), + Arc::new(MemTable::try_new(Arc::new(schema.clone()), vec![vec![]]).unwrap()), ) - .unwrap(); + .unwrap(); }); ctx } From fccca3ec560c4debc83245742f2e204ff9ab4e15 Mon Sep 17 00:00:00 2001 From: berkaysynnada Date: Mon, 8 Jul 2024 13:25:12 +0300 Subject: [PATCH 2/2] Update sql_planner.rs --- datafusion/core/benches/sql_planner.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datafusion/core/benches/sql_planner.rs b/datafusion/core/benches/sql_planner.rs index 22162a897276..00f6d5916751 100644 --- a/datafusion/core/benches/sql_planner.rs +++ b/datafusion/core/benches/sql_planner.rs @@ -84,7 +84,7 @@ fn register_defs(ctx: SessionContext, defs: Vec) -> SessionContext { name, Arc::new(MemTable::try_new(Arc::new(schema.clone()), vec![vec![]]).unwrap()), ) - .unwrap(); + .unwrap(); }); ctx }