Skip to content

Reject short CSV rows - #356

Open
Bolt4243 wants to merge 2 commits into
DATA-DOG:masterfrom
Bolt4243:fix_csv_row_cardinality
Open

Reject short CSV rows#356
Bolt4243 wants to merge 2 commits into
DATA-DOG:masterfrom
Bolt4243:fix_csv_row_cardinality

Conversation

@Bolt4243

@Bolt4243 Bolt4243 commented Sep 9, 2026

Copy link
Copy Markdown

Rows.FromCSVString says each record must match the configured columns, but a short record was silently padded with nil. For example, INV-2026-0908,paid became a three-column row with a missing created_at value.

Check the field count before converting the row, matching AddRow behavior. The focused offline Go test fails on the base commit and passes with this change. The full package test suite was not run.

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.

2 participants