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

fix: Don't parse version-hint as a number for iceberg tables #2281

Merged
merged 2 commits into from
Dec 19, 2023

Conversation

vrongmeal
Copy link
Contributor

Read the first line of the version-hint.text and take it as it is to generate the metadata file name. Omit parsing it as a number since there are cases when it doesn't fit in an i32 type. Instead of parsing it as an i64 or i128 we should simply skip it since such a version number seems like a bug and can happen again but shouldn't stop us from reading the table.

Fixes #2277

Read the first line of the `version-hint.text` and take it as it is to
generate the metadata file name. Omit parsing it as a number since there
are cases when it doesn't fit in an `i32` type. Instead of parsing it
as an `i64` or `i128` we should simply skip it since such a version
number seems like a bug and can happen again but shouldn't stop us from
reading the table.

Fixes #2277

Signed-off-by: Vaibhav <vrongmeal@gmail.com>
testdata/sqllogictests_iceberg/local.slt Outdated Show resolved Hide resolved
@vrongmeal vrongmeal enabled auto-merge (squash) December 19, 2023 19:05
@vrongmeal vrongmeal merged commit 7984ea7 into main Dec 19, 2023
11 checks passed
@vrongmeal vrongmeal deleted the vrongmeal/iceberg-fix branch December 19, 2023 19:21
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.

Iceberg error: snapshot ID too big
3 participants