
CsvToIon
Convert a CSV file into ION.
type: "io.kestra.plugin.serdes.csv.CsvToIon"Examples
Convert a CSV file to the Amazon Ion format.
id: csv_to_ion
namespace: company.team
tasks:
- id: http_download
type: io.kestra.plugin.core.http.Download
uri: https://huggingface.co/datasets/kestra/datasets/raw/main/csv/products.csv
- id: to_ion
type: io.kestra.plugin.serdes.csv.CsvToIon
from: "{{ outputs.http_download.uri }}"
Properties
from*Requiredstring
Source file URI
Pebble expression referencing an Internal Storage URI e.g. {{ outputs.mytask.uri }}.
allowExtraCharsAfterClosingQuotebooleanstring
falseAllow extra characters after a closing quote
charsetstring
UTF-8The name of a supported charset
fieldSeparatorstring
,The field separator character
headerbooleanstring
trueSpecifies if the first line should be the header
maxBufferSizeintegerstring
16777216Maximum CSV parser buffer size (bytes)
maxFieldSizeintegerstring
16777216Maximum field size (characters)
onBadLinesstring
ERRORERRORWARNSKIPHow to handle bad lines (e.g., a line with too many fields).
skipEmptyRowsbooleanstring
falseSpecifies if empty rows should be skipped
skipRowsintegerstring
0Number of lines to skip at the start of the file
textDelimiterstring
"The text delimiter character
Outputs
uristring
uriURI of a temporary result file
Metrics
recordscounter
Number of records converted