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: Manifest parsing should consider schema evolution. #171

Merged
merged 2 commits into from
Jan 25, 2024

Conversation

liurenjie1024
Copy link
Collaborator

Releated to #165 .

This pr tries to resolve the second bug, where the field_id maybe missing due to schema evolution.

@liurenjie1024
Copy link
Collaborator Author

cc @Xuanwo @ZENOTME @Fokko PTAL

})?
.field_type;
m.insert(entry.key, Literal::try_from_bytes(&entry.value, data_type)?);
// We ignore the entry if the field is not found in the schema, due to schema evolution.
Copy link
Contributor

Choose a reason for hiding this comment

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

This can happen if you drop a column indeed. This makes sense to me 👍

@Fokko
Copy link
Contributor

Fokko commented Jan 25, 2024

@liurenjie1024 can you check the failing test?

Copy link
Contributor

@ZENOTME ZENOTME left a comment

Choose a reason for hiding this comment

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

Thanks!

@liurenjie1024
Copy link
Collaborator Author

@liurenjie1024 can you check the failing test?

Fixed.

@Fokko Fokko merged commit e4f55d1 into apache:main Jan 25, 2024
7 checks passed
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.

None yet

3 participants