laskoviymishka opened a new pull request, #911: URL: https://github.com/apache/iceberg-go/pull/911
Add AncestorsOf, AncestorsBetween, and IsAncestorOf helpers for walking snapshot parent chains. Foundation for concurrent writer conflict detection (#830). - AncestorsOf(id, lookup): walks chain newest-first, handles broken chains and cycles defensively - AncestorsBetween(latest, base, lookup): returns (snapshots, baseFound) where baseFound distinguishes "complete concurrent snapshots" from "divergent/broken chain, treat as conflict" - IsAncestorOf(id, ancestor, lookup): verifies snapshotID exists before short-circuiting on self-match; returns false on broken mid-chain SnapshotLookup is a func type matching Metadata.SnapshotByID, chosen over taking Metadata directly to keep the utility testable without a fake Metadata implementation. Part of #830 (concurrent writer conflict detection). -- 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]
