From 244ced0d5bcb95587c833ce34737574911ce3e05 Mon Sep 17 00:00:00 2001 From: kamille Date: Fri, 30 Aug 2024 22:28:05 +0800 Subject: [PATCH] test. --- .../src/aggregate/groups_accumulator.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/datafusion/functions-aggregate-common/src/aggregate/groups_accumulator.rs b/datafusion/functions-aggregate-common/src/aggregate/groups_accumulator.rs index 5218ebacc4fb2..eb13a75676e21 100644 --- a/datafusion/functions-aggregate-common/src/aggregate/groups_accumulator.rs +++ b/datafusion/functions-aggregate-common/src/aggregate/groups_accumulator.rs @@ -503,14 +503,15 @@ impl BlockedGroupIndexBuilder { } } + #[inline] pub fn build(&self, packed_index: usize) -> BlockedGroupIndex { let packed_index = packed_index as u64; - let block_id = ((packed_index & self.block_id_mask) >> 32) as u32; - let block_offset = packed_index & self.block_offset_mask; + // let block_id = ((packed_index & self.block_id_mask) >> 32) as u32; + // let block_offset = packed_index & self.block_offset_mask; BlockedGroupIndex { - block_id, - block_offset, + block_id: 0, + block_offset: packed_index, } } }