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

Spark 3.5: Preserve data file reference during manifest rewrites #11457

Merged
merged 2 commits into from
Nov 4, 2024

Conversation

aokolnychyi
Copy link
Contributor

@aokolnychyi aokolnychyi commented Nov 4, 2024

This PR modifies Spark to preserve data file reference during manifest rewrites.

This work is part of #11122.

for (FileScanTask fileTask : tasks) {
DataFile dataFile = fileTask.file();
if (dataFile.location().equals(dataFile1.location())) {
DeleteFile deleteFile = Iterables.getOnlyElement(fileTask.deletes());
Copy link
Contributor

Choose a reason for hiding this comment

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

seems like this can be extracted out of the if blocks

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good call.

Copy link
Contributor

@nastra nastra left a comment

Choose a reason for hiding this comment

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

LGTM with one minor comment

@aokolnychyi aokolnychyi closed this Nov 4, 2024
@aokolnychyi aokolnychyi reopened this Nov 4, 2024
@aokolnychyi aokolnychyi merged commit d0cca38 into apache:main Nov 4, 2024
49 checks passed
@aokolnychyi
Copy link
Contributor Author

Thanks, @nastra!

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.

2 participants