Skip to content

Commit

Permalink
Merge pull request #833 from m-lab/sandbox-cristinaleon-pcap
Browse files Browse the repository at this point in the history
Add pcap to existing bigquery exporter queries
  • Loading branch information
cristinaleonr authored Aug 3, 2021
2 parents 7a1b7a0 + 0f3a2da commit 4897ce9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
9 changes: 9 additions & 0 deletions config/federation/bigquery/bq_gardener.sql.template
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,15 @@ WITH all_types AS (
`{{PROJECT}}.raw_ndt.annotation`
WHERE date > date('2019-01-01')
UNION ALL
SELECT
"raw_ndt.pcap" AS datatype,
id,
date,
parser.Time as parseTime,
FROM
`{{PROJECT}}.raw_ndt.pcap`
WHERE date > date('2019-01-01')
UNION ALL
-- ndt.ndt7 is generated by gardener by joining the raw ndt7 and raw annotation tables.
SELECT
"ndt.ndt7" AS datatype,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,8 @@ FROM (
SELECT "ndt/annotation" AS datatype, MIN(Parser.Time) AS min_parse_time
FROM `{{PROJECT}}.raw_ndt.annotation`
WHERE date > date('2019-01-01')
UNION ALL
SELECT "ndt/pcap" AS datatype, MIN(Parser.Time) AS min_parse_time
FROM `{{PROJECT}}.raw_ndt.pcap`
WHERE date > date('2019-01-01')
)

0 comments on commit 4897ce9

Please sign in to comment.