This commit is contained in:
Winnie Chan 2024-02-21 10:45:06 -08:00 коммит произвёл GitHub
Родитель cee2479a0f
Коммит f5ebf44a85
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
1 изменённых файлов: 0 добавлений и 44 удалений

Просмотреть файл

@ -1,44 +0,0 @@
CREATE OR REPLACE VIEW
`moz-fx-data-shared-prod.monitoring.bigquery_usage_costs`
AS
SELECT
creation_date,
source_project,
user_email,
username,
job_id,
destination_table_id,
SUM(total_terabytes_processed) * 4.15 AS cost_usd
FROM
(
SELECT
creation_date,
source_project,
user_email,
username,
job_id,
destination_table_id,
total_terabytes_processed
FROM
`moz-fx-data-shared-prod.monitoring.bigquery_usage`
WHERE
state = 'DONE'
AND job_type = 'QUERY'
AND reservation_id IS NULL
AND cache_hit IS FALSE
GROUP BY
creation_date,
source_project,
user_email,
username,
job_id,
destination_table_id,
total_terabytes_processed
)
GROUP BY
creation_date,
source_project,
user_email,
username,
job_id,
destination_table_id