Skip to content

Commit

Permalink
fix(row selection): off-by-one error
Browse files Browse the repository at this point in the history
  • Loading branch information
sdd committed Aug 16, 2024
1 parent 8f74869 commit 40e9bff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/iceberg/src/arrow/reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ impl ArrowReader {
// skip row groups that aren't present in selected_row_groups
if idx == selected_row_groups[selected_row_groups_idx] {
selected_row_groups_idx += 1;
if selected_row_groups_idx == selected_row_groups.len() {
if selected_row_groups_idx == selected_row_groups.len() + 1 {
break;
}
} else {
Expand Down

0 comments on commit 40e9bff

Please sign in to comment.