33# Also creates internal views that the public views are built on.
44# This should generally be run from a travis deployment, and the
55# arguments should be derived from the deployment tag.
6- # The following standardSQL views are created in the public dataset:
6+ # The following standardSQL views are created in the rc/release dataset:
77# ndt_all - all (lightly filtered) tests, excluding EB,
88# blacklisted, short and very long tests.
99# Separate views for download and upload NDT tests:
@@ -25,13 +25,13 @@ set -u
2525# Bash Parameters #
2626# ##########################################################################
2727
28- USAGE=" $0 <project> <internal -dataset> <public -dataset> <alias,alias,...>"
28+ USAGE=" $0 <project> <intermediate -dataset> <rc -dataset> <alias,alias,...>"
2929PROJECT=${1:? Please provide the google cloud project: $USAGE }
3030INTERMEDIATE=${PROJECT} :${2:? Please specify the internal dataset e.g. intermediate_v3_1_1: $USAGE }
31- PUBLIC=${PROJECT} :${3:? Please specify the public dataset e.g. rc_v3_1: $USAGE }
31+ PUBLIC=${PROJECT} :${3:? Please specify the release candidate dataset e.g. rc_v3_1: $USAGE }
3232ALIASES=${4:? Please specify a single alias, or quoted space separated list of aliases \{ rc|\" rc release\" |none\} : $USAGE }
3333
34- # TODO - check that public and internal aren't swapped?
34+ # TODO - check that public and intermediate aren't swapped?
3535# TODO - check that project is valid?
3636
3737
@@ -148,17 +148,17 @@ for ALIAS in $ALIASES; do
148148 if [ " ${ALIAS} " != " none" ]; then
149149 echo " Linking ${PROJECT} :${ALIAS} alias"
150150
151- create_view ${ALIAS} ndt_all \
151+ create_view ${PROJECT} : ${ ALIAS} ndt_all \
152152 ' View across the all NDT data except EB and blacklisted' \
153153 ' #standardSQL
154154 SELECT * FROM `' ${INTERMEDIATE/:/ .} ' .ndt_all`'
155155
156- create_view ${ALIAS} ndt_downloads \
156+ create_view ${PROJECT} : ${ ALIAS} ndt_downloads \
157157 ' All good quality download tests' \
158158 ' #standardSQL
159159 SELECT * FROM `' ${INTERMEDIATE/:/ .} ' .ndt_downloads`'
160160
161- create_view ${ALIAS} ndt_uploads \
161+ create_view ${PROJECT} : ${ ALIAS} ndt_uploads \
162162 ' All good quality upload tests' \
163163 ' #standardSQL
164164 SELECT * FROM `' ${INTERMEDIATE/:/ .} ' .ndt_uploads`'
0 commit comments