-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add annotated throughput1 view (#176)
* Add fields + formatting * Add view creations to script
- Loading branch information
1 parent
e22afce
commit 7bc7ab8
Showing
2 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |