Skip to content
This repository has been archived by the owner on Aug 25, 2023. It is now read-only.

Commit

Permalink
YACHT-1025: SLI Quality views should filter out tables skipped by big…
Browse files Browse the repository at this point in the history
… query. Adding filter for restoration project which is skipped by bbq
  • Loading branch information
radkomateusz committed Sep 28, 2018
1 parent c20ddb3 commit 9517d7e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion terraform/SLI_quality_views.tf
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ resource "google_bigquery_table" "tables_not_modified_since_3_days" {
)
WHERE
rownum=1 AND
DATEDIFF(CURRENT_TIMESTAMP(), lastModifiedTime) >= 3 AND projectId != "${var.bbq_project}"
DATEDIFF(CURRENT_TIMESTAMP(), lastModifiedTime) >= 3 AND
projectId != "${var.bbq_project}" AND
projectId != "${var.bbq_restoration_project}"
), (
SELECT projectId, datasetId, tableId, partitionId, lastModifiedTime, numBytes, numRows
FROM [${var.gcp_census_project}.bigquery_views_legacy_sql.partition_metadata_v1_0]
Expand Down

0 comments on commit 9517d7e

Please sign in to comment.