Skip to content

Commit

Permalink
fix: Potentially deal with empty range (#16650)
Browse files Browse the repository at this point in the history
  • Loading branch information
ritchie46 authored Jun 1, 2024
1 parent a9badd6 commit 6c5140c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/polars-pipe/src/executors/sinks/joins/cross.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ impl Operator for CrossJoinProbe {
self.in_process_left_df = self.df.slice(offset as i64, size);
self.in_process_right = Some((0..chunk.data.height()).step_by(size));
let iter_right = self.in_process_right.as_mut().unwrap();
let offset = iter_right.next().unwrap();
let offset = iter_right.next().unwrap_or(0);
let right_df = chunk.data.slice(offset as i64, size);

let (a, b) = if self.swapped {
Expand Down

0 comments on commit 6c5140c

Please sign in to comment.