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

Commit

Permalink
YACHT-1001: Removed redundant comment in query
Browse files Browse the repository at this point in the history
  • Loading branch information
przemyslaw-jasinski committed Sep 13, 2018
1 parent f3c467a commit 9a5a06e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions terraform/SLI_quality_views.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ resource "google_bigquery_table" "tables_not_modified_since_3_days" {
view {
query = <<EOF
#legacySQL
-- Shows all tables modified more than 3 days ago
SELECT projectId, datasetId, tableId, partitionId, lastModifiedTime, numBytes, numRows FROM (
SELECT * FROM (
SELECT
Expand All @@ -16,7 +15,7 @@ resource "google_bigquery_table" "tables_not_modified_since_3_days" {
WHERE
_PARTITIONTIME BETWEEN TIMESTAMP(UTC_USEC_TO_DAY(NOW() - 3 * 24 * 60 * 60 * 1000000)) AND TIMESTAMP(UTC_USEC_TO_DAY(CURRENT_TIMESTAMP()))
AND timePartitioning.type IS NULL AND type='TABLE'
),
)
WHERE
rownum=1 AND
DATEDIFF(CURRENT_TIMESTAMP(), lastModifiedTime) >= 3 AND projectId != "${var.bbq_project}"
Expand Down

0 comments on commit 9a5a06e

Please sign in to comment.