From f3697b8d85ccf3c1381d25c319c404a394def39d Mon Sep 17 00:00:00 2001 From: Jay Zhan Date: Sat, 16 Nov 2024 23:02:04 +0800 Subject: [PATCH] acc Signed-off-by: Jay Zhan --- .../src/aggregate/groups_accumulator/accumulate.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/datafusion/functions-aggregate-common/src/aggregate/groups_accumulator/accumulate.rs b/datafusion/functions-aggregate-common/src/aggregate/groups_accumulator/accumulate.rs index 07d54e2ab106..9f28101b1b79 100644 --- a/datafusion/functions-aggregate-common/src/aggregate/groups_accumulator/accumulate.rs +++ b/datafusion/functions-aggregate-common/src/aggregate/groups_accumulator/accumulate.rs @@ -426,7 +426,7 @@ pub fn accumulate_indices( }); } (Some(valids), None) => { - assert_eq!(valids.len(), group_indices.len()); + debug_assert_eq!(valids.len(), group_indices.len()); // This is based on (ahem, COPY/PASTA) arrow::compute::aggregate::sum // iterate over in chunks of 64 bits for more efficient null checking let group_indices_chunks = group_indices.chunks_exact(64); @@ -463,8 +463,8 @@ pub fn accumulate_indices( } (Some(valids), Some(filter)) => { - assert_eq!(filter.len(), group_indices.len()); - assert_eq!(valids.len(), group_indices.len()); + debug_assert_eq!(filter.len(), group_indices.len()); + debug_assert_eq!(valids.len(), group_indices.len()); let group_indices_chunks = group_indices.chunks_exact(64); let valid_bit_chunks = valids.inner().bit_chunks();