Skip to content

#127 - Demo of the error output of the CSV readers (line number and values of an invalid line) - #128

Draft
njoubert-cleverage wants to merge 1 commit into
mainfrom
127
Draft

njoubert-cleverage wants to merge 1 commit into
mainfrom
127

Conversation

@njoubert-cleverage

Copy link
Copy Markdown
Member

Description

Fixes #127, demo of cleverage/process-bundle#507 (PR cleverage/process-bundle#508, v6.0):

  • new demo.file.csv_reader.invalid_lines process: input_csv_reader with error_strategy: skip, its error branch (['csv_file' => <path>, 'csv_line' => <line number>, 'csv_values' => <values read>]) written by a csv_writer to var/csv_reader_invalid_lines_rejects.csv;
  • new sample var/data/csv_reader_invalid_lines.txt (2 invalid lines: missing and extra column). Extension .txt, so that demo.file.input_csv_reader (*.csv of var/data, recursively) does not read it.

Draft: requires cleverage/process-bundle#508, merge once released (v6.0). With the released version, input_csv_reader sends the file path to its error branch and csv_writer fails on it.

Checked with the branch of cleverage/process-bundle#508 in vendor/: rejects file var/data/csv_reader_invalid_lines.txt;3;Carrie|Stephen and ...;5;Dracula|Bram|Stoker|1897, the valid lines dumped; make tests OK (150 processes resolved).

🤖 Generated with Claude Code

…alues of an invalid line)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.

Demo of the error output of the CSV readers (line number and values of an invalid line)

1 participant