SQL statements to materialize the data shown in the stats UI.
These scripts are run as BigQuery scheduled queries under the chrome-trooper-analytics
project.
./deploy.sh
This will run the script and compare the SQL locally to the SQL in GCP. If they do not match, the local version will be uploaded.
This tool was created because of a lack of other options to run these materialization scripts. Here are the alternative approaches considered and what the issues were
merge
statement.Explore some form of templating with deploy.go
(CL Discussion)