fallintoplace opened a new issue, #660: URL: https://github.com/apache/iceberg-cpp/issues/660
## Problem `TableScanBuilder::UseRef()` copies `SnapshotRef::snapshot_id` into an `int32_t` before looking up the snapshot and writing the scan context. Snapshot IDs are stored as `int64_t` in `SnapshotRef`, `TableMetadata::SnapshotById`, and `TableScanContext`. A ref that points at a snapshot ID greater than `INT32_MAX` can be truncated, which can make branch/ref scans fail to find the snapshot or select the wrong ID. ## Expected `UseRef()` should preserve the full `int64_t` snapshot ID when resolving a ref. -- 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]
