diff --git a/Cargo.toml b/Cargo.toml index 41ac780..ee3ca8a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,7 +7,7 @@ repository = "https://github.com/sundy-li/arrow_cli" edition = "2024" license = "Apache-2.0" name = "arrow_cli" -version = "0.2.0" +version = "0.2.1" [dependencies] diff --git a/src/session.rs b/src/session.rs index 6b3f039..a98c1ff 100644 --- a/src/session.rs +++ b/src/session.rs @@ -124,6 +124,7 @@ impl Session { let start = Instant::now(); let mut stmt = self.client.prepare(query.to_string(), None).await?; let flight_info = stmt.execute().await?; + let sql_exec_duration = start.elapsed(); let mut batches: Vec = Vec::new(); let mut handles = Vec::with_capacity(flight_info.endpoint.len()); @@ -157,7 +158,7 @@ impl Session { println!( "{} rows in set ({:.3} sec)", rows, - start.elapsed().as_secs_f64() + sql_exec_duration.as_secs_f64() ); println!(); } else {