Skip to content

fix(arrow/csv): append null for later parse failures - #1149

Open
fallintoplace wants to merge 1 commit into
apache:mainfrom
fallintoplace:fix/csv-parse-null-after-error
Open

fix(arrow/csv): append null for later parse failures#1149
fallintoplace wants to merge 1 commit into
apache:mainfrom
fallintoplace:fix/csv-parse-null-after-error

Conversation

@fallintoplace

Copy link
Copy Markdown
Contributor

What

CSV scalar parsers already append a null when their own parse fails, but several only did so while the reader had no earlier error. A malformed value in a later column could therefore append the parser zero value after another column failed. This keeps the first error and appends null for every failed scalar conversion.

Test

  • go test ./arrow/csv -run TestCSVReaderAppendsNullAfterPreviousParseError -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