Skip to content

Commit

Permalink
Support MapArrays when exporting to geozero (#721)
Browse files Browse the repository at this point in the history
Closes #715
  • Loading branch information
kylebarron authored Aug 26, 2024
1 parent cae9d35 commit d636eca
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/io/geozero/table/data_source.rs
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,10 @@ fn process_properties<P: PropertyProcessor>(
&ColumnValue::Binary(arr.value(within_batch_row_idx)),
)?;
}
DataType::Struct(_) | DataType::List(_) | DataType::LargeList(_) => {
DataType::Struct(_)
| DataType::List(_)
| DataType::LargeList(_)
| DataType::Map(_, _) => {
if array.is_valid(within_batch_row_idx) {
let mut encoder = make_encoder(
array,
Expand Down

0 comments on commit d636eca

Please sign in to comment.