Reader small image

You're reading from  Learning Google BigQuery

Product typeBook
Published inDec 2017
Reading LevelBeginner
PublisherPackt
ISBN-139781787288591
Edition1st Edition
Languages
Right arrow
Authors (3):
Thirukkumaran Haridass
Thirukkumaran Haridass
author image
Thirukkumaran Haridass

Thirukkumaran Haridass currently works as a lead software engineer at Builder Homesite Inc. in Austin, Texas, USA. He has over 15 years of experience in the IT industry. He has been working on the Google Cloud Platform for more than 3 years. Haridass is responsible for the big data initiatives in his organization that help the company and its customers realize the value of their data. He has played various roles in the IT industry and worked for Fortune 500 companies in various verticals, such as retail, e-commerce, banking, automotive, and presently, real estate online marketing.
Read more about Thirukkumaran Haridass

Eric Brown
Eric Brown
author image
Eric Brown

Eric Brown currently works as an analytics manager for PMG advertising in Austin, Texas. Eric has over 11 years of experience in the data analytics field. He has been working on the Google Cloud Platform for over 3 years. He oversees client web analytics implementations and implements big data integrations in both Google BigQuery and Amazon Redshift. Eric has a passion for analytics, and especially for visualization and data manipulation through open source tools such as R. He has worked in various roles in various verticals, such as web analytics service providers, media companies, real-estate online marketing, and advertising.
Read more about Eric Brown

View More author details
Right arrow

Preface

Learning Google BigQuery is filled with unique and comprehensive information about Google's petabyte-scale data warehouse solution, Google BigQuery, hosted on Google Cloud Platform. This book also covers other services on Google Cloud Platform and how to integrate them with Google BigQuery.

You'll learn how to get started with Google Cloud Platform and try out various services in Google Cloud Platform. The book explains how to migrate your existing data from your enterprise to Google BigQuery, optimize your data in BigQuery, query the data here, and connect BigQuery data to various sources for reporting and visualization. You will also learn how to implement real-time streaming of data from an application running in your enterprise to BigQuery, which will help you accomplish your vision of real-time reporting.

In addition, all the code samples in this book are available in Packt's GitHub account. This book also provides tips, best practices, and mistakes to avoid when working with Google BigQuery and services that interact with it. We hope this book helps you to move your data to Google BigQuery and develop your envisioned reporting and analytics solutions to unleash the power of data. Any updates to this book will be automatically made available to you by the Packt platform.

What this book covers

Chapter 1, Google Cloud and Google BigQuery, is a hands-on demo of App Engine, Cloud SQL, BigQuery, Cloud datastore, compute engine, and Google Cloud Storage.

Chapter 2, Google Cloud SDK, covers how to install and configure the Google Cloud SDK and use various utilities provided in the SDK to interact with App Engine, Cloud SQL, BigQuery, and Google Cloud Storage.

Chapter 3, BigQuery Data Types, illustrates various data types supported in Google BigQuery and how to migrate your data to BigQuery.

Chapter 4, BigQuery SQL Basic, covers how to query the data using both legacy SQL and standard SQL, and how to merge data from various tables using queries.

Chapter 5, BigQuery SQL Advanced, shows how to use partition tables in your project and query an external data source on Google Cloud (such as Google Cloud Storage) from within BigQuery. We cover querying of wild card tables, user-defined functions, views, and using nested and repeated types in our tables to support importing JSON data.

Chapter 6, Google BigQuery API, teaches you how to use BigQuery API to create tables and datasets dynamically. You learn to load data into BigQuery and perform streaming insert of records for real-time analytics using Python and C#. Permissions, users, and roles are covered in this chapter.

Chapter 7, Visualizing BigQuery Data, shows you how to visualize your data by connecting it to various frontend tools, such as Tableau and Google Data Studio. We write custom programs in R. 

Chapter 8, Google Cloud Pub/Sub, covers the use of the Cloud Pub/Sub messaging system to log messages from various applications and its use to implement real-time reporting and analytics. This chapter also covers Cloud Dataprep, which helps prepare the data for loading into BigQuery.

What you need for this book

For this book all you would require is the Google Cloud SDK, the browser of your choice (Chrome is recommended), and an editor that supports PHP coding, and you're all set to begin. It is also recommended to learn SQL basics for writing advanced queries in Google BigQuery. This book uses Google BigQuery Public Dataset for demos.

Who this book is for

If you are a developer, data analyst, or a data scientist looking to run complex queries over thousands of records in seconds, this book will help you. No prior experience of working with BigQuery is assumed.

Conventions

In this book, you will find a number of text styles that distinguish between different kinds of information. Here are some examples of these styles and an explanation of their meaning.

Code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles are shown as follows: "If the table already exists then the bq utility will throw the error Already Exists: Table project-id:datasetname.tablename."

