wirybeaver commented on PR #919:
URL: https://github.com/apache/iceberg-cpp/pull/919#issuecomment-7203234537

   @wgtmac The intended caller is an engine that has already identified the 
rows to delete. A shared API would let each engine report those positions while 
Iceberg handles the version-specific work. In v2, that means writing sorted 
position deletes. In v3, it means merging new positions with prior deletes and 
atomically replacing the superseded delete entries.
   
   I’ve removed the public wrapper. The internal helper takes positions grouped 
by the original `FileScanTask` and reads prior deletes with the scan’s 
`FileIO`. It returns the delete entries to add and remove. The caller commits 
them through `RowDelta` and validates against the snapshot that produced the 
positions, so there’s no second planning pass.
   
   The follow-up will use this helper for a filter-based merge-on-read delete. 
Iceberg Go uses a similar split in [its delete 
operation](https://github.com/apache/iceberg-go/blob/b9a9bd92e4d89ef9b2619a65d018e9e9905d456c/table/transaction_delete.go#L1017-L1023).
   


-- 
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]

Reply via email to