From 0ae2e12122bf04d7939022d72494f04c4c7edcce Mon Sep 17 00:00:00 2001 From: lewiszlw Date: Fri, 3 Nov 2023 11:16:41 +0800 Subject: [PATCH] revert some changes --- src/array/geometrycollection/array.rs | 2 +- src/array/linestring/array.rs | 4 ++-- src/array/multipoint/array.rs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/array/geometrycollection/array.rs b/src/array/geometrycollection/array.rs index 1a53216c..2789bace 100644 --- a/src/array/geometrycollection/array.rs +++ b/src/array/geometrycollection/array.rs @@ -125,7 +125,7 @@ impl<'a, O: OffsetSizeTrait> GeometryArrayTrait<'a> for GeometryCollectionArray< /// This operation is `O(1)` as it amounts to increase two ref counts. /// # Examples /// ``` - /// use arrow::array::PrimitiveArray; + /// use arrow2::array::PrimitiveArray; /// /// let array = PrimitiveArray::from_vec(vec![1, 2, 3]); /// assert_eq!(format!("{:?}", array), "Int32[1, 2, 3]"); diff --git a/src/array/linestring/array.rs b/src/array/linestring/array.rs index 9e013235..b3bd13e2 100644 --- a/src/array/linestring/array.rs +++ b/src/array/linestring/array.rs @@ -130,7 +130,7 @@ impl<'a, O: OffsetSizeTrait> GeometryArrayTrait<'a> for LineStringArray { "ARROW:extension:name".to_string(), "geoarrow.linestring".to_string(), ); - Arc::new(Field::new("geometry", self.storage_type(), true).with_metadata(field_metadata)) + Arc::new(Field::new("", self.storage_type(), true).with_metadata(field_metadata)) } fn into_arrow(self) -> Self::ArrowArray { @@ -180,7 +180,7 @@ impl<'a, O: OffsetSizeTrait> GeometryArrayTrait<'a> for LineStringArray { /// This operation is `O(1)` as it amounts to increase two ref counts. /// # Examples /// ``` - /// use arrow::array::PrimitiveArray; + /// use arrow2::array::PrimitiveArray; /// /// let array = PrimitiveArray::from_vec(vec![1, 2, 3]); /// assert_eq!(format!("{:?}", array), "Int32[1, 2, 3]"); diff --git a/src/array/multipoint/array.rs b/src/array/multipoint/array.rs index 5301b064..81d860d6 100644 --- a/src/array/multipoint/array.rs +++ b/src/array/multipoint/array.rs @@ -178,7 +178,7 @@ impl<'a, O: OffsetSizeTrait> GeometryArrayTrait<'a> for MultiPointArray { /// This operation is `O(1)` as it amounts to increase two ref counts. /// # Examples /// ``` - /// use arrow::array::PrimitiveArray; + /// use arrow2::array::PrimitiveArray; /// /// let array = PrimitiveArray::from_vec(vec![1, 2, 3]); /// assert_eq!(format!("{:?}", array), "Int32[1, 2, 3]");