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

File size in bytes tracking with deleted files in expire snapshots #10036

Closed
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Spotless fix
  • Loading branch information
Sasank Pagolu committed Oct 27, 2024
commit 7331b236aa6f63966933e281d47cbe33939b7199
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,9 @@ public CloseableIterator<FileInfo> entries(ManifestFileBean manifest) {
ManifestContent content = manifest.content();
FileIO io = table.getValue().io();
Map<Integer, PartitionSpec> specs = table.getValue().specs();
List<String> proj = ImmutableList.of(DataFile.FILE_PATH.name(), DataFile.CONTENT.name(), DataFile.FILE_SIZE.name());
List<String> proj =
ImmutableList.of(
DataFile.FILE_PATH.name(), DataFile.CONTENT.name(), DataFile.FILE_SIZE.name());

switch (content) {
case DATA:
Expand All @@ -439,7 +441,8 @@ public CloseableIterator<FileInfo> entries(ManifestFileBean manifest) {
}

static FileInfo toFileInfo(ContentFile<?> file) {
return new FileInfo(file.path().toString(), file.content().toString(), file.fileSizeInBytes());
return new FileInfo(
file.path().toString(), file.content().toString(), file.fileSizeInBytes());
}
}
}