Skip to content

Commit

Permalink
fix(duckdb): workaround aggressive importing on the duckdb side
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcloud committed Aug 30, 2023
1 parent ab3fc9e commit 105e2d6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ibis/backends/duckdb/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,10 @@ def configure_connection(dbapi_connection, connection_record):
dbapi_connection.execute("SET enable_progress_bar = false")

self._record_batch_readers_consumed = {}

with contextlib.suppress(duckdb.InvalidInputException):
duckdb.execute("SELECT ?", (1,))

super().do_connect(engine)

def _load_extensions(self, extensions):
Expand Down

0 comments on commit 105e2d6

Please sign in to comment.