Skip to content

Commit

Permalink
Add another map case
Browse files Browse the repository at this point in the history
  • Loading branch information
viirya committed Apr 20, 2022
1 parent aab053c commit 380ba0a
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions parquet/src/arrow/schema.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2125,6 +2125,29 @@ mod tests {
),
true,
),
Field::new(
"c41",
DataType::Map(
Box::new(Field::new(
"my_entries",
DataType::Struct(vec![
Field::new("my_key", DataType::Utf8, false),
Field::new(
"my_value",
DataType::List(Box::new(Field::new(
"item",
DataType::Utf8,
true,
))),
true,
),
]),
false,
)),
false, // fails to roundtrip keys_sorted
),
false,
),
],
metadata,
);
Expand Down

0 comments on commit 380ba0a

Please sign in to comment.