You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2022/08/29 20:26:57 UTC
[GitHub] [arrow-datafusion] andygrove commented on a diff in pull request #3290: Execute LogicalPlans after building for TPCH Benchmarks
andygrove commented on code in PR #3290:
URL: https://github.com/apache/arrow-datafusion/pull/3290#discussion_r957765787
##########
benchmarks/src/bin/tpch.rs:
##########
@@ -1022,9 +1024,10 @@ mod tests {
ctx.register_table(table, Arc::new(provider))?;
}
- let plans = create_logical_plans(&ctx, n)?;
- for plan in plans {
- execute_query(&ctx, &plan, false).await?;
Review Comment:
Why not just pass `sql` into this method instead of `plan`. Inside the method you can add a couple lines to get the plan from the SQL. This will retain the existing debug logging.
```
let plan = ctx.sql(sql).await?;
let plan = plan.to_logical_plan()?;
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org