Skip to content

Commit

Permalink
use con
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinjqliu committed Sep 6, 2024
1 parent aa1d4ba commit d93bbaa
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tests/integration/test_writes/test_writes.py
Original file line number Diff line number Diff line change
Expand Up @@ -649,11 +649,12 @@ def test_duckdb_url_import(warehouse: Path, arrow_table_with_null: pa.Table) ->

import duckdb

con = duckdb.connect(database=":memory:")
query = "SELECT * FROM duckdb_extensions() WHERE extension_name = 'iceberg'"
print(f"Before: {duckdb.sql(query)}")
duckdb.sql("INSTALL iceberg; LOAD iceberg;")
print(f"After: {duckdb.sql(query)}")
result = duckdb.sql(
print(f"Before: \n{con.sql(query)}")
con.sql("INSTALL iceberg; LOAD iceberg;")
print(f"After: \n{con.sql(query)}")
result = con.sql(
f"""
SELECT *
FROM iceberg_scan('{location}')
Expand Down

0 comments on commit d93bbaa

Please sign in to comment.