Skip to content

Commit

Permalink
ARROW-11824: [Rust] [Parquet] Use logical types in Arrow schema conve…
Browse files Browse the repository at this point in the history
…rsion

Populate LogicalType when converting from Arrow schema to Parquet schema.

This is on top of apache#9592

Closes apache#9612 from nevi-me/ARROW-11824

Authored-by: Neville Dipale <nevilledips@gmail.com>
Signed-off-by: Neville Dipale <nevilledips@gmail.com>
  • Loading branch information
nevi-me authored and michalursa committed Jun 13, 2021
1 parent a7e4b4c commit e34935d
Show file tree
Hide file tree
Showing 4 changed files with 419 additions and 146 deletions.
8 changes: 3 additions & 5 deletions rust/arrow/src/array/array_binary.rs
Expand Up @@ -424,12 +424,10 @@ impl FixedSizeBinaryArray {
}
bit_util::set_bit(null_buf.as_slice_mut(), len);
buffer.extend_from_slice(slice);
} else if let Some(size) = size {
buffer.extend_zeros(size);
} else {
if let Some(size) = size {
buffer.extend_zeros(size);
} else {
prepend += 1;
}
prepend += 1;
}

len += 1;
Expand Down

0 comments on commit e34935d

Please sign in to comment.