Skip to content

Commit

Permalink
Fix dummy sink performance output
Browse files Browse the repository at this point in the history
  • Loading branch information
karolisg committed Feb 20, 2024
1 parent 84881fd commit 5ace0e0
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion dozer-cli/src/pipeline/dummy_sink.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,13 @@ impl Sink for DummySink {
}

if let Some(inserted_at_index) = self.inserted_at_index {
if let Operation::Insert { new } = op.op {
let records = match op.op {
Operation::BatchInsert { ref new } => new,
Operation::Insert { ref new } => std::slice::from_ref(new),
_ => &[],
};

for new in records {
debug!("Received record: {:?}", new);
let value = &new.values[inserted_at_index];
if let Some(inserted_at) = value.to_timestamp() {
Expand Down

0 comments on commit 5ace0e0

Please sign in to comment.