Skip to content

Commit ad51d87

Browse files
committed
use while loop
1 parent 05dc543 commit ad51d87

File tree

1 file changed

+1
-1
lines changed
  • parquet/src/arrow/arrow_reader

1 file changed

+1
-1
lines changed

parquet/src/arrow/arrow_reader/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1053,7 +1053,7 @@ impl ParquetRecordBatchReader {
10531053
if selection_cursor.is_mask_backed() {
10541054
// Stream the record batch reader using contiguous segments of the selection
10551055
// mask, avoiding the need to materialize intermediate `RowSelector` ranges.
1056-
loop {
1056+
while !selection_cursor.is_empty() {
10571057
let Some(mask_chunk) = selection_cursor.next_mask_chunk(batch_size) else {
10581058
return Ok(None);
10591059
};

0 commit comments

Comments
 (0)