You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iceberg.apache.org by fo...@apache.org on 2025/08/07 19:06:18 UTC
(iceberg-python) 01/01: Minor cleanup
This is an automated email from the ASF dual-hosted git repository.
fokko pushed a commit to branch fd-cleanup
in repository https://gitbox.apache.org/repos/asf/iceberg-python.git
commit 2f21a2d50a51ed391576d0a1cb12eaee0a2abc6b
Author: Fokko Driesprong <fo...@apache.org>
AuthorDate: Thu Aug 7 21:06:12 2025 +0200
Minor cleanup
---
pyiceberg/io/pyarrow.py | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/pyiceberg/io/pyarrow.py b/pyiceberg/io/pyarrow.py
index 2fdee174..cde6d947 100644
--- a/pyiceberg/io/pyarrow.py
+++ b/pyiceberg/io/pyarrow.py
@@ -1492,7 +1492,7 @@ def _task_to_record_batches(
current_batch = table.combine_chunks().to_batches()[0]
- result_batch = _to_requested_schema(
+ yield _to_requested_schema(
projected_schema,
file_project_schema,
current_batch,
@@ -1500,8 +1500,6 @@ def _task_to_record_batches(
projected_missing_fields=projected_missing_fields,
)
- yield result_batch
-
def _read_all_delete_files(io: FileIO, tasks: Iterable[FileScanTask]) -> Dict[str, List[ChunkedArray]]:
deletes_per_file: Dict[str, List[ChunkedArray]] = {}