Skip to content

Commit 7fbd6bb

Browse files
authored
Merge branch 'main' into query-schema-generation-dryrun-caching
2 parents 163789c + 683f17a commit 7fbd6bb

File tree

24 files changed

+22
-171
lines changed

24 files changed

+22
-171
lines changed

bigquery_etl/format_sql/format.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import os
55
import os.path
66
import sys
7-
from functools import partial
7+
from functools import cache, partial
88
from multiprocessing.pool import Pool
99
from pathlib import Path
1010
from typing import Tuple
@@ -16,6 +16,7 @@
1616
from bigquery_etl.util.common import qualify_table_references_in_file
1717

1818

19+
@cache
1920
def skip_format():
2021
"""Return a list of configured queries for which formatting should be skipped."""
2122
return [
@@ -25,6 +26,7 @@ def skip_format():
2526
]
2627

2728

29+
@cache
2830
def skip_qualifying_references():
2931
"""Return a list of configured queries where fully qualifying references should be skipped."""
3032
return [

sql/moz-fx-data-shared-prod/monitoring_derived/shredder_targets_new_mismatched_v1/query.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ WITH unmatching_sources AS (
44
FROM
55
`moz-fx-data-shared-prod.monitoring_derived.shredder_targets_joined_v1`
66
WHERE
7-
matching_sources IS FALSE
7+
(matching_sources IS FALSE AND ARRAY_LENGTH(detected_sources) > 0)
88
OR ARRAY_LENGTH(current_sources) = 0
99
),
1010
previous_config AS (

sql/moz-fx-data-shared-prod/monitoring_derived/shredder_targets_v1/metadata.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ labels:
1010
scheduling:
1111
dag_name: bqetl_shredder_monitoring
1212
arguments: ["--output-table", "moz-fx-data-shared-prod.monitoring_derived.shredder_targets_v1", "--run-date", "{{ ds }}"]
13+
# downstream alert job uses previous date to determine new table
14+
depends_on_past: true
1315
bigquery:
1416
time_partitioning:
1517
type: day

sql/moz-fx-data-shared-prod/monitoring_derived/shredder_targets_v1/query.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@
6969
AND table_schema != "backfills_staging_derived"
7070
AND table_name != 'deletion_request_v1'
7171
AND table_name != 'deletion_request_v4'
72+
-- ignore recently created tables that may not have lineage populated yet
73+
AND DATE(creation_time) < DATE_SUB('2025-11-24', INTERVAL 1 DAY)
7274
"""
7375

7476

sql/moz-fx-data-shared-prod/mozilla_org/desktop_conversion_events/metadata.yaml

Lines changed: 0 additions & 10 deletions
This file was deleted.

sql/moz-fx-data-shared-prod/mozilla_org/desktop_conversion_events/schema.yaml

Lines changed: 0 additions & 13 deletions
This file was deleted.

sql/moz-fx-data-shared-prod/mozilla_org/desktop_conversion_events/view.sql

Lines changed: 0 additions & 41 deletions
This file was deleted.

sql/moz-fx-data-shared-prod/mozilla_org_derived/blogs_sessions_v1/metadata.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ labels:
88
schedule: daily
99
dag: bqetl_google_analytics_derived
1010
owner1: ascholtz
11-
#scheduling:
11+
# scheduling:
1212
# dag_name: bqetl_google_analytics_derived
1313
bigquery:
1414
time_partitioning:

sql/moz-fx-data-shared-prod/mozilla_org_derived/downloads_with_attribution_v1/metadata.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ labels:
3232
incremental: true
3333
schedule: daily
3434
owner1: gleonard
35-
#scheduling:
35+
# scheduling:
3636
# dag_name: bqetl_google_analytics_derived
3737
bigquery:
3838
time_partitioning:

sql/moz-fx-data-shared-prod/mozilla_org_derived/ga_clients_v1/metadata.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: |-
55
owners:
66
77
scheduling:
8-
#dag_name: bqetl_mozilla_org_derived - GA3 feed turned off 2024-06-30 so no need to run anymore
8+
# dag_name: bqetl_mozilla_org_derived - GA3 feed turned off 2024-06-30 so no need to run anymore
99
depends_on_past: true
1010
date_partition_parameter: null
1111
parameters: ["session_date:DATE:{{ds}}"]

0 commit comments

Comments
 (0)