Skip to content

Commit

Permalink
simplify time_range computation
Browse files Browse the repository at this point in the history
  • Loading branch information
teh-cmc committed Oct 10, 2024
1 parent 6890ebc commit fbaabd7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions crates/store/re_dataframe/src/query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -254,10 +254,12 @@ impl QueryHandle<'_> {

// The chunks were sorted that way before, and it needs to stay that way after.
chunks.sort_by_key(|(_cursor, chunk)| {
// NOTE: The chunk has been densified already: its global time range is the same as
// the time range for the specific component of interest.
chunk
.time_range_per_component()
.timelines()
.get(&self.query.filtered_index)
.and_then(|per_component| per_component.get(&descr.component_name))
.map(|time_column| time_column.time_range())
.map_or(TimeInt::STATIC, |time_range| time_range.min())
});
}
Expand Down

0 comments on commit fbaabd7

Please sign in to comment.