16. How about a RegExp
SELECT
SUM(requests) AS total
FROM
TABLE_QUERY(
[fh-bigquery:wikipedia],
'REGEXP_MATCH(
table_id,
r"pagecounts_2015[0-9]{2}$")')
WHERE
(REGEXP_MATCH(title, '.*[dD]inosaur.*'))
26. Reading data: Life of a BigQuery
SELECT sum(requests) as sum
FROM (
SELECT requests, title
FROM [fh-bigquery:wikipedia.
pagecounts_201501]
WHERE
(REGEXP_MATCH(title, '[Jj]en.+'))
)
27. Life of a BigQuery - Nodes
L L
MMixer
Leaf
Storage
28. L L L L
M M
M
Life of a BigQuery - Nodes
Root Mixer
Mixer
Leaf
Storage
29. Life of a BigQuery - Execution Plan
Query
L L L L
M M
MRoot Mixer
Mixer
Leaf
Storage
30. Life of a BigQueryLife of a BigQuery - Map
Root Mixer
Mixer
Leaf
Storage
SELECT requests, title
L L L L
M M
M
31. Life of a BigQueryLife of a BigQuery - Filter, Group and Count
Root Mixer
Mixer
Leaf
Storage
5.4 Bil
SELECT requests, title
WHERE
(REGEXP_MATCH(title, '[Jj]en.+'))L L L L
M M
M
32. Life of a BigQueryLife of a BigQuery - Group and Count
Root Mixer
Mixer
Leaf
Storage
5.4 Bil
SELECT sum(requests)
5.8 Mil
WHERE
(REGEXP_MATCH(title, '[Jj]en.+'))
SELECT requests, title
L L L L
M M
M
33. Life of a BigQueryLife of a BigQuery - Aggregate at the Root
Root Mixer
Mixer
Leaf
Storage
5.4 Bil
SELECT sum(requests)
5.8 Mil
WHERE
(REGEXP_MATCH(title, '[Jj]en.+'))
SELECT requests, title
SELECT sum(requests)
L L L L
M M
M