Skip to content

Spark: We should probably say why we cannot process the snapshot in SparkMicroBatchStream #3699

@rajarshisarkar

Description

@rajarshisarkar

We should probably say why we cannot process the snapshot here:

private boolean shouldProcess(Snapshot snapshot) {
String op = snapshot.operation();
Preconditions.checkState(!op.equals(DataOperations.DELETE) || skipDelete,
"Cannot process delete snapshot: %s", snapshot.snapshotId());
Preconditions.checkState(
op.equals(DataOperations.DELETE) || op.equals(DataOperations.APPEND) || op.equals(DataOperations.REPLACE),
"Cannot process %s snapshot: %s", op.toLowerCase(Locale.ROOT), snapshot.snapshotId());
return op.equals(DataOperations.APPEND);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    beginnerIssues for apache iceberg beginners, enjoy to contribute !good first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions