I would like to download an existing Big Query table as JSON for manipulating the one of column which has long string.
Big Query table has been ingested with Datastore backup file from App Engine to GCS. I used Big Query to read Datastore backup file from GCS and created a table out of it, which has resulted a repeated string column as very long string.
I couldn't parse the long string, so that I would need to download the table as JSON and re up to Big Query as new table. I would need an advice for this approach
There are 3 ways to export your data:
['gs://my-bucket/file-name.json']
Creates:
gs://my-bucket/file-name.json
['gs://my-bucket/file-name-*.json']
Creates:
gs://my-bucket/file-name-000000000000.json
gs://my-bucket/file-name-000000000001.json
gs://my-bucket/file-name-000000000002.json ...
gs://my-bucket/file-name-{worker number}-*.json
Creates:
This example assumes that BigQuery creates 80 sharded files in each partition.
gs://my-bucket/file-name-1-000000000000.json
gs://my-bucket/file-name-1-000000000001.json
...
gs://my-bucket/file-name-1-000000000080.json
gs://my-bucket/file-name-2-000000000000.json
gs://my-bucket/file-name-2-000000000001.json
...
gs://my-bucket/file-name-2-000000000080.json
gs://my-bucket/file-name-3-000000000000.json
gs://my-bucket/file-name-3-000000000001.json
...
gs://my-bucket/file-name-3-000000000080.json
Read more at:
https://cloud.google.com/bigquery/exporting-data-from-bigquery
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.