Skip to content

Commit

Permalink
better error message for overlapping aggregates
Browse files Browse the repository at this point in the history
  • Loading branch information
syvb committed Feb 22, 2023
1 parent 94557c2 commit 4337e96
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion extension/src/state_aggregate/rollup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,11 @@ impl OwnedCompactStateAgg {

assert!(
earlier.last_time <= later.first_time,
"can't merge overlapping aggregates (earlier={earlier:?}, later={later:?})"
"can't merge overlapping aggregates (earlier={}-{}, later={}-{})",
earlier.first_time,
earlier.last_time,
later.first_time,
later.last_time,
);
assert_ne!(
later.durations.len(),
Expand Down

0 comments on commit 4337e96

Please sign in to comment.