From b5cbc35a0d788b6f9cb7b70c32dd05900b35f47d Mon Sep 17 00:00:00 2001 From: Yingwen Date: Thu, 27 Nov 2025 11:49:02 +0800 Subject: [PATCH] fix: partition tree metric should the delta (#7307) Signed-off-by: evenyag --- src/mito2/src/memtable/partition_tree/dict.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mito2/src/memtable/partition_tree/dict.rs b/src/mito2/src/memtable/partition_tree/dict.rs index 62adda62bb..77cc835ea0 100644 --- a/src/mito2/src/memtable/partition_tree/dict.rs +++ b/src/mito2/src/memtable/partition_tree/dict.rs @@ -103,7 +103,7 @@ impl KeyDictBuilder { self.key_bytes_in_index += full_primary_key.len() + sparse_key_len; // Adds key size of index to the metrics. - MEMTABLE_DICT_BYTES.add(self.key_bytes_in_index as i64); + MEMTABLE_DICT_BYTES.add((full_primary_key.len() + sparse_key_len) as i64); pk_index }