Skip to content

feat(data): add MOR file scan task reader#657

Open
wgtmac wants to merge 2 commits into
apache:mainfrom
wgtmac:scan_task_reader
Open

feat(data): add MOR file scan task reader#657
wgtmac wants to merge 2 commits into
apache:mainfrom
wgtmac:scan_task_reader

Conversation

@wgtmac
Copy link
Copy Markdown
Member

@wgtmac wgtmac commented May 18, 2026

Add FileScanTaskReader as the delete-aware Arrow stream entrypoint for file scan tasks, covering both no-delete reader passthrough and merge-on-read filtering with position and equality deletes.

Introduce reusable Arrow C Data utilities for stream wrapping and batch projection, including ProjectionContext caching and optional Arrow compute registration via arrow::RegisterAll. Move Arrow IO registration into arrow_register and remove FileScanTask::ToArrow.

Add coverage for projection behavior across nanoarrow and Arrow compute paths, plus end-to-end FileScanTaskReader tests for projected reads, position deletes, equality deletes, dropped equality fields, and fully deleted batches.

Add FileScanTaskReader as the delete-aware Arrow stream entrypoint for file scan
tasks, covering both no-delete reader passthrough and merge-on-read filtering with
position and equality deletes.

Introduce reusable Arrow C Data utilities for stream wrapping and batch
projection, including ProjectionContext caching and optional Arrow compute
registration via arrow::RegisterAll. Move Arrow IO registration into
arrow_register and remove FileScanTask::ToArrow.

Add coverage for projection behavior across nanoarrow and Arrow compute paths,
plus end-to-end FileScanTaskReader tests for projected reads, position deletes,
equality deletes, dropped equality fields, and fully deleted batches.
@wgtmac wgtmac force-pushed the scan_task_reader branch from 48c2739 to 91364da Compare May 18, 2026 05:42
Copy link
Copy Markdown
Contributor

@WZhuo WZhuo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work! This is a well-structured PR with solid test coverage. The design cleanly separates the nanoarrow fallback from the optional Arrow compute path, and the ArrowArrayStreamProvider concept is a good generalization. A few comments below — mostly minor suggestions and documentation requests.

Comment thread src/iceberg/arrow_c_data_util_internal.h
Comment thread src/iceberg/arrow_c_data_util_internal.h
Comment thread src/iceberg/arrow_c_data_util_internal.h
Comment thread src/iceberg/arrow_c_data_util_internal.h
Comment thread src/iceberg/arrow_c_data_util.cc
Comment thread src/iceberg/arrow_c_data_util.cc
Comment thread src/iceberg/arrow_c_data_util.cc
Comment thread src/iceberg/arrow/arrow_c_data_util.cc
Comment thread src/iceberg/data/file_scan_task_reader.cc
Copy link
Copy Markdown
Contributor

@WZhuo WZhuo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants