Skip to content

Commit 51ce760

Browse files
committed
fix: added check to avoid adding empty entry to row selection
1 parent 1b58514 commit 51ce760

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

crates/iceberg/src/arrow/reader.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,9 @@ impl ArrowReader {
432432
}
433433
};
434434
}
435-
results.push(RowSelector::skip(run_length));
435+
if run_length > 0 {
436+
results.push(RowSelector::skip(run_length));
437+
}
436438
}
437439

438440
if current_idx < next_row_group_base_idx {

0 commit comments

Comments
 (0)