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: delta scan partition ordering bug #1789

Merged
merged 8 commits into from
Nov 4, 2023

Conversation

Blajda
Copy link
Collaborator

@Blajda Blajda commented Oct 31, 2023

Description

Sometimes the order of partition columns in our delta schema does not match the order of partition columns in the deltatable metadata.
This would cause DeltaScan to provide incorrect values for partition columns.
This is fixed by having DeltaScan use the metadata as the source of truth.

Related Issue(s)

@github-actions github-actions bot added binding/rust Issues for the Rust crate rust labels Oct 31, 2023
@rtyler rtyler added this to the Rust v0.17 milestone Oct 31, 2023
@mightyshazam
Copy link
Contributor

take

@Blajda
Copy link
Collaborator Author

Blajda commented Nov 2, 2023

@mightyshazam @MrPowers Why is there a take on this PR? it's mostly done the only things that needs to be done is removing some unwraps.

@MrPowers
Copy link
Collaborator

MrPowers commented Nov 2, 2023

@Blajda - sorry for the miscommunication. @mightyshazam will help out with a review. I assigned it to him cause I can't assign him as a reviewer, but now realize that was misleading. So yea, let @mightyshazam know when you're done so he can take a look, thanks!!

@Blajda
Copy link
Collaborator Author

Blajda commented Nov 2, 2023

@MrPowers
ah thanks for the clarification!

@github-actions github-actions bot removed rust binding/rust Issues for the Rust crate labels Nov 2, 2023
@Blajda Blajda marked this pull request as ready for review November 2, 2023 01:36
@Blajda
Copy link
Collaborator Author

Blajda commented Nov 2, 2023

@mightyshazam this is ready for review. Thanks for taking the initiative

Copy link
Contributor

@mightyshazam mightyshazam left a comment

Choose a reason for hiding this comment

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

Looks good. I pointed out a pretty trivial optimization to take or leave.

@wjones127 wjones127 merged commit 45e7841 into delta-io:main Nov 4, 2023
21 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.

MERGE works incorrectly with partitioned table if the data column order is not same as table column order
5 participants