Skip to content

feat(arrow_csv): add header validation option#10144

Open
XiNiHa wants to merge 1 commit into
apache:mainfrom
XiNiHa:feat/csv-header-schema
Open

feat(arrow_csv): add header validation option#10144
XiNiHa wants to merge 1 commit into
apache:mainfrom
XiNiHa:feat/csv-header-schema

Conversation

@XiNiHa

@XiNiHa XiNiHa commented Jun 15, 2026

Copy link
Copy Markdown

Which issue does this PR close?

Rationale for this change

Explained in the issue.

What changes are included in this PR?

  • Adds a new ReaderBuilder and Format method .with_header_validation(bool) to enable CSV header validation
  • Implements header row validation, which verifies each value in the first CSV row against the schema to ensure the field names match the header columns.

Are these changes tested?

Corresponding tests added.

Are there any user-facing changes?

The ReaderBuilder struct gets a new method added, .with_header_validation(bool).

There is no breaking change, since the validation behavior is disabled by default.

@github-actions github-actions Bot added the arrow Changes to the arrow crate label Jun 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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support validating CSV headers against Schema

1 participant