Skip to content

Commit

Permalink
debug inserted rows
Browse files Browse the repository at this point in the history
  • Loading branch information
kwannoel committed May 19, 2023
1 parent a8b1745 commit 8634c54
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/stream/src/executor/backfill.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,6 @@ where
let key: &[Datum] = &[Some((arbitrary_vnode as i16).into())];
let row = self.state_table.get_row(key).await?;
println!("row: {:?}", row);
#[for_await]
for row in self.state_table.iter(Default::default()).await? {
println!("row {:?}", row);
}
let is_finished = if let Some(row) = row
&& let Some(is_finished) = row.datum_at(state_len + 1)
{
Expand Down Expand Up @@ -573,6 +569,8 @@ where
// fill the state
current_partial_state[0] = datum.clone();
old_state[0] = datum;
println!("Updating old_row: {:?}", old_state);
println!("Updating new_row: {:?}", current_partial_state);
table.write_record(Record::Update {
old_row: &old_state[..],
new_row: &(*current_partial_state),
Expand All @@ -589,6 +587,7 @@ where
let datum = Some((vnode as i16).into());
// fill the state
current_partial_state[0] = datum;
println!("Inserting new_row: {:?}", current_partial_state);
table.write_record(Record::Insert {
new_row: &(*current_partial_state),
})
Expand Down

0 comments on commit 8634c54

Please sign in to comment.