diff --git a/sql/moz-fx-data-marketing-prod/ga_derived/blogs_goals_v2/checks.sql b/sql/moz-fx-data-marketing-prod/ga_derived/blogs_goals_v2/checks.sql new file mode 100644 index 0000000000..3de02ba2dd --- /dev/null +++ b/sql/moz-fx-data-marketing-prod/ga_derived/blogs_goals_v2/checks.sql @@ -0,0 +1,5 @@ +#fail +{{ is_unique(["date", "visit_identifier"], "date = @submission_date") }} + +#warn +{{ matches_pattern(column="visit_identifier", pattern="^[0-9]+\\.{1}[0-9]+\\-{1}[0-9]+$", where="date = @submission_date", threshold_fail_percentage=0, message="Warn - some visit_identifier not matching expected pattern") }} diff --git a/sql/moz-fx-data-marketing-prod/ga_derived/blogs_sessions_v2/checks.sql b/sql/moz-fx-data-marketing-prod/ga_derived/blogs_sessions_v2/checks.sql new file mode 100644 index 0000000000..4cc42f3e28 --- /dev/null +++ b/sql/moz-fx-data-marketing-prod/ga_derived/blogs_sessions_v2/checks.sql @@ -0,0 +1,2 @@ +#warn +{{ matches_pattern(column="visit_identifier", pattern="^[0-9]+\\.{1}[0-9]+\\-{1}[0-9]+$", where="date = @submission_date", threshold_fail_percentage=0, message="Warn - some visit_identifier not matching expected pattern") }} diff --git a/sql/moz-fx-data-marketing-prod/ga_derived/www_site_hits_v2/checks.sql b/sql/moz-fx-data-marketing-prod/ga_derived/www_site_hits_v2/checks.sql new file mode 100644 index 0000000000..4cc42f3e28 --- /dev/null +++ b/sql/moz-fx-data-marketing-prod/ga_derived/www_site_hits_v2/checks.sql @@ -0,0 +1,2 @@ +#warn +{{ matches_pattern(column="visit_identifier", pattern="^[0-9]+\\.{1}[0-9]+\\-{1}[0-9]+$", where="date = @submission_date", threshold_fail_percentage=0, message="Warn - some visit_identifier not matching expected pattern") }} diff --git a/sql/moz-fx-data-shared-prod/mozilla_org_derived/ga_sessions_v2/checks.sql b/sql/moz-fx-data-shared-prod/mozilla_org_derived/ga_sessions_v2/checks.sql new file mode 100644 index 0000000000..417596d5c2 --- /dev/null +++ b/sql/moz-fx-data-shared-prod/mozilla_org_derived/ga_sessions_v2/checks.sql @@ -0,0 +1,5 @@ +#fail +{{ is_unique(["ga_client_id", "ga_session_id"]) }} + +#fail +{{ not_null(["session_date", "ga_client_id", "ga_session_id"])}}