You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by dh...@apache.org on 2021/08/12 14:05:59 UTC

[arrow-datafusion] branch master updated: Include planning time in print (#860)

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

dheres pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/arrow-datafusion.git


The following commit(s) were added to refs/heads/master by this push:
     new 5bd7147  Include planning time in print (#860)
5bd7147 is described below

commit 5bd71473527deda095266eb1f17f97f7c01c3c3e
Author: Daniƫl Heres <da...@gmail.com>
AuthorDate: Thu Aug 12 16:05:52 2021 +0200

    Include planning time in print (#860)
---
 datafusion-cli/src/main.rs | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/datafusion-cli/src/main.rs b/datafusion-cli/src/main.rs
index 39ce02f..7742051 100644
--- a/datafusion-cli/src/main.rs
+++ b/datafusion-cli/src/main.rs
@@ -238,8 +238,9 @@ async fn exec_and_print(
     print_options: PrintOptions,
     sql: String,
 ) -> Result<()> {
-    let df = ctx.sql(&sql)?;
     let now = Instant::now();
+
+    let df = ctx.sql(&sql)?;
     let results = df.collect().await?;
 
     print_options.print_batches(&results, now)?;