A block of code is set as follows:

SELECT year(pickup_datetime) as trip_year, count(1) as trip_count
FROM [nyc-tlc:yellow.trips]

When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:

{  "rule":
  [
    {
      "action": {"type": "Delete"},
      "condition": {"age": 30}
    }
  ]
}

Any command-line input or output is written as follows:

sudo apt-get install google-cloud-sdk
apt-cache showpkg google-cloud-sdk

New terms and important words are shown in bold. Words that you see on the screen, for example, in menus or dialog boxes, appear in the text like this: "Choose My Billing Account in the Project or Billing account drop-down and check the Include credit as a budget expense option".

Warnings or important notes appear like this.
Tips and tricks appear like this.

Reader feedback

Feedback from our readers is always welcome. Let us know what you think about this book-what you liked or disliked. Reader feedback is important for us as it helps us develop titles that you will really get the most out of. To send us general feedback, simply email feedback@packtpub.com, and mention the book's title in the subject of your message. If there is a topic that you have expertise in and you are interested in either writing or contributing to a book, see our author guide at www.packtpub.com/authors.

Customer support

Now that you are the proud owner of a Packt book, we have a number of things to help you to get the most from your purchase.

Downloading the example code

You can download the example code files for this book from your account at http://www.packtpub.com. If you purchased this book elsewhere, you can visit http://www.packtpub.com/support and register to have the files emailed directly to you. You can download the code files by following these steps:

  1. Log in or register to our website using your email address and password.
  2. Hover the mouse pointer on the SUPPORT tab at the top.
  3. Click on Code Downloads & Errata.
  4. Enter the name of the book in the Search box.
  5. Select the book for which you're looking to download the code files.
  6. Choose from the drop-down menu where you purchased this book from.
  7. Click on Code Download.

Once the file is downloaded, please make sure that you unzip or extract the folder using the latest version of:

  • WinRAR / 7-Zip for Windows
  • Zipeg / iZip / UnRarX for Mac
  • 7-Zip / PeaZip for Linux

The code bundle for the book is also hosted on GitHub at https://github.com/PacktPublishing/Learning-Google-BigQuery. We also have other code bundles from our rich catalog of books and videos available at https://github.com/PacktPublishing/. Check them out!

Errata

Although we have taken every care to ensure the accuracy of our content, mistakes do happen. If you find a mistake in one of our books-maybe a mistake in the text or the code-we would be grateful if you could report this to us. By doing so, you can save other readers from frustration and help us improve subsequent versions of this book. If you find any errata, please report them by visiting http://www.packtpub.com/submit-errata, selecting your book, clicking on the Errata Submission Form link, and entering the details of your errata. Once your errata are verified, your submission will be accepted and the errata will be uploaded to our website or added to any list of existing errata under the Errata section of that title. To view the previously submitted errata, go to https://www.packtpub.com/books/content/support and enter the name of the book in the search field. The required information will appear under the Errata section.

Piracy

Piracy of copyrighted material on the internet is an ongoing problem across all media. At Packt, we take the protection of our copyright and licenses very seriously. If you come across any illegal copies of our works in any form on the internet, please provide us with the location address or website name immediately so that we can pursue a remedy. Please contact us at copyright@packtpub.com with a link to the suspected pirated material. We appreciate your help in protecting our authors and our ability to bring you valuable content.

Questions

If you have a problem with any aspect of this book, you can contact us at questions@packtpub.com, and we will do our best to address the problem.

lock icon
The rest of the chapter is locked
You have been reading a chapter from
Learning Google BigQuery
Published in: Dec 2017Publisher: PacktISBN-13: 9781787288591
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.
undefined
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 $15.99/month. Cancel anytime

Authors (3)

author image
Thirukkumaran Haridass

Thirukkumaran Haridass currently works as a lead software engineer at Builder Homesite Inc. in Austin, Texas, USA. He has over 15 years of experience in the IT industry. He has been working on the Google Cloud Platform for more than 3 years. Haridass is responsible for the big data initiatives in his organization that help the company and its customers realize the value of their data. He has played various roles in the IT industry and worked for Fortune 500 companies in various verticals, such as retail, e-commerce, banking, automotive, and presently, real estate online marketing.
Read more about Thirukkumaran Haridass

author image
Eric Brown

Eric Brown currently works as an analytics manager for PMG advertising in Austin, Texas. Eric has over 11 years of experience in the data analytics field. He has been working on the Google Cloud Platform for over 3 years. He oversees client web analytics implementations and implements big data integrations in both Google BigQuery and Amazon Redshift. Eric has a passion for analytics, and especially for visualization and data manipulation through open source tools such as R. He has worked in various roles in various verticals, such as web analytics service providers, media companies, real-estate online marketing, and advertising.
Read more about Eric Brown