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

Commit

Permalink
Merge pull request #64 from ocadotechnology/YACHT-1026
Browse files Browse the repository at this point in the history
YACHT-1026: partitions that have no backups were filter out in SLI queries - fix
  • Loading branch information
radkomateusz committed Sep 17, 2018
2 parents 269d4b8 + 524e19b commit 9d117ef
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion terraform/SLI_3_days_views.tf
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ resource "google_bigquery_table" "SLI_3_days_view" {
census.datasetId=last_backups.source_dataset_id AND
census.tableId=last_backups.source_table_id
WHERE
IFNULL(census.partitionId, 'null')=IFNULL(last_backups.source_partition_id, 'null')
(last_backups.source_partition_id IS NULL OR last_backups.source_partition_id=census.partitionId)
AND projectId != "${var.bbq_project}"
AND projectId != "${var.bbq_restoration_project}"
AND partitionId != "__UNPARTITIONED__"
Expand Down
2 changes: 1 addition & 1 deletion terraform/SLI_4_days_views.tf
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ resource "google_bigquery_table" "SLI_4_days_view" {
census.datasetId=last_backups.source_dataset_id AND
census.tableId=last_backups.source_table_id
WHERE
IFNULL(census.partitionId, 'null')=IFNULL(last_backups.source_partition_id, 'null')
(last_backups.source_partition_id IS NULL OR last_backups.source_partition_id=census.partitionId)
AND projectId != "${var.bbq_project}"
AND projectId != "${var.bbq_restoration_project}"
AND partitionId != "__UNPARTITIONED__"
Expand Down
2 changes: 1 addition & 1 deletion terraform/SLI_5_days_views.tf
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ resource "google_bigquery_table" "SLI_5_days_view" {
census.datasetId=last_backups.source_dataset_id AND
census.tableId=last_backups.source_table_id
WHERE
IFNULL(census.partitionId, 'null')=IFNULL(last_backups.source_partition_id, 'null')
(last_backups.source_partition_id IS NULL OR last_backups.source_partition_id=census.partitionId)
AND projectId != "${var.bbq_project}"
AND projectId != "${var.bbq_restoration_project}"
AND partitionId != "__UNPARTITIONED__"
Expand Down
2 changes: 1 addition & 1 deletion terraform/SLI_7_days_views.tf
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ resource "google_bigquery_table" "SLI_7_days_view" {
census.datasetId=last_backups.source_dataset_id AND
census.tableId=last_backups.source_table_id
WHERE
IFNULL(census.partitionId, 'null')=IFNULL(last_backups.source_partition_id, 'null')
(last_backups.source_partition_id IS NULL OR last_backups.source_partition_id=census.partitionId)
AND projectId != "${var.bbq_project}"
AND projectId != "${var.bbq_restoration_project}"
AND partitionId != "__UNPARTITIONED__"
Expand Down

0 comments on commit 9d117ef

Please sign in to comment.