mohitgurav20 commented on code in PR #25825:
URL: https://github.com/apache/datafusion/pull/25825#discussion_r4152740867
##########
datafusion/physical-plan/src/aggregates/group_values/single_group_by/primitive.rs:
##########
@@ -322,4 +322,90 @@ mod tests {
Ok(())
}
+
+ #[test]
+ fn test_exact_hash_table_allocation_accounting() -> Result<()> {
+ let mut group_values =
GroupValuesPrimitive::<Int32Type>::new(DataType::Int32);
+
+ // 1. Initial state: map is unallocated
+ assert_eq!(group_values.map.capacity(), 0);
Review Comment:
Yess sirr soon I'll fix it and ensure it passes the test
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]