Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor: more comments for RecordBatch.get_array_memory_size() #6607

Merged
merged 2 commits into from
Oct 21, 2024

Conversation

2010YOUY01
Copy link
Contributor

Which issue does this PR close?

Closes #.

Rationale for this change

If multiple columns within one RecordBatch are sharing the same buffer to store array data, get_array_memory_size() will overcount the memory usage.
I found a bug caused by misusing this function (likely the same root cause as #6363)
So add more comments for the semantics

What changes are included in this PR?

Are there any user-facing changes?

@github-actions github-actions bot added the arrow Changes to the arrow crate label Oct 21, 2024
arrow-array/src/record_batch.rs Outdated Show resolved Hide resolved
Co-authored-by: Raphael Taylor-Davies <[email protected]>
@tustvold tustvold merged commit 79ea6ad into apache:master Oct 21, 2024
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arrow Changes to the arrow crate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants