Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(driver): add affected rows with exec for RestAPI handler #60

Merged
merged 1 commit into from
Apr 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion core/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "databend-client"
version = "0.1.8"
version = "0.1.9"
edition = "2021"
license = "Apache-2.0"
description = "Databend Client for Rust"
Expand Down
4 changes: 2 additions & 2 deletions driver/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "databend-driver"
version = "0.2.8"
version = "0.2.9"
edition = "2021"
license = "Apache-2.0"
description = "Databend Driver for Rust"
Expand All @@ -21,7 +21,7 @@ flight-sql = ["dep:arrow", "dep:arrow-array", "dep:arrow-cast", "dep:arrow-fligh
[dependencies]
async-trait = "0.1.68"
chrono = { version = "0.4.24", default-features = false, features = ["clock"] }
databend-client = { version = "0.1.8", path = "../core" }
databend-client = { version = "0.1.9", path = "../core" }
dyn-clone = "1.0.11"
http = "0.2.9"
serde = { version = "1.0.156", default-features = false, features = ["derive"] }
Expand Down
2 changes: 1 addition & 1 deletion driver/src/rest_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ impl Connection for RestAPIConnection {
while let Some(next_uri) = resp.next_uri {
resp = self.client.query_page(&next_uri).await?;
}
Ok(0)
Ok(resp.stats.progresses.write_progress.rows as i64)
}

async fn query_iter(&mut self, sql: &str) -> Result<RowIterator> {
Expand Down