Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Commit

Permalink
Use extend
Browse files Browse the repository at this point in the history
  • Loading branch information
Dandandan committed Sep 13, 2021
1 parent 6ced92d commit a9d980b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/io/parquet/read/primitive/basic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,7 @@ fn read_dict_buffer_required<T, A, F>(

let indices = hybrid_rle::HybridRleDecoder::new(indices_buffer, bit_width as u32, additional);

for index in indices {
let value = op(dict_values[index as usize]);
values.push(value);
}
values.extend(indices.map(|index| op(dict_values[index as usize])));

validity.extend_constant(additional, true);
}
Expand Down

0 comments on commit a9d980b

Please sign in to comment.