Skip to content

Commit

Permalink
fix rust indicator datatype
Browse files Browse the repository at this point in the history
  • Loading branch information
teh-cmc committed Aug 23, 2024
1 parent c24b24e commit fe9ce83
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions crates/store/re_types_core/src/archetype.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
use std::sync::Arc;

use crate::{
ComponentBatch, ComponentName, DeserializationResult, MaybeOwnedComponentBatch,
SerializationResult, _Backtrace,
Expand Down Expand Up @@ -222,11 +220,7 @@ impl<A: Archetype> crate::LoggableBatch for GenericIndicatorComponent<A> {

#[inline]
fn to_arrow(&self) -> SerializationResult<Box<dyn arrow2::array::Array>> {
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())
}
}
Expand Down Expand Up @@ -268,11 +262,7 @@ impl crate::LoggableBatch for NamedIndicatorComponent {

#[inline]
fn to_arrow(&self) -> SerializationResult<Box<dyn arrow2::array::Array>> {
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())
}
}
Expand Down

0 comments on commit fe9ce83

Please sign in to comment.