Add type to RegistrarData billing BigQuery view

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=155682529
This commit is contained in:
nickfelt 2017-05-10 15:17:19 -07:00 committed by Ben McIlwain
parent c2094eda40
commit 6b6b8d25c7

View file

@ -14,14 +14,17 @@
-- Registrar Data View SQL -- Registrar Data View SQL
-- --
-- This query lists registrar IDs with billing IDs and allowed TLDs. -- This query lists each registrar ID with type, billing ID, and allowed TLDs.
--
-- Note that there is one row per registrar (allowedTlds is repeated), versus
-- registrar_account_data_view.sql which has multiple rows per registrar.
SELECT SELECT
__key__.name AS registrarId, __key__.name AS registrarId,
type,
billingIdentifier AS billingId, billingIdentifier AS billingId,
allowedTlds allowedTlds
FROM FROM
[%SOURCE_DATASET%.Registrar] [%SOURCE_DATASET%.Registrar]
-- TODO(b/19031620): Add filter to just include registrars with type=REAL.
-- Note: We can't ORDER BY registrarId here because ORDER/GROUP BY will -- Note: We can't ORDER BY registrarId here because ORDER/GROUP BY will
-- flatten results, and the allowedTlds field above is repeated. -- flatten results, and the allowedTlds field above is repeated.
-- TODO(b/19031339): Add "ORDER BY" if the BigQuery known issue is fixed. -- TODO(b/19031339): Add "ORDER BY" if the BigQuery known issue is fixed.