Feature Request / Improvement
When doing a spark readStream on a table where the snapshots have been removed. A streaming job might refer to an old snapshot ID which is no longer available. Under these conditions the current code throws a null pointer exception here
|
String op = snapshot.operation(); |
It would be better to throw an exception here when obtaining the snapshot from the table. If it returns null we could throw an exception saying snapshot ID 1234 could not be found in table.
|
if (!shouldProcess(table.snapshot(currentOffset.snapshotId()))) { |
Query engine
None