Skip to content

Conversation

@vidhan66
Copy link

@vidhan66 vidhan66 commented Feb 9, 2026

Closes #3767

This PR fixes data integrity issues in the CSV tool that could cause silent data loss and inconsistent parsing.

Issues Fixed

  • Empty rows (blank or whitespace-only) were sometimes treated as valid data
  • Silent column drops

    csv_write discarded fields not in the provided column list
    csv_append ignored new columns not present in the existing header

Both cases could result in undetected data loss.

Changes

  • Skip fully empty rows consistently
  • Add strict column validation:

    Error on unexpected columns in csv_write
    Error when appending rows with new columns in csv_append

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.

[Bug]: CSV tool silently drops invalid columns, miscounts rows, and inconsistently handles empty rows

1 participant