documents • Crash reporting for Google products • OCR results from Google Books • Spam analysis • Debugging of map tiles on Google Maps • Results of tests run on Google’s distributed build system • Disk I/O statistics for hundreds of thousands of disks • Resource monitoring for jobs run in Google’s data centers
ORDER BY count DESC Dremel Use @Google 1: Google Play How can a business analyst find Top 20 Apps in matter of seconds? Scan of ~1 Billion records Result in under 20 seconds
Use @Google 2: DoubleClick Support What is root cause why ad was or was not delivered in the last 30 days? Scan of ~1.2B records Result in under 5 seconds
avg_tip, REGEXP_EXTRACT(pickup_datetime, "2013- ([0-9]*)") month FROM [833682135931:nyctaxi.trip_fare] WHERE payment_type='CRD' GROUP BY 2 ORDER BY 1 desc Click Taxi to get to Live Demo What is the best month for getting tips as a NYC Taxi cab driver ?
to get to Live Demo What is the best month for getting tips as a NYC Taxi cab driver ? SELECT INTEGER(AVG(tip_amount)*100)/100 avg_tip, REGEXP_EXTRACT(pickup_datetime, "2013- ([0-9]*)") month FROM [833682135931:nyctaxi.trip_fare] WHERE payment_type='CRD' GROUP BY 2 ORDER BY 1 desc
to get to Live Demo What is the best month for getting tips as a NYC Taxi cab driver ? SELECT INTEGER(AVG(tip_amount)*100)/100 avg_tip, REGEXP_EXTRACT(pickup_datetime, "2013- ([0-9]*)") month FROM [833682135931:nyctaxi.trip_fare] WHERE payment_type='CRD' GROUP BY 2 ORDER BY 1 desc
FROM [githubarchive:github.timeline] where type="PushEvent" and repository_pushed_at contains "2012" Group by repository_language order by pushes desc limit 10 Click Icon to get to Live Demo How many uploads to Github by Language 2012 vs. 2015?
and and repository_pushed_at contains "2012" Group by repository_language order by pushes desc limit 10 Example: Github (290M entries) Click Icon to get to Live Demo How many uploads to Github by Language 2012 vs. 2015? 2012 2015 More examples at http://bigqueri.es/
MR stages ◦ High overall throughput ◦ High latency • BigQuery ◦ Optimized for SQL queries ◦ Very low latency and almost real-time ◦ Great for trial-and-error and ad hoc queries
parallelized & flexible data processing pipelines A fully managed service which optimizes, schedules and executes data processing pipelines Cloud Dataflow
Dataflow makes stream processing the new default. Batch available (with no code change) for when it’s appropriate (e.g. historical data reprocessing) Cloud Dataflow
• Map 340M geo coordinates to NYC neighborhoods (342 Polygons) • Used BigQuery as input and output • Dataflow optimizes code by collapsing multiple logical passes into a single execution pass • Used Dataflow with 5 workers to run the pipeline • 25K records per second Interactive map at: http://nyctaximap.appspot.com/ Blog Post: http://bit.ly/nycdataflow Problem: Mapping 340M pickup and drop off to NYC neighborhood locations by frequency.