Skip to main content

Retrieve all rows from CSV

Retrieve all rows from a provided CSV.

Application

  • CSV

Inputs (what you have)

NameDescriptionData TypeRequired?Example
CSV fileCSV file you would like to query using SQLFileYes
Columns do not have headers?If selected, the headers will be referred to as Col1, Col2, etcTrue/FalseNo
SeparatorThe character used to separate columns in the CSV. Will default to ,Text (Short)No,
Quote characterThe characters used to indicate a string in the CSV. Will default to “Text (Short)No“

Outputs (what you get)

NameDescriptionData TypeRequired?Example
Row valueThe value of the individual row in the given CSV as JSON formatted textText (Long)Yes{“Col1”:“item1”,”Col2”:”item2”,”Col3”:”item3”}
Row indexThe one-based order of the row that was retrieved from the CSV. Header is row 0 if included.NumberYes1
Total number of rowsThe total number of rows from the CSVNumberYes10

Row value types​

Each row value is JSON formatted text. Cell values are converted individually:

  • Empty cells, including quoted empty cells, become JSON null.
  • true and false become JSON booleans, regardless of letter case.
  • Integer text using digits 0–9 with leading zeroes, such as 001, 010, +001 or -010, stays text. Any surrounding whitespace is retained. This keeps identifiers such as 001 distinct from 1.
  • Other numeric text becomes a number. For example, 1 becomes 1, 0.25 becomes 0.25, and 1e2 becomes 100.0. Decimal and exponent forms, including 00.25 and 01e2, use numeric conversion.
  • Other cells remain text. Literal NA, N/A, NULL and null are text, not empty cells.

CSV quotation controls parsing; quoting a numeric cell does not force text output. The same conversion applies with or without column headers. For example, the CSV row 001,2,true, produces {"Col1":"001","Col2":2,"Col3":true,"Col4":null} when columns do not have headers.

Values such as NaN and Infinity also follow numeric conversion. Their row output contains non-standard JSON numeric tokens, so they are not preserved as literal text.

Outcomes

NameDescription
SuccessThis status is selected if the job has successfully completed.
No resultThis status is selected if the job has successfully completed but no result was produced.

Requirements

  • N/A