Skip to content

Commit

Permalink
try to fix ibis az problems on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
sh-rp committed Dec 11, 2024
1 parent 4e5a240 commit b71eb57
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions dlt/helpers/ibis.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,11 @@ def create_ibis_backend(
)
from dlt.destinations.impl.duckdb.factory import DuckDbCredentials

# we create an in memory duckdb and create all tables on there
# we create an in memory duckdb and create the ibis backend from it
duck = duckdb.connect(":memory:")
con = ibis.duckdb.from_connection(duck)

# make all tables availble here
fs_client = cast(FilesystemClient, client)
creds = DuckDbCredentials(duck)
sql_client = FilesystemSqlClient(
Expand All @@ -134,7 +137,6 @@ def create_ibis_backend(
# NOTE: we should probably have the option for the user to only select a subset of tables here
with sql_client as _:
sql_client.create_views_for_all_tables()
con = ibis.duckdb.from_connection(duck)

return con

Expand Down

0 comments on commit b71eb57

Please sign in to comment.