Skip to content

Commit

Permalink
v2.0.44
Browse files Browse the repository at this point in the history
  • Loading branch information
ashpreetbedi committed Nov 14, 2023
1 parent 9c22604 commit 14a48bf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions phi/agent/duckdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,16 @@ def connection(self) -> duckdb.DuckDBPyConnection:
if self._connection is None:
self._connection = duckdb.connect(database=self.db_path)
try:
self._connection.sql("INSTALL httpfs;")
self._connection.sql("LOAD httpfs;")
self._connection.install_extension("httpfs")
self._connection.load_extension("httpfs")
self._connection.sql(f"SET s3_region='{self.s3_region}';")
if self.init_commands is not None:
for command in self.init_commands:
self._connection.sql(command)
except Exception as e:
logger.exception(e)
logger.warning("Failed to initialize duckdb connection")
exit(1)

return self._connection

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "phidata"
version = "2.0.43"
version = "2.0.44"
description = "AI Toolkit for Engineers"
requires-python = ">=3.7"
readme = "README.md"
Expand Down

0 comments on commit 14a48bf

Please sign in to comment.