Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Google Cloud Platform for Architects

You're reading from   Google Cloud Platform for Architects Design and manage powerful cloud solutions

Arrow left icon
Product type Paperback
Published in Jun 2018
Publisher Packt
ISBN-13 9781788834308
Length 372 pages
Edition 1st Edition
Arrow right icon
Authors (3):
Arrow left icon
Loonycorn Ravi Loonycorn Ravi
Author Profile Icon Loonycorn Ravi
Loonycorn Ravi
Judy Raj Judy Raj
Author Profile Icon Judy Raj
Judy Raj
Vitthal Srinivasan Vitthal Srinivasan
Author Profile Icon Vitthal Srinivasan
Vitthal Srinivasan
Arrow right icon
View More author details
Toc

Table of Contents (19) Chapters Close

Preface 1. The Case for Cloud Computing FREE CHAPTER 2. Introduction to Google Cloud Platform 3. Compute Choices – VMs and the Google Compute Engine 4. GKE, App Engine, and Cloud Functions 5. Google Cloud Storage – Fishing in a Bucket 6. Relational Databases 7. NoSQL Databases 8. BigQuery 9. Identity and Access Management 10. Managing Hadoop with Dataproc 11. Load Balancing 12. Networking in GCP 13. Logging and Monitoring 14. Infrastructure Automation 15. Security on the GCP 16. Pricing Considerations 17. Effective Use of the GCP 18. Other Books You May Enjoy

Working with BigQuery using CLI

BigQuery can also be accessed and operated using the bq command. Here are some of the operations using the bq command in Cloud Shell:

  • To view a table in your database:
bq show projectId:datasetId.tableId
  • To run a certain query:
bq query "<<<query text>>>"  
  • To create a new table:
bq mk <<<dataset name>>>
  • To list the tables:
bq ls  
  • To load the dataset along with the schema:
bq load <<<dataset_name.filename schema_text>>> 
  • For example, to load the same babynames dataset as the GUI example:
bq load babynames.names2010 yob2010.txt name:string,gender:string,count:integer
  • Finally, to remove a dataset, use:
 bq rm -r <<<datasetID>>>
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at £16.99/month. Cancel anytime