Skip to content

Commit 0718f2c

Browse files
Feature: Add Quickstart Model Counts to README (#26)
* MagicBot/add-model-counts updates * Update README.md * Update README.md * Update README.md * Update connector to connection * Remove DS_STORE * commit * schema' --------- Co-authored-by: Avinash Kunnath <avinash.kunnath@fivetran.com>
1 parent d64c821 commit 0718f2c

File tree

5 files changed

+32
-17
lines changed

5 files changed

+32
-17
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@
22
target/
33
dbt_packages/
44
logs/
5+
.DS_Store
6+
package-lock.yml

CHANGELOG.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
# dbt_app_reporting vNEXTRELEASE
1+
# dbt_app_reporting version.version
2+
3+
## Documentation
4+
- Added Quickstart model counts to README. ([#26](https://github.com/fivetran/dbt_app_reporting/pull/26))
5+
- Corrected references to connectors and connections in the README. ([#26](https://github.com/fivetran/dbt_app_reporting/pull/26))
26

37
## Under the Hood
48
- Addition of a section tag within the README so the model descriptions may be accessible within the Fivetran UI for Quickstart.

README.md

+18-9
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,23 @@ Refer to the table below for a detailed view of final tables materialized by def
3232

3333
> The individual Google Play and Apple App Store tables have additional platform-specific metrics better suited for deep-dive analyses.
3434
35+
### Materialized Models
36+
Each Quickstart transformation job run materializes the following model counts for each selected connector. The total model count represents all staging, intermediate, and final models, materialized as `view`, `table`, or `incremental`:
37+
38+
| **Connector** | **Model Count** |
39+
| ------------- | --------------- |
40+
| App Reporting | 18 |
41+
| [Apple App Store](https://github.com/fivetran/dbt_apple_store) | 38 |
42+
| [Google Play](https://github.com/fivetran/dbt_google_play) | 40 |
3543
<!--section-end-->
3644

3745
## How do I use the dbt package?
3846
### Step 1: Pre-Requisites
39-
- **Connector**: Have all relevant Fivetran app platform connectors syncing data into your warehouse. This package currently supports:
47+
- Have all relevant Fivetran app platform connections syncing data into your destination. This package currently supports:
4048
- [Apple App Store](https://fivetran.com/docs/applications/apple-app-store)
4149
- [Google Play](https://fivetran.com/docs/applications/google-play)
42-
- **Database support**: This package has been tested on **BigQuery**, **Snowflake**, **Redshift**, **Postgres** and **Databricks**. Ensure you are using one of these supported databases.
43-
- **dbt Version**: This dbt package requires you have a functional dbt project that utilizes a dbt version within the respective range `>=1.0.0, <2.0.0`.
50+
- This package has been tested on **BigQuery**, **Snowflake**, **Redshift**, **Postgres** and **Databricks**. Ensure you are using one of these supported databases.
51+
- This dbt package requires you have a functional dbt project that utilizes a dbt version within the respective range `>=1.0.0, <2.0.0`.
4452

4553
### Step 2: Installing the Package
4654
Include the following github package version in your `packages.yml`
@@ -54,9 +62,9 @@ packages:
5462
Do NOT include the individual app platform packages in this file. The app reporting package itself has dependencies on these packages and will install them as well.
5563
5664
### Step 3: Configure Database and Schema Variables
57-
By default, this package looks for your app platform data in your target database. If this is not where your app platform data is stored, add the relevant `<connector>_database` variables to your `dbt_project.yml` file (see below).
65+
By default, this package looks for your app platform data in your target database. If this is not where your app platform data is stored, add the relevant `<connection>_database` variables to your `dbt_project.yml` file (see below).
5866

59-
By default, this package also looks for your connector data in specific schemas (`itunes_connect` and `google_play` for Apple App Store and Google Play, respectively). If your data is stored in a different schema, add the relevant `<connector>_schema` variables to your `dbt_project.yml` file (see below).
67+
By default, this package also looks for your connection data in specific schemas (`itunes_connect` and `google_play` for Apple App Store and Google Play, respectively). If your data is stored in a different schema, add the relevant `<connection>_schema` variables to your `dbt_project.yml` file (see below).
6068

6169
```yml
6270
vars:
@@ -68,7 +76,7 @@ vars:
6876
```
6977

7078
### Step 4: Disable and Enable Source Tables
71-
Your app platform connectors might not sync every table that this package expects. If your syncs exclude certain tables, it is because you either don't use that functionality in your respective app platforms or have actively excluded some tables from your syncs.
79+
Your app platform connections might not sync every table that this package expects. If your syncs exclude certain tables, it is because you either don't use that functionality in your respective app platforms or have actively excluded some tables from your syncs.
7280

7381
If you use subscriptions and have the follow tables enabled for:
7482
- Apple App Store
@@ -119,8 +127,8 @@ models:
119127
### (Optional) Step 7: Additional configurations
120128
<details open><summary>Expand/collapse configurations</summary>
121129

122-
#### Union multiple connectors
123-
If you have multiple app reporting connectors in Fivetran and would like to use this package on all of them simultaneously, we have provided functionality to do so. The package will union all of the data together and pass the unioned table into the transformations. You will be able to see which source it came from in the `source_relation` column of each model. To use this functionality, you will need to set either the `<package_name>_union_schemas` OR `<package_name>_union_databases` variables (cannot do both) in your root `dbt_project.yml` file. Below are the variables and examples for each connector:
130+
#### Union multiple connections
131+
If you have multiple app reporting connections in Fivetran and would like to use this package on all of them simultaneously, we have provided functionality to do so. The package will union all of the data together and pass the unioned table into the transformations. You will be able to see which source it came from in the `source_relation` column of each model. To use this functionality, you will need to set either the `<package_name>_union_schemas` OR `<package_name>_union_databases` variables (cannot do both) in your root `dbt_project.yml` file. Below are the variables and examples for each connection:
124132

125133
```yml
126134
vars:
@@ -135,7 +143,8 @@ vars:
135143
To connect your multiple schema/database sources to the package models, follow the steps outlined in the [Union Data Defined Sources Configuration](https://github.com/fivetran/dbt_fivetran_utils/tree/releases/v0.4.latest#union_data-source) section of the Fivetran Utils documentation for the union_data macro. This will ensure a proper configuration and correct visualization of connections in the DAG.
136144

137145
#### Change the source table references
138-
If an individual source table has a different name than the package expects, add the table name as it appears in your destination to the respective variable:
146+
If an individual source table has a different name than the package expects, add the table name as it appears in your destination to the respective variable. This is not available when running the package on multiple unioned connections.
147+
139148
> IMPORTANT: See the Apple Store [`dbt_project.yml`](https://github.com/fivetran/dbt_apple_store_source/blob/main/dbt_project.yml) and Google Play [`dbt_project.yml`](https://github.com/fivetran/dbt_google_play_source/blob/main/dbt_project.yml) variable declarations to see the expected names.
140149

141150
```yml

integration_tests/ci/sample.profiles.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ integration_tests:
1616
pass: "{{ env_var('CI_REDSHIFT_DBT_PASS') }}"
1717
dbname: "{{ env_var('CI_REDSHIFT_DBT_DBNAME') }}"
1818
port: 5439
19-
schema: app_reporting_integrations_test_5
19+
schema: app_reporting_integrations_test_6
2020
threads: 8
2121
bigquery:
2222
type: bigquery
2323
method: service-account-json
2424
project: 'dbt-package-testing'
25-
schema: app_reporting_integrations_test_5
25+
schema: app_reporting_integrations_test_6
2626
threads: 8
2727
keyfile_json: "{{ env_var('GCLOUD_SERVICE_KEY') | as_native }}"
2828
snowflake:
@@ -33,7 +33,7 @@ integration_tests:
3333
role: "{{ env_var('CI_SNOWFLAKE_DBT_ROLE') }}"
3434
database: "{{ env_var('CI_SNOWFLAKE_DBT_DATABASE') }}"
3535
warehouse: "{{ env_var('CI_SNOWFLAKE_DBT_WAREHOUSE') }}"
36-
schema: app_reporting_integrations_test_5
36+
schema: app_reporting_integrations_test_6
3737
threads: 8
3838
postgres:
3939
type: postgres
@@ -42,13 +42,13 @@ integration_tests:
4242
pass: "{{ env_var('CI_POSTGRES_DBT_PASS') }}"
4343
dbname: "{{ env_var('CI_POSTGRES_DBT_DBNAME') }}"
4444
port: 5432
45-
schema: app_reporting_integrations_test_5
45+
schema: app_reporting_integrations_test_6
4646
threads: 8
4747
databricks:
4848
catalog: "{{ env_var('CI_DATABRICKS_DBT_CATALOG') }}"
4949
host: "{{ env_var('CI_DATABRICKS_DBT_HOST') }}"
5050
http_path: "{{ env_var('CI_DATABRICKS_DBT_HTTP_PATH') }}"
51-
schema: app_reporting_integrations_test_5
51+
schema: app_reporting_integrations_test_6
5252
threads: 8
5353
token: "{{ env_var('CI_DATABRICKS_DBT_TOKEN') }}"
5454
type: databricks

integration_tests/dbt_project.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ vars:
66
# apple_store__using_subscriptions: true # uncomment this line when generating docs!
77
# google_play__using_subscriptions: true # uncomment this line when regenerating docs!
88
# google_play__using_earnings: true # uncomment this line when regenerating docs!
9-
google_play_schema: app_reporting_integrations_test_5
10-
apple_store_schema: app_reporting_integrations_test_5
9+
google_play_schema: app_reporting_integrations_test_6
10+
apple_store_schema: app_reporting_integrations_test_6
1111
google_play_source:
1212
google_play_stats_installs_app_version_identifier: "stats_installs_app_version"
1313
google_play_stats_crashes_app_version_identifier: "stats_crashes_app_version"

0 commit comments

Comments
 (0)