Reputation: 317
I tried the bq
command line tool, but it there seems to be no way to write the results directly to GCS. The only way I can see is working is:
I'm looking for a way to directly write the results to GCS.
Upvotes: 2
Views: 1557
Reputation: 14791
You cannot write your query results directly to GCS. The easiest way, as you've already pointed out, is to:
You easily do this in the web UI.
You could also write a Dataflow pipeline that reads from BigQuery using BigQuery.IO.Read.fromQuery(<your_query>)
, and write the results directly to GCS.
Upvotes: 2