Skip to content

Improve documentation on ArrayData::offset#7385

Merged
alamb merged 2 commits intoapache:mainfrom
alamb:alamb/offset_clarification
Apr 6, 2025
Merged

Improve documentation on ArrayData::offset#7385
alamb merged 2 commits intoapache:mainfrom
alamb:alamb/offset_clarification

Conversation

@alamb
Copy link
Copy Markdown
Contributor

@alamb alamb commented Apr 3, 2025

Which issue does this PR close?

Rationale for this change

While reviewing #7366 from @westonpace I found myself confused about what offset applied to (specifically did it apply to the NullBuffer too) that @westonpace sorted me out: https://github.com/apache/arrow-rs/pull/7366/files#r2026930221

However, I would like to be able to more easily find this information in the future

What changes are included in this PR?

Add additional documentation about what ArrayData::offset does and does not apply to

Are there any user-facing changes?

Just docs, no functional changes

Lots of documentation recently 🤔

@github-actions github-actions Bot added the arrow Changes to the arrow crate label Apr 3, 2025
@alamb alamb added the documentation Improvements or additions to documentation label Apr 3, 2025
Copy link
Copy Markdown
Member

@westonpace westonpace left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor suggestions but this is overall an improvement.

Comment thread arrow-data/src/data.rs Outdated
Comment thread arrow-data/src/data.rs
Co-authored-by: Weston Pace <weston.pace@gmail.com>
@alamb
Copy link
Copy Markdown
Contributor Author

alamb commented Apr 6, 2025

Thank you @westonpace

@alamb alamb merged commit 56e8208 into apache:main Apr 6, 2025
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 documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants