Skip to content

fix(arrow/csv): validate custom converter row counts - #1148

Open
fallintoplace wants to merge 1 commit into
apache:mainfrom
fallintoplace:fix/csv-custom-converter-length
Open

fix(arrow/csv): validate custom converter row counts#1148
fallintoplace wants to merge 1 commit into
apache:mainfrom
fallintoplace:fix/csv-custom-converter-length

Conversation

@fallintoplace

Copy link
Copy Markdown
Contributor

What

The custom CSV writer converter is documented to return one string per array value, but the writer trusted the result. Short results silently produced empty cells and long results could panic while filling the record matrix. This returns arrow.ErrInvalid for either mismatch.

Test

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