isidentical commented on code in PR #3439:
URL: https://github.com/apache/arrow-datafusion/pull/3439#discussion_r968551313
##########
datafusion/core/tests/sql/mod.rs:
##########
@@ -766,13 +766,16 @@ async fn execute_to_batches(ctx: &SessionContext, sql:
&str) -> Vec<RecordBatch>
let logical_schema = plan.schema();
let msg = format!("Optimizing logical plan for '{}': {:?}", sql, plan);
- let plan = ctx
+ let optimized_logical_plan = ctx
.optimize(&plan)
.map_err(|e| format!("{:?} at {}", e, msg))
.unwrap();
- let optimized_logical_schema = plan.schema();
+ let optimized_logical_schema = optimized_logical_plan.schema();
- let msg = format!("Creating physical plan for '{}': {:?}", sql, plan);
+ let msg = format!(
+ "Creating physical plan for '{}': {:?}",
+ sql, optimized_logical_plan
+ );
let plan = ctx
Review Comment:
Definietly!
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]