You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@datafusion.apache.org by al...@apache.org on 2024/12/30 10:26:45 UTC

(datafusion) branch main updated: Support explain query when running dfbench with clickbench (#13942)

This is an automated email from the ASF dual-hosted git repository.

alamb pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/datafusion.git


The following commit(s) were added to refs/heads/main by this push:
     new 4d07579e91 Support explain query when running dfbench with clickbench (#13942)
4d07579e91 is described below

commit 4d07579e91839a66b44c058636a34bdb14d1f041
Author: Qi Zhu <82...@qq.com>
AuthorDate: Mon Dec 30 18:26:40 2024 +0800

    Support explain query when running dfbench with clickbench (#13942)
    
    * Support explain query when running dfbench
    
    * Address comments
---
 benchmarks/src/clickbench.rs | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/benchmarks/src/clickbench.rs b/benchmarks/src/clickbench.rs
index 46dd4b1882..6b7c75ed4b 100644
--- a/benchmarks/src/clickbench.rs
+++ b/benchmarks/src/clickbench.rs
@@ -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(())


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datafusion.apache.org
For additional commands, e-mail: commits-help@datafusion.apache.org