CsvToIon CsvToIon

yaml
type: "io.kestra.plugin.serdes.csv.CsvToIon"

Read a csv file and write it to an ion serialized data file.

Examples

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 }}"

Properties

from

  • Type: string
  • Dynamic: ✔️
  • Required: ✔️

Source file URI

charset

  • Type: string
  • Dynamic:
  • Required:
  • Default: UTF-8

The name of a supported charset

errorOnDifferentFieldCount

  • Type: boolean
  • Dynamic:
  • Required:
  • Default: false

Specifies if an exception should be thrown, if CSV data contains different field count

fieldSeparator

  • Type: string
  • Dynamic:
  • Required:
  • Default: ,

The field separator character

  • Type: boolean
  • Dynamic:
  • Required:
  • Default: true

Specifies if the first line should be the header

skipEmptyRows

  • Type: boolean
  • Dynamic:
  • Required:
  • Default: false

Specifies if empty rows should be skipped

skipRows

  • Type: integer
  • Dynamic:
  • Required:
  • Default: 0

Number of lines to skip at the start of the file

textDelimiter

  • Type: string
  • Dynamic:
  • Required:
  • Default: "

The text delimiter character

Outputs

uri

  • Type: string
  • Required:
  • Format: uri

URI of a temporary result file

Definitions

Was this page helpful?