We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b5d720 commit 6860ae4Copy full SHA for 6860ae4
benchmarks/src/bin/tpch.rs
@@ -326,7 +326,11 @@ async fn execute_query(
326
"=== Physical plan with metrics ===\n{}\n",
327
DisplayableExecutionPlan::with_metrics(physical_plan.as_ref()).indent()
328
);
329
- pretty::print_batches(&result)?;
+ if !result.is_empty() {
330
+ // do not call print_batches if there are no batches as the result is confusing
331
+ // and makes it look like there is a batch with no columns
332
+ pretty::print_batches(&result)?;
333
+ }
334
}
335
Ok(result)
336
0 commit comments