Skip to content

Commit

Permalink
Add annotated throughput1 view (#176)
Browse files Browse the repository at this point in the history
* Add fields + formatting

* Add view creations to script
  • Loading branch information
robertodauria authored Feb 12, 2024
1 parent e22afce commit 7bc7ab8
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
3 changes: 3 additions & 0 deletions views/create_dataset_views.sh
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,9 @@ create_view ${SRC_PROJECT} ${DST_PROJECT} utilization ./utilization/switch.sql
# passthrough for mlab-cloudflare tables.
create_view ${SRC_PROJECT} ${DST_PROJECT} cloudflare ./cloudflare/speedtest_speed1.sql

# MSAK
create_view ${SRC_PROJECT} ${DST_PROJECT} msak ./msak/throughput1.sql

# stats-pipeline
create_view ${SRC_PROJECT} ${DST_PROJECT} statistics ./statistics/v0_global_asn.sql
create_view ${SRC_PROJECT} ${DST_PROJECT} statistics ./statistics/v0_continents.sql
Expand Down
20 changes: 20 additions & 0 deletions views/msak/throughput1.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
--
-- This view contains annotated throughput1 data. This materializes data
-- from msak_raw.throughput1 with msak_raw.annotation2 into a single location.
--
SELECT
raw.UUID as id,
t1.date as date,
STRUCT(raw.StartTime as StartTime,
raw.EndTime as EndTime,
raw.MeasurementID as MeasurementID,
raw.UUID as UUID,
raw.Direction as Direction,
raw.CCAlgorithm as CongestionControl) as a,
archiver,
server,
client,
raw
FROM
`{{.ProjectID}}.msak_raw.throughput1` t1
JOIN `{{.ProjectID}}.msak_raw.annotation2` t2 ON t1.raw.UUID = t2.id

0 comments on commit 7bc7ab8

Please sign in to comment.