How to download all data in a Google BigQuery dataset?

后端 未结 4 907
旧时难觅i
旧时难觅i 2021-01-02 01:21

Is there an easy way to directly download all the data contained in a certain dataset on Google BigQuery? I\'m actually downloading \"as csv\", making one query after anothe

4条回答
  •  天命终不由人
    2021-01-02 02:18

    You can run BigQuery extraction jobs using the Web UI, the command line tool, or the BigQuery API. The data can be extracted

    For example, using the command line tool:

    First install and auth using these instructions: https://developers.google.com/bigquery/bq-command-line-tool-quickstart

    Then make sure you have an available Google Cloud Storage bucket (see Google Cloud Console for this purpose).

    Then, run the following command:

    bq extract my_dataset.my_table gs://mybucket/myfilename.csv
    

    More on extracting data via API here: https://developers.google.com/bigquery/exporting-data-from-bigquery

提交回复
热议问题