Replace the `mozilla_vpn_derived.vat_rates_v1` ETL with a CSV file (bug 1878898) (#4976)

* Replace the `mozilla_vpn_derived.vat_rates_v1` ETL with a CSV file containing the same data.

The source Google Sheet for the `mozilla_vpn_derived.vat_rates_v1` ETL has apparently been deleted (bug 1878898).

* Add missing VAT rates for one VPN wave 3 country.

* Add missing VAT rates for seven VPN wave 6 countries.
This commit is contained in:
Sean Rose 2024-02-07 09:48:31 -08:00 коммит произвёл GitHub
Родитель 07b748849d
Коммит df98c38e6c
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
5 изменённых файлов: 71 добавлений и 8 удалений

Просмотреть файл

@ -4,4 +4,4 @@ AS
SELECT
*
FROM
`moz-fx-data-shared-prod`.mozilla_vpn_derived.vat_rates_v1
`moz-fx-data-shared-prod`.mozilla_vpn_derived.vat_rates_v2

Просмотреть файл

@ -6,10 +6,11 @@ owners:
- srose@mozilla.com
labels:
schedule: daily
scheduling:
dag_name: bqetl_subplat
retry_delay: 5m
gke_cluster_name: workloads-prod-v1
gke_location: us-west1
gcp_conn_id: google_cloud_airflow_gke
gke_project_id: moz-fx-data-airflow-gke-prod
# Descheduled because the source Google Sheet has apparently been deleted (bug 1878898).
#scheduling:
# dag_name: bqetl_subplat
# retry_delay: 5m
# gke_cluster_name: workloads-prod-v1
# gke_location: us-west1
# gcp_conn_id: google_cloud_airflow_gke
# gke_project_id: moz-fx-data-airflow-gke-prod

Просмотреть файл

@ -0,0 +1,35 @@
country_code,country,vat,effective_date
AT,Austria,0.2,2021-01-01
BE,Belgium,0.21,2021-01-01
BG,Bulgaria,0.2,2022-05-10
CA,Canada,0.1,2021-01-01
CH,Switzerland,0.077,2021-01-01
CY,Cyprus,0.19,2022-05-10
CZ,Czech Republic,0.21,2022-05-10
DE,Germany,0.19,2021-01-01
DK,Denmark,0.25,2022-05-10
EE,Estonia,0.2,2022-05-10
ES,Spain,0.21,2021-01-01
FI,Finland,0.24,2022-01-01
FR,France,0.2,2021-01-01
GB,United Kingdom,0.2,2021-01-01
GR,Greece,0.24,2022-05-10
HR,Croatia,0.25,2022-05-10
HU,Hungary,0.27,2022-05-10
IE,Ireland,0.23,2021-01-01
IT,Italy,0.22,2021-01-01
LT,Lithuania,0.21,2022-05-10
LU,Luxembourg,0.17,2022-05-10
LV,Latvia,0.21,2022-05-10
MT,Malta,0.18,2022-05-10
MY,Malaysia,0.05,2021-01-01
NL,Netherlands,0.21,2021-01-01
NZ,New Zealand,0.15,2021-01-01
PL,Poland,0.23,2022-05-10
PT,Portugal,0.23,2022-05-10
RO,Romania,0.19,2022-05-10
SE,Sweden,0.25,2022-01-01
SG,Singapore,0.07,2021-01-01
SI,Slovenia,0.22,2022-05-10
SK,Slovakia,0.2,2022-05-10
US,United States,0,2021-01-01
1 country_code country vat effective_date
2 AT Austria 0.2 2021-01-01
3 BE Belgium 0.21 2021-01-01
4 BG Bulgaria 0.2 2022-05-10
5 CA Canada 0.1 2021-01-01
6 CH Switzerland 0.077 2021-01-01
7 CY Cyprus 0.19 2022-05-10
8 CZ Czech Republic 0.21 2022-05-10
9 DE Germany 0.19 2021-01-01
10 DK Denmark 0.25 2022-05-10
11 EE Estonia 0.2 2022-05-10
12 ES Spain 0.21 2021-01-01
13 FI Finland 0.24 2022-01-01
14 FR France 0.2 2021-01-01
15 GB United Kingdom 0.2 2021-01-01
16 GR Greece 0.24 2022-05-10
17 HR Croatia 0.25 2022-05-10
18 HU Hungary 0.27 2022-05-10
19 IE Ireland 0.23 2021-01-01
20 IT Italy 0.22 2021-01-01
21 LT Lithuania 0.21 2022-05-10
22 LU Luxembourg 0.17 2022-05-10
23 LV Latvia 0.21 2022-05-10
24 MT Malta 0.18 2022-05-10
25 MY Malaysia 0.05 2021-01-01
26 NL Netherlands 0.21 2021-01-01
27 NZ New Zealand 0.15 2021-01-01
28 PL Poland 0.23 2022-05-10
29 PT Portugal 0.23 2022-05-10
30 RO Romania 0.19 2022-05-10
31 SE Sweden 0.25 2022-01-01
32 SG Singapore 0.07 2021-01-01
33 SI Slovenia 0.22 2022-05-10
34 SK Slovakia 0.2 2022-05-10
35 US United States 0 2021-01-01

Просмотреть файл

@ -0,0 +1 @@
VAT rates for countries where Mozilla VPN is available.

Просмотреть файл

@ -0,0 +1,26 @@
[
{
"name": "country_code",
"description": "ISO 3166 alpha-2 country code.",
"type": "STRING",
"mode": "REQUIRED"
},
{
"name": "country",
"description": "Country name.",
"type": "STRING",
"mode": "REQUIRED"
},
{
"name": "vat",
"description": "VAT rate.",
"type": "NUMERIC",
"mode": "REQUIRED"
},
{
"name": "effective_date",
"description": "Date when the VAT rate should take effect.",
"type": "DATE",
"mode": "REQUIRED"
}
]