Skip to content

fix(arrow/csv): preserve first row during headerless inference - #1145

Open
fallintoplace wants to merge 1 commit into
apache:mainfrom
fallintoplace:fix/csv-headerless-inference
Open

fix(arrow/csv): preserve first row during headerless inference#1145
fallintoplace wants to merge 1 commit into
apache:mainfrom
fallintoplace:fix/csv-headerless-inference

Conversation

@fallintoplace

@fallintoplace fallintoplace commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

What

When schema inference runs with WithHeader(false), the first CSV record is consumed while generating f0, f1, and so on, but it is not sent through the builders. This patch keeps that record pending and replays it through the normal reader path.

Test

  • go test ./arrow/csv -run TestInferringSchemaWithoutHeaderPreservesFirstRow -count=1

@fallintoplace
fallintoplace marked this pull request as ready for review August 8, 2026 15:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant