Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

temp delete me just to show anna #5504

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@


#fail
ASSERT(
WITH max_update AS (
SELECT
MAX(
TIMESTAMP(JSON_VALUE(payload.newsletters_v1[0].update_timestamp, '$."$time"'))
) AS latest_newsletter_updated_at
FROM
`moz-fx-data-shared-prod.braze_external.changed_newsletters_sync_v1`
)
SELECT
COUNT(1)
FROM
`moz-fx-data-shared-prod.braze_derived.newsletters_v1`,
UNNEST(newsletters) AS newsletters,
max_update
WHERE
newsletters.update_timestamp > max_update.latest_newsletter_updated_at
) > 0;

Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,6 @@ bigquery:
scheduling:
dag_name: bqetl_braze
date_partition_parameter: null
referenced_tables:
- ["moz-fx-data-shared-prod", "ctms_braze", "ctms_newsletters"]
- ["moz-fx-data-shared-prod", "braze_derived", "users_v1"]