Skip to content

Commit

Permalink
Explicitly pass in pyarrow schema during table construction
Browse files Browse the repository at this point in the history
  • Loading branch information
Jay Chia committed Sep 9, 2024
1 parent 895765d commit 3b72732
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion daft/dataframe/dataframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -2515,7 +2515,7 @@ def to_arrow(self) -> "pyarrow.Table":
import pyarrow as pa

arrow_rb_iter = self.to_arrow_iter(results_buffer_size=None)
return pa.Table.from_batches(arrow_rb_iter)
return pa.Table.from_batches(arrow_rb_iter, schema=self.schema().to_pyarrow_schema())

@DataframePublicAPI
def to_pydict(self) -> Dict[str, List[Any]]:
Expand Down

0 comments on commit 3b72732

Please sign in to comment.