Skip to content

Commit

Permalink
switch dataaccess pandas to pyarrow
Browse files Browse the repository at this point in the history
  • Loading branch information
sh-rp committed Aug 7, 2024
1 parent 6ffe302 commit c200262
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dlt/destinations/sql_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,8 @@ def iter_df(self, chunk_size: int = None) -> Generator[DataFrame, None, None]:

# otherwise iterate over results in batch size chunks
for result in self.iter_fetchmany(chunk_size=chunk_size):
yield _wrap_result(result, columns)
# TODO: ensure that this is arrow backed
yield _wrap_result(result, columns, dtype_backend="pyarrow")

def iter_arrow(self, chunk_size: int = None) -> Generator[ArrowTable, None, None]:
"""Default implementation converts df to arrow"""
Expand Down

0 comments on commit c200262

Please sign in to comment.