Skip to content

Commit

Permalink
Update duckdb.py
Browse files Browse the repository at this point in the history
  • Loading branch information
buremba committed Oct 12, 2024
1 parent c0f52cb commit b26193e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion universql/warehouse/duckdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def __init__(self, context: dict, query_id: str, credentials: dict, compute: dic
'access_mode': 'READ_ONLY'
}
try:
self.duckdb = duckdb.connect(duckdb_path, config=duck_config)
self.duckdb = duckdb.connect(duckdb_path, read_only=True, config=duck_config)
except duckdb.InvalidInputException as e:
raise QueryError(f"Unable to spin up DuckDB ({duckdb_path}) with config {duck_config}: {e}")
DuckDBFunctions.register(self.duckdb)
Expand Down

0 comments on commit b26193e

Please sign in to comment.