Skip to content

Commit

Permalink
paranoid android
Browse files Browse the repository at this point in the history
  • Loading branch information
teh-cmc committed Oct 12, 2024
1 parent b32e69c commit 2562d86
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion crates/store/re_dataframe/src/query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -755,7 +755,10 @@ impl QueryHandle<'_> {
pub fn num_rows(&self) -> u64 {
let num_rows = self.init().unique_index_values.len() as _;

if cfg!(debug_assertions) {
// NOTE: This is too slow to run in practice, even for debug builds.
// Do keep this around though, it does come in handy: very useful when feeling paranoid.
#[allow(clippy::overly_complex_bool_expr)]
if false && cfg!(debug_assertions) {
let expected_num_rows =
self.engine.query(self.query.clone()).into_iter().count() as u64;
assert_eq!(expected_num_rows, num_rows);
Expand Down

0 comments on commit 2562d86

Please sign in to comment.