Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to export more than 16000 rows in bigquery table to local machine as CSV file?

I want to export output of my select statement in Bigquery. There is "Save Results" option available but it has limit of 16,000 rows.

How can i export more than that?

like image 312
Joseph N Avatar asked Dec 31 '25 07:12

Joseph N


1 Answers

If your data has more than 16,000 rows you'd need to save the result of your query as a BigQuery Table. BigQuery options

Afterwards, export the data from the table into Google Cloud Storage using any of the available options (such as the Cloud Console, API, bq or client libraries).

Finally, you can use any of the available methods in Google Cloud Storage (Cloud Console, API, gsutil or client libraries) to download the CSV file within your local environment.

Since for the time being you can't export data from a Table directly to a local file.

like image 160
Daniel Ocando Avatar answered Jan 04 '26 21:01

Daniel Ocando



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!