Skip to content

GCS ​

Writes files to a bucket prefix. It does not create a BigQuery table — use BigQuery when you want SQL there.

Before you begin ​

  • A bucket and prefix.
  • A service-account JSON with storage.objects.create (and list if you verify).
bash
export GOOGLE_APPLICATION_CREDENTIALS="/path/to/sa.json"

Configure ​

python
from skippr import Config, DataSinkGcs, Pipeline

cfg = Config.discover()
raw = cfg.data_sink(
    "raw",
    DataSinkGcs(
        bucket="acme-landing",
        prefix="skipprd/events",
        service_account_key_path="${GOOGLE_APPLICATION_CREDENTIALS}",
    ),
)
cfg.pipeline("events", Pipeline(data_source=cfg.get_data_source("sample"), data_sink=raw))
cfg.save()
bash
skipprd connect data-sink gcs \
  --pipeline events \
  --name raw \
  --bucket acme-landing \
  --prefix skipprd/events \
  --service-account-key-path '${GOOGLE_APPLICATION_CREDENTIALS}'
yaml
data_sinks:
  raw:
    Gcs:
      bucket: acme-landing
      prefix: skipprd/events
      service_account_key_path: ${GOOGLE_APPLICATION_CREDENTIALS}

Options ​

KeyTypeRequired/DefaultDescription
bucketstringRequiredBucket name
prefixstringRequiredObject prefix
service_account_key_pathpathNot setService-account JSON. ADC is used when unset.
formatstringNot setFor pipeline type ingest, set format on this data sink to parquet or jsonl. For pipeline type copy, set format on this data sink to jsonl, csv, or xml. If you omit format on a copy pipeline, the data sink follows the source: json → jsonl, csv → csv, xml → xml. In pipeline type copy, nested objects and arrays in CSV are written as compact JSON strings. When pipeline type is copy, the deadletter sink still writes parquet or jsonl; it does not follow a csv or xml data sink.

A retry overwrites the same object.

How data lands ​

Objects land at gs://<bucket>/<prefix>/<namespace>/….

  • <prefix> is prefix.
  • <namespace> is the source namespace (table or stream name).
  • Optional partition folders follow the namespace: p_country=GB/ from batch_partition_fields, and year=2026/month=10/day=9/ from batch_time_fields (or p_year=… when time_partition_prefix is p_).
  • The file name is the batch identity plus the format extension, for example apply-0001.jsonl. Copy Identity JSONL is gzip (apply-0001.jsonl.gz). CSV and XML copy objects stay .csv and .xml.

Troubleshooting ​

SymptomFix
403Grant object-create on the prefix
Credentials missingExport GOOGLE_APPLICATION_CREDENTIALS

Next steps ​