Skip to Content
Learning Google BigQuery
book

Learning Google BigQuery

by Thirukkumaran Haridass, Eric Brown
December 2017
Beginner to intermediate
264 pages
5h 38m
English
Packt Publishing
Content preview from Learning Google BigQuery

Loading data from a file in Google Cloud Storage to a BigQuery table

The following code imports data from a file stored in Google Cloud Storage to the specified table in the specified dataset. To do the import, the service account must have the following permissions enabled under the IAM & Admin section:

  • BigQuery Data Owner
  • BigQuery Job User
  • Storage Object Viewer

The data can be loaded into the table using one of the following modes; specify it in the CreateLoadJobOptions.WriteDisposition property using the enum WriteDisposition:

  • WriteAppend: Appends the records from the file or query to the table
  • WriteTruncate: Overwrites the records in ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Google BigQuery: The Definitive Guide

Google BigQuery: The Definitive Guide

Valliappa Lakshmanan, Jordan Tigani
Google BigQuery Analytics

Google BigQuery Analytics

Siddartha Naidu, Jordan Tigani

Publisher Resources

ISBN: 9781787288591Supplemental Content