Skip to content

Commit

Permalink
1
Browse files Browse the repository at this point in the history
  • Loading branch information
Zouxxyy committed Nov 7, 2024
1 parent 6e9c40a commit f0e928a
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,9 @@ private void addPartitions(Set<BinaryRow> partitions) {
try {
List<BinaryRow> filteredPartitions = new ArrayList<>();
for (BinaryRow partition : partitions) {
if (!cache.get(partition, () -> false)) filteredPartitions.add(partition);
if (!cache.get(partition, () -> false)) {
filteredPartitions.add(partition);
}
}
client.addPartitions(filteredPartitions);
filteredPartitions.forEach(partition -> cache.put(partition, true));
Expand Down

0 comments on commit f0e928a

Please sign in to comment.