Skip to content

Commit

Permalink
Simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
fqaiser94 committed Mar 14, 2024
1 parent aa884a3 commit 39eaa8d
Show file tree
Hide file tree
Showing 4 changed files with 242 additions and 255 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -195,16 +195,16 @@ private void commitToTable(
})
.collect(toList());

Deduplicated deduplicated =
new Deduplicated(commitState.currentCommitId(), tableIdentifier, filteredEnvelopeList);

List<DataFile> dataFiles =
deduplicated.dataFiles().stream()
Deduplicated.dataFiles(commitState.currentCommitId(), tableIdentifier, filteredEnvelopeList)
.stream()
.filter(dataFile -> dataFile.recordCount() > 0)
.collect(toList());

List<DeleteFile> deleteFiles =
deduplicated.deleteFiles().stream()
Deduplicated.deleteFiles(
commitState.currentCommitId(), tableIdentifier, filteredEnvelopeList)
.stream()
.filter(deleteFile -> deleteFile.recordCount() > 0)
.collect(toList());

Expand Down
Loading

0 comments on commit 39eaa8d

Please sign in to comment.