diff --git a/crates/duckdb/Cargo.toml b/crates/duckdb/Cargo.toml index f7c3e9d4..ed976e8e 100644 --- a/crates/duckdb/Cargo.toml +++ b/crates/duckdb/Cargo.toml @@ -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 diff --git a/crates/duckdb/src/lib.rs b/crates/duckdb/src/lib.rs index ae24269e..023042ba 100644 --- a/crates/duckdb/src/lib.rs +++ b/crates/duckdb/src/lib.rs @@ -116,6 +116,7 @@ impl Client { ) -> Result> { 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)