Move apple_app_store to marketing project dir (#1570)
This commit is contained in:
Родитель
2692ebf1d7
Коммит
df0508841f
|
@ -56,16 +56,6 @@ SKIP = {
|
|||
"sql/moz-fx-data-shared-prod/regrets_reporter/regrets_reporter_update/view.sql",
|
||||
"sql/moz-fx-data-shared-prod/revenue_derived/client_ltv_v1/query.sql",
|
||||
"sql/moz-fx-data-shared-prod/shredder_state/progress/view.sql",
|
||||
"sql/moz-fx-data-shared-prod/apple_app_store/metrics_by_app_referrer/query.sql",
|
||||
"sql/moz-fx-data-shared-prod/apple_app_store/metrics_by_app_version/query.sql",
|
||||
"sql/moz-fx-data-shared-prod/apple_app_store/metrics_by_campaign/query.sql",
|
||||
"sql/moz-fx-data-shared-prod/apple_app_store/metrics_by_platform/query.sql",
|
||||
"sql/moz-fx-data-shared-prod/apple_app_store/metrics_by_platform_version/query.sql",
|
||||
"sql/moz-fx-data-shared-prod/apple_app_store/metrics_by_region/query.sql",
|
||||
"sql/moz-fx-data-shared-prod/apple_app_store/metrics_by_source/query.sql",
|
||||
"sql/moz-fx-data-shared-prod/apple_app_store/metrics_by_storefront/query.sql",
|
||||
"sql/moz-fx-data-shared-prod/apple_app_store/metrics_by_web_referrer/query.sql",
|
||||
"sql/moz-fx-data-shared-prod/apple_app_store/metrics_total/query.sql",
|
||||
"sql/moz-fx-data-shared-prod/monitoring/telemetry_distinct_docids_v1/query.sql",
|
||||
"sql/moz-fx-data-shared-prod/revenue_derived/client_ltv_normalized/query.sql",
|
||||
"sql/moz-fx-data-shared-prod/stripe_derived/customers_v1/query.sql",
|
||||
|
|
|
@ -19,7 +19,7 @@ sys.path.append(
|
|||
)
|
||||
from bigquery_etl.format_sql.formatter import reformat # noqa E402
|
||||
|
||||
SQL_DIR = "sql/moz-fx-data-shared-prod/"
|
||||
SQL_DIR = "sql/moz-fx-data-marketing-prod/"
|
||||
|
||||
QUERY_TEMPLATE = """
|
||||
SELECT
|
||||
|
@ -65,7 +65,7 @@ def parse_args():
|
|||
"--backfill",
|
||||
action="store_true",
|
||||
help="If --create-table is set, backfill will populate"
|
||||
" tables with data from eported tables",
|
||||
" tables with data from exported tables",
|
||||
)
|
||||
|
||||
return parser.parse_args()
|
||||
|
@ -135,7 +135,7 @@ def main(project, source_dataset, destination_dataset, create_table, backfill, d
|
|||
additional_fields=", ".join(additional_fields),
|
||||
first_table=qualified_table_names[0],
|
||||
joined_tables="\n".join(join_clauses),
|
||||
filter="date=@date",
|
||||
filter="date=@submission_date",
|
||||
)
|
||||
query_path = os.path.join(SQL_DIR, destination_dataset, table_name, "query.sql")
|
||||
|
||||
|
|
|
@ -44,4 +44,4 @@ FULL JOIN
|
|||
USING
|
||||
(date, app_name, app_referrer)
|
||||
WHERE
|
||||
date = @date
|
||||
date = @submission_date
|
|
@ -36,4 +36,4 @@ FULL JOIN
|
|||
USING
|
||||
(date, app_name, app_version)
|
||||
WHERE
|
||||
date = @date
|
||||
date = @submission_date
|
|
@ -44,4 +44,4 @@ FULL JOIN
|
|||
USING
|
||||
(date, app_name, campaign)
|
||||
WHERE
|
||||
date = @date
|
||||
date = @submission_date
|
|
@ -56,4 +56,4 @@ FULL JOIN
|
|||
USING
|
||||
(date, app_name, platform)
|
||||
WHERE
|
||||
date = @date
|
||||
date = @submission_date
|
|
@ -56,4 +56,4 @@ FULL JOIN
|
|||
USING
|
||||
(date, app_name, platform_version)
|
||||
WHERE
|
||||
date = @date
|
||||
date = @submission_date
|
|
@ -49,4 +49,4 @@ FULL JOIN
|
|||
USING
|
||||
(date, app_name, region)
|
||||
WHERE
|
||||
date = @date
|
||||
date = @submission_date
|
|
@ -44,4 +44,4 @@ FULL JOIN
|
|||
USING
|
||||
(date, app_name, source)
|
||||
WHERE
|
||||
date = @date
|
||||
date = @submission_date
|
|
@ -49,4 +49,4 @@ FULL JOIN
|
|||
USING
|
||||
(date, app_name, storefront)
|
||||
WHERE
|
||||
date = @date
|
||||
date = @submission_date
|
|
@ -44,4 +44,4 @@ FULL JOIN
|
|||
USING
|
||||
(date, app_name, web_referrer)
|
||||
WHERE
|
||||
date = @date
|
||||
date = @submission_date
|
|
@ -62,4 +62,4 @@ FULL JOIN
|
|||
USING
|
||||
(date, app_name)
|
||||
WHERE
|
||||
date = @date
|
||||
date = @submission_date
|
Загрузка…
Ссылка в новой задаче