Skip to Content
Google BigQuery Analytics
book

Google BigQuery Analytics

by Siddartha Naidu, Jordan Tigani
June 2014
Intermediate to advanced
528 pages
13h 54m
English
Wiley
Content preview from Google BigQuery Analytics

Chapter 9Understanding Query Execution

The SQL query language defines what data should be returned by a query, not how the results should be obtained. For the past 40 years or so, the primary engine for performing SQL queries has been the relational database. People are familiar with how a relational database works. They've developed an intuition for what will run quickly, what will be inefficient, and what kinds of things to avoid. Their intuition is based on knowledge about how a relational database will execute their queries.

Although BigQuery runs the same types of SQL queries that you can run on a relational database, it executes them in a different way. Because of this, intuition that you may have about query execution is likely to lead you astray. For example, in a relational database, there may be a performance advantage to storing some computed value so that it can be indexed. In BigQuery, because of the parallel architecture, you can do complex manipulation inline in the query without a significant change in query execution time.

This chapter describes the architecture of the underlying Dremel query engine used by BigQuery. The aim is to help you develop an intuition about how BigQuery queries will execute. It also should shine a light on some of the quirks of execution, such as why you may get a Response Too Large error even if you've specified that you want only 10 rows in the response.

There are three main sections in this chapter. The first part describes the ColumnIO ...

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.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

BigQuery for Data Warehousing: Managed Data Analysis in the Google Cloud

BigQuery for Data Warehousing: Managed Data Analysis in the Google Cloud

Mark Mucchetti
Advanced Analytics with PySpark

Advanced Analytics with PySpark

Akash Tandon, Sandy Ryza, Uri Laserson, Sean Owen, Josh Wills

Publisher Resources

ISBN: 9781118824795Purchase book