mirror of
https://github.com/google/nomulus.git
synced 2025-05-16 17:37:13 +02:00
Upgrade activity reporting queries to StandardSQL
This also brings the SQL template parameters in-line with the anticipated Bigquery dataset format, and switches from DateTime to the more appropriate LocalDate (since we only need monthly granularity). ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=162747692
This commit is contained in:
parent
8a921f08ed
commit
33eb5f1c87
14 changed files with 160 additions and 171 deletions
|
@ -26,7 +26,7 @@ SELECT
|
|||
THEN 'pre-ramp-up-registrars'
|
||||
-- The import process is imprecise; filter out invalid rows.
|
||||
ELSE 'not-applicable' END AS metricName,
|
||||
INTEGER(COUNT(registrar_id)) AS count
|
||||
COUNT(registrar_id) AS count
|
||||
FROM
|
||||
[%REGISTRAR_DATA_SET%.%REGISTRAR_STATUS_TABLE%]
|
||||
`%PROJECT_ID%.%REGISTRAR_DATA_SET%.%REGISTRAR_STATUS_TABLE%`
|
||||
GROUP BY metricName
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue