Skip to content

Add Metadata Arc helper methods - #10693

Open
Rich-T-kid wants to merge 1 commit into
apache:mainfrom
Rich-T-kid:rich-t-kid/metadata-expose-arc
Open

Add Metadata Arc helper methods#10693
Rich-T-kid wants to merge 1 commit into
apache:mainfrom
Rich-T-kid:rich-t-kid/metadata-expose-arc

Conversation

@Rich-T-kid

Copy link
Copy Markdown
Contributor

Which issue does this PR close?

Rationale for this change

see #10684

What changes are included in this PR?

two new method

  • as_arc(&self) : Option<&Arc<BTreeMap<String, String>>> returns a reference to the inner Arc (or None for empty).
  • into_arc(self) :Option<Arc<BTreeMap<String, String>>> consumes self and hands back the Arc directly, enabling zero-copy conversions

Are these changes tested?

yes

Are there any user-facing changes?

yes, new public methods as_arc & into_arc on Metadata.

@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

Any concerns about this one @emilk ?

@alamb alamb changed the title support metadata arc helper methods Add Metadata Arc helper methods Aug 15, 2026
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.

Expose Metadata's inner Arc (e.g. as_arc / into_arc)

2 participants