Skip to content

Commit

Permalink
fix(sink): fix iceberg sink missing deletes (#15779)
Browse files Browse the repository at this point in the history
  • Loading branch information
chenzl25 authored Mar 19, 2024
1 parent 4f2f65e commit 5545276
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/connector/src/sink/iceberg/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -942,7 +942,7 @@ impl SinkCommitCoordinator for IcebergSinkCommitter {
.iter()
.map(|meta| WriteResult::try_from(meta, &self.partition_type))
.collect::<Result<Vec<WriteResult>>>()?;
if write_results.is_empty() || write_results.iter().all(|r| r.data_files.is_empty()) {
if write_results.is_empty() {
tracing::debug!(?epoch, "no data to commit");
return Ok(());
}
Expand Down

0 comments on commit 5545276

Please sign in to comment.