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

Commit

Permalink
Added support for nested binary
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgecarleitao committed May 5, 2022
1 parent 9a38663 commit 11dc5b8
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion src/io/parquet/read/deserialize/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,24 @@ where
chunk_size,
)
}
LargeUtf8 => {
types.pop();
binary::iter_to_arrays_nested::<i64, Utf8Array<i64>, _>(
columns.pop().unwrap(),
init.pop().unwrap(),
field.data_type().clone(),
chunk_size,
)
}
Binary => {
types.pop();
binary::iter_to_arrays_nested::<i32, BinaryArray<i32>, _>(
columns.pop().unwrap(),
init.pop().unwrap(),
field.data_type().clone(),
chunk_size,
)
}
LargeBinary => {
types.pop();
binary::iter_to_arrays_nested::<i64, BinaryArray<i64>, _>(
Expand All @@ -190,7 +208,7 @@ where
chunk_size,
)
}
List(inner) => {
List(inner) | LargeList(inner) => {
let iter = columns_to_iter_recursive(
vec![columns.pop().unwrap()],
types,
Expand Down

0 comments on commit 11dc5b8

Please sign in to comment.