-
Notifications
You must be signed in to change notification settings - Fork 946
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
Conversation
… exist to reminder with range of snapshot
throw new RuntimeException( | ||
String.format( | ||
"scan.snapshot-id is not exist, you can set it in range from %s to %s", | ||
earliestSnapshotId, latestSnapshotId)); |
There was a problem hiding this comment.
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, .....
There was a problem hiding this comment.
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)); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SnapshotNotExistException
+1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
…en snapshot id not exist (apache#4145) (cherry picked from commit e083825)
…
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