CsvToIon
Read a csv file and write it to an ion serialized data file.
yaml
type: "io.kestra.plugin.serdes.csv.CsvToIon"
Convert a CSV file to the Amazon Ion format.
yaml
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 }}"
Dynamic
YES
Source file URI
Dynamic
YES
Default
UTF-8
The name of a supported charset
Dynamic
YES
Default
false
Specifies if an exception should be thrown, if CSV data contains different field count
Dynamic
YES
Default
,
The field separator character
Dynamic
YES
Default
true
Specifies if the first line should be the header
Dynamic
YES
Default
false
Specifies if empty rows should be skipped
Dynamic
YES
Default
0
Number of lines to skip at the start of the file
Dynamic
YES
Default
"
The text delimiter character
Format
uri
URI of a temporary result file