Google Sheets
Google Sheets batch source. Loads a single sheet tab or A1 range per pipeline run; snapshot-oriented and best suited for analyst-maintained reference tables.
Google Sheets is a cloud spreadsheet service. Nilus uses Google Sheets as a batch source to load a single sheet (range) at a time into a downstream warehouse, useful for analyst-maintained reference tables and ad-hoc inputs.
Under the hood, Nilus calls the Google Sheets API using a Google Cloud service account. The spreadsheet must be shared with the service account's email (...@<project>.iam.gserviceaccount.com).
Requirements
Connectivity and credentials must both be in place before the pipeline can run.
Connectivity
The Nilus runtime must be able to reach
https://sheets.googleapis.comover HTTPS.The service account email must be added as a Viewer of the spreadsheet (or higher).
The Google Cloud project must have the Google Sheets API enabled.
Required parameters
credentials_path
Yes
-
Path to the service-account JSON key file inside the runtime container. Use credentials_base64 for inline credentials.
credentials_base64
One of credentials_path or credentials_base64
-
Base64-encoded contents of the service-account JSON. Use this when projecting the credential from a secret.
spreadsheet_id
Yes
-
Google Sheets spreadsheet ID (the long alphanumeric segment of the sheet URL).
URI format
gsheets://?credentials_path=<service-account-json-path>&credentials_base64=<credentials-base64>&spreadsheet_id=<spreadsheet-id>Source table syntax
<sheet_name>
Read the entire sheet by tab name (e.g. Orders). Headers are in the first row.
<sheet_name>!<range>
Read a specific A1 range (e.g. Orders!A1:F1000).
Source options
incremental_key
Not supported
Google Sheets ingestion is snapshot-oriented; use replace unless downstream semantics require another destination strategy.
Sink options
dest_table
Yes
Destination table name. Use one stable target per source resource so re-runs merge cleanly.
incremental_strategy
Yes
Destination write behavior. Use replace for normal sheet snapshots.
Sample Nilus config
Behavior and capabilities
Pipeline type: Google Sheets runs as a
batchsource.Object selection: set
source.options.source_tableto one sheet tab or A1 range. Each pipeline reads one sheet/range at a time.Fetch semantics: Google Sheets loads the selected range as a snapshot; use
replacefor destinations unless downstream logic intentionally appends historical snapshots.Schema inference: the first row is treated as the header row, and later rows are inferred from spreadsheet cell values.
Operational fit: this connector is best for small reference tables, analyst-maintained inputs, and controlled spreadsheet ranges rather than high-volume application data.
Troubleshooting
PERMISSION_DENIED
Spreadsheet is not shared with the service account email.
Open the sheet → Share → add the service account email with Viewer access.
Sheet not found
Tab name in source_table does not match.
Verify the tab name (case-sensitive); use the exact spelling from the bottom of the sheet.
SERVICE_DISABLED
Google Sheets API not enabled in the service account's Cloud project.
Enable the API in Cloud Console → APIs & Services.
Wrong column types
First row treated as headers; subsequent rows mixed types.
Normalize the data in the sheet, or set incremental_strategy: replace and cast in downstream SQL.
Related docs
Last updated
Was this helpful?