chenjian2664 opened a new pull request, #18908:
URL: https://github.com/apache/iceberg/pull/18908

   `SnapshotUtil.snapshotAfter` is documented to throw `IllegalStateException` 
when the given snapshot is not an ancestor of the table's current snapshot. 
Instead, the search reaches the table's first snapshot and unboxes its null 
parent ID, throwing a `NullPointerException`. Spark streaming can hit this when 
its last processed snapshot is no longer an ancestor of the current snapshot, 
for example after a rollback. The comparison now skips a null parent ID, so 
callers get the documented error.


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