Skip to content

Commit 2fc088d

Browse files
committed
Install HTTPFS extension in DuckDB context
1 parent 2ba36a4 commit 2fc088d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

timdex_dataset_api/metadata.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,14 @@ def _configure_duckdb_s3_secret(
161161
If a scope is provided, e.g. an S3 URI prefix like 's3://timdex', set a scope
162162
parameter in the config. Else, leave it blank.
163163
"""
164+
# install httpfs extension
165+
conn.execute(
166+
"""
167+
install httpfs;
168+
load httpfs;
169+
"""
170+
)
171+
164172
# establish scope string
165173
scope_str = f", scope '{scope}'" if scope else ""
166174

0 commit comments

Comments
 (0)