Skip to content

Comments

Introduce public function id() on Field#9470

Open
Fokko wants to merge 1 commit intoapache:mainfrom
Fokko:fd-field-id
Open

Introduce public function id() on Field#9470
Fokko wants to merge 1 commit intoapache:mainfrom
Fokko:fd-field-id

Conversation

@Fokko
Copy link
Contributor

@Fokko Fokko commented Feb 23, 2026

Which issue does this PR close?

Rationale for this change

I want to discuss the following with the community. Today, arrow-rs supports Parquet field-IDs via a heuristic based on a special key (PARQUET:field_id) in the field metadata. Instead, I would suggest bumping it to a method on Field itself.

What changes are included in this PR?

Adding a public id(), and removing a private field_id(field).

Are these changes tested?

Existing tests.

Are there any user-facing changes?

A new public API.

@github-actions github-actions bot added parquet Changes to the parquet crate arrow Changes to the arrow crate labels Feb 23, 2026
Today, arrow-rs supports Parquet field-IDs via a
heuristic based on a special key (`PARQUET:field_id`)
in the field metadata. Instead, I would suggest
bumping it to a method on Field itself.
@Fokko Fokko changed the title Add id() as a public function on Field Introduce public function id() on Field Feb 23, 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 parquet Changes to the parquet crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add id() as a public function on Field

1 participant