Skip to content

Commit

Permalink
renamed crates shenanigans
Browse files Browse the repository at this point in the history
  • Loading branch information
teh-cmc committed Jan 4, 2024
1 parent e2952d8 commit 9989efd
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crates/re_query_cache/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ default = []

[dependencies]
# Rerun dependencies:
re_arrow_store.workspace = true
re_data_store.workspace = true
re_entity_db.workspace = true
re_format.workspace = true
re_log.workspace = true
re_log_types.workspace = true
Expand Down
2 changes: 1 addition & 1 deletion crates/re_query_cache/benches/latest_at.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
use criterion::{criterion_group, criterion_main, Criterion};

use itertools::Itertools;
use re_arrow_store::{DataStore, LatestAtQuery};
use re_data_store::{DataStore, LatestAtQuery};
use re_log_types::{entity_path, DataRow, EntityPath, RowId, TimeInt, TimeType, Timeline};
use re_query_cache::query_cached_archetype_pov1_comp1;
use re_types::{
Expand Down
4 changes: 2 additions & 2 deletions crates/re_query_cache/src/cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use parking_lot::RwLock;
use paste::paste;
use seq_macro::seq;

use re_arrow_store::LatestAtQuery;
use re_data_store::LatestAtQuery;
use re_log_types::{EntityPath, RowId, StoreId, TimeInt, Timeline};
use re_query::ArchetypeView;
use re_types_core::{components::InstanceKey, Archetype, ArchetypeName, Component, ComponentName};
Expand Down Expand Up @@ -86,7 +86,7 @@ impl Caches {
/// Uniquely identifies cached query results in the [`Caches`].
#[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
pub struct CacheKey {
/// Which [`re_arrow_store::DataStore`] is the query targeting?
/// Which [`re_data_store::DataStore`] is the query targeting?
pub store_id: StoreId,

/// Which [`EntityPath`] is the query targeting?
Expand Down
4 changes: 2 additions & 2 deletions crates/re_query_cache/src/query.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
use paste::paste;
use seq_macro::seq;

use re_arrow_store::{DataStore, LatestAtQuery, TimeInt, Timeline};
use re_data_store::{ExtraQueryHistory, VisibleHistory};
use re_data_store::{DataStore, LatestAtQuery, TimeInt, Timeline};
use re_entity_db::{ExtraQueryHistory, VisibleHistory};
use re_log_types::{EntityPath, RowId};
use re_query::query_archetype;
use re_types_core::{components::InstanceKey, Archetype, Component};
Expand Down
18 changes: 9 additions & 9 deletions crates/re_query_cache/tests/latest_at.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
use itertools::Itertools as _;

use re_arrow_store::{DataStore, LatestAtQuery};
use re_data_store::{DataStore, LatestAtQuery};
use re_log_types::{build_frame_nr, DataRow, EntityPath, RowId};
use re_query_cache::query_cached_archetype_pov1_comp1;
use re_types::{
Expand Down Expand Up @@ -45,7 +45,7 @@ fn simple_query() {
store.insert_row(&row).unwrap();

// Retrieve the view
let query = re_arrow_store::LatestAtQuery::new(timepoint[0].0, timepoint[0].1);
let query = re_data_store::LatestAtQuery::new(timepoint[0].0, timepoint[0].1);
query_and_compare(&store, &query, &ent_path.into());
}

Expand Down Expand Up @@ -73,7 +73,7 @@ fn timeless_query() {
store.insert_row(&row).unwrap();

// Retrieve the view
let query = re_arrow_store::LatestAtQuery::new(timepoint[0].0, timepoint[0].1);
let query = re_data_store::LatestAtQuery::new(timepoint[0].0, timepoint[0].1);
query_and_compare(&store, &query, &ent_path.into());
}

Expand All @@ -99,7 +99,7 @@ fn no_instance_join_query() {
store.insert_row(&row).unwrap();

// Retrieve the view
let query = re_arrow_store::LatestAtQuery::new(timepoint[0].0, timepoint[0].1);
let query = re_data_store::LatestAtQuery::new(timepoint[0].0, timepoint[0].1);
query_and_compare(&store, &query, &ent_path.into());
}

Expand All @@ -120,7 +120,7 @@ fn missing_column_join_query() {
store.insert_row(&row).unwrap();

// Retrieve the view
let query = re_arrow_store::LatestAtQuery::new(timepoint[0].0, timepoint[0].1);
let query = re_data_store::LatestAtQuery::new(timepoint[0].0, timepoint[0].1);
query_and_compare(&store, &query, &ent_path.into());
}

Expand Down Expand Up @@ -154,7 +154,7 @@ fn splatted_query() {
store.insert_row(&row).unwrap();

// Retrieve the view
let query = re_arrow_store::LatestAtQuery::new(timepoint[0].0, timepoint[0].1);
let query = re_data_store::LatestAtQuery::new(timepoint[0].0, timepoint[0].1);
query_and_compare(&store, &query, &ent_path.into());
}

Expand Down Expand Up @@ -189,23 +189,23 @@ fn invalidation() {
.unwrap();
store.insert_row(&row).unwrap();

let query = re_arrow_store::LatestAtQuery::new(timepoint[0].0, timepoint[0].1);
let query = re_data_store::LatestAtQuery::new(timepoint[0].0, timepoint[0].1);
query_and_compare(&store, &query, &ent_path.into());

// Invalidate the PoV component
let positions = vec![Position2D::new(10.0, 20.0), Position2D::new(30.0, 40.0)];
let row = DataRow::from_cells1_sized(RowId::new(), ent_path, timepoint, 2, positions).unwrap();
store.insert_row(&row).unwrap();

let query = re_arrow_store::LatestAtQuery::new(timepoint[0].0, timepoint[0].1);
let query = re_data_store::LatestAtQuery::new(timepoint[0].0, timepoint[0].1);
query_and_compare(&store, &query, &ent_path.into());

// Invalidate the optional component
let colors = vec![Color::from_rgb(255, 0, 0), Color::from_rgb(0, 255, 0)];
let row = DataRow::from_cells1_sized(RowId::new(), ent_path, timepoint, 2, colors).unwrap();
store.insert_row(&row).unwrap();

let query = re_arrow_store::LatestAtQuery::new(timepoint[0].0, timepoint[0].1);
let query = re_data_store::LatestAtQuery::new(timepoint[0].0, timepoint[0].1);
query_and_compare(&store, &query, &ent_path.into());
}

Expand Down

0 comments on commit 9989efd

Please sign in to comment.