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

Core: Support DVs in DeleteFileIndex #11467

Merged
merged 1 commit into from
Nov 5, 2024

Conversation

aokolnychyi
Copy link
Contributor

This PR adds supports for DVs in DeleteFileIndex.

This work is part of #11122.

@github-actions github-actions bot added the core label Nov 4, 2024
@@ -84,4 +85,17 @@ public static String referencedDataFileLocation(DeleteFile deleteFile) {
CharSequence location = referencedDataFile(deleteFile);
return location != null ? location.toString() : null;
}

public static boolean isDV(DeleteFile deleteFile) {
Copy link
Contributor

Choose a reason for hiding this comment

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

same as I mentioned on the other PR. This isn't probably needed anymore, since it exists in ScanTaskUtil

Copy link
Contributor Author

@aokolnychyi aokolnychyi Nov 5, 2024

Choose a reason for hiding this comment

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

This is actually intentional. I originally wanted to move ContentFileUtil to api but then we decided against that, as it required moving more classes and increasing the API surface. Therefore, we added a simple utility for what was needed in api. I do want ContentFileUtil to contain all the logic for content files, it is just a matter of one duplicate method. I made that method in ScanTaskUtil private on purpose.

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 comment

@aokolnychyi aokolnychyi merged commit 5bd314b into apache:main Nov 5, 2024
49 checks passed
@aokolnychyi
Copy link
Contributor Author

Thanks for reviewing, @nastra!

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

Successfully merging this pull request may close these issues.

2 participants