Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions benchmarks/datafusion-bench/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ use datafusion_bench::metrics::MetricsSetExt;
use datafusion_bench::tracer::get_labelset_from_global;
use datafusion_bench::tracer::get_static_tracer;
use datafusion_bench::tracer::set_labels;
use datafusion_common::TableReference;
use datafusion_physical_plan::ExecutionPlan;
use datafusion_physical_plan::collect;
use parking_lot::Mutex;
Expand Down Expand Up @@ -266,7 +267,9 @@ async fn register_benchmark_tables<B: Benchmark + ?Sized>(

for table in benchmark.table_specs().iter() {
let pattern = benchmark.pattern(table.name, format);
let table_url = ListingTableUrl::try_new(benchmark_base.clone(), pattern)?;
let table_ref = TableReference::bare(table.name);
let table_url = ListingTableUrl::try_new(benchmark_base.clone(), pattern)?
.with_table_ref(table_ref.clone());

let listing_options = ListingOptions::new(Arc::clone(&file_format))
.with_session_config_options(session.state().config());
Expand All @@ -287,7 +290,7 @@ async fn register_benchmark_tables<B: Benchmark + ?Sized>(
),
);

session.register_table(table.name, listing_table)?;
session.register_table(table_ref, listing_table)?;
}

Ok(())
Expand Down
Loading