Skip to content

Commit

Permalink
Update references to annotation2 and hopannotation2 (#155)
Browse files Browse the repository at this point in the history
* Rename annotation2 and hopannotation2 views, tables, and references.
  • Loading branch information
stephen-soltesz authored Mar 31, 2023
1 parent 66327e9 commit 6fba71c
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 15 deletions.
4 changes: 2 additions & 2 deletions views/create_dataset_views.sh
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,11 @@ create_view ${SRC_PROJECT} ${DST_PROJECT} ndt_raw ./ndt_raw/ndt5_legacy.sql
create_view ${SRC_PROJECT} ${DST_PROJECT} ndt_raw ./ndt_raw/tcpinfo_legacy.sql
create_view ${SRC_PROJECT} ${DST_PROJECT} ndt_raw ./ndt_raw/paris1_legacy.sql
# NDT raw - NB: the raw tables are currently in mlab-oti.raw_ndt.
create_view ${SRC_PROJECT} ${DST_PROJECT} ndt_raw ./ndt_raw/annotation.sql
create_view ${SRC_PROJECT} ${DST_PROJECT} ndt_raw ./ndt_raw/annotation2.sql
create_view ${SRC_PROJECT} ${DST_PROJECT} ndt_raw ./ndt_raw/ndt5.sql
create_view ${SRC_PROJECT} ${DST_PROJECT} ndt_raw ./ndt_raw/ndt7.sql
create_view ${SRC_PROJECT} ${DST_PROJECT} ndt_raw ./ndt_raw/pcap.sql
create_view ${SRC_PROJECT} ${DST_PROJECT} ndt_raw ./ndt_raw/hopannotation1.sql
create_view ${SRC_PROJECT} ${DST_PROJECT} ndt_raw ./ndt_raw/hopannotation2.sql
create_view ${SRC_PROJECT} ${DST_PROJECT} ndt_raw ./ndt_raw/scamper1.sql
create_view ${SRC_PROJECT} ${DST_PROJECT} ndt_raw ./ndt_raw/tcpinfo.sql

Expand Down
2 changes: 1 addition & 1 deletion views/ndt/ndt5.sql
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
--
-- This view is a pass-through for annotated ndt5 data. This materializes data
-- from ndt_raw.ndt5 with ndt_raw.annotation into a single location.
-- from ndt_raw.ndt5 with ndt_raw.annotation2 into a single location.
--
SELECT * FROM `{{.ProjectID}}.ndt.ndt5`
2 changes: 1 addition & 1 deletion views/ndt/ndt7.sql
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
--
-- This view is a pass-through for annotated ndt7 data. This materializes data
-- from ndt_raw.ndt7 with ndt_raw.annotation into a single location.
-- from ndt_raw.ndt7 with ndt_raw.annotation2 into a single location.
--
SELECT * FROM `{{.ProjectID}}.ndt.ndt7`
5 changes: 1 addition & 4 deletions views/ndt/scamper1.sql
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
--
-- This view is a pass-through for annotated scamper1 data. This materializes
-- data from ndt_raw.scamper1 with ndt_raw.annotation into a single location.
--
-- This table includes server and client annotations but not hop annotations. For
-- recent hop annotations see: `ndt.scamper1_hopannotation1`.
-- data from ndt_raw.scamper1 with ndt_raw.annotation2 into a single location.
--
SELECT * FROM `{{.ProjectID}}.ndt.scamper1`
2 changes: 1 addition & 1 deletion views/ndt/tcpinfo.sql
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
--
-- This view is a pass-through for annotated tcpinfo data. This materializes data
-- from ndt_raw.tcpinfo with ndt_raw.annotation into a single location.
-- from ndt_raw.tcpinfo with ndt_raw.annotation2 into a single location.
--
SELECT * FROM `{{.ProjectID}}.ndt.tcpinfo`
3 changes: 0 additions & 3 deletions views/ndt_raw/annotation.sql

This file was deleted.

3 changes: 3 additions & 0 deletions views/ndt_raw/annotation2.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
-- This is the raw ndt annotations view.
--
SELECT * FROM `{{.ProjectID}}.raw_ndt.annotation2`
3 changes: 0 additions & 3 deletions views/ndt_raw/hopannotation1.sql

This file was deleted.

3 changes: 3 additions & 0 deletions views/ndt_raw/hopannotation2.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
-- This is the raw hopannotation2 view.
--
SELECT * FROM `{{.ProjectID}}.raw_ndt.hopannotation2`

0 comments on commit 6fba71c

Please sign in to comment.