Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[core] Manifest table query throw exception with range of snapshot when snapshot id not exist #4145

Merged
merged 7 commits into from
Sep 10, 2024

Conversation

xuzifu666
Copy link
Contributor

Purpose

Currently user can only query table manifest info of snapshot from scan.snapshot-id, due to snapshot manager of table, some early snapshot would clean. So maybe need offer user about snapshot range when user query a snapshot id which not exist.

Linked issue: close #xxx

Tests

API and Format

Documentation

throw new RuntimeException(
String.format(
"scan.snapshot-id is not exist, you can set it in range from %s to %s",
earliestSnapshotId, latestSnapshotId));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

better : Specified scan.snapshot-id [%s] is not exist, .....

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks,your advice is nice. @LinMingQiang

String.format(
"Specified scan.snapshot-id %s is not exist, you can set it in range from %s to %s",
snapshotId, earliestSnapshotId, latestSnapshotId));
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SnapshotNotExistException

@LinMingQiang
Copy link
Contributor

+1

Copy link
Contributor

@JingsongLi JingsongLi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@JingsongLi JingsongLi merged commit e083825 into apache:master Sep 10, 2024
10 checks passed
wxplovecc pushed a commit to tongcheng-elong/incubator-paimon that referenced this pull request Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants