Skip to content

Commit

Permalink
fix my own comments
Browse files Browse the repository at this point in the history
  • Loading branch information
teh-cmc committed Dec 2, 2023
1 parent 0e0fca4 commit 2fc3627
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions crates/re_arrow_store/src/store_gc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -620,8 +620,9 @@ impl IndexedBucketInner {
dropped_num_bytes += removed_row_id.total_size_bytes();

// col_time
let row_time = col_time.swap_remove(row_index).unwrap();
dropped_num_bytes += row_time.total_size_bytes();
if let Some(row_time) = col_time.swap_remove(row_index) {
dropped_num_bytes += row_time.total_size_bytes();
}

// col_insert_id (if present)
if !col_insert_id.is_empty() {
Expand Down
2 changes: 1 addition & 1 deletion crates/re_log_types/src/data_table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,7 @@ impl DataTable {
timeline: Timeline,
times: &TimeOptVec,
) -> (Field, Box<dyn Array>) {
let data = DataTable::serialize_primitive_deque_opt(times);
let data = DataTable::serialize_primitive_deque_opt(times).to(timeline.datatype());

let field = Field::new(timeline.name().as_str(), data.data_type().clone(), false)
.with_metadata([(METADATA_KIND.to_owned(), METADATA_KIND_TIME.to_owned())].into());
Expand Down
1 change: 1 addition & 0 deletions crates/re_sdk/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ webbrowser = { workspace = true, optional = true }

[dev-dependencies]
re_arrow_store.workspace = true
re_log_types = { workspace = true, features = ["testing"] }

itertools.workspace = true
ndarray-rand.workspace = true
Expand Down

0 comments on commit 2fc3627

Please sign in to comment.