kosiew commented on code in PR #27895:
URL: https://github.com/apache/datafusion/pull/27895#discussion_r4764656119
##########
datafusion/execution/src/cache/default_cache.rs:
##########
@@ -1250,7 +1250,7 @@ mod tests {
cache.put(&path_1, value_fits.clone());
assert_eq!(cache.len(), 1);
- assert_eq!(cache.memory_used(), 1514);
+ assert_eq!(cache.memory_used(), path_1.size() + value_fits.size());
Review Comment:
Could we add a separate exact-fit admission test using an independently
calculated budget from Arrow's struct estimate, Arc refcounts, and the
remaining entry size? Both sides of this assertion use the same estimator, so
duplicate accounting could go undetected.
##########
datafusion/common/src/heap_size.rs:
##########
@@ -719,16 +720,20 @@ mod tests {
Some(vec![Some(1), Some(2), Some(3)]),
Some(vec![Some(4)]),
]);
- assert_eq!(size(&array), array.get_array_memory_size());
- assert!(size(&array) > 0);
+ assert_eq!(
+ size(&array),
Review Comment:
Could we add direct coverage for ListViewArray and LargeListViewArray to
verify that both also exclude their outer array object's inline size?
--
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]