Skip to content

implement retain on metadata - #10695

Open
Rich-T-kid wants to merge 2 commits into
apache:mainfrom
Rich-T-kid:rich-t-kid/metadata-retain
Open

implement retain on metadata#10695
Rich-T-kid wants to merge 2 commits into
apache:mainfrom
Rich-T-kid:rich-t-kid/metadata-retain

Conversation

@Rich-T-kid

Copy link
Copy Markdown
Contributor

Which issue does this PR close?

Rationale for this change

see #10683

What changes are included in this PR?

implements retain on metadata. The underlying BTreeMap is allocation free unless the Arc pointer is shared

Are these changes tested?

yes

Are there any user-facing changes?

yes, new retain method on the metadata struct

@github-actions github-actions Bot added arrow Changes to the arrow crate arrow-schema labels Aug 15, 2026

@alamb alamb left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thank you @Rich-T-kid -- I think this is very close -- I just have one question

Comment thread arrow-schema/src/metadata.rs Outdated
Comment thread arrow-schema/src/metadata.rs
@Rich-T-kid
Rich-T-kid force-pushed the rich-t-kid/metadata-retain branch from 3459c41 to abca0cf Compare August 15, 2026 15:04
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 arrow-schema

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Metadata::retain to filter entries in place

2 participants