diff --git a/.buildkite/hooks/pre-command b/.buildkite/hooks/pre-command
index 04c85c0..81b7b00 100644
--- a/.buildkite/hooks/pre-command
+++ b/.buildkite/hooks/pre-command
@@ -21,4 +21,5 @@ export CI_SNOWFLAKE_DBT_USER=$(gcloud secrets versions access latest --secret="C
export CI_SNOWFLAKE_DBT_WAREHOUSE=$(gcloud secrets versions access latest --secret="CI_SNOWFLAKE_DBT_WAREHOUSE" --project="dbt-package-testing-363917")
export CI_DATABRICKS_DBT_HOST=$(gcloud secrets versions access latest --secret="CI_DATABRICKS_DBT_HOST" --project="dbt-package-testing-363917")
export CI_DATABRICKS_DBT_HTTP_PATH=$(gcloud secrets versions access latest --secret="CI_DATABRICKS_DBT_HTTP_PATH" --project="dbt-package-testing-363917")
-export CI_DATABRICKS_DBT_TOKEN=$(gcloud secrets versions access latest --secret="CI_DATABRICKS_DBT_TOKEN" --project="dbt-package-testing-363917")
\ No newline at end of file
+export CI_DATABRICKS_DBT_TOKEN=$(gcloud secrets versions access latest --secret="CI_DATABRICKS_DBT_TOKEN" --project="dbt-package-testing-363917")
+export CI_DATABRICKS_DBT_CATALOG=$(gcloud secrets versions access latest --secret="CI_DATABRICKS_DBT_CATALOG" --project="dbt-package-testing-363917")
\ No newline at end of file
diff --git a/.buildkite/pipeline.yml b/.buildkite/pipeline.yml
index 6e76ea0..281f1d4 100644
--- a/.buildkite/pipeline.yml
+++ b/.buildkite/pipeline.yml
@@ -69,5 +69,6 @@ steps:
- "CI_DATABRICKS_DBT_HOST"
- "CI_DATABRICKS_DBT_HTTP_PATH"
- "CI_DATABRICKS_DBT_TOKEN"
+ - "CI_DATABRICKS_DBT_CATALOG"
commands: |
bash .buildkite/scripts/run_models.sh databricks
\ No newline at end of file
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 79d089e..8605ef9 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,32 @@
+# dbt_pinterest v0.10.0
+[PR #30](https://github.com/fivetran/dbt_pinterest/pull/30) includes the following updates:
+
+## Breaking changes
+- Updated the following identifiers for consistency with the source name and compatibility with the union schema feature:
+
+| current | previous |
+|----------|----------|
+| pinterest_ads_ad_group_history_identifier | pinterest_ad_group_history_identifier |
+| pinterest_ads_campaign_history_identifier | pinterest_campaign_history_identifier |
+| pinterest_ads_pin_promotion_report_identifier | pinterest_pin_promotion_report_identifier |
+| pinterest_ads_keyword_history_identifier | pinterest_keyword_history_identifier |
+| pinterest_ads_keyword_report_identifier | pinterest_keyword_report_identifier |
+| pinterest_ads_ad_group_report_identifier | pinterest_ad_group_report_identifier |
+| pinterest_ads_campaign_report_identifier | pinterest_campaign_report_identifier |
+| pinterest_ads_advertiser_history_identifier | pinterest_advertiser_history_identifier |
+| pinterest_ads_advertiser_report_identifier | pinterest_advertiser_report_identifier |
+
+- If you are using the previous identifier, be sure to update to the current version!
+
+## Feature update ๐
+- Unioning capability! This adds the ability to union source data from multiple pinterest connectors. Refer to the [Union Multiple Connectors README section](https://github.com/fivetran/dbt_pinterest/blob/main/README.md#union-multiple-connectors) for more details.
+
+## Under the hood ๐
+- In the source package, updated tmp models to union source data using the `fivetran_utils.union_data` macro.
+- To distinguish which source each field comes from, added `source_relation` column in each staging and downstream model and applied the `fivetran_utils.source_relation` macro.
+ - The `source_relation` column is included in all joins in the transform package.
+- Updated tests to account for the new `source_relation` column.
+
# dbt_pinterest v0.9.0
# Pinterest Ads v5 Upgrade
diff --git a/README.md b/README.md
index e6d371f..bd92ce9 100644
--- a/README.md
+++ b/README.md
@@ -52,7 +52,7 @@ Include the following pinterest package version in your `packages.yml` file:
```yaml
packages:
- package: fivetran/pinterest
- version: [">=0.9.0", "<0.10.0"] # we recommend using ranges to capture non-breaking changes automatically
+ version: [">=0.10.0", "<0.11.0"] # we recommend using ranges to capture non-breaking changes automatically
```
Do NOT include the `pinterest_source` package in this file. The transformation package itself has a dependency on it and will install the source package as well.
@@ -75,7 +75,17 @@ vars:
```
## (Optional) Step 5: Additional configurations
- "+e+"Expand for configurations
+### Union multiple connectors
+If you have multiple pinterest 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 `pinterest_ads_union_schemas` OR `pinterest_ads_union_databases` variables (cannot do both) in your root `dbt_project.yml` file:
+
+```yml
+vars:
+ pinterest_ads_union_schemas: ['pinterest_usa','pinterest_canada'] # use this if the data is in different schemas/datasets of the same database/project
+ pinterest_ads_union_databases: ['pinterest_usa','pinterest_canada'] # use this if the data is in different databases/projects but uses the same schema name
+```
+Please be aware that the native `source.yml` connection set up in the package will not function when the union schema/database feature is utilized. Although the data will be correctly combined, you will not observe the sources linked to the package models in the Directed Acyclic Graph (DAG). This happens because the package includes only one defined `source.yml`.
+
+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.
### Passing Through Additional Metrics
By default, this package will select `clicks`, `impressions`, and `cost` from the source reporting tables to store into the staging models. If you would like to pass through additional metrics to the staging models, add the below configurations to your `dbt_project.yml` file. These variables allow for the pass-through fields to be aliased (`alias`) if desired, but not required. Use the below format for declaring the respective pass-through variables:
@@ -119,8 +129,6 @@ vars:
pinterest_Expand for more details
@@ -135,7 +143,7 @@ This dbt package is dependent on the following dbt packages. Please be aware tha
```yml
packages:
- package: fivetran/pinterest_source
- version: [">=0.9.0", "<0.10.0"]
+ version: [">=0.10.0", "<0.11.0"]
- package: fivetran/fivetran_utils
version: [">=0.4.0", "<0.5.0"]
diff --git a/dbt_project.yml b/dbt_project.yml
index 6a94815..1529b08 100644
--- a/dbt_project.yml
+++ b/dbt_project.yml
@@ -1,5 +1,5 @@
name: 'pinterest'
-version: '0.9.0'
+version: '0.10.0'
config-version: 2
require-dbt-version: [">=1.3.0", "<2.0.0"]
models:
diff --git a/docs/catalog.json b/docs/catalog.json
index 4983fca..a550669 100644
--- a/docs/catalog.json
+++ b/docs/catalog.json
@@ -1 +1 @@
-{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/catalog/v1.json", "dbt_version": "1.4.5", "generated_at": "2023-07-26T14:34:44.083821Z", "invocation_id": "a8e7ad3b-45b1-4962-ba03-4f15fdffe4f8", "env": {}}, "nodes": {"model.pinterest.pinterest_ads__ad_group_report": {"metadata": {"type": "table", "schema": "zz_dbt_renee_pinterest", "name": "pinterest_ads__ad_group_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "TIMESTAMP", "index": 1, "name": "date_day", "comment": null}, "advertiser_name": {"type": "STRING", "index": 2, "name": "advertiser_name", "comment": null}, "advertiser_id": {"type": "STRING", "index": 3, "name": "advertiser_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 4, "name": "campaign_name", "comment": null}, "campaign_status": {"type": "STRING", "index": 5, "name": "campaign_status", "comment": null}, "campaign_id": {"type": "STRING", "index": 6, "name": "campaign_id", "comment": null}, "ad_group_name": {"type": "STRING", "index": 7, "name": "ad_group_name", "comment": null}, "ad_group_id": {"type": "STRING", "index": 8, "name": "ad_group_id", "comment": null}, "created_at": {"type": "TIMESTAMP", "index": 9, "name": "created_at", "comment": null}, "start_time": {"type": "TIMESTAMP", "index": 10, "name": "start_time", "comment": null}, "end_time": {"type": "TIMESTAMP", "index": 11, "name": "end_time", "comment": null}, "ad_group_status": {"type": "STRING", "index": 12, "name": "ad_group_status", "comment": null}, "spend": {"type": "FLOAT64", "index": 13, "name": "spend", "comment": null}, "clicks": {"type": "INT64", "index": 14, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 15, "name": "impressions", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1820.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest.pinterest_ads__ad_group_report"}, "model.pinterest.pinterest_ads__advertiser_report": {"metadata": {"type": "table", "schema": "zz_dbt_renee_pinterest", "name": "pinterest_ads__advertiser_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "TIMESTAMP", "index": 1, "name": "date_day", "comment": null}, "advertiser_name": {"type": "STRING", "index": 2, "name": "advertiser_name", "comment": null}, "advertiser_id": {"type": "STRING", "index": 3, "name": "advertiser_id", "comment": null}, "currency_code": {"type": "STRING", "index": 4, "name": "currency_code", "comment": null}, "country": {"type": "STRING", "index": 5, "name": "country", "comment": null}, "spend": {"type": "FLOAT64", "index": 6, "name": "spend", "comment": null}, "clicks": {"type": "INT64", "index": 7, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 8, "name": "impressions", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 740.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest.pinterest_ads__advertiser_report"}, "model.pinterest.pinterest_ads__campaign_report": {"metadata": {"type": "table", "schema": "zz_dbt_renee_pinterest", "name": "pinterest_ads__campaign_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "TIMESTAMP", "index": 1, "name": "date_day", "comment": null}, "advertiser_name": {"type": "STRING", "index": 2, "name": "advertiser_name", "comment": null}, "advertiser_id": {"type": "STRING", "index": 3, "name": "advertiser_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 4, "name": "campaign_name", "comment": null}, "campaign_id": {"type": "STRING", "index": 5, "name": "campaign_id", "comment": null}, "campaign_status": {"type": "STRING", "index": 6, "name": "campaign_status", "comment": null}, "spend": {"type": "FLOAT64", "index": 7, "name": "spend", "comment": null}, "clicks": {"type": "INT64", "index": 8, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 9, "name": "impressions", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1180.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest.pinterest_ads__campaign_report"}, "model.pinterest.pinterest_ads__url_report": {"metadata": {"type": "table", "schema": "zz_dbt_renee_pinterest", "name": "pinterest_ads__url_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "TIMESTAMP", "index": 1, "name": "date_day", "comment": null}, "advertiser_id": {"type": "STRING", "index": 2, "name": "advertiser_id", "comment": null}, "advertiser_name": {"type": "STRING", "index": 3, "name": "advertiser_name", "comment": null}, "campaign_id": {"type": "STRING", "index": 4, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 5, "name": "campaign_name", "comment": null}, "campaign_status": {"type": "STRING", "index": 6, "name": "campaign_status", "comment": null}, "ad_group_id": {"type": "STRING", "index": 7, "name": "ad_group_id", "comment": null}, "ad_group_name": {"type": "STRING", "index": 8, "name": "ad_group_name", "comment": null}, "ad_group_status": {"type": "STRING", "index": 9, "name": "ad_group_status", "comment": null}, "destination_url": {"type": "STRING", "index": 10, "name": "destination_url", "comment": null}, "creative_type": {"type": "STRING", "index": 11, "name": "creative_type", "comment": null}, "pin_promotion_id": {"type": "STRING", "index": 12, "name": "pin_promotion_id", "comment": null}, "pin_name": {"type": "STRING", "index": 13, "name": "pin_name", "comment": null}, "pin_status": {"type": "STRING", "index": 14, "name": "pin_status", "comment": null}, "base_url": {"type": "STRING", "index": 15, "name": "base_url", "comment": null}, "url_host": {"type": "STRING", "index": 16, "name": "url_host", "comment": null}, "url_path": {"type": "STRING", "index": 17, "name": "url_path", "comment": null}, "utm_source": {"type": "STRING", "index": 18, "name": "utm_source", "comment": null}, "utm_medium": {"type": "STRING", "index": 19, "name": "utm_medium", "comment": null}, "utm_campaign": {"type": "STRING", "index": 20, "name": "utm_campaign", "comment": null}, "utm_content": {"type": "STRING", "index": 21, "name": "utm_content", "comment": null}, "utm_term": {"type": "STRING", "index": 22, "name": "utm_term", "comment": null}, "clicks": {"type": "NUMERIC", "index": 23, "name": "clicks", "comment": null}, "impressions": {"type": "NUMERIC", "index": 24, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 25, "name": "spend", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 3370.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest.pinterest_ads__url_report"}, "model.pinterest.pinterest_ads__keyword_report": {"metadata": {"type": "table", "schema": "zz_dbt_renee_pinterest", "name": "pinterest_ads__keyword_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "TIMESTAMP", "index": 1, "name": "date_day", "comment": null}, "advertiser_name": {"type": "STRING", "index": 2, "name": "advertiser_name", "comment": null}, "advertiser_id": {"type": "STRING", "index": 3, "name": "advertiser_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 4, "name": "campaign_name", "comment": null}, "campaign_id": {"type": "STRING", "index": 5, "name": "campaign_id", "comment": null}, "ad_group_name": {"type": "STRING", "index": 6, "name": "ad_group_name", "comment": null}, "ad_group_id": {"type": "STRING", "index": 7, "name": "ad_group_id", "comment": null}, "keyword_id": {"type": "STRING", "index": 8, "name": "keyword_id", "comment": null}, "match_type": {"type": "STRING", "index": 9, "name": "match_type", "comment": null}, "parent_type": {"type": "STRING", "index": 10, "name": "parent_type", "comment": null}, "keyword_value": {"type": "STRING", "index": 11, "name": "keyword_value", "comment": null}, "spend": {"type": "FLOAT64", "index": 12, "name": "spend", "comment": null}, "clicks": {"type": "INT64", "index": 13, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 14, "name": "impressions", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 41.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 8239.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest.pinterest_ads__keyword_report"}, "model.pinterest.pinterest_ads__pin_promotion_report": {"metadata": {"type": "table", "schema": "zz_dbt_renee_pinterest", "name": "pinterest_ads__pin_promotion_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "TIMESTAMP", "index": 1, "name": "date_day", "comment": null}, "advertiser_id": {"type": "STRING", "index": 2, "name": "advertiser_id", "comment": null}, "advertiser_name": {"type": "STRING", "index": 3, "name": "advertiser_name", "comment": null}, "campaign_id": {"type": "STRING", "index": 4, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 5, "name": "campaign_name", "comment": null}, "campaign_status": {"type": "STRING", "index": 6, "name": "campaign_status", "comment": null}, "ad_group_id": {"type": "STRING", "index": 7, "name": "ad_group_id", "comment": null}, "ad_group_name": {"type": "STRING", "index": 8, "name": "ad_group_name", "comment": null}, "ad_group_status": {"type": "STRING", "index": 9, "name": "ad_group_status", "comment": null}, "creative_type": {"type": "STRING", "index": 10, "name": "creative_type", "comment": null}, "pin_promotion_id": {"type": "STRING", "index": 11, "name": "pin_promotion_id", "comment": null}, "pin_name": {"type": "STRING", "index": 12, "name": "pin_name", "comment": null}, "pin_status": {"type": "STRING", "index": 13, "name": "pin_status", "comment": null}, "destination_url": {"type": "STRING", "index": 14, "name": "destination_url", "comment": null}, "base_url": {"type": "STRING", "index": 15, "name": "base_url", "comment": null}, "clicks": {"type": "NUMERIC", "index": 16, "name": "clicks", "comment": null}, "impressions": {"type": "NUMERIC", "index": 17, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 18, "name": "spend", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 3130.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest.pinterest_ads__pin_promotion_report"}, "model.pinterest_source.stg_pinterest_ads__advertiser_history": {"metadata": {"type": "table", "schema": "zz_dbt_renee_pinterest_source", "name": "stg_pinterest_ads__advertiser_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"advertiser_id": {"type": "STRING", "index": 1, "name": "advertiser_id", "comment": null}, "advertiser_name": {"type": "STRING", "index": 2, "name": "advertiser_name", "comment": null}, "advertiser_status": {"type": "STRING", "index": 3, "name": "advertiser_status", "comment": null}, "billing_profile_status": {"type": "STRING", "index": 4, "name": "billing_profile_status", "comment": null}, "billing_type": {"type": "STRING", "index": 5, "name": "billing_type", "comment": null}, "country": {"type": "STRING", "index": 6, "name": "country", "comment": null}, "created_at": {"type": "TIMESTAMP", "index": 7, "name": "created_at", "comment": null}, "currency_code": {"type": "STRING", "index": 8, "name": "currency_code", "comment": null}, "merchant_id": {"type": "STRING", "index": 9, "name": "merchant_id", "comment": null}, "owner_user_id": {"type": "STRING", "index": 10, "name": "owner_user_id", "comment": null}, "updated_at": {"type": "TIMESTAMP", "index": 11, "name": "updated_at", "comment": null}, "is_most_recent_record": {"type": "BOOL", "index": 12, "name": "is_most_recent_record", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 2.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 187.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest_source.stg_pinterest_ads__advertiser_history"}, "model.pinterest_source.stg_pinterest_ads__campaign_history": {"metadata": {"type": "table", "schema": "zz_dbt_renee_pinterest_source", "name": "stg_pinterest_ads__campaign_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"campaign_id": {"type": "STRING", "index": 1, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 2, "name": "campaign_name", "comment": null}, "advertiser_id": {"type": "STRING", "index": 3, "name": "advertiser_id", "comment": null}, "campaign_status": {"type": "STRING", "index": 4, "name": "campaign_status", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 5, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "TIMESTAMP", "index": 6, "name": "created_at", "comment": null}, "is_most_recent_record": {"type": "BOOL", "index": 7, "name": "is_most_recent_record", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 1.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 84.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest_source.stg_pinterest_ads__campaign_history"}, "model.pinterest_source.stg_pinterest_ads__pin_promotion_report": {"metadata": {"type": "table", "schema": "zz_dbt_renee_pinterest_source", "name": "stg_pinterest_ads__pin_promotion_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "TIMESTAMP", "index": 1, "name": "date_day", "comment": null}, "pin_promotion_id": {"type": "STRING", "index": 2, "name": "pin_promotion_id", "comment": null}, "ad_group_id": {"type": "STRING", "index": 3, "name": "ad_group_id", "comment": null}, "campaign_id": {"type": "STRING", "index": 4, "name": "campaign_id", "comment": null}, "advertiser_id": {"type": "STRING", "index": 5, "name": "advertiser_id", "comment": null}, "impressions": {"type": "NUMERIC", "index": 6, "name": "impressions", "comment": null}, "clicks": {"type": "NUMERIC", "index": 7, "name": "clicks", "comment": null}, "spend": {"type": "FLOAT64", "index": 8, "name": "spend", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1050.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest_source.stg_pinterest_ads__pin_promotion_report"}, "model.pinterest_source.stg_pinterest_ads__keyword_report": {"metadata": {"type": "table", "schema": "zz_dbt_renee_pinterest_source", "name": "stg_pinterest_ads__keyword_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "TIMESTAMP", "index": 1, "name": "date_day", "comment": null}, "keyword_id": {"type": "STRING", "index": 2, "name": "keyword_id", "comment": null}, "pin_promotion_id": {"type": "STRING", "index": 3, "name": "pin_promotion_id", "comment": null}, "ad_group_id": {"type": "STRING", "index": 4, "name": "ad_group_id", "comment": null}, "ad_group_name": {"type": "STRING", "index": 5, "name": "ad_group_name", "comment": null}, "ad_group_status": {"type": "STRING", "index": 6, "name": "ad_group_status", "comment": null}, "campaign_id": {"type": "STRING", "index": 7, "name": "campaign_id", "comment": null}, "advertiser_id": {"type": "STRING", "index": 8, "name": "advertiser_id", "comment": null}, "impressions": {"type": "INT64", "index": 9, "name": "impressions", "comment": null}, "clicks": {"type": "INT64", "index": 10, "name": "clicks", "comment": null}, "spend": {"type": "FLOAT64", "index": 11, "name": "spend", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 41.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 6060.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest_source.stg_pinterest_ads__keyword_report"}, "model.pinterest_source.stg_pinterest_ads__ad_group_report_tmp": {"metadata": {"type": "view", "schema": "zz_dbt_renee_pinterest_source", "name": "stg_pinterest_ads__ad_group_report_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_group_id": {"type": "STRING", "index": 1, "name": "ad_group_id", "comment": null}, "advertiser_id": {"type": "STRING", "index": 2, "name": "advertiser_id", "comment": null}, "date": {"type": "TIMESTAMP", "index": 3, "name": "date", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 4, "name": "_fivetran_synced", "comment": null}, "ad_group_name": {"type": "STRING", "index": 5, "name": "ad_group_name", "comment": null}, "ad_group_status": {"type": "STRING", "index": 6, "name": "ad_group_status", "comment": null}, "campaign_daily_spend_cap": {"type": "INT64", "index": 7, "name": "campaign_daily_spend_cap", "comment": null}, "campaign_id": {"type": "INT64", "index": 8, "name": "campaign_id", "comment": null}, "campaign_lifetime_spend_cap": {"type": "INT64", "index": 9, "name": "campaign_lifetime_spend_cap", "comment": null}, "campaign_name": {"type": "STRING", "index": 10, "name": "campaign_name", "comment": null}, "campaign_status": {"type": "STRING", "index": 11, "name": "campaign_status", "comment": null}, "clickthrough_1": {"type": "INT64", "index": 12, "name": "clickthrough_1", "comment": null}, "clickthrough_1_gross": {"type": "INT64", "index": 13, "name": "clickthrough_1_gross", "comment": null}, "cpc_in_micro_dollar": {"type": "FLOAT64", "index": 14, "name": "cpc_in_micro_dollar", "comment": null}, "cpm_in_micro_dollar": {"type": "FLOAT64", "index": 15, "name": "cpm_in_micro_dollar", "comment": null}, "ctr": {"type": "FLOAT64", "index": 16, "name": "ctr", "comment": null}, "ecpc_in_micro_dollar": {"type": "FLOAT64", "index": 17, "name": "ecpc_in_micro_dollar", "comment": null}, "ecpm_in_micro_dollar": {"type": "FLOAT64", "index": 18, "name": "ecpm_in_micro_dollar", "comment": null}, "ectr": {"type": "FLOAT64", "index": 19, "name": "ectr", "comment": null}, "engagement_1": {"type": "INT64", "index": 20, "name": "engagement_1", "comment": null}, "impression_1": {"type": "INT64", "index": 21, "name": "impression_1", "comment": null}, "impression_1_gross": {"type": "INT64", "index": 22, "name": "impression_1_gross", "comment": null}, "outbound_click_1": {"type": "INT64", "index": 23, "name": "outbound_click_1", "comment": null}, "paid_impression": {"type": "INT64", "index": 24, "name": "paid_impression", "comment": null}, "spend_in_micro_dollar": {"type": "INT64", "index": 25, "name": "spend_in_micro_dollar", "comment": null}, "total_engagement": {"type": "INT64", "index": 26, "name": "total_engagement", "comment": null}, "total_impression_frequency": {"type": "FLOAT64", "index": 27, "name": "total_impression_frequency", "comment": null}, "total_impression_user": {"type": "INT64", "index": 28, "name": "total_impression_user", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest_source.stg_pinterest_ads__ad_group_report_tmp"}, "model.pinterest_source.stg_pinterest_ads__keyword_report_tmp": {"metadata": {"type": "view", "schema": "zz_dbt_renee_pinterest_source", "name": "stg_pinterest_ads__keyword_report_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_group_id": {"type": "STRING", "index": 1, "name": "ad_group_id", "comment": null}, "advertiser_id": {"type": "STRING", "index": 2, "name": "advertiser_id", "comment": null}, "campaign_id": {"type": "STRING", "index": 3, "name": "campaign_id", "comment": null}, "date": {"type": "TIMESTAMP", "index": 4, "name": "date", "comment": null}, "keyword_id": {"type": "STRING", "index": 5, "name": "keyword_id", "comment": null}, "pin_id": {"type": "STRING", "index": 6, "name": "pin_id", "comment": null}, "pin_promotion_id": {"type": "STRING", "index": 7, "name": "pin_promotion_id", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 8, "name": "_fivetran_synced", "comment": null}, "ad_group_name": {"type": "STRING", "index": 9, "name": "ad_group_name", "comment": null}, "ad_group_status": {"type": "STRING", "index": 10, "name": "ad_group_status", "comment": null}, "campaign_daily_spend_cap": {"type": "INT64", "index": 11, "name": "campaign_daily_spend_cap", "comment": null}, "campaign_lifetime_spend_cap": {"type": "INT64", "index": 12, "name": "campaign_lifetime_spend_cap", "comment": null}, "campaign_name": {"type": "STRING", "index": 13, "name": "campaign_name", "comment": null}, "campaign_status": {"type": "STRING", "index": 14, "name": "campaign_status", "comment": null}, "clickthrough_1": {"type": "INT64", "index": 15, "name": "clickthrough_1", "comment": null}, "clickthrough_1_gross": {"type": "INT64", "index": 16, "name": "clickthrough_1_gross", "comment": null}, "cpc_in_micro_dollar": {"type": "FLOAT64", "index": 17, "name": "cpc_in_micro_dollar", "comment": null}, "cpm_in_micro_dollar": {"type": "FLOAT64", "index": 18, "name": "cpm_in_micro_dollar", "comment": null}, "ctr": {"type": "FLOAT64", "index": 19, "name": "ctr", "comment": null}, "ecpc_in_micro_dollar": {"type": "FLOAT64", "index": 20, "name": "ecpc_in_micro_dollar", "comment": null}, "ecpm_in_micro_dollar": {"type": "FLOAT64", "index": 21, "name": "ecpm_in_micro_dollar", "comment": null}, "ectr": {"type": "FLOAT64", "index": 22, "name": "ectr", "comment": null}, "engagement_1": {"type": "INT64", "index": 23, "name": "engagement_1", "comment": null}, "impression_1": {"type": "INT64", "index": 24, "name": "impression_1", "comment": null}, "impression_1_gross": {"type": "INT64", "index": 25, "name": "impression_1_gross", "comment": null}, "outbound_click_1": {"type": "INT64", "index": 26, "name": "outbound_click_1", "comment": null}, "paid_impression": {"type": "INT64", "index": 27, "name": "paid_impression", "comment": null}, "pin_promotion_name": {"type": "STRING", "index": 28, "name": "pin_promotion_name", "comment": null}, "pin_promotion_status": {"type": "STRING", "index": 29, "name": "pin_promotion_status", "comment": null}, "spend_in_micro_dollar": {"type": "INT64", "index": 30, "name": "spend_in_micro_dollar", "comment": null}, "targeting_type": {"type": "STRING", "index": 31, "name": "targeting_type", "comment": null}, "targeting_value": {"type": "STRING", "index": 32, "name": "targeting_value", "comment": null}, "total_engagement": {"type": "INT64", "index": 33, "name": "total_engagement", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest_source.stg_pinterest_ads__keyword_report_tmp"}, "model.pinterest_source.stg_pinterest_ads__campaign_history_tmp": {"metadata": {"type": "view", "schema": "zz_dbt_renee_pinterest_source", "name": "stg_pinterest_ads__campaign_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "index": 1, "name": "id", "comment": null}, "updated_time": {"type": "TIMESTAMP", "index": 2, "name": "updated_time", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 3, "name": "_fivetran_synced", "comment": null}, "advertiser_id": {"type": "STRING", "index": 4, "name": "advertiser_id", "comment": null}, "campaign_budget_optimization_enabled": {"type": "BOOL", "index": 5, "name": "campaign_budget_optimization_enabled", "comment": null}, "created_time": {"type": "TIMESTAMP", "index": 6, "name": "created_time", "comment": null}, "daily_spend_cap": {"type": "INT64", "index": 7, "name": "daily_spend_cap", "comment": null}, "end_time": {"type": "TIMESTAMP", "index": 8, "name": "end_time", "comment": null}, "lifetime_spend_cap": {"type": "INT64", "index": 9, "name": "lifetime_spend_cap", "comment": null}, "name": {"type": "STRING", "index": 10, "name": "name", "comment": null}, "objective_type": {"type": "STRING", "index": 11, "name": "objective_type", "comment": null}, "order_line_id": {"type": "STRING", "index": 12, "name": "order_line_id", "comment": null}, "start_time": {"type": "TIMESTAMP", "index": 13, "name": "start_time", "comment": null}, "status": {"type": "STRING", "index": 14, "name": "status", "comment": null}, "summary_status": {"type": "STRING", "index": 15, "name": "summary_status", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest_source.stg_pinterest_ads__campaign_history_tmp"}, "model.pinterest_source.stg_pinterest_ads__keyword_history": {"metadata": {"type": "table", "schema": "zz_dbt_renee_pinterest_source", "name": "stg_pinterest_ads__keyword_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"keyword_id": {"type": "STRING", "index": 1, "name": "keyword_id", "comment": null}, "keyword_value": {"type": "STRING", "index": 2, "name": "keyword_value", "comment": null}, "_fivetran_id": {"type": "STRING", "index": 3, "name": "_fivetran_id", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 4, "name": "_fivetran_synced", "comment": null}, "ad_group_id": {"type": "STRING", "index": 5, "name": "ad_group_id", "comment": null}, "advertiser_id": {"type": "STRING", "index": 6, "name": "advertiser_id", "comment": null}, "archived": {"type": "BOOL", "index": 7, "name": "archived", "comment": null}, "bid": {"type": "INT64", "index": 8, "name": "bid", "comment": null}, "campaign_id": {"type": "STRING", "index": 9, "name": "campaign_id", "comment": null}, "match_type": {"type": "STRING", "index": 10, "name": "match_type", "comment": null}, "parent_type": {"type": "STRING", "index": 11, "name": "parent_type", "comment": null}, "is_most_recent_record": {"type": "BOOL", "index": 12, "name": "is_most_recent_record", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 967.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest_source.stg_pinterest_ads__keyword_history"}, "model.pinterest_source.stg_pinterest_ads__pin_promotion_history": {"metadata": {"type": "table", "schema": "zz_dbt_renee_pinterest_source", "name": "stg_pinterest_ads__pin_promotion_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"pin_promotion_id": {"type": "STRING", "index": 1, "name": "pin_promotion_id", "comment": null}, "ad_group_id": {"type": "STRING", "index": 2, "name": "ad_group_id", "comment": null}, "created_at": {"type": "TIMESTAMP", "index": 3, "name": "created_at", "comment": null}, "destination_url": {"type": "STRING", "index": 4, "name": "destination_url", "comment": null}, "base_url": {"type": "STRING", "index": 5, "name": "base_url", "comment": null}, "url_host": {"type": "STRING", "index": 6, "name": "url_host", "comment": null}, "url_path": {"type": "STRING", "index": 7, "name": "url_path", "comment": null}, "utm_source": {"type": "STRING", "index": 8, "name": "utm_source", "comment": null}, "utm_medium": {"type": "STRING", "index": 9, "name": "utm_medium", "comment": null}, "utm_campaign": {"type": "STRING", "index": 10, "name": "utm_campaign", "comment": null}, "utm_content": {"type": "STRING", "index": 11, "name": "utm_content", "comment": null}, "utm_term": {"type": "STRING", "index": 12, "name": "utm_term", "comment": null}, "pin_name": {"type": "STRING", "index": 13, "name": "pin_name", "comment": null}, "pin_id": {"type": "STRING", "index": 14, "name": "pin_id", "comment": null}, "pin_status": {"type": "STRING", "index": 15, "name": "pin_status", "comment": null}, "creative_type": {"type": "STRING", "index": 16, "name": "creative_type", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 17, "name": "_fivetran_synced", "comment": null}, "is_most_recent_record": {"type": "BOOL", "index": 18, "name": "is_most_recent_record", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 2.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 400.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest_source.stg_pinterest_ads__pin_promotion_history"}, "model.pinterest_source.stg_pinterest_ads__advertiser_report": {"metadata": {"type": "table", "schema": "zz_dbt_renee_pinterest_source", "name": "stg_pinterest_ads__advertiser_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "TIMESTAMP", "index": 1, "name": "date_day", "comment": null}, "advertiser_id": {"type": "STRING", "index": 2, "name": "advertiser_id", "comment": null}, "impressions": {"type": "INT64", "index": 3, "name": "impressions", "comment": null}, "clicks": {"type": "INT64", "index": 4, "name": "clicks", "comment": null}, "spend": {"type": "FLOAT64", "index": 5, "name": "spend", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 460.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest_source.stg_pinterest_ads__advertiser_report"}, "model.pinterest_source.stg_pinterest_ads__campaign_report": {"metadata": {"type": "table", "schema": "zz_dbt_renee_pinterest_source", "name": "stg_pinterest_ads__campaign_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "TIMESTAMP", "index": 1, "name": "date_day", "comment": null}, "campaign_id": {"type": "STRING", "index": 2, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 3, "name": "campaign_name", "comment": null}, "campaign_status": {"type": "STRING", "index": 4, "name": "campaign_status", "comment": null}, "advertiser_id": {"type": "STRING", "index": 5, "name": "advertiser_id", "comment": null}, "impressions": {"type": "INT64", "index": 6, "name": "impressions", "comment": null}, "clicks": {"type": "INT64", "index": 7, "name": "clicks", "comment": null}, "spend": {"type": "FLOAT64", "index": 8, "name": "spend", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1020.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest_source.stg_pinterest_ads__campaign_report"}, "model.pinterest_source.stg_pinterest_ads__pin_promotion_report_tmp": {"metadata": {"type": "view", "schema": "zz_dbt_renee_pinterest_source", "name": "stg_pinterest_ads__pin_promotion_report_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_group_id": {"type": "STRING", "index": 1, "name": "ad_group_id", "comment": null}, "advertiser_id": {"type": "STRING", "index": 2, "name": "advertiser_id", "comment": null}, "campaign_id": {"type": "STRING", "index": 3, "name": "campaign_id", "comment": null}, "date": {"type": "TIMESTAMP", "index": 4, "name": "date", "comment": null}, "pin_promotion_id": {"type": "STRING", "index": 5, "name": "pin_promotion_id", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 6, "name": "_fivetran_synced", "comment": null}, "ad_group_name": {"type": "STRING", "index": 7, "name": "ad_group_name", "comment": null}, "ad_group_status": {"type": "STRING", "index": 8, "name": "ad_group_status", "comment": null}, "campaign_daily_spend_cap": {"type": "INT64", "index": 9, "name": "campaign_daily_spend_cap", "comment": null}, "campaign_lifetime_spend_cap": {"type": "INT64", "index": 10, "name": "campaign_lifetime_spend_cap", "comment": null}, "campaign_name": {"type": "STRING", "index": 11, "name": "campaign_name", "comment": null}, "campaign_status": {"type": "STRING", "index": 12, "name": "campaign_status", "comment": null}, "clickthrough_1": {"type": "INT64", "index": 13, "name": "clickthrough_1", "comment": null}, "clickthrough_1_gross": {"type": "INT64", "index": 14, "name": "clickthrough_1_gross", "comment": null}, "cpc_in_micro_dollar": {"type": "FLOAT64", "index": 15, "name": "cpc_in_micro_dollar", "comment": null}, "cpm_in_micro_dollar": {"type": "FLOAT64", "index": 16, "name": "cpm_in_micro_dollar", "comment": null}, "ctr": {"type": "FLOAT64", "index": 17, "name": "ctr", "comment": null}, "ecpc_in_micro_dollar": {"type": "FLOAT64", "index": 18, "name": "ecpc_in_micro_dollar", "comment": null}, "ecpm_in_micro_dollar": {"type": "FLOAT64", "index": 19, "name": "ecpm_in_micro_dollar", "comment": null}, "ectr": {"type": "FLOAT64", "index": 20, "name": "ectr", "comment": null}, "engagement_1": {"type": "INT64", "index": 21, "name": "engagement_1", "comment": null}, "impression_1": {"type": "INT64", "index": 22, "name": "impression_1", "comment": null}, "impression_1_gross": {"type": "INT64", "index": 23, "name": "impression_1_gross", "comment": null}, "outbound_click_1": {"type": "INT64", "index": 24, "name": "outbound_click_1", "comment": null}, "paid_impression": {"type": "INT64", "index": 25, "name": "paid_impression", "comment": null}, "pin_id": {"type": "INT64", "index": 26, "name": "pin_id", "comment": null}, "pin_promotion_name": {"type": "STRING", "index": 27, "name": "pin_promotion_name", "comment": null}, "pin_promotion_status": {"type": "STRING", "index": 28, "name": "pin_promotion_status", "comment": null}, "spend_in_micro_dollar": {"type": "INT64", "index": 29, "name": "spend_in_micro_dollar", "comment": null}, "total_engagement": {"type": "INT64", "index": 30, "name": "total_engagement", "comment": null}, "total_impression_frequency": {"type": "FLOAT64", "index": 31, "name": "total_impression_frequency", "comment": null}, "total_impression_user": {"type": "INT64", "index": 32, "name": "total_impression_user", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest_source.stg_pinterest_ads__pin_promotion_report_tmp"}, "model.pinterest_source.stg_pinterest_ads__ad_group_history": {"metadata": {"type": "table", "schema": "zz_dbt_renee_pinterest_source", "name": "stg_pinterest_ads__ad_group_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_group_id": {"type": "STRING", "index": 1, "name": "ad_group_id", "comment": null}, "ad_group_name": {"type": "STRING", "index": 2, "name": "ad_group_name", "comment": null}, "ad_group_status": {"type": "STRING", "index": 3, "name": "ad_group_status", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 4, "name": "_fivetran_synced", "comment": null}, "campaign_id": {"type": "STRING", "index": 5, "name": "campaign_id", "comment": null}, "created_at": {"type": "TIMESTAMP", "index": 6, "name": "created_at", "comment": null}, "end_time": {"type": "TIMESTAMP", "index": 7, "name": "end_time", "comment": null}, "start_time": {"type": "TIMESTAMP", "index": 8, "name": "start_time", "comment": null}, "is_most_recent_record": {"type": "BOOL", "index": 9, "name": "is_most_recent_record", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 1.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 87.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest_source.stg_pinterest_ads__ad_group_history"}, "model.pinterest_source.stg_pinterest_ads__keyword_history_tmp": {"metadata": {"type": "view", "schema": "zz_dbt_renee_pinterest_source", "name": "stg_pinterest_ads__keyword_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_id": {"type": "STRING", "index": 1, "name": "_fivetran_id", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 2, "name": "_fivetran_synced", "comment": null}, "ad_group_id": {"type": "STRING", "index": 3, "name": "ad_group_id", "comment": null}, "advertiser_id": {"type": "STRING", "index": 4, "name": "advertiser_id", "comment": null}, "archived": {"type": "BOOL", "index": 5, "name": "archived", "comment": null}, "bid": {"type": "INT64", "index": 6, "name": "bid", "comment": null}, "campaign_id": {"type": "STRING", "index": 7, "name": "campaign_id", "comment": null}, "id": {"type": "STRING", "index": 8, "name": "id", "comment": null}, "match_type": {"type": "STRING", "index": 9, "name": "match_type", "comment": null}, "parent_type": {"type": "STRING", "index": 10, "name": "parent_type", "comment": null}, "value": {"type": "STRING", "index": 11, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest_source.stg_pinterest_ads__keyword_history_tmp"}, "model.pinterest_source.stg_pinterest_ads__pin_promotion_history_tmp": {"metadata": {"type": "view", "schema": "zz_dbt_renee_pinterest_source", "name": "stg_pinterest_ads__pin_promotion_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "index": 1, "name": "id", "comment": null}, "updated_time": {"type": "TIMESTAMP", "index": 2, "name": "updated_time", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 3, "name": "_fivetran_synced", "comment": null}, "ad_group_id": {"type": "STRING", "index": 4, "name": "ad_group_id", "comment": null}, "android_deep_link": {"type": "STRING", "index": 5, "name": "android_deep_link", "comment": null}, "campaign_id": {"type": "STRING", "index": 6, "name": "campaign_id", "comment": null}, "click_tracking_url": {"type": "STRING", "index": 7, "name": "click_tracking_url", "comment": null}, "created_time": {"type": "TIMESTAMP", "index": 8, "name": "created_time", "comment": null}, "creative_type": {"type": "STRING", "index": 9, "name": "creative_type", "comment": null}, "destination_url": {"type": "STRING", "index": 10, "name": "destination_url", "comment": null}, "ios_deep_link": {"type": "STRING", "index": 11, "name": "ios_deep_link", "comment": null}, "is_pin_deleted": {"type": "BOOL", "index": 12, "name": "is_pin_deleted", "comment": null}, "is_removable": {"type": "BOOL", "index": 13, "name": "is_removable", "comment": null}, "name": {"type": "STRING", "index": 14, "name": "name", "comment": null}, "pin_id": {"type": "STRING", "index": 15, "name": "pin_id", "comment": null}, "review_status": {"type": "STRING", "index": 16, "name": "review_status", "comment": null}, "status": {"type": "STRING", "index": 17, "name": "status", "comment": null}, "summary_status": {"type": "STRING", "index": 18, "name": "summary_status", "comment": null}, "view_tracking_url": {"type": "STRING", "index": 19, "name": "view_tracking_url", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest_source.stg_pinterest_ads__pin_promotion_history_tmp"}, "model.pinterest_source.stg_pinterest_ads__advertiser_report_tmp": {"metadata": {"type": "view", "schema": "zz_dbt_renee_pinterest_source", "name": "stg_pinterest_ads__advertiser_report_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"advertiser_id": {"type": "STRING", "index": 1, "name": "advertiser_id", "comment": null}, "date": {"type": "TIMESTAMP", "index": 2, "name": "date", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 3, "name": "_fivetran_synced", "comment": null}, "clickthrough_1": {"type": "INT64", "index": 4, "name": "clickthrough_1", "comment": null}, "clickthrough_1_gross": {"type": "INT64", "index": 5, "name": "clickthrough_1_gross", "comment": null}, "cpc_in_micro_dollar": {"type": "FLOAT64", "index": 6, "name": "cpc_in_micro_dollar", "comment": null}, "cpm_in_micro_dollar": {"type": "FLOAT64", "index": 7, "name": "cpm_in_micro_dollar", "comment": null}, "ctr": {"type": "FLOAT64", "index": 8, "name": "ctr", "comment": null}, "ecpc_in_micro_dollar": {"type": "FLOAT64", "index": 9, "name": "ecpc_in_micro_dollar", "comment": null}, "ecpm_in_micro_dollar": {"type": "FLOAT64", "index": 10, "name": "ecpm_in_micro_dollar", "comment": null}, "ectr": {"type": "FLOAT64", "index": 11, "name": "ectr", "comment": null}, "engagement_1": {"type": "INT64", "index": 12, "name": "engagement_1", "comment": null}, "impression_1": {"type": "INT64", "index": 13, "name": "impression_1", "comment": null}, "impression_1_gross": {"type": "INT64", "index": 14, "name": "impression_1_gross", "comment": null}, "outbound_click_1": {"type": "INT64", "index": 15, "name": "outbound_click_1", "comment": null}, "paid_impression": {"type": "INT64", "index": 16, "name": "paid_impression", "comment": null}, "spend_in_micro_dollar": {"type": "INT64", "index": 17, "name": "spend_in_micro_dollar", "comment": null}, "total_engagement": {"type": "INT64", "index": 18, "name": "total_engagement", "comment": null}, "total_impression_frequency": {"type": "FLOAT64", "index": 19, "name": "total_impression_frequency", "comment": null}, "total_impression_user": {"type": "INT64", "index": 20, "name": "total_impression_user", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest_source.stg_pinterest_ads__advertiser_report_tmp"}, "model.pinterest_source.stg_pinterest_ads__advertiser_history_tmp": {"metadata": {"type": "view", "schema": "zz_dbt_renee_pinterest_source", "name": "stg_pinterest_ads__advertiser_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "index": 1, "name": "id", "comment": null}, "updated_time": {"type": "TIMESTAMP", "index": 2, "name": "updated_time", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 3, "name": "_fivetran_synced", "comment": null}, "billing_profile_status": {"type": "STRING", "index": 4, "name": "billing_profile_status", "comment": null}, "billing_type": {"type": "STRING", "index": 5, "name": "billing_type", "comment": null}, "country": {"type": "STRING", "index": 6, "name": "country", "comment": null}, "created_time": {"type": "TIMESTAMP", "index": 7, "name": "created_time", "comment": null}, "currency": {"type": "STRING", "index": 8, "name": "currency", "comment": null}, "merchant_id": {"type": "STRING", "index": 9, "name": "merchant_id", "comment": null}, "name": {"type": "STRING", "index": 10, "name": "name", "comment": null}, "owner_user_id": {"type": "STRING", "index": 11, "name": "owner_user_id", "comment": null}, "status": {"type": "STRING", "index": 12, "name": "status", "comment": null}, "owner_username": {"type": "STRING", "index": 13, "name": "owner_username", "comment": null}, "account_permissions": {"type": "STRING", "index": 14, "name": "account_permissions", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest_source.stg_pinterest_ads__advertiser_history_tmp"}, "model.pinterest_source.stg_pinterest_ads__ad_group_history_tmp": {"metadata": {"type": "view", "schema": "zz_dbt_renee_pinterest_source", "name": "stg_pinterest_ads__ad_group_history_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "index": 1, "name": "id", "comment": null}, "updated_time": {"type": "TIMESTAMP", "index": 2, "name": "updated_time", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 3, "name": "_fivetran_synced", "comment": null}, "auto_targeting_enabled": {"type": "BOOL", "index": 4, "name": "auto_targeting_enabled", "comment": null}, "bid_in_micro_currency": {"type": "INT64", "index": 5, "name": "bid_in_micro_currency", "comment": null}, "billable_event": {"type": "STRING", "index": 6, "name": "billable_event", "comment": null}, "budget_in_micro_currency": {"type": "INT64", "index": 7, "name": "budget_in_micro_currency", "comment": null}, "budget_type": {"type": "STRING", "index": 8, "name": "budget_type", "comment": null}, "campaign_id": {"type": "STRING", "index": 9, "name": "campaign_id", "comment": null}, "created_time": {"type": "TIMESTAMP", "index": 10, "name": "created_time", "comment": null}, "end_time": {"type": "TIMESTAMP", "index": 11, "name": "end_time", "comment": null}, "lifetime_frequency_cap": {"type": "INT64", "index": 12, "name": "lifetime_frequency_cap", "comment": null}, "name": {"type": "STRING", "index": 13, "name": "name", "comment": null}, "start_time": {"type": "TIMESTAMP", "index": 14, "name": "start_time", "comment": null}, "status": {"type": "STRING", "index": 15, "name": "status", "comment": null}, "targeting_spec_age_bucket": {"type": "STRING", "index": 16, "name": "targeting_spec_age_bucket", "comment": null}, "targeting_spec_apptype": {"type": "STRING", "index": 17, "name": "targeting_spec_apptype", "comment": null}, "targeting_spec_gender": {"type": "STRING", "index": 18, "name": "targeting_spec_gender", "comment": null}, "targeting_spec_interest": {"type": "STRING", "index": 19, "name": "targeting_spec_interest", "comment": null}, "targeting_spec_locale": {"type": "STRING", "index": 20, "name": "targeting_spec_locale", "comment": null}, "targeting_spec_location": {"type": "STRING", "index": 21, "name": "targeting_spec_location", "comment": null}, "targeting_spec_targeting_strategy": {"type": "STRING", "index": 22, "name": "targeting_spec_targeting_strategy", "comment": null}, "upgrade_status": {"type": "STRING", "index": 23, "name": "upgrade_status", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest_source.stg_pinterest_ads__ad_group_history_tmp"}, "model.pinterest_source.stg_pinterest_ads__ad_group_report": {"metadata": {"type": "table", "schema": "zz_dbt_renee_pinterest_source", "name": "stg_pinterest_ads__ad_group_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "TIMESTAMP", "index": 1, "name": "date_day", "comment": null}, "ad_group_id": {"type": "STRING", "index": 2, "name": "ad_group_id", "comment": null}, "ad_group_name": {"type": "STRING", "index": 3, "name": "ad_group_name", "comment": null}, "ad_group_status": {"type": "STRING", "index": 4, "name": "ad_group_status", "comment": null}, "campaign_id": {"type": "INT64", "index": 5, "name": "campaign_id", "comment": null}, "advertiser_id": {"type": "STRING", "index": 6, "name": "advertiser_id", "comment": null}, "impressions": {"type": "INT64", "index": 7, "name": "impressions", "comment": null}, "clicks": {"type": "INT64", "index": 8, "name": "clicks", "comment": null}, "spend": {"type": "FLOAT64", "index": 9, "name": "spend", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1130.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest_source.stg_pinterest_ads__ad_group_report"}, "model.pinterest_source.stg_pinterest_ads__campaign_report_tmp": {"metadata": {"type": "view", "schema": "zz_dbt_renee_pinterest_source", "name": "stg_pinterest_ads__campaign_report_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"advertiser_id": {"type": "STRING", "index": 1, "name": "advertiser_id", "comment": null}, "campaign_id": {"type": "STRING", "index": 2, "name": "campaign_id", "comment": null}, "date": {"type": "TIMESTAMP", "index": 3, "name": "date", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 4, "name": "_fivetran_synced", "comment": null}, "campaign_daily_spend_cap": {"type": "INT64", "index": 5, "name": "campaign_daily_spend_cap", "comment": null}, "campaign_lifetime_spend_cap": {"type": "INT64", "index": 6, "name": "campaign_lifetime_spend_cap", "comment": null}, "campaign_name": {"type": "STRING", "index": 7, "name": "campaign_name", "comment": null}, "campaign_status": {"type": "STRING", "index": 8, "name": "campaign_status", "comment": null}, "clickthrough_1": {"type": "INT64", "index": 9, "name": "clickthrough_1", "comment": null}, "clickthrough_1_gross": {"type": "INT64", "index": 10, "name": "clickthrough_1_gross", "comment": null}, "cpc_in_micro_dollar": {"type": "FLOAT64", "index": 11, "name": "cpc_in_micro_dollar", "comment": null}, "cpm_in_micro_dollar": {"type": "FLOAT64", "index": 12, "name": "cpm_in_micro_dollar", "comment": null}, "ctr": {"type": "FLOAT64", "index": 13, "name": "ctr", "comment": null}, "ecpc_in_micro_dollar": {"type": "FLOAT64", "index": 14, "name": "ecpc_in_micro_dollar", "comment": null}, "ecpm_in_micro_dollar": {"type": "FLOAT64", "index": 15, "name": "ecpm_in_micro_dollar", "comment": null}, "ectr": {"type": "FLOAT64", "index": 16, "name": "ectr", "comment": null}, "engagement_1": {"type": "INT64", "index": 17, "name": "engagement_1", "comment": null}, "impression_1": {"type": "INT64", "index": 18, "name": "impression_1", "comment": null}, "impression_1_gross": {"type": "INT64", "index": 19, "name": "impression_1_gross", "comment": null}, "outbound_click_1": {"type": "INT64", "index": 20, "name": "outbound_click_1", "comment": null}, "paid_impression": {"type": "INT64", "index": 21, "name": "paid_impression", "comment": null}, "spend_in_micro_dollar": {"type": "INT64", "index": 22, "name": "spend_in_micro_dollar", "comment": null}, "total_engagement": {"type": "INT64", "index": 23, "name": "total_engagement", "comment": null}, "total_impression_frequency": {"type": "FLOAT64", "index": 24, "name": "total_impression_frequency", "comment": null}, "total_impression_user": {"type": "INT64", "index": 25, "name": "total_impression_user", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest_source.stg_pinterest_ads__campaign_report_tmp"}}, "sources": {"source.pinterest_source.pinterest_ads.pin_promotion_history": {"metadata": {"type": "table", "schema": "pinterest_ads_joe", "name": "pin_promotion_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "index": 1, "name": "id", "comment": null}, "updated_time": {"type": "TIMESTAMP", "index": 2, "name": "updated_time", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 3, "name": "_fivetran_synced", "comment": null}, "ad_group_id": {"type": "STRING", "index": 4, "name": "ad_group_id", "comment": null}, "android_deep_link": {"type": "STRING", "index": 5, "name": "android_deep_link", "comment": null}, "campaign_id": {"type": "STRING", "index": 6, "name": "campaign_id", "comment": null}, "click_tracking_url": {"type": "STRING", "index": 7, "name": "click_tracking_url", "comment": null}, "created_time": {"type": "TIMESTAMP", "index": 8, "name": "created_time", "comment": null}, "creative_type": {"type": "STRING", "index": 9, "name": "creative_type", "comment": null}, "destination_url": {"type": "STRING", "index": 10, "name": "destination_url", "comment": null}, "ios_deep_link": {"type": "STRING", "index": 11, "name": "ios_deep_link", "comment": null}, "is_pin_deleted": {"type": "BOOL", "index": 12, "name": "is_pin_deleted", "comment": null}, "is_removable": {"type": "BOOL", "index": 13, "name": "is_removable", "comment": null}, "name": {"type": "STRING", "index": 14, "name": "name", "comment": null}, "pin_id": {"type": "STRING", "index": 15, "name": "pin_id", "comment": null}, "review_status": {"type": "STRING", "index": 16, "name": "review_status", "comment": null}, "status": {"type": "STRING", "index": 17, "name": "status", "comment": null}, "summary_status": {"type": "STRING", "index": 18, "name": "summary_status", "comment": null}, "view_tracking_url": {"type": "STRING", "index": 19, "name": "view_tracking_url", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 2.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 378.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.pinterest_source.pinterest_ads.pin_promotion_history"}, "source.pinterest_source.pinterest_ads.ad_group_report": {"metadata": {"type": "table", "schema": "pinterest_ads_joe", "name": "ad_group_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_group_id": {"type": "STRING", "index": 1, "name": "ad_group_id", "comment": null}, "advertiser_id": {"type": "STRING", "index": 2, "name": "advertiser_id", "comment": null}, "date": {"type": "TIMESTAMP", "index": 3, "name": "date", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 4, "name": "_fivetran_synced", "comment": null}, "ad_group_name": {"type": "STRING", "index": 5, "name": "ad_group_name", "comment": null}, "ad_group_status": {"type": "STRING", "index": 6, "name": "ad_group_status", "comment": null}, "campaign_daily_spend_cap": {"type": "INT64", "index": 7, "name": "campaign_daily_spend_cap", "comment": null}, "campaign_id": {"type": "INT64", "index": 8, "name": "campaign_id", "comment": null}, "campaign_lifetime_spend_cap": {"type": "INT64", "index": 9, "name": "campaign_lifetime_spend_cap", "comment": null}, "campaign_name": {"type": "STRING", "index": 10, "name": "campaign_name", "comment": null}, "campaign_status": {"type": "STRING", "index": 11, "name": "campaign_status", "comment": null}, "clickthrough_1": {"type": "INT64", "index": 12, "name": "clickthrough_1", "comment": null}, "clickthrough_1_gross": {"type": "INT64", "index": 13, "name": "clickthrough_1_gross", "comment": null}, "cpc_in_micro_dollar": {"type": "FLOAT64", "index": 14, "name": "cpc_in_micro_dollar", "comment": null}, "cpm_in_micro_dollar": {"type": "FLOAT64", "index": 15, "name": "cpm_in_micro_dollar", "comment": null}, "ctr": {"type": "FLOAT64", "index": 16, "name": "ctr", "comment": null}, "ecpc_in_micro_dollar": {"type": "FLOAT64", "index": 17, "name": "ecpc_in_micro_dollar", "comment": null}, "ecpm_in_micro_dollar": {"type": "FLOAT64", "index": 18, "name": "ecpm_in_micro_dollar", "comment": null}, "ectr": {"type": "FLOAT64", "index": 19, "name": "ectr", "comment": null}, "engagement_1": {"type": "INT64", "index": 20, "name": "engagement_1", "comment": null}, "impression_1": {"type": "INT64", "index": 21, "name": "impression_1", "comment": null}, "impression_1_gross": {"type": "INT64", "index": 22, "name": "impression_1_gross", "comment": null}, "outbound_click_1": {"type": "INT64", "index": 23, "name": "outbound_click_1", "comment": null}, "paid_impression": {"type": "INT64", "index": 24, "name": "paid_impression", "comment": null}, "spend_in_micro_dollar": {"type": "INT64", "index": 25, "name": "spend_in_micro_dollar", "comment": null}, "total_engagement": {"type": "INT64", "index": 26, "name": "total_engagement", "comment": null}, "total_impression_frequency": {"type": "FLOAT64", "index": 27, "name": "total_impression_frequency", "comment": null}, "total_impression_user": {"type": "INT64", "index": 28, "name": "total_impression_user", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 2654.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.pinterest_source.pinterest_ads.ad_group_report"}, "source.pinterest_source.pinterest_ads.advertiser_history": {"metadata": {"type": "table", "schema": "pinterest_ads_joe", "name": "advertiser_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "index": 1, "name": "id", "comment": null}, "updated_time": {"type": "TIMESTAMP", "index": 2, "name": "updated_time", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 3, "name": "_fivetran_synced", "comment": null}, "billing_profile_status": {"type": "STRING", "index": 4, "name": "billing_profile_status", "comment": null}, "billing_type": {"type": "STRING", "index": 5, "name": "billing_type", "comment": null}, "country": {"type": "STRING", "index": 6, "name": "country", "comment": null}, "created_time": {"type": "TIMESTAMP", "index": 7, "name": "created_time", "comment": null}, "currency": {"type": "STRING", "index": 8, "name": "currency", "comment": null}, "merchant_id": {"type": "STRING", "index": 9, "name": "merchant_id", "comment": null}, "name": {"type": "STRING", "index": 10, "name": "name", "comment": null}, "owner_user_id": {"type": "STRING", "index": 11, "name": "owner_user_id", "comment": null}, "status": {"type": "STRING", "index": 12, "name": "status", "comment": null}, "owner_username": {"type": "STRING", "index": 13, "name": "owner_username", "comment": null}, "account_permissions": {"type": "STRING", "index": 14, "name": "account_permissions", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 2.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 224.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.pinterest_source.pinterest_ads.advertiser_history"}, "source.pinterest_source.pinterest_ads.keyword_history": {"metadata": {"type": "table", "schema": "pinterest_ads_joe", "name": "keyword_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_id": {"type": "STRING", "index": 1, "name": "_fivetran_id", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 2, "name": "_fivetran_synced", "comment": null}, "ad_group_id": {"type": "STRING", "index": 3, "name": "ad_group_id", "comment": null}, "advertiser_id": {"type": "STRING", "index": 4, "name": "advertiser_id", "comment": null}, "archived": {"type": "BOOL", "index": 5, "name": "archived", "comment": null}, "bid": {"type": "INT64", "index": 6, "name": "bid", "comment": null}, "campaign_id": {"type": "STRING", "index": 7, "name": "campaign_id", "comment": null}, "id": {"type": "STRING", "index": 8, "name": "id", "comment": null}, "match_type": {"type": "STRING", "index": 9, "name": "match_type", "comment": null}, "parent_type": {"type": "STRING", "index": 10, "name": "parent_type", "comment": null}, "value": {"type": "STRING", "index": 11, "name": "value", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 957.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.pinterest_source.pinterest_ads.keyword_history"}, "source.pinterest_source.pinterest_ads.ad_group_history": {"metadata": {"type": "table", "schema": "pinterest_ads_joe", "name": "ad_group_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "index": 1, "name": "id", "comment": null}, "updated_time": {"type": "TIMESTAMP", "index": 2, "name": "updated_time", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 3, "name": "_fivetran_synced", "comment": null}, "auto_targeting_enabled": {"type": "BOOL", "index": 4, "name": "auto_targeting_enabled", "comment": null}, "bid_in_micro_currency": {"type": "INT64", "index": 5, "name": "bid_in_micro_currency", "comment": null}, "billable_event": {"type": "STRING", "index": 6, "name": "billable_event", "comment": null}, "budget_in_micro_currency": {"type": "INT64", "index": 7, "name": "budget_in_micro_currency", "comment": null}, "budget_type": {"type": "STRING", "index": 8, "name": "budget_type", "comment": null}, "campaign_id": {"type": "STRING", "index": 9, "name": "campaign_id", "comment": null}, "created_time": {"type": "TIMESTAMP", "index": 10, "name": "created_time", "comment": null}, "end_time": {"type": "TIMESTAMP", "index": 11, "name": "end_time", "comment": null}, "lifetime_frequency_cap": {"type": "INT64", "index": 12, "name": "lifetime_frequency_cap", "comment": null}, "name": {"type": "STRING", "index": 13, "name": "name", "comment": null}, "start_time": {"type": "TIMESTAMP", "index": 14, "name": "start_time", "comment": null}, "status": {"type": "STRING", "index": 15, "name": "status", "comment": null}, "targeting_spec_age_bucket": {"type": "STRING", "index": 16, "name": "targeting_spec_age_bucket", "comment": null}, "targeting_spec_apptype": {"type": "STRING", "index": 17, "name": "targeting_spec_apptype", "comment": null}, "targeting_spec_gender": {"type": "STRING", "index": 18, "name": "targeting_spec_gender", "comment": null}, "targeting_spec_interest": {"type": "STRING", "index": 19, "name": "targeting_spec_interest", "comment": null}, "targeting_spec_locale": {"type": "STRING", "index": 20, "name": "targeting_spec_locale", "comment": null}, "targeting_spec_location": {"type": "STRING", "index": 21, "name": "targeting_spec_location", "comment": null}, "targeting_spec_targeting_strategy": {"type": "STRING", "index": 22, "name": "targeting_spec_targeting_strategy", "comment": null}, "upgrade_status": {"type": "STRING", "index": 23, "name": "upgrade_status", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 1.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 389.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.pinterest_source.pinterest_ads.ad_group_history"}, "source.pinterest_source.pinterest_ads.pin_promotion_report": {"metadata": {"type": "table", "schema": "pinterest_ads_joe", "name": "pin_promotion_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_group_id": {"type": "STRING", "index": 1, "name": "ad_group_id", "comment": null}, "advertiser_id": {"type": "STRING", "index": 2, "name": "advertiser_id", "comment": null}, "campaign_id": {"type": "STRING", "index": 3, "name": "campaign_id", "comment": null}, "date": {"type": "TIMESTAMP", "index": 4, "name": "date", "comment": null}, "pin_promotion_id": {"type": "STRING", "index": 5, "name": "pin_promotion_id", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 6, "name": "_fivetran_synced", "comment": null}, "ad_group_name": {"type": "STRING", "index": 7, "name": "ad_group_name", "comment": null}, "ad_group_status": {"type": "STRING", "index": 8, "name": "ad_group_status", "comment": null}, "campaign_daily_spend_cap": {"type": "INT64", "index": 9, "name": "campaign_daily_spend_cap", "comment": null}, "campaign_lifetime_spend_cap": {"type": "INT64", "index": 10, "name": "campaign_lifetime_spend_cap", "comment": null}, "campaign_name": {"type": "STRING", "index": 11, "name": "campaign_name", "comment": null}, "campaign_status": {"type": "STRING", "index": 12, "name": "campaign_status", "comment": null}, "clickthrough_1": {"type": "INT64", "index": 13, "name": "clickthrough_1", "comment": null}, "clickthrough_1_gross": {"type": "INT64", "index": 14, "name": "clickthrough_1_gross", "comment": null}, "cpc_in_micro_dollar": {"type": "FLOAT64", "index": 15, "name": "cpc_in_micro_dollar", "comment": null}, "cpm_in_micro_dollar": {"type": "FLOAT64", "index": 16, "name": "cpm_in_micro_dollar", "comment": null}, "ctr": {"type": "FLOAT64", "index": 17, "name": "ctr", "comment": null}, "ecpc_in_micro_dollar": {"type": "FLOAT64", "index": 18, "name": "ecpc_in_micro_dollar", "comment": null}, "ecpm_in_micro_dollar": {"type": "FLOAT64", "index": 19, "name": "ecpm_in_micro_dollar", "comment": null}, "ectr": {"type": "FLOAT64", "index": 20, "name": "ectr", "comment": null}, "engagement_1": {"type": "INT64", "index": 21, "name": "engagement_1", "comment": null}, "impression_1": {"type": "INT64", "index": 22, "name": "impression_1", "comment": null}, "impression_1_gross": {"type": "INT64", "index": 23, "name": "impression_1_gross", "comment": null}, "outbound_click_1": {"type": "INT64", "index": 24, "name": "outbound_click_1", "comment": null}, "paid_impression": {"type": "INT64", "index": 25, "name": "paid_impression", "comment": null}, "pin_id": {"type": "INT64", "index": 26, "name": "pin_id", "comment": null}, "pin_promotion_name": {"type": "STRING", "index": 27, "name": "pin_promotion_name", "comment": null}, "pin_promotion_status": {"type": "STRING", "index": 28, "name": "pin_promotion_status", "comment": null}, "spend_in_micro_dollar": {"type": "INT64", "index": 29, "name": "spend_in_micro_dollar", "comment": null}, "total_engagement": {"type": "INT64", "index": 30, "name": "total_engagement", "comment": null}, "total_impression_frequency": {"type": "FLOAT64", "index": 31, "name": "total_impression_frequency", "comment": null}, "total_impression_user": {"type": "INT64", "index": 32, "name": "total_impression_user", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 3344.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.pinterest_source.pinterest_ads.pin_promotion_report"}, "source.pinterest_source.pinterest_ads.keyword_report": {"metadata": {"type": "table", "schema": "pinterest_ads_joe", "name": "keyword_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_group_id": {"type": "STRING", "index": 1, "name": "ad_group_id", "comment": null}, "advertiser_id": {"type": "STRING", "index": 2, "name": "advertiser_id", "comment": null}, "campaign_id": {"type": "STRING", "index": 3, "name": "campaign_id", "comment": null}, "date": {"type": "TIMESTAMP", "index": 4, "name": "date", "comment": null}, "keyword_id": {"type": "STRING", "index": 5, "name": "keyword_id", "comment": null}, "pin_id": {"type": "STRING", "index": 6, "name": "pin_id", "comment": null}, "pin_promotion_id": {"type": "STRING", "index": 7, "name": "pin_promotion_id", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 8, "name": "_fivetran_synced", "comment": null}, "ad_group_name": {"type": "STRING", "index": 9, "name": "ad_group_name", "comment": null}, "ad_group_status": {"type": "STRING", "index": 10, "name": "ad_group_status", "comment": null}, "campaign_daily_spend_cap": {"type": "INT64", "index": 11, "name": "campaign_daily_spend_cap", "comment": null}, "campaign_lifetime_spend_cap": {"type": "INT64", "index": 12, "name": "campaign_lifetime_spend_cap", "comment": null}, "campaign_name": {"type": "STRING", "index": 13, "name": "campaign_name", "comment": null}, "campaign_status": {"type": "STRING", "index": 14, "name": "campaign_status", "comment": null}, "clickthrough_1": {"type": "INT64", "index": 15, "name": "clickthrough_1", "comment": null}, "clickthrough_1_gross": {"type": "INT64", "index": 16, "name": "clickthrough_1_gross", "comment": null}, "cpc_in_micro_dollar": {"type": "FLOAT64", "index": 17, "name": "cpc_in_micro_dollar", "comment": null}, "cpm_in_micro_dollar": {"type": "FLOAT64", "index": 18, "name": "cpm_in_micro_dollar", "comment": null}, "ctr": {"type": "FLOAT64", "index": 19, "name": "ctr", "comment": null}, "ecpc_in_micro_dollar": {"type": "FLOAT64", "index": 20, "name": "ecpc_in_micro_dollar", "comment": null}, "ecpm_in_micro_dollar": {"type": "FLOAT64", "index": 21, "name": "ecpm_in_micro_dollar", "comment": null}, "ectr": {"type": "FLOAT64", "index": 22, "name": "ectr", "comment": null}, "engagement_1": {"type": "INT64", "index": 23, "name": "engagement_1", "comment": null}, "impression_1": {"type": "INT64", "index": 24, "name": "impression_1", "comment": null}, "impression_1_gross": {"type": "INT64", "index": 25, "name": "impression_1_gross", "comment": null}, "outbound_click_1": {"type": "INT64", "index": 26, "name": "outbound_click_1", "comment": null}, "paid_impression": {"type": "INT64", "index": 27, "name": "paid_impression", "comment": null}, "pin_promotion_name": {"type": "STRING", "index": 28, "name": "pin_promotion_name", "comment": null}, "pin_promotion_status": {"type": "STRING", "index": 29, "name": "pin_promotion_status", "comment": null}, "spend_in_micro_dollar": {"type": "INT64", "index": 30, "name": "spend_in_micro_dollar", "comment": null}, "targeting_type": {"type": "STRING", "index": 31, "name": "targeting_type", "comment": null}, "targeting_value": {"type": "STRING", "index": 32, "name": "targeting_value", "comment": null}, "total_engagement": {"type": "INT64", "index": 33, "name": "total_engagement", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 41.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 13222.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.pinterest_source.pinterest_ads.keyword_report"}, "source.pinterest_source.pinterest_ads.advertiser_report": {"metadata": {"type": "table", "schema": "pinterest_ads_joe", "name": "advertiser_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"advertiser_id": {"type": "STRING", "index": 1, "name": "advertiser_id", "comment": null}, "date": {"type": "TIMESTAMP", "index": 2, "name": "date", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 3, "name": "_fivetran_synced", "comment": null}, "clickthrough_1": {"type": "INT64", "index": 4, "name": "clickthrough_1", "comment": null}, "clickthrough_1_gross": {"type": "INT64", "index": 5, "name": "clickthrough_1_gross", "comment": null}, "cpc_in_micro_dollar": {"type": "FLOAT64", "index": 6, "name": "cpc_in_micro_dollar", "comment": null}, "cpm_in_micro_dollar": {"type": "FLOAT64", "index": 7, "name": "cpm_in_micro_dollar", "comment": null}, "ctr": {"type": "FLOAT64", "index": 8, "name": "ctr", "comment": null}, "ecpc_in_micro_dollar": {"type": "FLOAT64", "index": 9, "name": "ecpc_in_micro_dollar", "comment": null}, "ecpm_in_micro_dollar": {"type": "FLOAT64", "index": 10, "name": "ecpm_in_micro_dollar", "comment": null}, "ectr": {"type": "FLOAT64", "index": 11, "name": "ectr", "comment": null}, "engagement_1": {"type": "INT64", "index": 12, "name": "engagement_1", "comment": null}, "impression_1": {"type": "INT64", "index": 13, "name": "impression_1", "comment": null}, "impression_1_gross": {"type": "INT64", "index": 14, "name": "impression_1_gross", "comment": null}, "outbound_click_1": {"type": "INT64", "index": 15, "name": "outbound_click_1", "comment": null}, "paid_impression": {"type": "INT64", "index": 16, "name": "paid_impression", "comment": null}, "spend_in_micro_dollar": {"type": "INT64", "index": 17, "name": "spend_in_micro_dollar", "comment": null}, "total_engagement": {"type": "INT64", "index": 18, "name": "total_engagement", "comment": null}, "total_impression_frequency": {"type": "FLOAT64", "index": 19, "name": "total_impression_frequency", "comment": null}, "total_impression_user": {"type": "INT64", "index": 20, "name": "total_impression_user", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1404.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.pinterest_source.pinterest_ads.advertiser_report"}, "source.pinterest_source.pinterest_ads.campaign_history": {"metadata": {"type": "table", "schema": "pinterest_ads_joe", "name": "campaign_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "index": 1, "name": "id", "comment": null}, "updated_time": {"type": "TIMESTAMP", "index": 2, "name": "updated_time", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 3, "name": "_fivetran_synced", "comment": null}, "advertiser_id": {"type": "STRING", "index": 4, "name": "advertiser_id", "comment": null}, "campaign_budget_optimization_enabled": {"type": "BOOL", "index": 5, "name": "campaign_budget_optimization_enabled", "comment": null}, "created_time": {"type": "TIMESTAMP", "index": 6, "name": "created_time", "comment": null}, "daily_spend_cap": {"type": "INT64", "index": 7, "name": "daily_spend_cap", "comment": null}, "end_time": {"type": "TIMESTAMP", "index": 8, "name": "end_time", "comment": null}, "lifetime_spend_cap": {"type": "INT64", "index": 9, "name": "lifetime_spend_cap", "comment": null}, "name": {"type": "STRING", "index": 10, "name": "name", "comment": null}, "objective_type": {"type": "STRING", "index": 11, "name": "objective_type", "comment": null}, "order_line_id": {"type": "STRING", "index": 12, "name": "order_line_id", "comment": null}, "start_time": {"type": "TIMESTAMP", "index": 13, "name": "start_time", "comment": null}, "status": {"type": "STRING", "index": 14, "name": "status", "comment": null}, "summary_status": {"type": "STRING", "index": 15, "name": "summary_status", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 1.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 146.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.pinterest_source.pinterest_ads.campaign_history"}, "source.pinterest_source.pinterest_ads.campaign_report": {"metadata": {"type": "table", "schema": "pinterest_ads_joe", "name": "campaign_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"advertiser_id": {"type": "STRING", "index": 1, "name": "advertiser_id", "comment": null}, "campaign_id": {"type": "STRING", "index": 2, "name": "campaign_id", "comment": null}, "date": {"type": "TIMESTAMP", "index": 3, "name": "date", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 4, "name": "_fivetran_synced", "comment": null}, "campaign_daily_spend_cap": {"type": "INT64", "index": 5, "name": "campaign_daily_spend_cap", "comment": null}, "campaign_lifetime_spend_cap": {"type": "INT64", "index": 6, "name": "campaign_lifetime_spend_cap", "comment": null}, "campaign_name": {"type": "STRING", "index": 7, "name": "campaign_name", "comment": null}, "campaign_status": {"type": "STRING", "index": 8, "name": "campaign_status", "comment": null}, "clickthrough_1": {"type": "INT64", "index": 9, "name": "clickthrough_1", "comment": null}, "clickthrough_1_gross": {"type": "INT64", "index": 10, "name": "clickthrough_1_gross", "comment": null}, "cpc_in_micro_dollar": {"type": "FLOAT64", "index": 11, "name": "cpc_in_micro_dollar", "comment": null}, "cpm_in_micro_dollar": {"type": "FLOAT64", "index": 12, "name": "cpm_in_micro_dollar", "comment": null}, "ctr": {"type": "FLOAT64", "index": 13, "name": "ctr", "comment": null}, "ecpc_in_micro_dollar": {"type": "FLOAT64", "index": 14, "name": "ecpc_in_micro_dollar", "comment": null}, "ecpm_in_micro_dollar": {"type": "FLOAT64", "index": 15, "name": "ecpm_in_micro_dollar", "comment": null}, "ectr": {"type": "FLOAT64", "index": 16, "name": "ectr", "comment": null}, "engagement_1": {"type": "INT64", "index": 17, "name": "engagement_1", "comment": null}, "impression_1": {"type": "INT64", "index": 18, "name": "impression_1", "comment": null}, "impression_1_gross": {"type": "INT64", "index": 19, "name": "impression_1_gross", "comment": null}, "outbound_click_1": {"type": "INT64", "index": 20, "name": "outbound_click_1", "comment": null}, "paid_impression": {"type": "INT64", "index": 21, "name": "paid_impression", "comment": null}, "spend_in_micro_dollar": {"type": "INT64", "index": 22, "name": "spend_in_micro_dollar", "comment": null}, "total_engagement": {"type": "INT64", "index": 23, "name": "total_engagement", "comment": null}, "total_impression_frequency": {"type": "FLOAT64", "index": 24, "name": "total_impression_frequency", "comment": null}, "total_impression_user": {"type": "INT64", "index": 25, "name": "total_impression_user", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 2124.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.pinterest_source.pinterest_ads.campaign_report"}}, "errors": null}
\ No newline at end of file
+{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/catalog/v1.json", "dbt_version": "1.5.6", "generated_at": "2023-09-05T16:08:00.660261Z", "invocation_id": "9f8d2cfe-2d8f-40f6-9b83-9c32f134498e", "env": {}}, "nodes": {}, "sources": {}, "errors": null}
\ No newline at end of file
diff --git a/docs/index.html b/docs/index.html
index 0807e63..5631ac6 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -64,7 +64,7 @@
* Released under MIT license -1},In.prototype.set=function(e,t){var n=this.__data__,r=Hn(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Nn.prototype.clear=function(){this.size=0,this.__data__={hash:new Rn,map:new(hn||In),string:new Rn}},Nn.prototype.delete=function(e){var t=Ji(this,e).delete(e);return this.size-=t?1:0,t},Nn.prototype.get=function(e){return Ji(this,e).get(e)},Nn.prototype.has=function(e){return Ji(this,e).has(e)},Nn.prototype.set=function(e,t){var n=Ji(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Mn.prototype.add=Mn.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},Mn.prototype.has=function(e){return this.__data__.has(e)},zn.prototype.clear=function(){this.__data__=new In,this.size=0},zn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},zn.prototype.get=function(e){return this.__data__.get(e)},zn.prototype.has=function(e){return this.__data__.has(e)},zn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof In){var r=n.__data__;if(!hn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Nn(r)}return n.set(e,t),this.size=n.size,this};var tr=ki(cr),nr=ki(ur,!0);function rr(e,t){var n=!0;return tr(e,(function(e,r,i){return n=!!t(e,r,i)})),n}function ir(e,t,n){for(var r=-1,i=e.length;++r0&&n(s)?t>1?ar(s,t-1,n,r,i):ht(i,s):r||(i[i.length]=s)}return i}var sr=Ai(),lr=Ai(!0);function cr(e,t){return e&&sr(e,t,ws)}function ur(e,t){return e&&lr(e,t,ws)}function dr(e,t){return ut(t,(function(t){return Fa(e[t])}))}function fr(e,t){for(var n=0,r=(t=li(t,e)).length;null!=e&&n-1&&e%1==0&&e\n {{ model.source_name }}.{{ model.name }}\n source table\n
\n Description
\n Columns
\n Referenced By
\n -1},In.prototype.set=function(e,t){var n=this.__data__,r=Hn(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Nn.prototype.clear=function(){this.size=0,this.__data__={hash:new Rn,map:new(hn||In),string:new Rn}},Nn.prototype.delete=function(e){var t=Ji(this,e).delete(e);return this.size-=t?1:0,t},Nn.prototype.get=function(e){return Ji(this,e).get(e)},Nn.prototype.has=function(e){return Ji(this,e).has(e)},Nn.prototype.set=function(e,t){var n=Ji(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Mn.prototype.add=Mn.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},Mn.prototype.has=function(e){return this.__data__.has(e)},zn.prototype.clear=function(){this.__data__=new In,this.size=0},zn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},zn.prototype.get=function(e){return this.__data__.get(e)},zn.prototype.has=function(e){return this.__data__.has(e)},zn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof In){var r=n.__data__;if(!hn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Nn(r)}return n.set(e,t),this.size=n.size,this};var tr=ki(cr),nr=ki(ur,!0);function rr(e,t){var n=!0;return tr(e,(function(e,r,i){return n=!!t(e,r,i)})),n}function ir(e,t,n){for(var r=-1,i=e.length;++r0&&n(s)?t>1?ar(s,t-1,n,r,i):ht(i,s):r||(i[i.length]=s)}return i}var sr=Ai(),lr=Ai(!0);function cr(e,t){return e&&sr(e,t,ws)}function ur(e,t){return e&&lr(e,t,ws)}function dr(e,t){return ut(t,(function(t){return Fa(e[t])}))}function fr(e,t){for(var n=0,r=(t=li(t,e)).length;null!=e&&n-1&&e%1==0&&e\n {{ model.source_name }}.{{ model.name }}\n source table\n
\n Description
\n Columns
\n Referenced By
\n
\n":"'+(n?e:c(e,!0))+"\n
"},a.prototype.blockquote=function(e){return""+(n?e:c(e,!0))+"\n
\n"+e+"
\n"},a.prototype.html=function(e){return e},a.prototype.heading=function(e,t,n){return"
\n":"
\n"},a.prototype.list=function(e,t,n){var r=t?"ol":"ul";return"<"+r+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+""+r+">\n"},a.prototype.listitem=function(e){return"\n\n"+e+"\n\n"+t+"\n
\n"},a.prototype.tablerow=function(e){return"\n"+e+" \n"},a.prototype.tablecell=function(e,t){var n=t.header?"th":"td";return(t.align?"<"+n+' style="text-align:'+t.align+'">':"<"+n+">")+e+""+n+">\n"},a.prototype.strong=function(e){return""+e+""},a.prototype.em=function(e){return""+e+""},a.prototype.codespan=function(e){return""+e+"
"},a.prototype.br=function(){return this.options.xhtml?"
":"
"},a.prototype.del=function(e){return""+e+""},a.prototype.link=function(e,t,n){if(this.options.sanitize){try{var r=decodeURIComponent(u(e)).replace(/[^\w:]/g,"").toLowerCase()}catch(e){return n}if(0===r.indexOf("javascript:")||0===r.indexOf("vbscript:")||0===r.indexOf("data:"))return n}this.options.baseUrl&&!h.test(e)&&(e=f(this.options.baseUrl,e));var i='"+n+""},a.prototype.image=function(e,t,n){this.options.baseUrl&&!h.test(e)&&(e=f(this.options.baseUrl,e));var r='":">"},a.prototype.text=function(e){return e},s.prototype.strong=s.prototype.em=s.prototype.codespan=s.prototype.del=s.prototype.text=function(e){return e},s.prototype.link=s.prototype.image=function(e,t,n){return""+n},s.prototype.br=function(){return""},l.parse=function(e,t){return new l(t).parse(e)},l.prototype.parse=function(e){this.inline=new o(e.links,this.options),this.inlineText=new o(e.links,m({},this.options,{renderer:new s})),this.tokens=e.reverse();for(var t="";this.next();)t+=this.tok();return t},l.prototype.next=function(){return this.token=this.tokens.pop()},l.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0},l.prototype.parseText=function(){for(var e=this.token.text;"text"===this.peek().type;)e+="\n"+this.next().text;return this.inline.output(e)},l.prototype.tok=function(){switch(this.token.type){case"space":return"";case"hr":return this.renderer.hr();case"heading":return this.renderer.heading(this.inline.output(this.token.text),this.token.depth,u(this.inlineText.output(this.token.text)));case"code":return this.renderer.code(this.token.text,this.token.lang,this.token.escaped);case"table":var e,t,n,r,i="",o="";for(n="",e=0;e
"+c(e.message+"",!0)+"";throw e}}g.exec=g,v.options=v.setOptions=function(e){return m(v.defaults,e),v},v.defaults={gfm:!0,tables:!0,breaks:!1,pedantic:!1,sanitize:!1,sanitizer:null,mangle:!0,smartLists:!1,silent:!1,highlight:null,langPrefix:"lang-",smartypants:!1,headerPrefix:"",renderer:new a,xhtml:!1,baseUrl:null},v.Parser=l,v.parser=l.parse,v.Renderer=a,v.TextRenderer=s,v.Lexer=r,v.lexer=r.lex,v.InlineLexer=o,v.inlineLexer=o.output,v.parse=v,e.exports=v}(this||"undefined"!=typeof window&&window)}).call(this,n(35))},function(e,t,n){n(231),n(233),n(422),n(424),n(428),n(430),n(434),n(436),n(440),n(442)},function(e,t,n){"use strict";const r=n(232),i=n(21),o=n(31);angular.module("dbt").directive("graphLauncher",["$state","$q","graph","selectorService","project","trackingService","locationService",function(e,t,n,a,s,l,c){return{restrict:"EA",replace:!0,scope:{},templateUrl:r,link:function(t,r){t.filters_visible=!1,t.graphService=n,t.selectorService=a,t.allSelected=!0;var s={tags:{visible:!1},packages:{visible:!1},resource_types:{visible:!1}};t.onWindowClick=function(e){o(e.target);var t=o(e.target).closest(".dropup");t.length||(s.tags.visible=!1,s.packages.visible=!1);var n=t.data("form-type");i.each(s,(function(e,t){t!=n&&(e.visible=!1)})),o(e.target).closest("#graph-viz-wrapper").length&&setTimeout((function(){o(":focus").blur()}))},t.onSelectClick=function(e){i.each(s,(function(t,n){n==e&&(t.visible=!t.visible,t.visible||o(":focus").blur())}))},t.isVisible=function(e){return s[e].visible},t.isSelected=function(e,t){return-1!=a.selection.dirty[e].indexOf(t)},t.onSelectAll=function(e,n,r){var i=a.selection.dirty;i[e]=n?[...a.options[e]]:[],t.allSelected=!t.allSelected,r.preventDefault()},t.onItemSelect=function(e,n,r){var o=a.selection.dirty;t.isSelected(e,n)?o[e]=i.without(o[e],n):o[e]=i.union(o[e],[n]),r.preventDefault()},t.onSelectBlur=function(e,n){n&&(n.relatedTarget&&"SELECT"!=n.relatedTarget.tagName||t.isVisible(e)&&o(n.target).focus())},t.resourceTypeTitle=function(e){return"analysis"==e?"Analyses":e[0].toUpperCase()+e.slice(1)+"s"},t.selectionLabel=function(e,t){var n=a.selection.dirty[e],r=a.options[e];return 0==n.length?"None selected":1==n.length?n[0]||t:n.length==r.length?"All selected":n.length+" selected"},t.onUpdateSelector=function(){var e=a.updateSelection(),t=n.updateGraph(e);l.track_graph_interaction("update-graph",t.length)},t.showExpanded=function(){var e=a.getViewNode(),t=e?e.name:null;if(e&&"source"==e.resource_type)var r=n.showFullGraph("source:"+e.source_name+"."+e.name);else if(e&&"exposure"==e.resource_type)r=n.showFullGraph("exposure:"+e.name);else if(e&&"metric"==e.resource_type)r=n.showFullGraph("metric:"+e.name);else r=n.showFullGraph(t);l.track_graph_interaction("show-expanded",r.length)},t.showContracted=function(){var e=a.getViewNode();if(e&&"source"==e.resource_type)var t=n.showVerticalGraph("source:"+e.source_name+"."+e.name,!0);else if(e&&"exposure"==e.resource_type)t=n.showVerticalGraph("exposure:"+e.name,!0);else if(e&&"metric"==e.resource_type)t=n.showVerticalGraph("metric:"+e.name,!0);else t=n.showVerticalGraph(e.name,!0);c.clearState(),l.track_graph_interaction("show-contracted",t.length)},t.closeGraph=function(){n.hideGraph(),c.clearState()},t.onLauncherClick=function(){var r=a.getViewNode();if(r)a.resetSelection(r),t.showContracted();else if(e.params.source){a.resetSelection(),t.showExpanded();var i=a.selectSource(e.params.source,{children:!0});setTimeout((function(){n.updateGraph(i)}))}else a.resetSelection(),t.showExpanded()},t.$watch((function(){return a.selection.dirty}),(function(e,t){if(a.isDirty()){var r=n.graph.pristine.dag,o=n.graph.pristine.nodes,s=a.selection.clean,l=a.selection.dirty,c=a.selectNodes(r,o,s),u=a.selectNodes(r,o,l),d=i.difference(c.selected,u.selected);n.markDirty(d)}else n.markAllClean()}),!0)}}}])},function(e,t){var n="/components/graph/graph-launcher.html";window.angular.module("ng").run(["$templateCache",function(e){e.put(n,'\n
'+(n?e:c(e,!0))+"\n
\n":""+(n?e:c(e,!0))+"\n
"},a.prototype.blockquote=function(e){return"\n"+e+"\n"},a.prototype.html=function(e){return e},a.prototype.heading=function(e,t,n){return"
"+e+"
\n"},a.prototype.table=function(e,t){return""+e+"
"},a.prototype.br=function(){return this.options.xhtml?""+c(e.message+"",!0)+"";throw e}}g.exec=g,v.options=v.setOptions=function(e){return m(v.defaults,e),v},v.defaults={gfm:!0,tables:!0,breaks:!1,pedantic:!1,sanitize:!1,sanitizer:null,mangle:!0,smartLists:!1,silent:!1,highlight:null,langPrefix:"lang-",smartypants:!1,headerPrefix:"",renderer:new a,xhtml:!1,baseUrl:null},v.Parser=l,v.parser=l.parse,v.Renderer=a,v.TextRenderer=s,v.Lexer=r,v.lexer=r.lex,v.InlineLexer=o,v.inlineLexer=o.output,v.parse=v,e.exports=v}(this||"undefined"!=typeof window&&window)}).call(this,n(35))},function(e,t,n){n(231),n(233),n(422),n(424),n(428),n(430),n(434),n(436),n(440),n(442)},function(e,t,n){"use strict";const r=n(232),i=n(21),o=n(31);angular.module("dbt").directive("graphLauncher",["$state","$q","graph","selectorService","project","trackingService","locationService",function(e,t,n,a,s,l,c){return{restrict:"EA",replace:!0,scope:{},templateUrl:r,link:function(t,r){t.filters_visible=!1,t.graphService=n,t.selectorService=a,t.allSelected=!0;var s={tags:{visible:!1},packages:{visible:!1},resource_types:{visible:!1}};t.onWindowClick=function(e){o(e.target);var t=o(e.target).closest(".dropup");t.length||(s.tags.visible=!1,s.packages.visible=!1);var n=t.data("form-type");i.each(s,(function(e,t){t!=n&&(e.visible=!1)})),o(e.target).closest("#graph-viz-wrapper").length&&setTimeout((function(){o(":focus").blur()}))},t.onSelectClick=function(e){i.each(s,(function(t,n){n==e&&(t.visible=!t.visible,t.visible||o(":focus").blur())}))},t.isVisible=function(e){return s[e].visible},t.isSelected=function(e,t){return-1!=a.selection.dirty[e].indexOf(t)},t.onSelectAll=function(e,n,r){var i=a.selection.dirty;i[e]=n?[...a.options[e]]:[],t.allSelected=!t.allSelected,r.preventDefault()},t.onItemSelect=function(e,n,r){var o=a.selection.dirty;t.isSelected(e,n)?o[e]=i.without(o[e],n):o[e]=i.union(o[e],[n]),r.preventDefault()},t.onSelectBlur=function(e,n){n&&(n.relatedTarget&&"SELECT"!=n.relatedTarget.tagName||t.isVisible(e)&&o(n.target).focus())},t.resourceTypeTitle=function(e){return"analysis"==e?"Analyses":e[0].toUpperCase()+e.slice(1)+"s"},t.selectionLabel=function(e,t){var n=a.selection.dirty[e],r=a.options[e];return 0==n.length?"None selected":1==n.length?n[0]||t:n.length==r.length?"All selected":n.length+" selected"},t.onUpdateSelector=function(){var e=a.updateSelection(),t=n.updateGraph(e);l.track_graph_interaction("update-graph",t.length)},t.showExpanded=function(){var e=a.getViewNode(),t=e?e.name:null;if(e&&"source"==e.resource_type)var r=n.showFullGraph("source:"+e.source_name+"."+e.name);else if(e&&"exposure"==e.resource_type)r=n.showFullGraph("exposure:"+e.name);else if(e&&"metric"==e.resource_type)r=n.showFullGraph("metric:"+e.name);else r=n.showFullGraph(t);l.track_graph_interaction("show-expanded",r.length)},t.showContracted=function(){var e=a.getViewNode();if(e&&"source"==e.resource_type)var t=n.showVerticalGraph("source:"+e.source_name+"."+e.name,!0);else if(e&&"exposure"==e.resource_type)t=n.showVerticalGraph("exposure:"+e.name,!0);else if(e&&"metric"==e.resource_type)t=n.showVerticalGraph("metric:"+e.name,!0);else t=n.showVerticalGraph(e.name,!0);c.clearState(),l.track_graph_interaction("show-contracted",t.length)},t.closeGraph=function(){n.hideGraph(),c.clearState()},t.onLauncherClick=function(){var r=a.getViewNode();if(r)a.resetSelection(r),t.showContracted();else if(e.params.source){a.resetSelection(),t.showExpanded();var i=a.selectSource(e.params.source,{children:!0});setTimeout((function(){n.updateGraph(i)}))}else a.resetSelection(),t.showExpanded()},t.$watch((function(){return a.selection.dirty}),(function(e,t){if(a.isDirty()){var r=n.graph.pristine.dag,o=n.graph.pristine.nodes,s=a.selection.clean,l=a.selection.dirty,c=a.selectNodes(r,o,s),u=a.selectNodes(r,o,l),d=i.difference(c.selected,u.selected);n.markDirty(d)}else n.markAllClean()}),!0)}}}])},function(e,t){var n="/components/graph/graph-launcher.html";window.angular.module("ng").run(["$templateCache",function(e){e.put(n,'\n
{{ tag }}
\n Column | \nType | \nDescription | \nTests | \nMore? | \n
---|---|---|---|---|
\n \n {{ get_col_name(column.name) }}\n \n | \n \n {{ column.type }}\n | \n \n\n \n U\n N\n F\n A\n +\n \n | \n\n \n \n \n \n \n \n \n \n | \n|
\n \n \n \n \n\n Details\n\n \n \n \n
\n \n\n Description\n \n\n \n Generic Tests\n
| \n
\n Argument | \nType | \nDescription | \nMore? | \n
---|---|---|---|
\n \n {{ arg.name }}\n \n | \n \n {{ arg.type }}\n | \n \n\n \n \n \n \n \n \n \n \n | \n|
\n \n \n \n \n Description\n \n | \n