Skip to content

Commit

Permalink
prepare for rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
coastalwhite committed Nov 20, 2024
1 parent 2b00cda commit 3e5c309
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions crates/polars-row/src/encode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ pub fn convert_columns_amortized_no_order(
);
}

pub fn convert_columns_amortized<'a, I: IntoIterator<Item = &'a EncodingField> + Clone>(
pub fn convert_columns_amortized<'a>(
num_rows: usize,
columns: &'a [ArrayRef],
fields: I,
columns: &[ArrayRef],
fields: impl IntoIterator<Item = &'a EncodingField> + Clone,
rows: &mut RowsEncoded,
) {
let mut row_widths = RowWidths::new(num_rows);
Expand Down Expand Up @@ -712,7 +712,6 @@ unsafe fn encode_array(
EncoderState::Struct(arrays) => {
encode_validity(buffer, encoder.array.validity(), field, offsets);


if arrays.is_empty() {
return;
}
Expand Down Expand Up @@ -797,11 +796,7 @@ pub fn fixed_size(dtype: &ArrowDataType) -> Option<usize> {
Float32 => f32::ENCODED_LEN,
Float64 => f64::ENCODED_LEN,
Boolean => bool::ENCODED_LEN,
<<<<<<< HEAD
FixedSizeList(f, width) => width * fixed_size(f.dtype())?,
=======
FixedSizeList(f, width) => 1 + width * fixed_size(f.dtype())?,
>>>>>>> 5cbb72759b (working arrays and struct validity)
Struct(fs) => {
let mut sum = 0;
for f in fs {
Expand Down

0 comments on commit 3e5c309

Please sign in to comment.