From 9dbfab95130f55d4915a9fa3ca1744b54d6c451f Mon Sep 17 00:00:00 2001 From: Clement Rey Date: Wed, 16 Oct 2024 16:39:20 +0200 Subject: [PATCH] fix broken assertion --- crates/store/re_dataframe/src/query.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/crates/store/re_dataframe/src/query.rs b/crates/store/re_dataframe/src/query.rs index c88eee416a00..c5b7c055c3d1 100644 --- a/crates/store/re_dataframe/src/query.rs +++ b/crates/store/re_dataframe/src/query.rs @@ -612,7 +612,11 @@ impl QueryHandle<'_> { // remaining unique index values all while taking row-id ordering semantics // into account. debug_assert!( - chunk.is_sorted(), + if let Some(index) = self.query.filtered_index.as_ref() { + chunk.is_timeline_sorted(index) + } else { + chunk.is_sorted() + }, "the query cache should have already taken care of sorting (and densifying!) the chunk", );