Skip to content

Commit

Permalink
chore: debug duckdb sqls
Browse files Browse the repository at this point in the history
  • Loading branch information
gadomski committed Jan 3, 2025
1 parent c34baca commit 4b7f2e0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions crates/duckdb/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ rust-version.workspace = true
arrow.workspace = true
duckdb.workspace = true
geoarrow = { workspace = true, features = ["parquet"] }
log.workspace = true
stac = { workspace = true, features = ["geoarrow"] }
stac-api.workspace = true
thiserror.workspace = true
Expand Down
1 change: 1 addition & 0 deletions crates/duckdb/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ impl Client {
) -> Result<Vec<RecordBatch>> {
let query = self.query(search, href)?;
let mut statement = self.connection.prepare(&query.sql)?;
log::debug!("DuckDB SQL: {}", query.sql);
statement
.query_arrow(duckdb::params_from_iter(query.params))?
.map(to_geoarrow_record_batch)
Expand Down

0 comments on commit 4b7f2e0

Please sign in to comment.