From fe9ce83737b205e6b476c5737bdc95f05b260b12 Mon Sep 17 00:00:00 2001 From: Clement Rey Date: Fri, 23 Aug 2024 14:45:47 +0200 Subject: [PATCH] fix rust indicator datatype --- crates/store/re_types_core/src/archetype.rs | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/crates/store/re_types_core/src/archetype.rs b/crates/store/re_types_core/src/archetype.rs index d85483e36e66..c5e9fb0b3ad4 100644 --- a/crates/store/re_types_core/src/archetype.rs +++ b/crates/store/re_types_core/src/archetype.rs @@ -1,5 +1,3 @@ -use std::sync::Arc; - use crate::{ ComponentBatch, ComponentName, DeserializationResult, MaybeOwnedComponentBatch, SerializationResult, _Backtrace, @@ -222,11 +220,7 @@ impl crate::LoggableBatch for GenericIndicatorComponent { #[inline] fn to_arrow(&self) -> SerializationResult> { - let datatype = arrow2::datatypes::DataType::Extension( - self.name().to_string(), - Arc::new(arrow2::datatypes::DataType::Null), - None, - ); + let datatype = arrow2::datatypes::DataType::Null; Ok(arrow2::array::NullArray::new(datatype, self.num_instances()).boxed()) } } @@ -268,11 +262,7 @@ impl crate::LoggableBatch for NamedIndicatorComponent { #[inline] fn to_arrow(&self) -> SerializationResult> { - let datatype = arrow2::datatypes::DataType::Extension( - self.name().to_string(), - Arc::new(arrow2::datatypes::DataType::Null), - None, - ); + let datatype = arrow2::datatypes::DataType::Null; Ok(arrow2::array::NullArray::new(datatype, self.num_instances()).boxed()) } }