Skip to content

Avoid unneeded schema change for view updates #10

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

SergeiPatiakin
Copy link

If the new schema is the same as the old schema, there is no need to update it

@SergeiPatiakin SergeiPatiakin requested a review from a team April 28, 2025 14:40
@@ -47,9 +47,17 @@ impl Operation {
schema,
branch,
} => {
let schema_changed = metadata.current_schema(branch.as_deref())
.map(|s| schema != *s.fields())
Copy link
Collaborator

Choose a reason for hiding this comment

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

In theory identifier_field_ids can change while the fields remain the same, so we should also test for that when deducing a schema change?

Copy link
Author

Choose a reason for hiding this comment

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

In theory you're right, but looks like iceberg-rs doesn't support changing identifier_field_ids, so identifier_field_ids are not even represented in variant Operation::UpdateRepresentation

Copy link
Collaborator

Choose a reason for hiding this comment

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

Oh I see; then no need to test it now.

@SergeiPatiakin
Copy link
Author

Merged upstream as JanKaul#166

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.

2 participants