csv:unchunk

Combines multiple CSV chunk files back into a single output file

Options

NameTypeDescription
input_files[]stringList of chunk file paths to combine
input_file_suffixstringOptional suffix appended to each input file name before processing (e.g. "_translated")
output_filestringPath for the combined output CSV file
separatorstringField separator used in all input and output files
headerboolWhen true, only the first chunk's header is written to the output
skip_first_headerboolWhen true, header mismatches across chunks are ignored instead of causing an error

Outputs

NameTypeDescription
output_filestringOutputFile path of the combined output file
files[]stringThe list of input files that were combined
recordsintTotal number of data rows written to the output

Example

name: Reassemble CSV chunks into one file
actions:
  - name: joined
    component: csv:unchunk
    vars:
      input_files:
        - part-1.csv
        - part-2.csv
      output_file: full.csv
      header: true
      skip_first_header: true

outputs:
  file: "{{ joined.output_file }}"