Replace literal 'latest_snapshot' in invoice SQL query

This should be %SOURCE_DATASET% so that it's adjusted appropriately based on the parameter value.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=155582718
This commit is contained in:
nickfelt 2017-05-09 18:53:08 -07:00 committed by Ben McIlwain
parent 70e3271319
commit 2b78571c72

View file

@ -34,7 +34,7 @@ FROM (
billingAccountMap.accountId, billingAccountMap.accountId,
ROW_NUMBER() OVER (PARTITION BY registrarId) AS pos ROW_NUMBER() OVER (PARTITION BY registrarId) AS pos
FROM FROM
FLATTEN([latest_snapshot.Registrar], billingAccountMap.accountId)) AS I FLATTEN([%SOURCE_DATASET%.Registrar], billingAccountMap.accountId)) AS I
JOIN ( JOIN (
SELECT SELECT
__key__.name AS registrarId, __key__.name AS registrarId,