Fix getRetainedSizeInBytes for DecodedBlockNode
The DecodedBlockNode#getRetainedSizeInBytes() used to add up the current
node and all of its childrens' sizes. But the decodedBlock in current
node already covers all children's decodedBlocks. This commit removes
the double counting by removing the children's retained sizes from the
sum.
@@ -74,9 +74,6 @@ class DecodedBlockNode
size += ((ColumnarRow) decodedBlock).getRetainedSizeInBytes();
}
- for (DecodedBlockNode child : children) {
- size += child.getRetainedSizeInBytes();
- }
return size;
}
