-
Notifications
You must be signed in to change notification settings - Fork 2
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
Nov 2024 schema #32
Nov 2024 schema #32
Changes from 40 commits
2f1fdc1
046da4c
632def4
7084f63
c3a9b78
5559078
1ddd8c0
9b0b948
6746c2b
dd7458d
2bf9dfe
c7df6f7
f941c5f
f61eafe
5c26fa4
77fd1f0
5555efc
105389c
aeb2564
e3e45db
9fc03a1
90753f0
43d4f81
cfafe69
4dc1890
a2bbfeb
fd64d93
43fb57b
75bfc3d
661da32
729bef4
c387358
4e4d751
25ffcac
5d48c99
1a1c0ea
76dd744
b153019
964b8a3
5f3333e
1e7c869
afc2caa
4589fb7
32e773e
2a0ba4a
1e57b4b
f27cd33
42cfa02
cb9818f
9dda153
8076c46
deb51f8
f2854cc
36b64c9
30d4c8a
98d739c
43d2de2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,12 @@ | ||
# dbt_apple_store version.version | ||
# dbt_apple_store v0.5.0-a1 | ||
|
||
## Breaking Changes: Schema Change | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I would also add in here the bugfix of materializing the reporting grains as tables. This will result in extra tables, but it's important to highlight why this change was made. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. good point! |
||
- Following the connector's [Nov 2024 Update](https://fivetran.com/docs/connectors/applications/apple-app-store/changelog#november2024) to sync from the [App Store Connect API](https://developer.apple.com/documentation/appstoreconnectapi), we've updated this dbt package to reflect the new schema which includes the following changes: | ||
|
||
# Breaking Changes | ||
fivetran-joemarkiewicz marked this conversation as resolved.
Show resolved
Hide resolved
|
||
- The `account_id` and `account_name` fields have been removed. | ||
- `app_id` in apple_store__subscription_report has been replaced with `app_apple_id`. | ||
- Additionally, while the structure of the end models remains largely intact, the underlying logic has been adjusted to align with the new grain of the source tables. As a result, some values may differ from previous outputs. | ||
|
||
## Documentation | ||
- Added Quickstart model counts to README. ([#31](https://github.com/fivetran/dbt_apple_store/pull/31)) | ||
|
fivetran-joemarkiewicz marked this conversation as resolved.
Show resolved
Hide resolved
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
<p align="center"> | ||
# Apple App Store Transformation dbt Package ([Docs](https://fivetran.github.io/dbt_apple_store/)) | ||
|
||
<p align="left"> | ||
<a alt="License" | ||
href="https://github.com/fivetran/dbt_apple_store/blob/main/LICENSE"> | ||
<img src="https://img.shields.io/badge/License-Apache%202.0-blue.svg" /></a> | ||
|
@@ -13,7 +15,6 @@ | |
<img src="https://img.shields.io/badge/Contributions-welcome-blueviolet" /></a> | ||
</p> | ||
|
||
# Apple App Store Transformation dbt Package ([Docs](https://fivetran.github.io/dbt_apple_store/)) | ||
## What does this dbt package do? | ||
- Produces modeled tables that leverage Apple App Store data from [Fivetran's connector](https://fivetran.com/docs/connectors/applications/apple-app-store) in the format described by [this ERD](https://fivetran.com/docs/connectors/applications/apple-app-store#salesandfinancereportschema) and build off the output of our [Apple App Store source package](https://github.com/fivetran/dbt_apple_store_source). | ||
- Enables you to better understand your Apple App Store metrics at different granularities. It achieves this by: | ||
|
@@ -33,7 +34,7 @@ The following table provides a detailed list of all tables materialized within t | |
| [apple_store__overview_report](https://fivetran.github.io/dbt_apple_store/#!/model/model.apple_store.apple_store__overview_report) | Each record represents daily metrics for each app_id. | | ||
| [apple_store__platform_version_report](https://fivetran.github.io/dbt_apple_store/#!/model/model.apple_store.apple_store__platform_version_report) | Each record represents daily metrics for each by app_id, source_type and platform version. | | ||
| [apple_store__source_type_report](https://fivetran.github.io/dbt_apple_store/#!/model/model.apple_store.apple_store__source_type_report) | Each record represents daily metrics by app_id and source_type. | | ||
| [apple_store__subscription_report](https://fivetran.github.io/dbt_apple_store/#!/model/model.apple_store.apple_store__subscription_report) | Each record represents daily subscription metrics by account, app, subscription name, country and state. | | ||
| [apple_store__subscription_report](https://fivetran.github.io/dbt_apple_store/#!/model/model.apple_store.apple_store__subscription_report) | Each record represents daily subscription metrics by app, subscription name, country and state. | | ||
fivetran-joemarkiewicz marked this conversation as resolved.
Show resolved
Hide resolved
fivetran-joemarkiewicz marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| [apple_store__territory_report](https://fivetran.github.io/dbt_apple_store/#!/model/model.apple_store.apple_store__source_type_report) | Each record represents daily subscription metrics by app_id, source_type and territory. | | ||
|
||
### Materialized Models | ||
|
@@ -54,7 +55,7 @@ Include the following apple_store package version in your `packages.yml` file: | |
```yaml | ||
packages: | ||
- package: fivetran/apple_store | ||
version: [">=0.4.0", "<0.5.0"] # we recommend using ranges to capture non-breaking changes automatically | ||
version: 0.5.0-a1 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This needs to now reflect what will be the updated official range. |
||
``` | ||
|
||
Do NOT include the `apple_store_source` package in this file. The transformation package itself has a dependency on it and will install the source package as well. | ||
|
@@ -145,8 +146,9 @@ This dbt package is dependent on the following dbt packages. These dependencies | |
|
||
```yml | ||
packages: | ||
- package: fivetran/apple_store_source | ||
version: [">=0.4.0", "<0.5.0"] | ||
- git: https://github.com/fivetran/dbt_apple_store_source.git | ||
revision: nov_2024_schema | ||
warn-unpinned: false | ||
fivetran-reneeli marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
- package: fivetran/fivetran_utils | ||
version: [">=0.4.0", "<0.5.0"] | ||
|
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
_fivetran_id,app_id,date,app_version,device,platform_version,crashes,unique_devices,_fivetran_synced | ||
mATdTIo1WH34/utbwQZkvLNs6wU=,239587236,2024-12-04,120614,iPhone,iOS 16.4,1,1,2024-12-11 05:13:33.444 +00:00 | ||
PYNoHVNnmMuAKBkHqvpL2G6462E=,239587236,2024-12-05,1.3.4,Apple Vision,visionOS 1.0,1,1,2024-12-12 05:14:16.162 +00:00 | ||
YKv85Suuzv2jkvVhAyg2F8WM7SY=,239587236,2024-12-05,1242228,iPhone,iOS 17.1,1,1,2024-12-12 05:14:16.173 +00:00 | ||
fyzwmTKUa2Rcwyzp7iKJVNwa004=,239587236,2024-12-05,1206422,iPhone,iOS 15.1,1,1,2024-12-12 05:14:16.170 +00:00 | ||
rI4nrxlzrGiShj+7lnkVNLA4DdU=,239587236,2024-12-05,120222,iPhone,iOS 17.4,1,1,2024-12-12 05:14:16.166 +00:00 | ||
iBFL/ZX+cw+LEb9QzQ0EIDmIsqg=,239587236,2024-12-05,120222.1,iPhone,iOS 17.2,1,1,2024-12-12 05:14:16.189 +00:00 | ||
RN7svEING9NuyLcOQkgRgcyPcGc=,239587236,2024-12-05,55555,iPhone,iOS 14.2,1,1,2024-12-12 05:14:16.175 +00:00 | ||
WIP6VVo9+T0ptzvWfSChZ+oSK1w=,239587236,2024-12-05,55555.5,iPhone,iOS 17.4,1,1,2024-12-12 05:14:16.157 +00:00 | ||
9liOcvJVocUOsGJdywFyCnwiIlg=,239587236,2024-12-06,55554,iPhone,iOS 18.1,1,1,2024-12-13 05:12:19.497 +00:00 | ||
ow5NCW34KSFvzijb+vJaiqeZr9c=,239587236,2024-12-06,1,iPhone,iOS 17.5,1,1,2024-12-13 05:12:19.527 +00:00 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
_fivetran_id,app_id,date,app_version,device,platform_version,source_type,page_type,app_download_date,territory,sessions,total_session_duration,unique_devices,source_info,page_title,_fivetran_synced | ||
o5wEoLRdDH/NskmQrUaaZBKLaTM=,239587236,2024-11-08,329372.0,iPhone,iOS 17.6,App referrer,Product page,,US,14,797,5,source_website.com,Default Custom Product Page,2024-11-13 17:10:45.370 +00:00 | ||
z5uCMEdxXVl3h0n+kYepEiVUtvo=,239587236,2024-11-09,120652.0,iPhone,iOS 16.7,App Store search,Product page,,IT,9,898,5,,Default Custom Product Page,2024-11-14 17:10:29.921 +00:00 | ||
VbvXuJhvMfNLeK0uN1kG/9H1K3c=,239587236,2024-11-09,329372.0,iPhone,iOS 18.1,Web referrer,Product page,,TW,23,752,5,website.com,Default Custom Product Page,2024-11-14 17:10:32.333 +00:00 | ||
xq+QCXmwomsV+hoAVUXQ53pVevY=,239587236,2024-11-10,329372.0,iPhone,iOS 17.6,App Store search,No page,2024-11-02,PT,18,306,5,,Default No Page,2024-11-15 17:15:52.331 +00:00 | ||
Xa6PaV9l8ni0U6VGuNwSNMm7KdU=,239587236,2024-11-10,329372.1,iPhone,iOS 17.4,App Store search,No page,,HK,15,3198,7,,Default No Page,2024-11-15 17:15:53.906 +00:00 | ||
GF8h2QWP830nj8JLncVlc3ijoqA=,239587236,2024-11-10,329372.1,iPhone,iOS 17.6,App Store search,No page,2024-11-10,IL,20,2873,7,,Default No Page,2024-11-15 17:15:53.993 +00:00 | ||
kGwZC0OxQTTlblE1X/H4KjUpFv8=,239587236,2024-11-10,120658.0,iPhone,iOS 18.0,App Store search,Product page,,IT,6,76,6,,Default Custom Product Page,2024-11-15 17:15:51.026 +00:00 | ||
NgrBbeUJS4ydIChu1HbkUteIoM4=,239587236,2024-11-10,329372.0,iPhone,iOS 17.5,Web referrer,Product page,,SE,6,358,5,source_website.com,Default Custom Product Page,2024-11-15 17:15:52.045 +00:00 | ||
iSC24SA4YvjP88OUma5VAuqbAIk=,239587236,2024-11-10,120654.0,iPhone,iOS 16.7,App Store search,No page,,LB,85,15485,5,,Default No Page,2024-11-15 17:15:50.794 +00:00 | ||
NSjp+2R/xirT0vO4JQMQfWDwEHk=,239587236,2024-11-10,329372.1,iPhone,iOS 17.4,App Store search,No page,,GB,11,385,5,,Default No Page,2024-11-15 17:15:53.906 +00:00 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
id,name,primary_locale,content_rights_declaration,was_made_for_kids,subscription_status_url,subscription_status_url_version,subscription_status_url_for_sandbox,subscription_status_url_version_for_sandbox,_fivetran_synced | ||
239587236,Sample,en-US,DOES_NOT_USE_THIRD_PARTY_CONTENT,,https://example.com/subscription_status,v1,https://sandbox.example.com/subscription_status,v2,2022-01-02 12:34:56.789000+00:00 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
_fivetran_id,app_id,date,event,page_type,source_type,engagement_type,device,platform_version,territory,counts,unique_counts,page_title,source_info,_fivetran_synced | ||
5SJIE4ZfUINJ3AI1T1A5AzRUqLc=,239587236,2024-11-04,Page view,Store sheet,App referrer,,iPhone,iOS 17.4,US,7,5,Default product page,website.com,2024-11-07 17:10:21.652 +00:00 | ||
fTN+30viu9DOGf7xi0alJ3h3HMs=,239587236,2024-11-04,Page view,Store sheet,App Store browse,,iPhone,iOS 17.3,US,6,6,Default product page,,2024-11-07 17:10:18.235 +00:00 | ||
9zmUs3grlpd8K7mhYs6t0P7GGBc=,239587236,2024-11-04,Page view,Store sheet,App referrer,,iPhone,iOS 18.0,US,5,5,Default product page,website_two.com,2024-11-07 17:10:21.376 +00:00 | ||
Ar8iylQfK9915AfMCqvslNeqbco=,239587236,2024-11-05,Page view,Store sheet,App referrer,,iPad,iOS 16.7,FR,5,5,Default product page,website_two.com,2024-11-08 17:11:38.625 +00:00 | ||
vRqeI3eSZtOtBqzLpWvtQXheFDI=,239587236,2024-11-05,Tap,Store sheet,App Store browse,Open,iPhone,iOS 17.6,CA,6,6,Default product page,,2024-11-08 17:11:38.572 +00:00 | ||
pvCxArKHnaAFxuZf63/1PYKkiR4=,239587236,2024-11-05,Tap,Store sheet,App Store browse,Open,iPhone,iOS 18.0,GR,5,5,Default product page,,2024-11-08 17:11:40.033 +00:00 | ||
6lXCI/W8NqhA3UsQQFvU58cuTZw=,239587236,2024-11-05,Impression,No page,App Store search,,iPhone,iOS 16.6,FR,5,5,Default product page,,2024-11-08 17:11:31.470 +00:00 | ||
32rZ60OOHhVps86YhkBS3Z8+BiE=,239587236,2024-11-05,Page view,Store sheet,App referrer,,iPhone,iOS 18.1,FR,5,5,Default product page,website.com,2024-11-08 17:11:31.699 +00:00 | ||
Gm1Bl6Omn5JN2deWlmUAYpfjc/w=,239587236,2024-11-05,Page view,Store sheet,App referrer,,iPhone,iOS 16.7,FR,11,5,Default product page,source_website.com,2024-11-08 17:11:34.334 +00:00 | ||
pK52DqMhmHqf7bp6bWbAV159zDQ=,239587236,2024-11-05,Page view,Store sheet,App referrer,,iPhone,iOS 18.0,FR,5,5,Default product page,website.com,2024-11-08 17:11:31.056 +00:00 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same comment from the source to create a duplicate entry for the official v0.5.0 release while also retaining the v0.5.0-a1 release for posterity.