How can I create a new view in bigquery using the python API?

后端 未结 4 1181
北荒
北荒 2021-01-19 16:19

I have some code that automatically generates a bunch of different SQL queries that I would like to insert into the bigquery to generate views, though one of the issues that

4条回答
  •  无人共我
    2021-01-19 16:58

    Everything that web UI or the bq tool does is made through the BigQuery API, so don't give up yet :).

    Creating a view is akin to creating a table, just be sure to have a table resource that contains a view property when you call tables.insert().

    • https://cloud.google.com/bigquery/querying-data#views
    • https://cloud.google.com/bigquery/docs/reference/v2/tables#resource

提交回复
热议问题