Skip to content

Commit

Permalink
Fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
kylebarron committed Dec 23, 2024
1 parent 15dfdfb commit f757075
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion rust/geoarrow/src/io/flatgeobuf/reader/sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ mod test {
.unwrap();

let geom_col = table.geometry_column(None).unwrap();
assert!(matches!(geom_col.data_type(), NativeType::Point(_, _)));
assert!(matches!(geom_col.data_type(), NativeType::Geometry(_)));

let (batches, schema) = table.into_inner();
assert_eq!(batches[0].num_rows(), 1);
Expand Down
5 changes: 3 additions & 2 deletions rust/geoarrow/src/io/geozero/table/builder/properties.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use std::sync::Arc;

use arrow_array::RecordBatch;
use arrow_schema::{Field, Schema, SchemaBuilder};
use arrow_schema::{Schema, SchemaBuilder};
use chrono::{DateTime, Utc};
use geozero::{FeatureProcessor, GeomProcessor, PropertyProcessor};

Expand Down Expand Up @@ -122,8 +122,9 @@ impl PropertiesBatchBuilder {
let mut columns = Vec::with_capacity(self.columns.len());

for (name, builder) in self.columns.into_iter() {
let field = builder.field().with_name(name);
let array = builder.finish()?;
schema_builder.push(Field::new(name, array.data_type().clone(), true));
schema_builder.push(field);
columns.push(array);
}

Expand Down
2 changes: 0 additions & 2 deletions rust/geoarrow/src/io/geozero/table/builder/table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,6 @@ impl<G: GeometryArrayBuilder + GeomProcessor> GeoTableBuilder<G> {

table.append_column(geom_field, geom_col.array_refs())?;
Ok(table)
// TODO: 3d downcasting not yet supported
// table.downcast(false)
}
}

Expand Down

0 comments on commit f757075

Please sign in to comment.