wirybeaver opened a new pull request, #1182:
URL: https://github.com/apache/iceberg-cpp/pull/1182
Depends on #919. The filter-based operation is the final commit on this
branch.
## Motivation
A caller deleting rows by predicate should be able to pass the table and
filter and let the library find the matching positions. This supplies the
higher-level merge-on-read caller for the write helper in #919.
## Modification
`MergeOnReadDelete(table, filter)` plans against an explicit snapshot and
resolves the predicate against the current table schema. It reads live rows
using the scan’s FileIO, enforces residual predicates, and groups absolute row
positions by data file.
```text
table + filter -> pinned scan -> matching live positions
-> v2 Parquet deletes or merged v3 DVs
-> RowDelta validated from the scanned snapshot
```
The operation honors the configured delete isolation level. An empty match
leaves the snapshot unchanged. Matching positions are buffered in memory before
writing.
## Test
In-library integration tests use real Parquet and Puffin encoding with an
in-memory catalog. A v3 test starts with a previously deleted row, renames the
filter column, deletes another row by its new column name, and checks the exact
survivors after reloading. Repeating the predicate creates no snapshot. Other
cases cover a v2 predicate delete followed by upgrade, and an
acknowledged-as-unknown commit whose published DV remains readable.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]