Skip to content

Improve error reporting when streaming snapshot ID is no longer available #7340

@cccs-jc

Description

@cccs-jc

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

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions