Retrieve all rows from CSV
Retrieve all rows from a provided CSV.
Application
- CSV
Inputs (what you have)
| Name | Description | Data Type | Required? | Example |
|---|---|---|---|---|
| CSV file | CSV file you would like to query using SQL | File | Yes | |
| Columns do not have headers? | If selected, the headers will be referred to as Col1, Col2, etc | True/False | No | |
| Separator | The character used to separate columns in the CSV. Will default to , | Text (Short) | No | , |
| Quote character | The characters used to indicate a string in the CSV. Will default to “ | Text (Short) | No | “ |
Outputs (what you get)
| Name | Description | Data Type | Required? | Example |
|---|---|---|---|---|
| Row value | The value of the individual row in the given CSV as JSON formatted text | Text (Long) | Yes | {“Col1”:“item1”,”Col2”:”item2”,”Col3”:”item3”} |
| Row index | The one-based order of the row that was retrieved from the CSV. Header is row 0 if included. | Number | Yes | 1 |
| Total number of rows | The total number of rows from the CSV | Number | Yes | 10 |
Row value types
Each row value is JSON formatted text. Cell values are converted individually:
- Empty cells, including quoted empty cells, become JSON
null. trueandfalsebecome JSON booleans, regardless of letter case.- Integer text using digits
0–9with leading zeroes, such as001,010,+001or-010, stays text. Any surrounding whitespace is retained. This keeps identifiers such as001distinct from1. - Other numeric text becomes a number. For example,
1becomes1,0.25becomes0.25, and1e2becomes100.0. Decimal and exponent forms, including00.25and01e2, use numeric conversion. - Other cells remain text. Literal
NA,N/A,NULLandnullare 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
| Name | Description |
|---|---|
| Success | This status is selected if the job has successfully completed. |
| No result | This status is selected if the job has successfully completed but no result was produced. |
Requirements
- N/A