Skip to content

Commit 49419a7

Browse files
committed
fix: Use load_extension directly
1 parent e136775 commit 49419a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

deepnote_toolkit/sql/duckdb_sql.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def _get_duckdb_connection():
5858
import_extension(
5959
name=extension_name, force_install=True, con=_DEEPNOTE_DUCKDB_CONNECTION
6060
)
61-
_DEEPNOTE_DUCKDB_CONNECTION.execute(f"LOAD '{extension_name}'")
61+
_DEEPNOTE_DUCKDB_CONNECTION.load_extension(extension_name)
6262

6363
_set_sample_size(_DEEPNOTE_DUCKDB_CONNECTION, _DEFAULT_DUCKDB_SAMPLE_SIZE)
6464

0 commit comments

Comments
 (0)