Skip to content

Commit

Permalink
Less use of lookup_datatype_arrow2
Browse files Browse the repository at this point in the history
  • Loading branch information
emilk committed Jan 6, 2025
1 parent dff0ad4 commit bc82d0e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/viewer/re_viewer/src/blueprint/validation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ use re_types_core::Component;

pub(crate) fn validate_component<C: Component>(blueprint: &EntityDb) -> bool {
let engine = blueprint.storage_engine();
if let Some(data_type) = engine.store().lookup_datatype_arrow2(&C::name()) {
if data_type != &C::arrow2_datatype() {
if let Some(data_type) = engine.store().lookup_datatype(&C::name()) {
if data_type != C::arrow_datatype() {
// If the schemas don't match, we definitely have a problem
re_log::debug!(
"Unexpected datatype for component {:?}.\nFound: {:#?}\nExpected: {:#?}",
Expand Down

0 comments on commit bc82d0e

Please sign in to comment.