Skip to content

Commit

Permalink
Experiment for migrate
Browse files Browse the repository at this point in the history
  • Loading branch information
jkosh44 committed Dec 17, 2024
1 parent 396368e commit 619116d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/adapter/src/catalog/open.rs
Original file line number Diff line number Diff line change
Expand Up @@ -518,6 +518,11 @@ impl Catalog {
// Include any post-item-updates generated by migrations, and then consolidate
// them to ensure diffs are all positive.
post_item_updates.extend(migrate_result.post_item_updates);
if let Some(max_ts) = post_item_updates.iter().map(|(_, ts, _)| ts).max().cloned() {
for (_, ts, _) in &mut post_item_updates {
*ts = max_ts;
}
}
differential_dataflow::consolidation::consolidate_updates(&mut post_item_updates);
}

Expand Down

0 comments on commit 619116d

Please sign in to comment.