hardbq
Export a BigQuery table to compressed CSV files in Cloud Storage
command
bq extract --compression=GZIP --destination_format=CSV DATASET.TABLE gs://BUCKET/export_*.csv.gzalso accepted
bq extract --compressionbq extract --compression=GZIPcommand
bq extract --compression=GZIP --destination_format=CSV DATASET.TABLE gs://BUCKET/export_*.csv.gzalso accepted
bq extract --compressionbq extract --compression=GZIPPart of the BigQuery CLI (bq) — BigQuery category.
| Flag | Purpose |
|---|---|
--compression | Set to: GZIP |
--destination_format | Set to: CSV |
Test your recall — not just your reading.
Practice with interactive quiz →