vertexclique commented on a change in pull request #8609:
URL: https://github.com/apache/arrow/pull/8609#discussion_r520177140
##########
File path: rust/arrow/src/array/union.rs
##########
@@ -698,7 +699,11 @@ mod tests {
4 * 8 * 4 * mem::size_of::<i32>(),
union.get_buffer_memory_size()
);
- let internals_of_union_array = (8 + 72) + (union.boxed_fields.len() *
144); // Arc<ArrayData> & Vec<ArrayRef> combined.
+ let tagged_pointer_size = POINTER_WIDTH / 4 + POINTER_WIDTH;
+ let internals_of_union_array = tagged_pointer_size
Review comment:
Please do. Calculated nestedness and pointer table from my mind. Just
tried to write a little bit more clearly which part of the pointers accounts
for which part of the arrays with this pr.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]