Skip to content

Commit

Permalink
fix ut
Browse files Browse the repository at this point in the history
Signed-off-by: Richard Chien <[email protected]>
  • Loading branch information
stdrc committed Jan 9, 2024
1 parent c92676f commit a4d768f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/stream/src/executor/over_window/over_partition.rs
Original file line number Diff line number Diff line change
Expand Up @@ -796,7 +796,11 @@ fn find_affected_ranges<'cache>(
// tell the caller that there exists at least one affected range that touches the sentinel.

let delta = part_with_delta.delta();
debug_assert!(!delta.is_empty(), "if delta is empty, we won't be here");
if delta.is_empty() {
// no change means no ranges affected
return vec![];
}

let delta_first_key = delta.first_key_value().unwrap().0;
let delta_last_key = delta.last_key_value().unwrap().0;

Expand Down

0 comments on commit a4d768f

Please sign in to comment.