This is an automated email from the ASF dual-hosted git repository.
agrove pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/arrow-datafusion.git
The following commit(s) were added to refs/heads/master by this push:
new 2b08a43b8 Use unoptimized logical plan (#4056)
2b08a43b8 is described below
commit 2b08a43b82127ef144204e5999dd2730fa1c4756
Author: Liang-Chi Hsieh <[email protected]>
AuthorDate: Tue Nov 1 06:38:50 2022 -0700
Use unoptimized logical plan (#4056)
---
benchmarks/src/bin/tpch.rs | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/benchmarks/src/bin/tpch.rs b/benchmarks/src/bin/tpch.rs
index df64537bd..44b150f16 100644
--- a/benchmarks/src/bin/tpch.rs
+++ b/benchmarks/src/bin/tpch.rs
@@ -290,14 +290,14 @@ async fn execute_query(
debug: bool,
) -> Result<Vec<RecordBatch>> {
let plan = ctx.sql(sql).await?;
- let plan = plan.to_logical_plan()?;
+ let plan = plan.to_unoptimized_plan();
if debug {
println!("=== Logical plan ===\n{:?}\n", plan);
}
+ let plan = ctx.optimize(&plan)?;
if debug {
- let plan = ctx.optimize(&plan)?;
println!("=== Optimized logical plan ===\n{:?}\n", plan);
}
let physical_plan = ctx.create_physical_plan(&plan).await?;