From f5ebf44a85954c192747e5defcbc27cb5b138501 Mon Sep 17 00:00:00 2001 From: Winnie Chan <10429026+wwyc@users.noreply.github.com> Date: Wed, 21 Feb 2024 10:45:06 -0800 Subject: [PATCH] Removed bq usage cost view (#4991) --- .../monitoring/bigquery_usage_costs/view.sql | 44 ------------------- 1 file changed, 44 deletions(-) delete mode 100644 sql/moz-fx-data-shared-prod/monitoring/bigquery_usage_costs/view.sql diff --git a/sql/moz-fx-data-shared-prod/monitoring/bigquery_usage_costs/view.sql b/sql/moz-fx-data-shared-prod/monitoring/bigquery_usage_costs/view.sql deleted file mode 100644 index f8ee796177..0000000000 --- a/sql/moz-fx-data-shared-prod/monitoring/bigquery_usage_costs/view.sql +++ /dev/null @@ -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