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

Ignore partition fields that are dropped from the current-schema #11604

Closed

Conversation

Fokko
Copy link
Contributor

@Fokko Fokko commented Nov 20, 2024

Fixes #4563

I'm open to other angles to fix the problem, but quite a few folks seem to run into this. This PR skips over the field, so it will be excluded from the evaluation. The field-id projection makes sure that we skip over the field.

Another option would be to extract the field from the struct, but that's far down in the execution path. Besides that, there is zero value in it, because the field has been dropped from the current schema, so you will never filter on it.

@Fokko Fokko force-pushed the fd-ignore-deleted-schema-evolution-fields branch from 7557e3a to d96f947 Compare November 20, 2024 17:07
@Fokko
Copy link
Contributor Author

Fokko commented Dec 9, 2024

This is actually unsafe for V1 tables :3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ALTER TABLE ... DROP COLUMN allows dropping a column used by old PartitionSpecs
1 participant