← BigQuery551 / 640
hardbq

Estimate the bytes processed by a BigQuery query without running it

command

bq query --dry_run --use_legacy_sql=false 'SELECT * FROM DATASET.TABLE'

also accepted

bq query --dry_runbq query --dry_run --use_legacy_sql=false

Command breakdown

Part of the BigQuery CLI (bq) — BigQuery category.

bqquery--dry_run--use_legacy_sql=false'SELECT*FROMDATASET.TABLE'
FlagPurpose
--dry_runBoolean flag
--use_legacy_sqlSet to: false

Test your recall — not just your reading.

Practice with interactive quiz →