Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
sundy-li committed Jan 3, 2025
1 parent c0f7d09 commit 4b82789
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions driver/src/conn.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,14 +122,14 @@ pub trait Connection: Send + Sync {
rows.collect().await
}

// raw data reponse query, only for test
// raw data response query, only for test
async fn query_raw_iter(&self, _sql: &str) -> Result<RawRowIterator> {
Err(Error::BadArgument(
"Unsupported implement query_raw_iter".to_string(),
))
}

// raw data reponse query, only for test
// raw data response query, only for test
async fn query_raw_all(&self, sql: &str) -> Result<Vec<RawRow>> {
let rows = self.query_raw_iter(sql).await?;
rows.collect().await
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 @@ -89,7 +89,7 @@ impl Connection for RestAPIConnection {
Ok(RowStatsIterator::new(Arc::new(schema), Box::pin(rows)))
}

// raw data reponse query, only for test
// raw data response query, only for test
async fn query_raw_iter(&self, sql: &str) -> Result<RawRowIterator> {
info!("query raw iter: {}", sql);
let resp = self.client.start_query(sql).await?;
Expand Down

0 comments on commit 4b82789

Please sign in to comment.