Task Database - BigQuery - Fill Table
The Google BigQuery - Fill table Task loads rows from CSV or JSON data into a table of a private Google BigQuery dataset, using a Google Cloud Connection. The rows are added to the table; existing rows are kept.
This Task uses a Google Cloud Connection; see Connection - Google Cloud.
When Input type is "File", Input format is "CSV" and the file does not exist, the Task loads nothing, writes "No valid rows to insert." to the output, and reports success. With "JSON", the Task fails.
With "CSV", the lines are split at the field separator before the text qualifier is considered, so a separator inside a qualified value splits the field, and the following columns shift.
When no Connection is selected or the Connection is not found, the Task writes "No Connection was selected" or "Connection not found", but with the default On error settings it reports success. To have it fail the Task, select "All errors" on the On error tab; see Task - On Error.
The Main settings, Flow, On error, Conditions and TimeOut tabs are the same for every Task; see Job - Tasks.
Google BigQuery - Fill table tab
- Connection: The Google Cloud Connection to use
Source

- Input format: "CSV" or "JSON". With "CSV", the CSV settings below are available
- Data has header row: When selected, the first line of the input holds the column names. A column is mapped when its header equals the name of the destination column; otherwise Source column position is used. When cleared, the columns are mapped by position
- Field separator: The character between the fields of a line
- Text qualifier: The character around text values. It is removed from the start and end of values for STRING columns
- Line break: The characters between the lines
- Input type: "File" to read the data from a file, or "Input string" to enter the data in String value
- File path: The full path of the input file. Used with "File". Variables can be used
- String value: The data to load. Used with "Input string". Variables can be used
When input format is JSON

The input must be a JSON array of objects. The columns are mapped by the property names of the objects.
Destination
- Project: The Google Cloud project with the target dataset
- Dataset: The dataset with the target table. Click the icon next to the list to load the datasets of the project
- Table: The table to load the rows into. Click the icon next to the list to load the tables of the dataset
Mapping
The grid maps the source columns or JSON properties to the columns of the table, with the Source Column, Position, Destination Column, Data type and Mode of each entry. Click Refresh mapping to fill the grid from the table. Use Add, Edit and Delete to change the entries. In the mapping window:
- Source column name: The name of the JSON property in the input. With CSV, it only has to be set: the CSV header must have the name of the destination column
- Source column position: The position of the column in the input, used when there is no header row
- Destination column name: The column of the table. Select it in the list of the table columns
- Data type: Read-only. The BigQuery data type of the destination column
- Column mode: Read-only. The mode of the destination column: "NULLABLE", "REQUIRED" or "REPEATED"
Output and errors
- The output of the Task is a line with the status of the insert and the number of lines processed and rows attempted
- When the input cannot be parsed, a mapping has neither a source name nor a position, or BigQuery rejects rows, the errors are written to the error output, and the Task fails