Skip to content

fix csv file reader#2248

Merged
dayesouza merged 3 commits intomainfrom
csv_reader
Feb 25, 2026
Merged

fix csv file reader#2248
dayesouza merged 3 commits intomainfrom
csv_reader

Conversation

@dayesouza
Copy link
Contributor

Fix for #2242
This pull request addresses a bug in the CSV file reader by improving how multiline fields are handled. The main change ensures that quoted CSV fields containing internal newlines are correctly preserved, and a new test verifies this behavior.

CSV reader bug fix:

  • Changed the CSV reading logic in CSVFileReader.read_file to use io.StringIO, ensuring proper handling of multiline quoted fields.

Testing improvements:

  • Added test_csv_loader_preserves_multiline_fields in test_csv_loader.py to verify that multiline quoted CSV fields retain their internal newlines.

Miscellaneous:

  • Added io import in csv.py to support the new CSV reading logic.
  • Added a patch release note describing the CSV reader fix. (.semversioner/next-release/patch-20260225001919068435.json)

@dayesouza dayesouza requested a review from a team as a code owner February 25, 2026 00:23
@dayesouza dayesouza merged commit 64c5552 into main Feb 25, 2026
18 checks passed
@dayesouza dayesouza deleted the csv_reader branch February 25, 2026 01:11
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