Skip to content

Commit

Permalink
Support explain query when running dfbench with clickbench (apache#13942
Browse files Browse the repository at this point in the history
)

* Support explain query when running dfbench

* Address comments
  • Loading branch information
zhuqi-lucas authored Dec 30, 2024
1 parent ab69bb0 commit 4d07579
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions benchmarks/src/clickbench.rs
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,9 @@ impl RunOpt {
);
benchmark_run.write_iter(elapsed, row_count);
}
if self.common.debug {
ctx.sql(sql).await?.explain(false, false)?.show().await?;
}
}
benchmark_run.maybe_write_json(self.output_path.as_ref())?;
Ok(())
Expand Down

0 comments on commit 4d07579

Please sign in to comment.