Skip to content

Commit

Permalink
fix bug in default columns
Browse files Browse the repository at this point in the history
  • Loading branch information
sh-rp committed Sep 23, 2024
1 parent 1025560 commit f8927d3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dlt/destinations/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ def cursor(self) -> Generator[SupportsReadableRelation, Any, Any]:
if hasattr(self.client, "_conn") and hasattr(self.client._conn, "autocommit"):
self.client._conn.autocommit = False
with client.execute_query(self.query) as cursor:
cursor.schema_columns = self.schema_columns
if self.schema_columns:
cursor.schema_columns = self.schema_columns
yield cursor

def _wrap_iter(self, func_name: str) -> Any:
Expand Down

0 comments on commit f8927d3

Please sign in to comment.