You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@datafusion.apache.org by "alamb (via GitHub)" <gi...@apache.org> on 2026/08/25 20:05:18 UTC

[PR] docs: Remove stale "temporary fix" note from `get_record_batch_memory_size` [datafusion]

alamb opened a new pull request, #24674:
URL: https://github.com/apache/datafusion/pull/24674

   ## Which issue does this PR close?
   
   - N/A (minor doc fix). Follow on to #24637, addressing https://github.com/apache/datafusion/pull/24637#discussion_r3856817631
   
   ## Rationale for this change
   
   The docs for [`get_record_batch_memory_size`](https://docs.rs/datafusion/latest/datafusion/common/utils/memory/fn.get_record_batch_memory_size.html) say the function "provides temporary fix until the issue is resolved: <https://github.com/apache/arrow-rs/issues/6439>". As @nuno-faria pointed out in the review of #24637, that issue has since been closed, so the "temporary fix" framing and the issue link are stale.
   
   Note that the issue was closed in favor of the memory tracking epic <https://github.com/apache/arrow-rs/issues/8137> rather than by changing [`RecordBatch::get_array_memory_size`], which still double counts `Buffer`s shared between arrays. The double-counting comparison is therefore still accurate and useful for explaining why this function exists, so this PR keeps that sentence and only removes the stale "temporary fix" wording and the closed issue link.
   
   ## What changes are included in this PR?
   
   - Rewrite the `Note:` paragraph on `get_record_batch_memory_size` to drop the "temporary fix until the issue is resolved" wording and the link to the closed arrow-rs issue, keeping the (still true) statement that `RecordBatch::get_array_memory_size` double counts shared buffers
   - Use an intra-doc link for `RecordBatch::get_array_memory_size` (this also fixes the stray backtick on that line; #24637 fixes the same line, so whichever PR merges second will need a trivial rebase)
   
   ## Are these changes tested?
   
   Yes: `RUSTDOCFLAGS="-D warnings" cargo doc -p datafusion-common --no-deps` passes (this also verifies the intra-doc link resolves).
   
   ## Are there any user-facing changes?
   
   Documentation only.
   


-- 
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: github-unsubscribe@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org


Re: [PR] docs: Remove stale "temporary fix" note from `get_record_batch_memory_size` [datafusion]

Posted by "codecov-commenter (via GitHub)" <gi...@apache.org>.
codecov-commenter commented on PR #24674:
URL: https://github.com/apache/datafusion/pull/24674#issuecomment-5416483614

   ## [Codecov](https://app.codecov.io/gh/apache/datafusion/pull/24674?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) Report
   :white_check_mark: All modified and coverable lines are covered by tests.
   :white_check_mark: Project coverage is 81.44%. Comparing base ([`6e66a85`](https://app.codecov.io/gh/apache/datafusion/commit/6e66a853b664b231737699d6704bdf721d44e92e?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)) to head ([`fd67949`](https://app.codecov.io/gh/apache/datafusion/commit/fd6794927b15e5a8749795596d1e47205b6c71eb?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)).
   
   <details><summary>Additional details and impacted files</summary>
   
   
   
   ```diff
   @@            Coverage Diff             @@
   ##             main   #24674      +/-   ##
   ==========================================
   - Coverage   81.44%   81.44%   -0.01%     
   ==========================================
     Files        1118     1118              
     Lines      399602   399602              
     Branches   399602   399602              
   ==========================================
   - Hits       325460   325448      -12     
   - Misses      55146    55152       +6     
   - Partials    18996    19002       +6     
   ```
   </details>
   
   [:umbrella: View full report in Codecov by Harness](https://app.codecov.io/gh/apache/datafusion/pull/24674?dropdown=coverage&src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).   
   :loudspeaker: Have feedback on the report? [Share it here](https://about.codecov.io/codecov-pr-comment-feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
   <details><summary> :rocket: New features to boost your workflow: </summary>
   
   - :snowflake: [Test Analytics](https://docs.codecov.com/docs/test-analytics): Detect flaky tests, report on failures, and find test suite problems.
   - :package: [JS Bundle Analysis](https://docs.codecov.com/docs/javascript-bundle-analysis): Save yourself from yourself by tracking and limiting bundle sizes in JS merges.
   </details>


-- 
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: github-unsubscribe@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org


Re: [PR] docs: Remove stale "temporary fix" note from `get_record_batch_memory_size` [datafusion]

Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb merged PR #24674:
URL: https://github.com/apache/datafusion/pull/24674


-- 
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: github-unsubscribe@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org