diff --git a/.circleci/config.yml b/.circleci/config.yml index dafabc9..1286f47 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -25,42 +25,6 @@ jobs: pip install -r integration_tests/requirements.txt mkdir -p ~/.dbt cp integration_tests/ci/sample.profiles.yml ~/.dbt/profiles.yml - - run: - name: "Run Tests - Spark" - command: | - . venv/bin/activate - echo `pwd` - cd integration_tests - dbt deps - dbt seed --target spark --full-refresh - dbt run --vars '{using_account_history_mode_active_records: true, using_opportunity_history_mode_active_records: true, using_user_role_history_mode_active_records: true, using_user_history_mode_active_records: true, salesforce__user_role_enabled: false}' --target spark --full-refresh - dbt test --vars '{salesforce__user_role_enabled: false}' --target spark - dbt run --target spark --full-refresh - dbt test --target spark - - run: - name: "Run Tests - Postgres" - command: | - . venv/bin/activate - echo `pwd` - cd integration_tests - dbt deps - dbt seed --target postgres --full-refresh - dbt run --vars '{using_account_history_mode_active_records: true, using_opportunity_history_mode_active_records: true, using_user_role_history_mode_active_records: true, using_user_history_mode_active_records: true, salesforce__user_role_enabled: false}' --target postgres --full-refresh - dbt test --vars '{salesforce__user_role_enabled: false}' --target postgres - dbt run --target postgres --full-refresh - dbt test --target postgres - - run: - name: "Run Tests - Redshift" - command: | - . venv/bin/activate - echo `pwd` - cd integration_tests - dbt deps - dbt seed --target redshift --full-refresh - dbt run --vars '{using_account_history_mode_active_records: true, using_opportunity_history_mode_active_records: true, using_user_role_history_mode_active_records: true, using_user_history_mode_active_records: true, salesforce__user_role_enabled: false}' --target redshift --full-refresh - dbt test --vars '{salesforce__user_role_enabled: false}' --target redshift - dbt run --target redshift --full-refresh - dbt test --target redshift - run: name: "Run Tests - Snowflake" command: | @@ -92,3 +56,41 @@ jobs: key: deps2-{{ .Branch }} paths: - "venv" + + - run: + name: "Run Tests - Postgres" + command: | + . venv/bin/activate + echo `pwd` + cd integration_tests + dbt deps + dbt seed --target postgres --full-refresh + dbt run --vars '{using_account_history_mode_active_records: true, using_opportunity_history_mode_active_records: true, using_user_role_history_mode_active_records: true, using_user_history_mode_active_records: true, salesforce__user_role_enabled: false}' --target postgres --full-refresh + dbt test --vars '{salesforce__user_role_enabled: false}' --target postgres + dbt run --target postgres --full-refresh + dbt test --target postgres + + - run: + name: "Run Tests - Spark" + command: | + . venv/bin/activate + echo `pwd` + cd integration_tests + dbt deps + dbt seed --target spark --full-refresh + dbt run --vars '{using_account_history_mode_active_records: true, using_opportunity_history_mode_active_records: true, using_user_role_history_mode_active_records: true, using_user_history_mode_active_records: true, salesforce__user_role_enabled: false}' --target spark --full-refresh + dbt test --vars '{salesforce__user_role_enabled: false}' --target spark + dbt run --target spark --full-refresh + dbt test --target spark + - run: + name: "Run Tests - Redshift" + command: | + . venv/bin/activate + echo `pwd` + cd integration_tests + dbt deps + dbt seed --target redshift --full-refresh + dbt run --vars '{using_account_history_mode_active_records: true, using_opportunity_history_mode_active_records: true, using_user_role_history_mode_active_records: true, using_user_history_mode_active_records: true, salesforce__user_role_enabled: false}' --target redshift --full-refresh + dbt test --vars '{salesforce__user_role_enabled: false}' --target redshift + dbt run --target redshift --full-refresh + dbt test --target redshift \ No newline at end of file diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml index 65a074b..a855790 100644 --- a/.github/ISSUE_TEMPLATE/config.yml +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -1,4 +1,7 @@ contact_links: + - name: Provide feedback or request a new package to our dbt package team + url: https://www.surveymonkey.com/r/DQ7K7WW + about: Fill out our survey form to provide valuable feedback to the Fivetran team developing and maintaining the dbt packages. - name: Ask a question during our office hours url: https://calendly.com/fivetran-solutions-team/fivetran-solutions-team-office-hours about: Schedule time during the external office hours block with the Fivetran Analytics Engineering team for support @@ -10,4 +13,4 @@ contact_links: about: Check out the dbt docs for all dbt related information - name: Hang out in dbt Slack url: https://www.getdbt.com/community/ - about: Have a question or just want to chat with fellow data friends, join dbt Slack and hangout in the tools-fivetran channel with us! \ No newline at end of file + about: Have a question or just want to chat with fellow data friends, join dbt Slack and hangout in the tools-fivetran channel with us! diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 35f658d..f450926 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -1,4 +1,3 @@ -Pull Request **Are you a current Fivetran customer?** diff --git a/CHANGELOG.md b/CHANGELOG.md index 9191072..95ae1e5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,15 @@ +# dbt_salesforce_source v0.5.0 +🎉 Salesforce Package Updates 🎉 + +We are updating the Salesforce package! To improve its utility, the changes include the following: +## Features + - Bringing additional tables to create a new Contact Enhanced and Sales Velocity model as well as updating the Opportunity Enhanced model. ([#30](https://github.com/fivetran/dbt_salesforce_source/pull/30)) + - Allowing formula fields to be added as passthrough columns. We added integration with the Salesforce Formula package by embedding the macro outputs as part of our staging models so that your custom formula fields can be included. ([#30](https://github.com/fivetran/dbt_salesforce_source/pull/30)) + - Standardization updates ([#25](https://github.com/fivetran/dbt_salesforce_source/pull/25)): + - Updated formatting in our `sql` files. + - The README has been updated to reflect our rehaul of our documentation style to make it more straightforward. + - Added `identifier` variable to each source to allow for more end-user customization on which table to pull from. + # dbt_salesforce_source v0.4.2 ## Fixes - Casts the `created_date` and `closed_date` fields within the `stg_salesforce__opportunity` model to a timestamp using the `dbt_utils.type_timestamp()` macro. This is needed for Redshift users that see these fields being synced as `timestamptz` as the downstream date functions do not work with the timestamptz datatype. diff --git a/README.md b/README.md index c59035e..49bf2de 100644 --- a/README.md +++ b/README.md @@ -1,59 +1,53 @@ -[![Apache License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) -# Salesforce ([docs](https://dbt-salesforce-source.netlify.app/)) +

+ + + + + + + + +

+ +# Salesforce Source dbt Package ([Docs](https://fivetran.github.io/dbt_salesforce_source/)) +# 📣 What does this dbt package do? +- Cleans, tests, and prepares your Salesforce data from [Fivetran's connector](https://fivetran.com/docs/applications/salesforce) for analysis. +- Generates a comprehensive data dictionary of your Salesforce data via the [dbt docs site](https://fivetran.github.io/dbt_salesforce_source/) +- Materializes staging tables which leverage data in the format described by [this ERD](https://fivetran.com/docs/applications/salesforce/#schemainformation) and is intended to work simultaneously with our [Salesforce modeling package](https://github.com/fivetran/dbt_salesforce) + - Refer to our [Docs site](https://fivetran.github.io/dbt_salesforce_source/#!/overview/salesforce_source/models/?g_v=1) for more details about these materialized models. + +# 🎯 How do I use the dbt package? +## Step 1: Pre-Requisites +- **Connector**: Have the Fivetran Salesforce connector syncing data into your warehouse. +- **Database support**: This package has been tested on **Postgres**, **Databricks**, **Redshift**, **Snowflake**, and **BigQuery**. -This package models Salesforce data from [Fivetran's connector](https://fivetran.com/docs/applications/salesforce). It uses data in the format described by [this ERD](https://docs.google.com/presentation/d/1fB6aCiX_C1lieJf55TbS2v1yv9sp-AHNNAh2x7jnJ48/edit#slide=id.g3cb9b617d1_0_237). - -This package enriches your Fivetran data by doing the following: -* Adds descriptions to tables and columns that are synced using Fivetran -* Adds freshness tests to source data -* Adds column-level testing where applicable. For example, all primary keys are tested for uniqueness and non-null values. -* Models staging tables, which will be used in our transform package - -## Models - -This package contains staging models, designed to work simultaneously with our [Salesforce transform package](https://github.com/fivetran/dbt_salesforce). The staging models: -* Remove any rows that are soft-deleted -* Name columns consistently across all packages: - * Boolean fields are prefixed with `is_` or `has_` - * Timestamps are appended with `_at` - * ID primary keys are prefixed with the name of the table. For example, the user table's ID column is renamed user_id. - - -## Installation Instructions -Check [dbt Hub](https://hub.getdbt.com/) for the latest installation instructions, or [read the dbt docs](https://docs.getdbt.com/docs/package-management) for more information on installing packages. +### Databricks Dispatch Configuration +If you are using a Databricks destination with this package you will need to add the below (or a variation of the below) dispatch configuration within your `dbt_project.yml`. This is required in order for the package to accurately search for macros within the `dbt-labs/spark_utils` then the `dbt-labs/dbt_utils` packages respectively. +```yml +dispatch: + - macro_namespace: dbt_utils + search_order: ['spark_utils', 'dbt_utils'] +``` -Include in your `packages.yml` +## Step 2: Installing the Package +Include the following salesforce_source package version in your `packages.yml` +> Check [dbt Hub](https://hub.getdbt.com/) for the latest installation instructions, or [read the dbt docs](https://docs.getdbt.com/docs/package-management) for more information on installing packages. ```yaml packages: - package: fivetran/salesforce_source - version: [">=0.4.0", "<0.5.0"] + version: [">=0.5.0", "<0.6.0"] ``` - -## Configuration -By default, this package will run using your target database and the `salesforce` schema. If this is not where your Salesforce data is (perhaps your Salesforce schema is `salesforce_fivetran`), add the following configuration to your `dbt_project.yml` file: +## Step 3: Configure Your Variables +### Database and Schema Variables +By default, this package will run using your target database and the `salesforce` schema. If this is not where your Salesforce data is (perhaps your Salesforce schema is `salesforce_fivetran`), add the following configuration to your root `dbt_project.yml` file: ```yml -# dbt_project.yml - -... vars: - salesforce_database: your_database_name - salesforce_schema: your_schema_name -``` - -### Adding Passthrough Columns -This package includes all source columns defined in the `generate_columns.sql` macro. To add additional columns to this package, do so using our pass-through column variables. This is extremely useful if you'd like to include custom fields to the package. - - -```yml -# dbt_project.yml - -... -vars: - account_pass_through_columns: [account_custom_field_1, account_custom_field_2] - opportunity_pass_through_columns: [my_opp_custom_field] - user_pass_through_columns: [users_have_custom_fields_too, lets_add_them_all] + salesforce_database: your_database_name + salesforce_schema: your_schema_name + salesforce___identifier: your_table_name ``` ### Disabling Models @@ -84,37 +78,100 @@ vars: using_opportunity_history_mode_active_records: true # false by default. Only use if you have history mode enabled. using_user_role_history_mode_active_records: true # false by default. Only use if you have history mode enabled. using_user_history_mode_active_records: true # false by default. Only use if you have history mode enabled. + using_contact_history_mode_active_records: true # false by default. Only use if you have history mode enabled. + using_lead_history_mode_active_records: true # false by default. Only use if you have history mode enabled. + using_task_history_mode_active_records: true # false by default. Only use if you have history mode enabled. + using_event_history_mode_active_records: true # false by default. Only use if you have history mode enabled. + using_product_2_history_mode_active_records: true # false by default. Only use if you have history mode enabled. + using_order_history_mode_active_records: true # false by default. Only use if you have history mode enabled. + using_opportunity_line_item_history_mode_active_records: true # false by default. Only use if you have history mode enabled. +``` +### Change the Source Table References +If an individual source table has a different name than expected, provide the name of the table as it appears in your warehouse to the respective variable: +> IMPORTANT: See this project's [`dbt_project.yml`](https://github.com/fivetran/dbt_salesforce_source/blob/main/dbt_project.yml) variable declarations to see the expected names. + +```yml +# dbt_project.yml +... +config-version: 2 +vars: + salesforce__identifier: your_table_name +``` + +## (Optional) Step 4: Additional Configurations +### Change the Build Schema +By default, this package builds the GitHub staging models within a schema titled ( + `_stg_salesforce`) in your target database. If this is not where you would like your GitHub staging data to be written to, add the following configuration to your root `dbt_project.yml` file: + +```yml +models: + salesforce_source: + +schema: my_new_schema_name # leave blank for just the target_schema ``` +### Adding Formula Fields as Pass Through Columns +The source tables Fivetran syncs do not include formula fields. If your company uses them, you can generate them by referring to the [Salesforce Formula Utils](https://github.com/fivetran/dbt_salesforce_formula_utils) package. To pass through the fields, add the following configuration. We recommend confirming your formula field models successfully populate before integrating with the Salesforce package. + +Include the following within your `packages.yml` file: +```yml +packages: + + - package: fivetran/salesforce_formula_utils + version: [">=0.6.0", "<0.7.0"] +``` + +Include the following within your `dbt_project.yml` file: +```yml +# Using the opportunity source table as example, update the opportunity variable to reference your newly created model that contains the formula fields: + opportunity: "{{ ref('my_opportunity_formula_table') }}" + +# In addition, add the desired field names as pass through columns + opportunity_pass_through_columns: ['formula_field_1','formula_field_2'] +``` + +### Adding Passthrough Columns +This package includes all source columns defined in the `generate_columns.sql` macro. To add additional columns to this package, do so using our pass-through column variables. This is extremely useful if you'd like to include custom fields to the package. -## Database support -This package has been tested on BigQuery, Snowflake, Redshift, Postgres, and Databricks. -### Databricks Dispatch Configuration -dbt `v0.20.0` introduced a new project-level dispatch configuration that enables an "override" setting for all dispatched macros. If you are using a Databricks destination with this package you will need to add the below (or a variation of the below) dispatch configuration within your `dbt_project.yml`. This is required in order for the package to accurately search for macros within the `dbt-labs/spark_utils` then the `dbt-labs/dbt_utils` packages respectively. ```yml # dbt_project.yml -dispatch: - - macro_namespace: dbt_utils - search_order: ['spark_utils', 'dbt_utils'] +... +vars: + account_pass_through_columns: [account_custom_field_1, account_custom_field_2] + opportunity_pass_through_columns: [my_opp_custom_field] + user_pass_through_columns: [users_have_custom_fields_too, lets_add_them_all] + contact_pass_through_columns: [contact_custom_field_1, contact_custom_field_2] + lead_pass_through_columns: [lead_custom_field_1, lead_custom_field_2] + task_pass_through_columns: [task_custom_field_1, task_custom_field_2] + event_pass_through_columns: [event_custom_field_1, event_custom_field_2] + product_2_pass_through_columns: [product_2_custom_field_1, product_2_custom_field_2] + order_pass_through_columns: [order_custom_field_1, order_custom_field_2] + opportunity_line_item_pass_through_columns: [opportunity_line_item_custom_field_1, opportunity_line_item_custom_field_2] + user_role_pass_through_columns: [user_role_custom_field_1, user_role_custom_field_2] +``` + +## (Optional) Step 5: Orchestrate your models with Fivetran Transformations for dbt Core™ +Fivetran offers the ability for you to orchestrate your dbt project through the [Fivetran Transformations for dbt Core™](https://fivetran.com/docs/transformations/dbt) product. Refer to the linked docs for more information on how to setup your project for orchestration through Fivetran. +# 🔍 Does this package have dependencies? +This dbt package is dependent on the following dbt packages. For more information on the below packages, refer to the [dbt hub](https://hub.getdbt.com/) site. +> **If you have any of these dependent packages in your own `packages.yml` I highly recommend you remove them to ensure there are no package version conflicts.** +```yml +packages: + - package: fivetran/fivetran_utils + version: [">=0.3.0", "<0.4.0"] + + - package: dbt-labs/dbt_utils + version: [">=0.8.0", "<0.9.0"] ``` +# 🙌 How is this package maintained and can I contribute? +## Package Maintenance +The Fivetran team maintaining this package **only** maintains the latest version of the package. We highly recommend you stay consistent with the [latest version](https://hub.getdbt.com/fivetran/salesforce_source/latest/) of the package and refer to the [CHANGELOG](https://github.com/fivetran/dbt_salesforce_source/blob/main/CHANGELOG.md) and release notes for more information on changes across versions. ## Contributions +These dbt packages are developed by a small team of analytics engineers at Fivetran. However, the packages are made better by community contributions! + +We highly encourage and welcome contributions to this package. Check out [this post](https://discourse.getdbt.com/t/contributing-to-a-dbt-package/657) on the best workflow for contributing to a package! -Additional contributions to this package are very welcome! Please create issues -or open PRs against `main`. Check out -[this post](https://discourse.getdbt.com/t/contributing-to-a-dbt-package/657) -on the best workflow for contributing to a package. - -## Resources: -- Provide [feedback](https://www.surveymonkey.com/r/DQ7K7WW) on our existing dbt packages or what you'd like to see next -- Have questions, feedback, or need help? Book a time during our office hours [here](https://calendly.com/fivetran-solutions-team/fivetran-solutions-team-office-hours) or email us at solutions@fivetran.com -- Find all of Fivetran's pre-built dbt packages in our [dbt hub](https://hub.getdbt.com/fivetran/) -- Learn how to orchestrate your models with [Fivetran Transformations for dbt Core™](https://fivetran.com/docs/transformations/dbt) -- Learn more about Fivetran overall [in our docs](https://fivetran.com/docs) -- Check out [Fivetran's blog](https://fivetran.com/blog) -- Learn more about dbt [in the dbt docs](https://docs.getdbt.com/docs/introduction) -- Check out [Discourse](https://discourse.getdbt.com/) for commonly asked questions and answers -- Join the [chat](http://slack.getdbt.com/) on Slack for live discussions and support -- Find [dbt events](https://events.getdbt.com) near you -- Check out [the dbt blog](https://blog.getdbt.com/) for the latest news on dbt's development and best practices +# 🏪 Are there any resources available? +- If you encounter any questions or want to reach out for help, please refer to the [GitHub Issue](https://github.com/fivetran/dbt_salesforce_source/issues/new/choose) section to find the right avenue of support for you. +- If you would like to provide feedback to the dbt package team at Fivetran, or would like to request a future dbt package to be developed, then feel free to fill out our [Feedback Form](https://www.surveymonkey.com/r/DQ7K7WW). +- Have questions or want to just say hi? Book a time during our office hours [here](https://calendly.com/fivetran-solutions-team/fivetran-solutions-team-office-hours) or send us an email at solutions@fivetran.com. \ No newline at end of file diff --git a/dbt_project.yml b/dbt_project.yml index 2bba53a..5b8194c 100644 --- a/dbt_project.yml +++ b/dbt_project.yml @@ -1,7 +1,7 @@ config-version: 2 name: 'salesforce_source' -version: '0.4.2' +version: '0.5.0' require-dbt-version: [">=1.0.0", "<2.0.0"] @@ -18,12 +18,33 @@ vars: opportunity: "{{ source('salesforce', 'opportunity') }}" user: "{{ source('salesforce', 'user') }}" user_role: "{{ source('salesforce', 'user_role') }}" - + contact: "{{ source('salesforce', 'contact') }}" + lead: "{{ source('salesforce', 'lead') }}" + task: "{{ source('salesforce', 'task') }}" + event: "{{ source('salesforce', 'event') }}" + product_2: "{{ source('salesforce', 'product_2') }}" + order: "{{ source('salesforce', 'order') }}" + opportunity_line_item: "{{ source('salesforce', 'opportunity_line_item') }}" + salesforce__user_role_enabled: true + salesforce__lead_enabled: true + salesforce__event_enabled: true + salesforce__task_enabled: true + salesforce__opportunity_line_item_enabled: true + salesforce__order_enabled: true + salesforce__product_2_enabled: true # Salesforce pass through column variables account_pass_through_columns: [] + contact_pass_through_columns: [] + event_pass_through_columns: [] + lead_pass_through_columns: [] opportunity_pass_through_columns: [] + opportunity_line_item_pass_through_columns: [] + order_pass_through_columns: [] + product_2_pass_through_columns: [] + task_pass_through_columns: [] + user_role_pass_through_columns: [] user_pass_through_columns: [] # Variable to define if you are set up with Salesforce History Mode. @@ -31,3 +52,10 @@ vars: using_opportunity_history_mode_active_records: false using_user_role_history_mode_active_records: false using_user_history_mode_active_records: false + using_contact_history_mode_active_records: false + using_lead_history_mode_active_records: false + using_task_history_mode_active_records: false + using_event_history_mode_active_records: false + using_product_2_history_mode_active_records: false + using_order_history_mode_active_records: false + using_opportunity_line_item_history_mode_active_records: false \ No newline at end of file diff --git a/docs/catalog.json b/docs/catalog.json index 886778c..66e9e31 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": "0.20.0", "generated_at": "2021-08-05T22:00:56.075492Z", "invocation_id": "bf32e716-f8ec-4901-b5fd-4c158e73903f", "env": {}}, "nodes": {}, "sources": {"source.salesforce_source.salesforce.user": {"metadata": {"type": "table", "schema": "salesforce_source_integration_tests", "name": "user", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_deleted": {"type": "BOOL", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 2, "name": "_fivetran_synced", "comment": null}, "about_me": {"type": "INT64", "index": 3, "name": "about_me", "comment": null}, "account_id": {"type": "INT64", "index": 4, "name": "account_id", "comment": null}, "alias": {"type": "STRING", "index": 5, "name": "alias", "comment": null}, "badge_text": {"type": "STRING", "index": 6, "name": "badge_text", "comment": null}, "banner_photo_url": {"type": "STRING", "index": 7, "name": "banner_photo_url", "comment": null}, "call_center_id": {"type": "INT64", "index": 8, "name": "call_center_id", "comment": null}, "city": {"type": "INT64", "index": 9, "name": "city", "comment": null}, "community_nickname": {"type": "STRING", "index": 10, "name": "community_nickname", "comment": null}, "company_name": {"type": "INT64", "index": 11, "name": "company_name", "comment": null}, "contact_id": {"type": "INT64", "index": 12, "name": "contact_id", "comment": null}, "country": {"type": "STRING", "index": 13, "name": "country", "comment": null}, "country_code": {"type": "STRING", "index": 14, "name": "country_code", "comment": null}, "default_group_notification_frequency": {"type": "STRING", "index": 15, "name": "default_group_notification_frequency", "comment": null}, "delegated_approver_id": {"type": "STRING", "index": 16, "name": "delegated_approver_id", "comment": null}, "department": {"type": "INT64", "index": 17, "name": "department", "comment": null}, "digest_frequency": {"type": "STRING", "index": 18, "name": "digest_frequency", "comment": null}, "division": {"type": "INT64", "index": 19, "name": "division", "comment": null}, "email": {"type": "STRING", "index": 20, "name": "email", "comment": null}, "email_encoding_key": {"type": "STRING", "index": 21, "name": "email_encoding_key", "comment": null}, "email_preferences_auto_bcc": {"type": "BOOL", "index": 22, "name": "email_preferences_auto_bcc", "comment": null}, "employee_number": {"type": "INT64", "index": 23, "name": "employee_number", "comment": null}, "extension": {"type": "INT64", "index": 24, "name": "extension", "comment": null}, "fax": {"type": "INT64", "index": 25, "name": "fax", "comment": null}, "federation_identifier": {"type": "INT64", "index": 26, "name": "federation_identifier", "comment": null}, "first_name": {"type": "STRING", "index": 27, "name": "first_name", "comment": null}, "forecast_enabled": {"type": "BOOL", "index": 28, "name": "forecast_enabled", "comment": null}, "full_photo_url": {"type": "STRING", "index": 29, "name": "full_photo_url", "comment": null}, "geocode_accuracy": {"type": "INT64", "index": 30, "name": "geocode_accuracy", "comment": null}, "id": {"type": "STRING", "index": 31, "name": "id", "comment": null}, "individual_id": {"type": "INT64", "index": 32, "name": "individual_id", "comment": null}, "is_active": {"type": "BOOL", "index": 33, "name": "is_active", "comment": null}, "is_profile_photo_active": {"type": "BOOL", "index": 34, "name": "is_profile_photo_active", "comment": null}, "language_locale_key": {"type": "STRING", "index": 35, "name": "language_locale_key", "comment": null}, "last_login_date": {"type": "DATETIME", "index": 36, "name": "last_login_date", "comment": null}, "last_name": {"type": "STRING", "index": 37, "name": "last_name", "comment": null}, "last_referenced_date": {"type": "DATETIME", "index": 38, "name": "last_referenced_date", "comment": null}, "last_viewed_date": {"type": "DATETIME", "index": 39, "name": "last_viewed_date", "comment": null}, "latitude": {"type": "INT64", "index": 40, "name": "latitude", "comment": null}, "locale_sid_key": {"type": "STRING", "index": 41, "name": "locale_sid_key", "comment": null}, "longitude": {"type": "INT64", "index": 42, "name": "longitude", "comment": null}, "manager_id": {"type": "STRING", "index": 43, "name": "manager_id", "comment": null}, "medium_banner_photo_url": {"type": "STRING", "index": 44, "name": "medium_banner_photo_url", "comment": null}, "mobile_phone": {"type": "INT64", "index": 45, "name": "mobile_phone", "comment": null}, "name": {"type": "STRING", "index": 46, "name": "name", "comment": null}, "offline_trial_expiration_date": {"type": "INT64", "index": 47, "name": "offline_trial_expiration_date", "comment": null}, "phone": {"type": "STRING", "index": 48, "name": "phone", "comment": null}, "postal_code": {"type": "INT64", "index": 49, "name": "postal_code", "comment": null}, "profile_id": {"type": "STRING", "index": 50, "name": "profile_id", "comment": null}, "receives_admin_info_emails": {"type": "BOOL", "index": 51, "name": "receives_admin_info_emails", "comment": null}, "receives_info_emails": {"type": "BOOL", "index": 52, "name": "receives_info_emails", "comment": null}, "sender_email": {"type": "INT64", "index": 53, "name": "sender_email", "comment": null}, "sender_name": {"type": "INT64", "index": 54, "name": "sender_name", "comment": null}, "signature": {"type": "INT64", "index": 55, "name": "signature", "comment": null}, "small_banner_photo_url": {"type": "STRING", "index": 56, "name": "small_banner_photo_url", "comment": null}, "small_photo_url": {"type": "STRING", "index": 57, "name": "small_photo_url", "comment": null}, "state": {"type": "INT64", "index": 58, "name": "state", "comment": null}, "state_code": {"type": "INT64", "index": 59, "name": "state_code", "comment": null}, "street": {"type": "INT64", "index": 60, "name": "street", "comment": null}, "time_zone_sid_key": {"type": "STRING", "index": 61, "name": "time_zone_sid_key", "comment": null}, "title": {"type": "STRING", "index": 62, "name": "title", "comment": null}, "user_role_id": {"type": "STRING", "index": 63, "name": "user_role_id", "comment": null}, "user_type": {"type": "STRING", "index": 64, "name": "user_type", "comment": null}, "username": {"type": "STRING", "index": 65, "name": "username", "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": 6700.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.salesforce_source.salesforce.user"}}, "errors": null} \ No newline at end of file +{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/catalog/v1.json", "dbt_version": "1.0.0", "generated_at": "2022-06-15T14:59:43.002083Z", "invocation_id": "3fbda07c-5b3f-414f-b4f3-7a106ff5ba62", "env": {}}, "nodes": {"model.salesforce_source.stg_salesforce__event": {"metadata": {"type": "table", "schema": "dbt_renee", "name": "stg_salesforce__event", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "TIMESTAMP", "index": 1, "name": "_fivetran_synced", "comment": null}, "event_id": {"type": "STRING", "index": 2, "name": "event_id", "comment": null}, "account_id": {"type": "STRING", "index": 3, "name": "account_id", "comment": null}, "activity_date": {"type": "TIMESTAMP", "index": 4, "name": "activity_date", "comment": null}, "activity_date_time": {"type": "TIMESTAMP", "index": 5, "name": "activity_date_time", "comment": null}, "created_by_id": {"type": "STRING", "index": 6, "name": "created_by_id", "comment": null}, "created_date": {"type": "TIMESTAMP", "index": 7, "name": "created_date", "comment": null}, "description": {"type": "STRING", "index": 8, "name": "description", "comment": null}, "end_date": {"type": "TIMESTAMP", "index": 9, "name": "end_date", "comment": null}, "end_date_time": {"type": "TIMESTAMP", "index": 10, "name": "end_date_time", "comment": null}, "event_subtype": {"type": "STRING", "index": 11, "name": "event_subtype", "comment": null}, "group_event_type": {"type": "STRING", "index": 12, "name": "group_event_type", "comment": null}, "is_archived": {"type": "BOOL", "index": 13, "name": "is_archived", "comment": null}, "is_child": {"type": "BOOL", "index": 14, "name": "is_child", "comment": null}, "is_deleted": {"type": "BOOL", "index": 15, "name": "is_deleted", "comment": null}, "is_group_event": {"type": "BOOL", "index": 16, "name": "is_group_event", "comment": null}, "is_recurrence": {"type": "BOOL", "index": 17, "name": "is_recurrence", "comment": null}, "last_modified_by_id": {"type": "STRING", "index": 18, "name": "last_modified_by_id", "comment": null}, "last_modified_date": {"type": "TIMESTAMP", "index": 19, "name": "last_modified_date", "comment": null}, "location": {"type": "STRING", "index": 20, "name": "location", "comment": null}, "owner_id": {"type": "STRING", "index": 21, "name": "owner_id", "comment": null}, "start_date_time": {"type": "TIMESTAMP", "index": 22, "name": "start_date_time", "comment": null}, "subject": {"type": "STRING", "index": 23, "name": "subject", "comment": null}, "type": {"type": "STRING", "index": 24, "name": "type", "comment": null}, "what_count": {"type": "INT64", "index": 25, "name": "what_count", "comment": null}, "what_id": {"type": "STRING", "index": 26, "name": "what_id", "comment": null}, "who_count": {"type": "INT64", "index": 27, "name": "who_count", "comment": null}, "who_id": {"type": "STRING", "index": 28, "name": "who_id", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 27118153.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 100585.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.salesforce_source.stg_salesforce__event"}, "model.salesforce_source.stg_salesforce__task_tmp": {"metadata": {"type": "view", "schema": "dbt_renee", "name": "stg_salesforce__task_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"referral_account_c": {"type": "STRING", "index": 1, "name": "referral_account_c", "comment": null}, "who_id": {"type": "STRING", "index": 2, "name": "who_id", "comment": null}, "call_disposition": {"type": "STRING", "index": 3, "name": "call_disposition", "comment": null}, "recurrence_day_of_month": {"type": "INT64", "index": 4, "name": "recurrence_day_of_month", "comment": null}, "owner_id": {"type": "STRING", "index": 5, "name": "owner_id", "comment": null}, "recurrence_end_date_only": {"type": "TIMESTAMP", "index": 6, "name": "recurrence_end_date_only", "comment": null}, "subject": {"type": "STRING", "index": 7, "name": "subject", "comment": null}, "description": {"type": "STRING", "index": 8, "name": "description", "comment": null}, "last_modified_date": {"type": "TIMESTAMP", "index": 9, "name": "last_modified_date", "comment": null}, "recurrence_time_zone_sid_key": {"type": "STRING", "index": 10, "name": "recurrence_time_zone_sid_key", "comment": null}, "is_recurrence": {"type": "BOOL", "index": 11, "name": "is_recurrence", "comment": null}, "what_count": {"type": "INT64", "index": 12, "name": "what_count", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 13, "name": "_fivetran_synced", "comment": null}, "call_object": {"type": "STRING", "index": 14, "name": "call_object", "comment": null}, "is_deleted": {"type": "BOOL", "index": 15, "name": "is_deleted", "comment": null}, "recurrence_day_of_week_mask": {"type": "INT64", "index": 16, "name": "recurrence_day_of_week_mask", "comment": null}, "last_modified_by_id": {"type": "STRING", "index": 17, "name": "last_modified_by_id", "comment": null}, "system_modstamp": {"type": "TIMESTAMP", "index": 18, "name": "system_modstamp", "comment": null}, "recurrence_regenerated_type": {"type": "STRING", "index": 19, "name": "recurrence_regenerated_type", "comment": null}, "id": {"type": "STRING", "index": 20, "name": "id", "comment": null}, "recurrence_type": {"type": "STRING", "index": 21, "name": "recurrence_type", "comment": null}, "reminder_date_time": {"type": "TIMESTAMP", "index": 22, "name": "reminder_date_time", "comment": null}, "call_type": {"type": "STRING", "index": 23, "name": "call_type", "comment": null}, "is_high_priority": {"type": "BOOL", "index": 24, "name": "is_high_priority", "comment": null}, "is_closed": {"type": "BOOL", "index": 25, "name": "is_closed", "comment": null}, "recurrence_month_of_year": {"type": "STRING", "index": 26, "name": "recurrence_month_of_year", "comment": null}, "is_reminder_set": {"type": "BOOL", "index": 27, "name": "is_reminder_set", "comment": null}, "activity_date": {"type": "TIMESTAMP", "index": 28, "name": "activity_date", "comment": null}, "recurrence_instance": {"type": "STRING", "index": 29, "name": "recurrence_instance", "comment": null}, "priority": {"type": "STRING", "index": 30, "name": "priority", "comment": null}, "recurrence_interval": {"type": "INT64", "index": 31, "name": "recurrence_interval", "comment": null}, "who_count": {"type": "INT64", "index": 32, "name": "who_count", "comment": null}, "recurrence_start_date_only": {"type": "TIMESTAMP", "index": 33, "name": "recurrence_start_date_only", "comment": null}, "account_id": {"type": "STRING", "index": 34, "name": "account_id", "comment": null}, "referral_contact_c": {"type": "STRING", "index": 35, "name": "referral_contact_c", "comment": null}, "call_duration_in_seconds": {"type": "INT64", "index": 36, "name": "call_duration_in_seconds", "comment": null}, "created_by_id": {"type": "STRING", "index": 37, "name": "created_by_id", "comment": null}, "created_date": {"type": "TIMESTAMP", "index": 38, "name": "created_date", "comment": null}, "recurrence_activity_id": {"type": "STRING", "index": 39, "name": "recurrence_activity_id", "comment": null}, "what_id": {"type": "STRING", "index": 40, "name": "what_id", "comment": null}, "task_subtype": {"type": "STRING", "index": 41, "name": "task_subtype", "comment": null}, "status": {"type": "STRING", "index": 42, "name": "status", "comment": null}, "invitee_uuid_c": {"type": "STRING", "index": 43, "name": "invitee_uuid_c", "comment": null}, "type": {"type": "STRING", "index": 44, "name": "type", "comment": null}, "no_show_c": {"type": "BOOL", "index": 45, "name": "no_show_c", "comment": null}, "first_meeting_held_c": {"type": "BOOL", "index": 46, "name": "first_meeting_held_c", "comment": null}, "associated_sdr_c": {"type": "STRING", "index": 47, "name": "associated_sdr_c", "comment": null}, "first_meeting_c": {"type": "BOOL", "index": 48, "name": "first_meeting_c", "comment": null}, "call_recording_c": {"type": "STRING", "index": 49, "name": "call_recording_c", "comment": null}, "affectlayer_chorus_call_id_c": {"type": "STRING", "index": 50, "name": "affectlayer_chorus_call_id_c", "comment": null}, "affectlayer_affect_layer_call_id_c": {"type": "STRING", "index": 51, "name": "affectlayer_affect_layer_call_id_c", "comment": null}, "last_rep_activity_date_c": {"type": "TIMESTAMP", "index": 52, "name": "last_rep_activity_date_c", "comment": null}, "lid_url_c": {"type": "STRING", "index": 53, "name": "lid_url_c", "comment": null}, "lid_date_sent_c": {"type": "TIMESTAMP", "index": 54, "name": "lid_date_sent_c", "comment": null}, "record_type_id": {"type": "STRING", "index": 55, "name": "record_type_id", "comment": null}, "sales_loft_step_id_c": {"type": "STRING", "index": 56, "name": "sales_loft_step_id_c", "comment": null}, "sales_loft_step_name_c": {"type": "STRING", "index": 57, "name": "sales_loft_step_name_c", "comment": null}, "sales_loft_step_type_c": {"type": "STRING", "index": 58, "name": "sales_loft_step_type_c", "comment": null}, "sales_loft_email_template_id_c": {"type": "STRING", "index": 59, "name": "sales_loft_email_template_id_c", "comment": null}, "sales_loft_external_identifier_c": {"type": "STRING", "index": 60, "name": "sales_loft_external_identifier_c", "comment": null}, "sales_loft_cadence_id_c": {"type": "STRING", "index": 61, "name": "sales_loft_cadence_id_c", "comment": null}, "sales_loft_clicked_count_c": {"type": "FLOAT64", "index": 62, "name": "sales_loft_clicked_count_c", "comment": null}, "sales_loft_cadence_name_c": {"type": "STRING", "index": 63, "name": "sales_loft_cadence_name_c", "comment": null}, "sales_loft_reply_count_c": {"type": "FLOAT64", "index": 64, "name": "sales_loft_reply_count_c", "comment": null}, "call_disposition_c": {"type": "STRING", "index": 65, "name": "call_disposition_c", "comment": null}, "sales_loft_email_template_title_c": {"type": "STRING", "index": 66, "name": "sales_loft_email_template_title_c", "comment": null}, "sales_loft_step_day_new_c": {"type": "FLOAT64", "index": 67, "name": "sales_loft_step_day_new_c", "comment": null}, "call_disposition_2_c": {"type": "STRING", "index": 68, "name": "call_disposition_2_c", "comment": null}, "sales_loft_viewed_count_c": {"type": "FLOAT64", "index": 69, "name": "sales_loft_viewed_count_c", "comment": null}, "sales_loft_1_sales_loft_step_day_c": {"type": "FLOAT64", "index": 70, "name": "sales_loft_1_sales_loft_step_day_c", "comment": null}, "sales_loft_1_sales_loft_clicked_count_c": {"type": "FLOAT64", "index": 71, "name": "sales_loft_1_sales_loft_clicked_count_c", "comment": null}, "sales_loft_1_sales_loft_view_count_c": {"type": "FLOAT64", "index": 72, "name": "sales_loft_1_sales_loft_view_count_c", "comment": null}, "sales_loft_1_call_disposition_c": {"type": "STRING", "index": 73, "name": "sales_loft_1_call_disposition_c", "comment": null}, "sales_loft_1_sales_loft_replies_count_c": {"type": "FLOAT64", "index": 74, "name": "sales_loft_1_sales_loft_replies_count_c", "comment": null}, "sales_loft_1_sales_loft_cadence_name_c": {"type": "STRING", "index": 75, "name": "sales_loft_1_sales_loft_cadence_name_c", "comment": null}, "sales_loft_1_call_sentiment_c": {"type": "STRING", "index": 76, "name": "sales_loft_1_call_sentiment_c", "comment": null}, "sales_loft_1_sales_loft_email_template_title_c": {"type": "STRING", "index": 77, "name": "sales_loft_1_sales_loft_email_template_title_c", "comment": null}, "completed_date_time": {"type": "TIMESTAMP", "index": 78, "name": "completed_date_time", "comment": null}, "is_a_co_sell_activity_c": {"type": "BOOL", "index": 79, "name": "is_a_co_sell_activity_c", "comment": null}, "partner_contact_c": {"type": "STRING", "index": 80, "name": "partner_contact_c", "comment": null}, "co_selling_activity_c": {"type": "STRING", "index": 81, "name": "co_selling_activity_c", "comment": null}, "description_c": {"type": "STRING", "index": 82, "name": "description_c", "comment": null}, "co_sell_partner_account_c": {"type": "STRING", "index": 83, "name": "co_sell_partner_account_c", "comment": null}, "campaign_c": {"type": "STRING", "index": 84, "name": "campaign_c", "comment": null}, "partner_account_c": {"type": "STRING", "index": 85, "name": "partner_account_c", "comment": null}, "topic_c": {"type": "STRING", "index": 86, "name": "topic_c", "comment": null}, "event_name_c": {"type": "STRING", "index": 87, "name": "event_name_c", "comment": null}, "attendance_number_c": {"type": "FLOAT64", "index": 88, "name": "attendance_number_c", "comment": null}, "partner_activity_type_c": {"type": "STRING", "index": 89, "name": "partner_activity_type_c", "comment": null}, "proof_of_referral_c": {"type": "STRING", "index": 90, "name": "proof_of_referral_c", "comment": null}, "how_did_you_bring_value_or_create_trust_c": {"type": "STRING", "index": 91, "name": "how_did_you_bring_value_or_create_trust_c", "comment": null}, "how_did_you_bring_value_or_earn_trust_c": {"type": "STRING", "index": 92, "name": "how_did_you_bring_value_or_earn_trust_c", "comment": null}, "duration_in_minutes_c": {"type": "FLOAT64", "index": 93, "name": "duration_in_minutes_c", "comment": null}, "vidyard_c": {"type": "BOOL", "index": 94, "name": "vidyard_c", "comment": null}, "expected_payment_date_c": {"type": "TIMESTAMP", "index": 95, "name": "expected_payment_date_c", "comment": null}, "execute_collections_plan_activity_c": {"type": "BOOL", "index": 96, "name": "execute_collections_plan_activity_c", "comment": null}, "collections_hold_c": {"type": "BOOL", "index": 97, "name": "collections_hold_c", "comment": null}, "opportunity_c": {"type": "STRING", "index": 98, "name": "opportunity_c", "comment": null}, "meeting_type_c": {"type": "STRING", "index": 99, "name": "meeting_type_c", "comment": null}, "meeting_name_c": {"type": "STRING", "index": 100, "name": "meeting_name_c", "comment": null}, "bizible_2_bizible_id_c": {"type": "STRING", "index": 101, "name": "bizible_2_bizible_id_c", "comment": null}, "bizible_2_bizible_touchpoint_date_c": {"type": "TIMESTAMP", "index": 102, "name": "bizible_2_bizible_touchpoint_date_c", "comment": null}, "assigned_to_role_c": {"type": "STRING", "index": 103, "name": "assigned_to_role_c", "comment": null}, "assigned_to_name_c": {"type": "STRING", "index": 104, "name": "assigned_to_name_c", "comment": null}, "legacy_hvr_id_c": {"type": "STRING", "index": 105, "name": "legacy_hvr_id_c", "comment": null}, "is_archived": {"type": "BOOL", "index": 106, "name": "is_archived", "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.salesforce_source.stg_salesforce__task_tmp"}, "model.develop.opportunity_formula": {"metadata": {"type": "view", "schema": "dbt_renee", "name": "opportunity_formula", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"close_date": {"type": "TIMESTAMP", "index": 1, "name": "close_date", "comment": null}, "secondary_reason_won_c": {"type": "STRING", "index": 2, "name": "secondary_reason_won_c", "comment": null}, "owner_id": {"type": "STRING", "index": 3, "name": "owner_id", "comment": null}, "primary_reason_lost_c": {"type": "STRING", "index": 4, "name": "primary_reason_lost_c", "comment": null}, "subscription_end_date_c": {"type": "TIMESTAMP", "index": 5, "name": "subscription_end_date_c", "comment": null}, "lead_source": {"type": "STRING", "index": 6, "name": "lead_source", "comment": null}, "expected_trial_start_date_c": {"type": "TIMESTAMP", "index": 7, "name": "expected_trial_start_date_c", "comment": null}, "last_modified_date": {"type": "TIMESTAMP", "index": 8, "name": "last_modified_date", "comment": null}, "type": {"type": "STRING", "index": 9, "name": "type", "comment": null}, "trial_end_date_c": {"type": "TIMESTAMP", "index": 10, "name": "trial_end_date_c", "comment": null}, "pricebook_2_id": {"type": "STRING", "index": 11, "name": "pricebook_2_id", "comment": null}, "next_step": {"type": "STRING", "index": 12, "name": "next_step", "comment": null}, "fiscal_year": {"type": "INT64", "index": 13, "name": "fiscal_year", "comment": null}, "last_modified_by_id": {"type": "STRING", "index": 14, "name": "last_modified_by_id", "comment": null}, "system_modstamp": {"type": "TIMESTAMP", "index": 15, "name": "system_modstamp", "comment": null}, "stage_name": {"type": "STRING", "index": 16, "name": "stage_name", "comment": null}, "id": {"type": "STRING", "index": 17, "name": "id", "comment": null}, "campaign_id": {"type": "STRING", "index": 18, "name": "campaign_id", "comment": null}, "is_closed": {"type": "BOOL", "index": 19, "name": "is_closed", "comment": null}, "last_referenced_date": {"type": "TIMESTAMP", "index": 20, "name": "last_referenced_date", "comment": null}, "probability": {"type": "FLOAT64", "index": 21, "name": "probability", "comment": null}, "last_activity_date": {"type": "TIMESTAMP", "index": 22, "name": "last_activity_date", "comment": null}, "secondary_reason_lost_c": {"type": "STRING", "index": 23, "name": "secondary_reason_lost_c", "comment": null}, "synced_quote_id": {"type": "STRING", "index": 24, "name": "synced_quote_id", "comment": null}, "is_won": {"type": "BOOL", "index": 25, "name": "is_won", "comment": null}, "fiscal": {"type": "STRING", "index": 26, "name": "fiscal", "comment": null}, "name": {"type": "STRING", "index": 27, "name": "name", "comment": null}, "lead_source_detail_c": {"type": "STRING", "index": 28, "name": "lead_source_detail_c", "comment": null}, "created_by_id": {"type": "STRING", "index": 29, "name": "created_by_id", "comment": null}, "primary_reason_won_c": {"type": "STRING", "index": 30, "name": "primary_reason_won_c", "comment": null}, "billing_frequency_c": {"type": "STRING", "index": 31, "name": "billing_frequency_c", "comment": null}, "forecast_category": {"type": "STRING", "index": 32, "name": "forecast_category", "comment": null}, "description": {"type": "STRING", "index": 33, "name": "description", "comment": null}, "has_overdue_task": {"type": "BOOL", "index": 34, "name": "has_overdue_task", "comment": null}, "last_viewed_date": {"type": "TIMESTAMP", "index": 35, "name": "last_viewed_date", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 36, "name": "_fivetran_synced", "comment": null}, "pandadoc_tracking_number_c": {"type": "STRING", "index": 37, "name": "pandadoc_tracking_number_c", "comment": null}, "is_deleted": {"type": "BOOL", "index": 38, "name": "is_deleted", "comment": null}, "trial_start_date_c": {"type": "TIMESTAMP", "index": 39, "name": "trial_start_date_c", "comment": null}, "subscription_start_date_c": {"type": "TIMESTAMP", "index": 40, "name": "subscription_start_date_c", "comment": null}, "has_open_activity": {"type": "BOOL", "index": 41, "name": "has_open_activity", "comment": null}, "fiscal_quarter": {"type": "INT64", "index": 42, "name": "fiscal_quarter", "comment": null}, "automatic_renewal_c": {"type": "BOOL", "index": 43, "name": "automatic_renewal_c", "comment": null}, "confidence_c": {"type": "STRING", "index": 44, "name": "confidence_c", "comment": null}, "amount": {"type": "FLOAT64", "index": 45, "name": "amount", "comment": null}, "discount_c": {"type": "FLOAT64", "index": 46, "name": "discount_c", "comment": null}, "integrations_c": {"type": "STRING", "index": 47, "name": "integrations_c", "comment": null}, "has_opportunity_line_item": {"type": "BOOL", "index": 48, "name": "has_opportunity_line_item", "comment": null}, "account_id": {"type": "STRING", "index": 49, "name": "account_id", "comment": null}, "forecast_category_name": {"type": "STRING", "index": 50, "name": "forecast_category_name", "comment": null}, "created_date": {"type": "TIMESTAMP", "index": 51, "name": "created_date", "comment": null}, "gclid_c": {"type": "STRING", "index": 52, "name": "gclid_c", "comment": null}, "next_step_due_date_c": {"type": "TIMESTAMP", "index": 53, "name": "next_step_due_date_c", "comment": null}, "next_step_due_date_del_c": {"type": "TIMESTAMP", "index": 54, "name": "next_step_due_date_del_c", "comment": null}, "competitors_c": {"type": "STRING", "index": 55, "name": "competitors_c", "comment": null}, "connector_products_c": {"type": "STRING", "index": 56, "name": "connector_products_c", "comment": null}, "data_warehouse_products_c": {"type": "STRING", "index": 57, "name": "data_warehouse_products_c", "comment": null}, "notes_c": {"type": "STRING", "index": 58, "name": "notes_c", "comment": null}, "timeframe_c": {"type": "STRING", "index": 59, "name": "timeframe_c", "comment": null}, "website_c": {"type": "STRING", "index": 60, "name": "website_c", "comment": null}, "opportunity_competitors_c": {"type": "STRING", "index": 61, "name": "opportunity_competitors_c", "comment": null}, "opportunity_data_warehouses_c": {"type": "STRING", "index": 62, "name": "opportunity_data_warehouses_c", "comment": null}, "opportunity_products_c": {"type": "STRING", "index": 63, "name": "opportunity_products_c", "comment": null}, "account_all_products_c": {"type": "STRING", "index": 64, "name": "account_all_products_c", "comment": null}, "account_bi_tools_c": {"type": "STRING", "index": 65, "name": "account_bi_tools_c", "comment": null}, "account_data_warehouses_c": {"type": "STRING", "index": 66, "name": "account_data_warehouses_c", "comment": null}, "referral_account_c": {"type": "STRING", "index": 67, "name": "referral_account_c", "comment": null}, "referral_contact_c": {"type": "STRING", "index": 68, "name": "referral_contact_c", "comment": null}, "subscription_active_c": {"type": "BOOL", "index": 69, "name": "subscription_active_c", "comment": null}, "volume_in_millions_c": {"type": "FLOAT64", "index": 70, "name": "volume_in_millions_c", "comment": null}, "feature_requests_c": {"type": "STRING", "index": 71, "name": "feature_requests_c", "comment": null}, "subscription_end_date_greater_than_today_c": {"type": "BOOL", "index": 72, "name": "subscription_end_date_greater_than_today_c", "comment": null}, "bread_winner_total_amount_due_c": {"type": "FLOAT64", "index": 73, "name": "bread_winner_total_amount_due_c", "comment": null}, "bread_winner_total_amount_invoiced_c": {"type": "FLOAT64", "index": 74, "name": "bread_winner_total_amount_invoiced_c", "comment": null}, "bread_winner_total_amount_overdue_c": {"type": "FLOAT64", "index": 75, "name": "bread_winner_total_amount_overdue_c", "comment": null}, "bread_winner_total_amount_paid_c": {"type": "FLOAT64", "index": 76, "name": "bread_winner_total_amount_paid_c", "comment": null}, "bread_winner_total_draft_amount_c": {"type": "FLOAT64", "index": 77, "name": "bread_winner_total_draft_amount_c", "comment": null}, "reason_lost_c": {"type": "STRING", "index": 78, "name": "reason_lost_c", "comment": null}, "reason_won_c": {"type": "STRING", "index": 79, "name": "reason_won_c", "comment": null}, "billing_contact_first_name_c": {"type": "STRING", "index": 80, "name": "billing_contact_first_name_c", "comment": null}, "billing_contact_last_name_c": {"type": "STRING", "index": 81, "name": "billing_contact_last_name_c", "comment": null}, "billing_email_c": {"type": "STRING", "index": 82, "name": "billing_email_c", "comment": null}, "billing_phone_c": {"type": "STRING", "index": 83, "name": "billing_phone_c", "comment": null}, "invoice_payment_terms_net_c": {"type": "STRING", "index": 84, "name": "invoice_payment_terms_net_c", "comment": null}, "subscription_not_started_c": {"type": "BOOL", "index": 85, "name": "subscription_not_started_c", "comment": null}, "invoice_due_date_c": {"type": "TIMESTAMP", "index": 86, "name": "invoice_due_date_c", "comment": null}, "payment_terms_c": {"type": "STRING", "index": 87, "name": "payment_terms_c", "comment": null}, "associated_stripe_charge_id_c": {"type": "STRING", "index": 88, "name": "associated_stripe_charge_id_c", "comment": null}, "record_type_id": {"type": "STRING", "index": 89, "name": "record_type_id", "comment": null}, "contract_type_c": {"type": "STRING", "index": 90, "name": "contract_type_c", "comment": null}, "lost_communication_preference_c": {"type": "STRING", "index": 91, "name": "lost_communication_preference_c", "comment": null}, "lost_primary_reason_c": {"type": "STRING", "index": 92, "name": "lost_primary_reason_c", "comment": null}, "associate_sdr_c": {"type": "STRING", "index": 93, "name": "associate_sdr_c", "comment": null}, "associated_sdr_c": {"type": "STRING", "index": 94, "name": "associated_sdr_c", "comment": null}, "no_show_c": {"type": "BOOL", "index": 95, "name": "no_show_c", "comment": null}, "order_form_c": {"type": "STRING", "index": 96, "name": "order_form_c", "comment": null}, "reason_unqualified_c": {"type": "STRING", "index": 97, "name": "reason_unqualified_c", "comment": null}, "closing_notes_for_ams_c": {"type": "STRING", "index": 98, "name": "closing_notes_for_ams_c", "comment": null}, "sdr_setup_trial_successfully_c": {"type": "BOOL", "index": 99, "name": "sdr_setup_trial_successfully_c", "comment": null}, "number_of_contact_roles_c": {"type": "FLOAT64", "index": 100, "name": "number_of_contact_roles_c", "comment": null}, "utm_campaign_c": {"type": "STRING", "index": 101, "name": "utm_campaign_c", "comment": null}, "utm_content_c": {"type": "STRING", "index": 102, "name": "utm_content_c", "comment": null}, "utm_medium_c": {"type": "STRING", "index": 103, "name": "utm_medium_c", "comment": null}, "utm_source_c": {"type": "STRING", "index": 104, "name": "utm_source_c", "comment": null}, "utm_term_c": {"type": "STRING", "index": 105, "name": "utm_term_c", "comment": null}, "original_opportunity_c": {"type": "STRING", "index": 106, "name": "original_opportunity_c", "comment": null}, "lean_data_reporting_total_marketing_touches_c": {"type": "FLOAT64", "index": 107, "name": "lean_data_reporting_total_marketing_touches_c", "comment": null}, "lean_data_days_in_stage_c": {"type": "FLOAT64", "index": 108, "name": "lean_data_days_in_stage_c", "comment": null}, "lean_data_routing_action_c": {"type": "STRING", "index": 109, "name": "lean_data_routing_action_c", "comment": null}, "lean_data_reporting_won_number_c": {"type": "STRING", "index": 110, "name": "lean_data_reporting_won_number_c", "comment": null}, "lean_data_reporting_opportunity_source_c": {"type": "STRING", "index": 111, "name": "lean_data_reporting_opportunity_source_c", "comment": null}, "lean_data_reporting_last_run_date_c": {"type": "TIMESTAMP", "index": 112, "name": "lean_data_reporting_last_run_date_c", "comment": null}, "lean_data_order_number_c": {"type": "STRING", "index": 113, "name": "lean_data_order_number_c", "comment": null}, "sales_engineer_c": {"type": "STRING", "index": 114, "name": "sales_engineer_c", "comment": null}, "sales_engineer_needed_c": {"type": "BOOL", "index": 115, "name": "sales_engineer_needed_c", "comment": null}, "netsuite_conn_reseller_c": {"type": "STRING", "index": 116, "name": "netsuite_conn_reseller_c", "comment": null}, "netsuite_conn_net_suite_sync_err_c": {"type": "STRING", "index": 117, "name": "netsuite_conn_net_suite_sync_err_c", "comment": null}, "netsuite_conn_from_contract_c": {"type": "STRING", "index": 118, "name": "netsuite_conn_from_contract_c", "comment": null}, "netsuite_conn_celigo_contract_c": {"type": "STRING", "index": 119, "name": "netsuite_conn_celigo_contract_c", "comment": null}, "netsuite_conn_ns_renewal_transaction_internal_id_c": {"type": "STRING", "index": 120, "name": "netsuite_conn_ns_renewal_transaction_internal_id_c", "comment": null}, "netsuite_conn_end_date_c": {"type": "TIMESTAMP", "index": 121, "name": "netsuite_conn_end_date_c", "comment": null}, "netsuite_conn_contract_term_c": {"type": "FLOAT64", "index": 122, "name": "netsuite_conn_contract_term_c", "comment": null}, "netsuite_conn_push_as_net_suite_project_c": {"type": "BOOL", "index": 123, "name": "netsuite_conn_push_as_net_suite_project_c", "comment": null}, "netsuite_conn_net_suite_contract_id_c": {"type": "STRING", "index": 124, "name": "netsuite_conn_net_suite_contract_id_c", "comment": null}, "netsuite_conn_current_opportunity_id_c": {"type": "STRING", "index": 125, "name": "netsuite_conn_current_opportunity_id_c", "comment": null}, "netsuite_conn_distributor_c": {"type": "STRING", "index": 126, "name": "netsuite_conn_distributor_c", "comment": null}, "netsuite_conn_bill_to_tier_c": {"type": "STRING", "index": 127, "name": "netsuite_conn_bill_to_tier_c", "comment": null}, "netsuite_conn_end_user_c": {"type": "STRING", "index": 128, "name": "netsuite_conn_end_user_c", "comment": null}, "netsuite_conn_current_sales_order_id_c": {"type": "STRING", "index": 129, "name": "netsuite_conn_current_sales_order_id_c", "comment": null}, "netsuite_conn_celigo_update_c": {"type": "BOOL", "index": 130, "name": "netsuite_conn_celigo_update_c", "comment": null}, "netsuite_conn_eligible_account_for_channel_sales_c": {"type": "STRING", "index": 131, "name": "netsuite_conn_eligible_account_for_channel_sales_c", "comment": null}, "netsuite_conn_tracking_number_c": {"type": "STRING", "index": 132, "name": "netsuite_conn_tracking_number_c", "comment": null}, "netsuite_conn_originated_from_net_suite_c": {"type": "BOOL", "index": 133, "name": "netsuite_conn_originated_from_net_suite_c", "comment": null}, "netsuite_conn_nsrenewal_opportunity_internal_id_c": {"type": "FLOAT64", "index": 134, "name": "netsuite_conn_nsrenewal_opportunity_internal_id_c", "comment": null}, "netsuite_conn_net_suite_renewal_terms_c": {"type": "FLOAT64", "index": 135, "name": "netsuite_conn_net_suite_renewal_terms_c", "comment": null}, "netsuite_conn_push_as_net_suite_opportunity_c": {"type": "BOOL", "index": 136, "name": "netsuite_conn_push_as_net_suite_opportunity_c", "comment": null}, "netsuite_conn_order_type_c": {"type": "STRING", "index": 137, "name": "netsuite_conn_order_type_c", "comment": null}, "netsuite_conn_sync_in_progress_c": {"type": "BOOL", "index": 138, "name": "netsuite_conn_sync_in_progress_c", "comment": null}, "netsuite_conn_net_suite_sales_order_number_c": {"type": "STRING", "index": 139, "name": "netsuite_conn_net_suite_sales_order_number_c", "comment": null}, "netsuite_conn_push_to_net_suite_c": {"type": "BOOL", "index": 140, "name": "netsuite_conn_push_to_net_suite_c", "comment": null}, "netsuite_conn_net_suite_project_id_c": {"type": "STRING", "index": 141, "name": "netsuite_conn_net_suite_project_id_c", "comment": null}, "netsuite_conn_net_suite_contract_term_c": {"type": "FLOAT64", "index": 142, "name": "netsuite_conn_net_suite_contract_term_c", "comment": null}, "netsuite_conn_start_date_c": {"type": "TIMESTAMP", "index": 143, "name": "netsuite_conn_start_date_c", "comment": null}, "netsuite_conn_ship_to_tier_c": {"type": "STRING", "index": 144, "name": "netsuite_conn_ship_to_tier_c", "comment": null}, "db_competitor_c": {"type": "STRING", "index": 145, "name": "db_competitor_c", "comment": null}, "lid_linked_in_company_id_c": {"type": "STRING", "index": 146, "name": "lid_linked_in_company_id_c", "comment": null}, "lid_is_influenced_c": {"type": "BOOL", "index": 147, "name": "lid_is_influenced_c", "comment": null}, "debooked_date_c": {"type": "TIMESTAMP", "index": 148, "name": "debooked_date_c", "comment": null}, "debooked_amount_c": {"type": "BIGNUMERIC", "index": 149, "name": "debooked_amount_c", "comment": null}, "is_debooked_c": {"type": "BOOL", "index": 150, "name": "is_debooked_c", "comment": null}, "economic_buyer_c": {"type": "STRING", "index": 151, "name": "economic_buyer_c", "comment": null}, "decision_process_c": {"type": "STRING", "index": 152, "name": "decision_process_c", "comment": null}, "decision_criteria_c": {"type": "STRING", "index": 153, "name": "decision_criteria_c", "comment": null}, "champion_c": {"type": "STRING", "index": 154, "name": "champion_c", "comment": null}, "metrics_c": {"type": "STRING", "index": 155, "name": "metrics_c", "comment": null}, "identify_pain_c": {"type": "STRING", "index": 156, "name": "identify_pain_c", "comment": null}, "is_non_renewable_c": {"type": "BOOL", "index": 157, "name": "is_non_renewable_c", "comment": null}, "sales_loft_1_primary_contact_c": {"type": "STRING", "index": 158, "name": "sales_loft_1_primary_contact_c", "comment": null}, "sales_loft_1_most_recent_last_completed_step_c": {"type": "FLOAT64", "index": 159, "name": "sales_loft_1_most_recent_last_completed_step_c", "comment": null}, "sales_loft_1_most_recent_cadence_name_c": {"type": "STRING", "index": 160, "name": "sales_loft_1_most_recent_cadence_name_c", "comment": null}, "is_partner_opp_c": {"type": "BOOL", "index": 161, "name": "is_partner_opp_c", "comment": null}, "territory_2_id": {"type": "STRING", "index": 162, "name": "territory_2_id", "comment": null}, "is_excluded_from_territory_2_filter": {"type": "BOOL", "index": 163, "name": "is_excluded_from_territory_2_filter", "comment": null}, "sbqq_amended_contract_c": {"type": "STRING", "index": 164, "name": "sbqq_amended_contract_c", "comment": null}, "sbqq_contracted_c": {"type": "BOOL", "index": 165, "name": "sbqq_contracted_c", "comment": null}, "sbqq_create_contracted_prices_c": {"type": "BOOL", "index": 166, "name": "sbqq_create_contracted_prices_c", "comment": null}, "sbqq_order_group_id_c": {"type": "STRING", "index": 167, "name": "sbqq_order_group_id_c", "comment": null}, "sbqq_ordered_c": {"type": "BOOL", "index": 168, "name": "sbqq_ordered_c", "comment": null}, "sbqq_primary_quote_c": {"type": "STRING", "index": 169, "name": "sbqq_primary_quote_c", "comment": null}, "sbqq_quote_pricebook_id_c": {"type": "STRING", "index": 170, "name": "sbqq_quote_pricebook_id_c", "comment": null}, "sbqq_renewal_c": {"type": "BOOL", "index": 171, "name": "sbqq_renewal_c", "comment": null}, "sbqq_renewed_contract_c": {"type": "STRING", "index": 172, "name": "sbqq_renewed_contract_c", "comment": null}, "is_non_recurring_c": {"type": "BOOL", "index": 173, "name": "is_non_recurring_c", "comment": null}, "did_a_partner_help_this_sale_c": {"type": "STRING", "index": 174, "name": "did_a_partner_help_this_sale_c", "comment": null}, "did_they_select_a_bi_tool_c": {"type": "STRING", "index": 175, "name": "did_they_select_a_bi_tool_c", "comment": null}, "which_bi_tool_did_they_select_c": {"type": "STRING", "index": 176, "name": "which_bi_tool_did_they_select_c", "comment": null}, "which_partner_was_most_influential_c": {"type": "STRING", "index": 177, "name": "which_partner_was_most_influential_c", "comment": null}, "which_bi_tool_s_are_they_using_c": {"type": "STRING", "index": 178, "name": "which_bi_tool_s_are_they_using_c", "comment": null}, "associated_bdr_c": {"type": "STRING", "index": 179, "name": "associated_bdr_c", "comment": null}, "aws_payment_c": {"type": "BOOL", "index": 180, "name": "aws_payment_c", "comment": null}, "expected_revenue": {"type": "BIGNUMERIC", "index": 181, "name": "expected_revenue", "comment": null}, "competitor_we_lost_to_c": {"type": "STRING", "index": 182, "name": "competitor_we_lost_to_c", "comment": null}, "marketplace_payment_c": {"type": "STRING", "index": 183, "name": "marketplace_payment_c", "comment": null}, "has_competition_c": {"type": "BOOL", "index": 184, "name": "has_competition_c", "comment": null}, "no_known_competition_c": {"type": "BOOL", "index": 185, "name": "no_known_competition_c", "comment": null}, "marketing_process_c": {"type": "STRING", "index": 186, "name": "marketing_process_c", "comment": null}, "automation_tracking_c": {"type": "STRING", "index": 187, "name": "automation_tracking_c", "comment": null}, "user_gems_has_changed_job_c": {"type": "TIMESTAMP", "index": 188, "name": "user_gems_has_changed_job_c", "comment": null}, "manager_forecast_amount_c": {"type": "FLOAT64", "index": 189, "name": "manager_forecast_amount_c", "comment": null}, "manager_forecast_category_c": {"type": "STRING", "index": 190, "name": "manager_forecast_category_c", "comment": null}, "superset_forecast_category_c": {"type": "STRING", "index": 191, "name": "superset_forecast_category_c", "comment": null}, "forecast_amount_c": {"type": "BIGNUMERIC", "index": 192, "name": "forecast_amount_c", "comment": null}, "are_we_co_selling_with_anyone_c": {"type": "STRING", "index": 193, "name": "are_we_co_selling_with_anyone_c", "comment": null}, "has_co_sell_activity_c": {"type": "BOOL", "index": 194, "name": "has_co_sell_activity_c", "comment": null}, "signed_order_c": {"type": "BOOL", "index": 195, "name": "signed_order_c", "comment": null}, "compelling_event_c": {"type": "STRING", "index": 196, "name": "compelling_event_c", "comment": null}, "territory_c": {"type": "STRING", "index": 197, "name": "territory_c", "comment": null}, "validation_override_c": {"type": "BOOL", "index": 198, "name": "validation_override_c", "comment": null}, "map_reviewed_with_ae_c": {"type": "STRING", "index": 199, "name": "map_reviewed_with_ae_c", "comment": null}, "se_manager_notes_c": {"type": "STRING", "index": 200, "name": "se_manager_notes_c", "comment": null}, "se_notes_c": {"type": "STRING", "index": 201, "name": "se_notes_c", "comment": null}, "se_stage_c": {"type": "STRING", "index": 202, "name": "se_stage_c", "comment": null}, "next_steps_date_c": {"type": "TIMESTAMP", "index": 203, "name": "next_steps_date_c", "comment": null}, "pbf_c": {"type": "BOOL", "index": 204, "name": "pbf_c", "comment": null}, "partner_c": {"type": "STRING", "index": 205, "name": "partner_c", "comment": null}, "channel_c": {"type": "STRING", "index": 206, "name": "channel_c", "comment": null}, "primary_contact_fivetran_c": {"type": "STRING", "index": 207, "name": "primary_contact_fivetran_c", "comment": null}, "time_spent_minutes_c": {"type": "FLOAT64", "index": 208, "name": "time_spent_minutes_c", "comment": null}, "date_for_next_update_c": {"type": "TIMESTAMP", "index": 209, "name": "date_for_next_update_c", "comment": null}, "lean_data_trigger_c": {"type": "BOOL", "index": 210, "name": "lean_data_trigger_c", "comment": null}, "workflow_helper_c": {"type": "BOOL", "index": 211, "name": "workflow_helper_c", "comment": null}, "deal_risk_c": {"type": "STRING", "index": 212, "name": "deal_risk_c", "comment": null}, "gcp_approved_c": {"type": "BOOL", "index": 213, "name": "gcp_approved_c", "comment": null}, "next_steps_c": {"type": "STRING", "index": 214, "name": "next_steps_c", "comment": null}, "manger_notes_c": {"type": "STRING", "index": 215, "name": "manger_notes_c", "comment": null}, "manager_notes_c": {"type": "STRING", "index": 216, "name": "manager_notes_c", "comment": null}, "marketplace_offer_accepted_c": {"type": "BOOL", "index": 217, "name": "marketplace_offer_accepted_c", "comment": null}, "stage_0_date_time_c": {"type": "TIMESTAMP", "index": 218, "name": "stage_0_date_time_c", "comment": null}, "stage_1_date_time_c": {"type": "TIMESTAMP", "index": 219, "name": "stage_1_date_time_c", "comment": null}, "round_robin_ae_c": {"type": "STRING", "index": 220, "name": "round_robin_ae_c", "comment": null}, "round_robin_ae_trigger_c": {"type": "BOOL", "index": 221, "name": "round_robin_ae_trigger_c", "comment": null}, "automation_validation_override_c": {"type": "BOOL", "index": 222, "name": "automation_validation_override_c", "comment": null}, "related_renewal_opportunity_c": {"type": "STRING", "index": 223, "name": "related_renewal_opportunity_c", "comment": null}, "sales_rep_to_be_credited_c": {"type": "STRING", "index": 224, "name": "sales_rep_to_be_credited_c", "comment": null}, "trial_self_service_converted_c": {"type": "BOOL", "index": 225, "name": "trial_self_service_converted_c", "comment": null}, "migration_opportunity_c": {"type": "BOOL", "index": 226, "name": "migration_opportunity_c", "comment": null}, "post_close_changes_c": {"type": "BOOL", "index": 227, "name": "post_close_changes_c", "comment": null}, "assigned_tsm_c": {"type": "STRING", "index": 228, "name": "assigned_tsm_c", "comment": null}, "allbound_partner_id_c": {"type": "STRING", "index": 229, "name": "allbound_partner_id_c", "comment": null}, "se_summary_c": {"type": "STRING", "index": 230, "name": "se_summary_c", "comment": null}, "ae_paired_csm_c": {"type": "STRING", "index": 231, "name": "ae_paired_csm_c", "comment": null}, "vh_can_revive_c": {"type": "BOOL", "index": 232, "name": "vh_can_revive_c", "comment": null}, "vh_date_revived_c": {"type": "TIMESTAMP", "index": 233, "name": "vh_date_revived_c", "comment": null}, "vh_deal_breaker_opportunity_gap_score_c": {"type": "STRING", "index": 234, "name": "vh_deal_breaker_opportunity_gap_score_c", "comment": null}, "vh_deal_challenge_opportunity_gap_score_c": {"type": "STRING", "index": 235, "name": "vh_deal_challenge_opportunity_gap_score_c", "comment": null}, "vh_nice_to_have_opportunity_gap_score_c": {"type": "STRING", "index": 236, "name": "vh_nice_to_have_opportunity_gap_score_c", "comment": null}, "vh_opportunity_gap_score_c": {"type": "STRING", "index": 237, "name": "vh_opportunity_gap_score_c", "comment": null}, "vh_opportunity_score_c": {"type": "FLOAT64", "index": 238, "name": "vh_opportunity_score_c", "comment": null}, "vh_presales_concern_c": {"type": "STRING", "index": 239, "name": "vh_presales_concern_c", "comment": null}, "vh_presales_stage_c": {"type": "STRING", "index": 240, "name": "vh_presales_stage_c", "comment": null}, "vh_technical_differentiation_c": {"type": "STRING", "index": 241, "name": "vh_technical_differentiation_c", "comment": null}, "se_manager_summary_c": {"type": "STRING", "index": 242, "name": "se_manager_summary_c", "comment": null}, "bugs_c": {"type": "STRING", "index": 243, "name": "bugs_c", "comment": null}, "approval_required_c": {"type": "BOOL", "index": 244, "name": "approval_required_c", "comment": null}, "push_counter_c": {"type": "FLOAT64", "index": 245, "name": "push_counter_c", "comment": null}, "mar_link_c": {"type": "STRING", "index": 246, "name": "mar_link_c", "comment": null}, "contact_id": {"type": "STRING", "index": 247, "name": "contact_id", "comment": null}, "last_amount_changed_history_id": {"type": "STRING", "index": 248, "name": "last_amount_changed_history_id", "comment": null}, "last_close_date_changed_history_id": {"type": "STRING", "index": 249, "name": "last_close_date_changed_history_id", "comment": null}, "expected_renewal_amount_c": {"type": "NUMERIC", "index": 250, "name": "expected_renewal_amount_c", "comment": null}, "connectors_c": {"type": "STRING", "index": 251, "name": "connectors_c", "comment": null}, "estimated_credit_consumption_per_month_c": {"type": "FLOAT64", "index": 252, "name": "estimated_credit_consumption_per_month_c", "comment": null}, "project_status_c": {"type": "STRING", "index": 253, "name": "project_status_c", "comment": null}, "type_of_churn_c": {"type": "STRING", "index": 254, "name": "type_of_churn_c", "comment": null}, "usage_reason_c": {"type": "STRING", "index": 255, "name": "usage_reason_c", "comment": null}, "use_cases_c": {"type": "STRING", "index": 256, "name": "use_cases_c", "comment": null}, "bizible_2_bizible_opportunity_amount_c": {"type": "BIGNUMERIC", "index": 257, "name": "bizible_2_bizible_opportunity_amount_c", "comment": null}, "active_technical_owner_c": {"type": "STRING", "index": 258, "name": "active_technical_owner_c", "comment": null}, "referral_partner_c": {"type": "STRING", "index": 259, "name": "referral_partner_c", "comment": null}, "celigo_sfnsio_bill_to_tier_c": {"type": "STRING", "index": 260, "name": "celigo_sfnsio_bill_to_tier_c", "comment": null}, "celigo_sfnsio_contract_opportunity_c": {"type": "BOOL", "index": 261, "name": "celigo_sfnsio_contract_opportunity_c", "comment": null}, "celigo_sfnsio_contract_term_c": {"type": "FLOAT64", "index": 262, "name": "celigo_sfnsio_contract_term_c", "comment": null}, "celigo_sfnsio_distributor_c": {"type": "STRING", "index": 263, "name": "celigo_sfnsio_distributor_c", "comment": null}, "celigo_sfnsio_end_date_c": {"type": "TIMESTAMP", "index": 264, "name": "celigo_sfnsio_end_date_c", "comment": null}, "celigo_sfnsio_end_user_c": {"type": "STRING", "index": 265, "name": "celigo_sfnsio_end_user_c", "comment": null}, "celigo_sfnsio_from_contract_c": {"type": "STRING", "index": 266, "name": "celigo_sfnsio_from_contract_c", "comment": null}, "celigo_sfnsio_net_suite_id_c": {"type": "STRING", "index": 267, "name": "celigo_sfnsio_net_suite_id_c", "comment": null}, "celigo_sfnsio_net_suite_opportunity_id_c": {"type": "STRING", "index": 268, "name": "celigo_sfnsio_net_suite_opportunity_id_c", "comment": null}, "celigo_sfnsio_net_suite_opportunity_record_url_c": {"type": "STRING", "index": 269, "name": "celigo_sfnsio_net_suite_opportunity_record_url_c", "comment": null}, "celigo_sfnsio_net_suite_order_number_c": {"type": "STRING", "index": 270, "name": "celigo_sfnsio_net_suite_order_number_c", "comment": null}, "celigo_sfnsio_net_suite_record_c": {"type": "STRING", "index": 271, "name": "celigo_sfnsio_net_suite_record_c", "comment": null}, "celigo_sfnsio_net_suite_sync_error_c": {"type": "STRING", "index": 272, "name": "celigo_sfnsio_net_suite_sync_error_c", "comment": null}, "celigo_sfnsio_ns_originated_order_c": {"type": "BOOL", "index": 273, "name": "celigo_sfnsio_ns_originated_order_c", "comment": null}, "celigo_sfnsio_renewal_term_c": {"type": "FLOAT64", "index": 274, "name": "celigo_sfnsio_renewal_term_c", "comment": null}, "celigo_sfnsio_reseller_c": {"type": "STRING", "index": 275, "name": "celigo_sfnsio_reseller_c", "comment": null}, "celigo_sfnsio_ship_to_tier_c": {"type": "STRING", "index": 276, "name": "celigo_sfnsio_ship_to_tier_c", "comment": null}, "celigo_sfnsio_skip_export_to_net_suite_c": {"type": "BOOL", "index": 277, "name": "celigo_sfnsio_skip_export_to_net_suite_c", "comment": null}, "celigo_sfnsio_start_date_c": {"type": "TIMESTAMP", "index": 278, "name": "celigo_sfnsio_start_date_c", "comment": null}, "celigo_sfnsio_test_mode_record_c": {"type": "BOOL", "index": 279, "name": "celigo_sfnsio_test_mode_record_c", "comment": null}, "initial_meeting_notes_c": {"type": "STRING", "index": 280, "name": "initial_meeting_notes_c", "comment": null}, "initial_meeting_source_c": {"type": "STRING", "index": 281, "name": "initial_meeting_source_c", "comment": null}, "initial_meeting_date_c": {"type": "TIMESTAMP", "index": 282, "name": "initial_meeting_date_c", "comment": null}, "initial_meeting_status_c": {"type": "STRING", "index": 283, "name": "initial_meeting_status_c", "comment": null}, "bdr_sdr_override_c": {"type": "BOOL", "index": 284, "name": "bdr_sdr_override_c", "comment": null}, "tsm_discovered_c": {"type": "BOOL", "index": 285, "name": "tsm_discovered_c", "comment": null}, "for_initial_revenue_ramp_c": {"type": "BOOL", "index": 286, "name": "for_initial_revenue_ramp_c", "comment": null}, "clari_amount_c": {"type": "BIGNUMERIC", "index": 287, "name": "clari_amount_c", "comment": null}, "connector_x_c": {"type": "STRING", "index": 288, "name": "connector_x_c", "comment": null}, "use_cases_deprecate_c": {"type": "STRING", "index": 289, "name": "use_cases_deprecate_c", "comment": null}, "data_stack_c": {"type": "STRING", "index": 290, "name": "data_stack_c", "comment": null}, "projected_ending_4_mos_amount_total_c": {"type": "BIGNUMERIC", "index": 291, "name": "projected_ending_4_mos_amount_total_c", "comment": null}, "p_o_number_c": {"type": "STRING", "index": 292, "name": "p_o_number_c", "comment": null}, "user_gems_user_gems_summary_c": {"type": "STRING", "index": 293, "name": "user_gems_user_gems_summary_c", "comment": null}, "fivetran_map_link_c": {"type": "STRING", "index": 294, "name": "fivetran_map_link_c", "comment": null}, "after_scenario_c": {"type": "STRING", "index": 295, "name": "after_scenario_c", "comment": null}, "top_competition_c": {"type": "STRING", "index": 296, "name": "top_competition_c", "comment": null}, "economic_buyer_lu_c": {"type": "STRING", "index": 297, "name": "economic_buyer_lu_c", "comment": null}, "champion_lu_c": {"type": "STRING", "index": 298, "name": "champion_lu_c", "comment": null}, "paper_process_c": {"type": "STRING", "index": 299, "name": "paper_process_c", "comment": null}, "before_scenario_c": {"type": "STRING", "index": 300, "name": "before_scenario_c", "comment": null}, "defensible_differentiators_c": {"type": "STRING", "index": 301, "name": "defensible_differentiators_c", "comment": null}, "positive_business_outcomes_c": {"type": "STRING", "index": 302, "name": "positive_business_outcomes_c", "comment": null}, "customer_marketplace_pref_c": {"type": "STRING", "index": 303, "name": "customer_marketplace_pref_c", "comment": null}, "using_consultant_si_c": {"type": "STRING", "index": 304, "name": "using_consultant_si_c", "comment": null}, "value_drivers_c": {"type": "STRING", "index": 305, "name": "value_drivers_c", "comment": null}, "is_solution_architect_needed_c": {"type": "BOOL", "index": 306, "name": "is_solution_architect_needed_c", "comment": null}, "contact_opportunity_created_from_c": {"type": "STRING", "index": 307, "name": "contact_opportunity_created_from_c", "comment": null}, "previous_contract_blended_unit_price_c": {"type": "BIGNUMERIC", "index": 308, "name": "previous_contract_blended_unit_price_c", "comment": null}, "previous_contract_total_credits_purchase_c": {"type": "FLOAT64", "index": 309, "name": "previous_contract_total_credits_purchase_c", "comment": null}, "original_price_per_credit_c": {"type": "BIGNUMERIC", "index": 310, "name": "original_price_per_credit_c", "comment": null}, "previous_contract_discount_percentage_c": {"type": "FLOAT64", "index": 311, "name": "previous_contract_discount_percentage_c", "comment": null}, "expected_renewal_amount_override_1_c": {"type": "NUMERIC", "index": 312, "name": "expected_renewal_amount_override_1_c", "comment": null}, "expected_renewal_override_c": {"type": "BIGNUMERIC", "index": 313, "name": "expected_renewal_override_c", "comment": null}, "bookings_arr_2_c": {"type": "BIGNUMERIC", "index": 314, "name": "bookings_arr_2_c", "comment": null}, "baseline_arr_2_c": {"type": "BIGNUMERIC", "index": 315, "name": "baseline_arr_2_c", "comment": null}, "value_of_services_purchased_c": {"type": "BIGNUMERIC", "index": 316, "name": "value_of_services_purchased_c", "comment": null}, "value_of_credits_purchased_c": {"type": "NUMERIC", "index": 317, "name": "value_of_credits_purchased_c", "comment": null}, "renewal_fields_verified_c": {"type": "BOOL", "index": 318, "name": "renewal_fields_verified_c", "comment": null}, "no_co_sell_reason_c": {"type": "STRING", "index": 319, "name": "no_co_sell_reason_c", "comment": null}, "credit_summary_at_creation_c": {"type": "STRING", "index": 320, "name": "credit_summary_at_creation_c", "comment": null}, "renewal_date_on_creation_c": {"type": "TIMESTAMP", "index": 321, "name": "renewal_date_on_creation_c", "comment": null}, "did_you_pitch_quickstart_packages_c": {"type": "STRING", "index": 322, "name": "did_you_pitch_quickstart_packages_c", "comment": null}, "expected_renewal_amount_stamp_c": {"type": "BIGNUMERIC", "index": 323, "name": "expected_renewal_amount_stamp_c", "comment": null}, "platform_level_stamped_c": {"type": "STRING", "index": 324, "name": "platform_level_stamped_c", "comment": null}, "customer_spend_type_c": {"type": "STRING", "index": 325, "name": "customer_spend_type_c", "comment": null}, "self_service_routing_c": {"type": "BOOL", "index": 326, "name": "self_service_routing_c", "comment": null}, "value_of_rollover_credits_quote_stamp_c": {"type": "BIGNUMERIC", "index": 327, "name": "value_of_rollover_credits_quote_stamp_c", "comment": null}, "renewal_manager_notes_c": {"type": "STRING", "index": 328, "name": "renewal_manager_notes_c", "comment": null}, "fivetran_use_case_c": {"type": "STRING", "index": 329, "name": "fivetran_use_case_c", "comment": null}, "did_you_try_to_sell_services_c": {"type": "STRING", "index": 330, "name": "did_you_try_to_sell_services_c", "comment": null}, "routed_from_manual_bdr_ae_activity_c": {"type": "BOOL", "index": 331, "name": "routed_from_manual_bdr_ae_activity_c", "comment": null}, "group_id_c": {"type": "STRING", "index": 332, "name": "group_id_c", "comment": null}, "comma_separated_schema_list_c": {"type": "STRING", "index": 333, "name": "comma_separated_schema_list_c", "comment": null}, "si_referral_count_c": {"type": "FLOAT64", "index": 334, "name": "si_referral_count_c", "comment": null}, "si_referral_partner_chosen_c": {"type": "BOOL", "index": 335, "name": "si_referral_partner_chosen_c", "comment": null}, "partner_relationship_added_c": {"type": "STRING", "index": 336, "name": "partner_relationship_added_c", "comment": null}, "si_with_partner_referral_activity_type_c": {"type": "BOOL", "index": 337, "name": "si_with_partner_referral_activity_type_c", "comment": null}, "late_renewal_subscription_c": {"type": "STRING", "index": 338, "name": "late_renewal_subscription_c", "comment": null}, "rev_ops_created_renewal_c": {"type": "BOOL", "index": 339, "name": "rev_ops_created_renewal_c", "comment": null}, "conversion_opp_type_c": {"type": "STRING", "index": 340, "name": "conversion_opp_type_c", "comment": null}, "projected_mrr_increase_clari_c": {"type": "FLOAT64", "index": 341, "name": "projected_mrr_increase_clari_c", "comment": null}, "amount_rollover_annualized_stamped_c": {"type": "BIGNUMERIC", "index": 342, "name": "amount_rollover_annualized_stamped_c", "comment": null}, "credit_amount_stamped_c": {"type": "BIGNUMERIC", "index": 343, "name": "credit_amount_stamped_c", "comment": null}, "rollover_value_on_close_c": {"type": "BIGNUMERIC", "index": 344, "name": "rollover_value_on_close_c", "comment": null}, "lost_to_a_competitive_solution_c": {"type": "STRING", "index": 345, "name": "lost_to_a_competitive_solution_c", "comment": null}, "lost_primary_reason_detail_c": {"type": "STRING", "index": 346, "name": "lost_primary_reason_detail_c", "comment": null}, "marketing_activity_in_last_30_days_c": {"type": "BOOL", "index": 347, "name": "marketing_activity_in_last_30_days_c", "comment": null}, "disco_meeting_date_c": {"type": "TIMESTAMP", "index": 348, "name": "disco_meeting_date_c", "comment": null}, "disco_meeting_status_c": {"type": "STRING", "index": 349, "name": "disco_meeting_status_c", "comment": null}, "third_party_data_c": {"type": "STRING", "index": 350, "name": "third_party_data_c", "comment": null}, "pbf_overlay_c": {"type": "STRING", "index": 351, "name": "pbf_overlay_c", "comment": null}, "services_stage_2_date_c": {"type": "TIMESTAMP", "index": 352, "name": "services_stage_2_date_c", "comment": null}, "why_did_we_lose_the_services_pitch_c": {"type": "STRING", "index": 353, "name": "why_did_we_lose_the_services_pitch_c", "comment": null}, "partner_relationship_created_automation_c": {"type": "BOOL", "index": 354, "name": "partner_relationship_created_automation_c", "comment": null}, "non_connector_expansion_c": {"type": "BOOL", "index": 355, "name": "non_connector_expansion_c", "comment": null}, "purchase_order_required_c": {"type": "STRING", "index": 356, "name": "purchase_order_required_c", "comment": null}, "push_count": {"type": "INT64", "index": 357, "name": "push_count", "comment": null}, "last_stage_change_date": {"type": "TIMESTAMP", "index": 358, "name": "last_stage_change_date", "comment": null}, "logged_to_partner_portal_c": {"type": "BOOL", "index": 359, "name": "logged_to_partner_portal_c", "comment": null}, "bdr_sdr_cross_sell_disco_call_c": {"type": "BOOL", "index": 360, "name": "bdr_sdr_cross_sell_disco_call_c", "comment": null}, "expected_renewal_expansion_override_c": {"type": "BIGNUMERIC", "index": 361, "name": "expected_renewal_expansion_override_c", "comment": null}, "hvr_contract_end_date_c": {"type": "TIMESTAMP", "index": 362, "name": "hvr_contract_end_date_c", "comment": null}, "hvr_technical_fit_c": {"type": "STRING", "index": 363, "name": "hvr_technical_fit_c", "comment": null}, "hvr_arr_new_c": {"type": "BIGNUMERIC", "index": 364, "name": "hvr_arr_new_c", "comment": null}, "legacy_hvr_id_c": {"type": "STRING", "index": 365, "name": "legacy_hvr_id_c", "comment": null}, "hvr_sales_region_c": {"type": "STRING", "index": 366, "name": "hvr_sales_region_c", "comment": null}, "contract_id": {"type": "STRING", "index": 367, "name": "contract_id", "comment": null}, "hvr_arr_end_c": {"type": "TIMESTAMP", "index": 368, "name": "hvr_arr_end_c", "comment": null}, "hvr_sum_of_forecast_calc_c": {"type": "BIGNUMERIC", "index": 369, "name": "hvr_sum_of_forecast_calc_c", "comment": null}, "hvr_nrr_total_c": {"type": "BIGNUMERIC", "index": 370, "name": "hvr_nrr_total_c", "comment": null}, "hvr_type_summary_c": {"type": "STRING", "index": 371, "name": "hvr_type_summary_c", "comment": null}, "hvr_special_instructions_for_licensing_c": {"type": "STRING", "index": 372, "name": "hvr_special_instructions_for_licensing_c", "comment": null}, "hvr_year_3_amount_c": {"type": "BIGNUMERIC", "index": 373, "name": "hvr_year_3_amount_c", "comment": null}, "hvr_targets_c": {"type": "STRING", "index": 374, "name": "hvr_targets_c", "comment": null}, "hvr_type_adj_c": {"type": "STRING", "index": 375, "name": "hvr_type_adj_c", "comment": null}, "hvr_arr_expansion_c": {"type": "BIGNUMERIC", "index": 376, "name": "hvr_arr_expansion_c", "comment": null}, "negative_consequences_c": {"type": "STRING", "index": 377, "name": "negative_consequences_c", "comment": null}, "hvr_quarterly_forecast_summary_c": {"type": "STRING", "index": 378, "name": "hvr_quarterly_forecast_summary_c", "comment": null}, "hvr_sal_confirmed_with_ae_c": {"type": "BOOL", "index": 379, "name": "hvr_sal_confirmed_with_ae_c", "comment": null}, "hvr_years_2_5_on_quote_c": {"type": "BIGNUMERIC", "index": 380, "name": "hvr_years_2_5_on_quote_c", "comment": null}, "hvr_arr_license_total_c": {"type": "BIGNUMERIC", "index": 381, "name": "hvr_arr_license_total_c", "comment": null}, "hvr_term_months_c": {"type": "FLOAT64", "index": 382, "name": "hvr_term_months_c", "comment": null}, "hvr_upside_value_at_50_c": {"type": "BIGNUMERIC", "index": 383, "name": "hvr_upside_value_at_50_c", "comment": null}, "proof_point_c": {"type": "STRING", "index": 384, "name": "proof_point_c", "comment": null}, "hub_fingerprint_c": {"type": "STRING", "index": 385, "name": "hub_fingerprint_c", "comment": null}, "demo_deep_technical_dive_completed_date_c": {"type": "TIMESTAMP", "index": 386, "name": "demo_deep_technical_dive_completed_date_c", "comment": null}, "hvr_license_type_1_c": {"type": "STRING", "index": 387, "name": "hvr_license_type_1_c", "comment": null}, "hvr_year_2_c": {"type": "STRING", "index": 388, "name": "hvr_year_2_c", "comment": null}, "hvr_currency_code_c": {"type": "STRING", "index": 389, "name": "hvr_currency_code_c", "comment": null}, "hvr_fq_c": {"type": "STRING", "index": 390, "name": "hvr_fq_c", "comment": null}, "hvr_multi_year_total_c": {"type": "BIGNUMERIC", "index": 391, "name": "hvr_multi_year_total_c", "comment": null}, "hvr_annual_support_c": {"type": "BIGNUMERIC", "index": 392, "name": "hvr_annual_support_c", "comment": null}, "hvr_targets_count_c": {"type": "FLOAT64", "index": 393, "name": "hvr_targets_count_c", "comment": null}, "opportunity_channel_confirmed_c": {"type": "BOOL", "index": 394, "name": "opportunity_channel_confirmed_c", "comment": null}, "how_we_do_it_c": {"type": "STRING", "index": 395, "name": "how_we_do_it_c", "comment": null}, "hvr_primary_cloud_preference_c": {"type": "STRING", "index": 396, "name": "hvr_primary_cloud_preference_c", "comment": null}, "hvr_year_4_c": {"type": "STRING", "index": 397, "name": "hvr_year_4_c", "comment": null}, "hvr_sources_c": {"type": "STRING", "index": 398, "name": "hvr_sources_c", "comment": null}, "hvr_arr_start_c": {"type": "TIMESTAMP", "index": 399, "name": "hvr_arr_start_c", "comment": null}, "hvr_fy_c": {"type": "STRING", "index": 400, "name": "hvr_fy_c", "comment": null}, "hvr_year_5_amount_c": {"type": "BIGNUMERIC", "index": 401, "name": "hvr_year_5_amount_c", "comment": null}, "is_private": {"type": "BOOL", "index": 402, "name": "is_private", "comment": null}, "hvr_arr_support_products_c": {"type": "FLOAT64", "index": 403, "name": "hvr_arr_support_products_c", "comment": null}, "license_key_generated_c": {"type": "BOOL", "index": 404, "name": "license_key_generated_c", "comment": null}, "hvr_arr_from_products_c": {"type": "BIGNUMERIC", "index": 405, "name": "hvr_arr_from_products_c", "comment": null}, "total_opportunity_quantity": {"type": "FLOAT64", "index": 406, "name": "total_opportunity_quantity", "comment": null}, "hvr_sapruntimeflag_c": {"type": "BOOL", "index": 407, "name": "hvr_sapruntimeflag_c", "comment": null}, "hvr_arr_from_total_arr_products_added_c": {"type": "BIGNUMERIC", "index": 408, "name": "hvr_arr_from_total_arr_products_added_c", "comment": null}, "hvr_arr_support_total_c": {"type": "BIGNUMERIC", "index": 409, "name": "hvr_arr_support_total_c", "comment": null}, "hvr_year_4_amount_c": {"type": "BIGNUMERIC", "index": 410, "name": "hvr_year_4_amount_c", "comment": null}, "opportunity_sources_and_targets_reviewed_c": {"type": "BOOL", "index": 411, "name": "opportunity_sources_and_targets_reviewed_c", "comment": null}, "hvr_pilot_fees_c": {"type": "BIGNUMERIC", "index": 412, "name": "hvr_pilot_fees_c", "comment": null}, "intacct_customer_id_c": {"type": "STRING", "index": 413, "name": "intacct_customer_id_c", "comment": null}, "hvr_arr_old_c": {"type": "BIGNUMERIC", "index": 414, "name": "hvr_arr_old_c", "comment": null}, "hvr_arr_adjusted_c": {"type": "BIGNUMERIC", "index": 415, "name": "hvr_arr_adjusted_c", "comment": null}, "hvr_churn_date_c": {"type": "TIMESTAMP", "index": 416, "name": "hvr_churn_date_c", "comment": null}, "hvr_arr_total_products_c": {"type": "BIGNUMERIC", "index": 417, "name": "hvr_arr_total_products_c", "comment": null}, "required_capabilities_c": {"type": "STRING", "index": 418, "name": "required_capabilities_c", "comment": null}, "hvr_sources_count_c": {"type": "FLOAT64", "index": 419, "name": "hvr_sources_count_c", "comment": null}, "hvr_secondary_cloud_preference_c": {"type": "STRING", "index": 420, "name": "hvr_secondary_cloud_preference_c", "comment": null}, "hvr_arr_type_2_c": {"type": "STRING", "index": 421, "name": "hvr_arr_type_2_c", "comment": null}, "differentiators_against_c": {"type": "STRING", "index": 422, "name": "differentiators_against_c", "comment": null}, "nrr_total_c": {"type": "BIGNUMERIC", "index": 423, "name": "nrr_total_c", "comment": null}, "hvr_years_25_on_quote_c": {"type": "BIGNUMERIC", "index": 424, "name": "hvr_years_25_on_quote_c", "comment": null}, "hvr_opportunity_targets_c": {"type": "STRING", "index": 425, "name": "hvr_opportunity_targets_c", "comment": null}, "hvr_license_type_2_c": {"type": "STRING", "index": 426, "name": "hvr_license_type_2_c", "comment": null}, "hvr_solution_use_case_sub_category_c": {"type": "STRING", "index": 427, "name": "hvr_solution_use_case_sub_category_c", "comment": null}, "license_key_submission_date_stamp_c": {"type": "TIMESTAMP", "index": 428, "name": "license_key_submission_date_stamp_c", "comment": null}, "hvr_year_2_amount_c": {"type": "BIGNUMERIC", "index": 429, "name": "hvr_year_2_amount_c", "comment": null}, "hvr_new_arr_c": {"type": "BIGNUMERIC", "index": 430, "name": "hvr_new_arr_c", "comment": null}, "support_level_c": {"type": "STRING", "index": 431, "name": "support_level_c", "comment": null}, "hvr_arr_c": {"type": "BIGNUMERIC", "index": 432, "name": "hvr_arr_c", "comment": null}, "hvr_arr_calculated_c": {"type": "BIGNUMERIC", "index": 433, "name": "hvr_arr_calculated_c", "comment": null}, "hvr_amount_arrperpetual_c": {"type": "BIGNUMERIC", "index": 434, "name": "hvr_amount_arrperpetual_c", "comment": null}, "hvr_exchange_rate_c": {"type": "FLOAT64", "index": 435, "name": "hvr_exchange_rate_c", "comment": null}, "hvr_perpetual_amount_c": {"type": "BIGNUMERIC", "index": 436, "name": "hvr_perpetual_amount_c", "comment": null}, "hvr_arr_contraction_c": {"type": "BIGNUMERIC", "index": 437, "name": "hvr_arr_contraction_c", "comment": null}, "hvr_arr_months_c": {"type": "FLOAT64", "index": 438, "name": "hvr_arr_months_c", "comment": null}, "hvr_arr_gold_at_12_of_license_total_c": {"type": "BIGNUMERIC", "index": 439, "name": "hvr_arr_gold_at_12_of_license_total_c", "comment": null}, "hvr_arr_forecast_expected_c": {"type": "BIGNUMERIC", "index": 440, "name": "hvr_arr_forecast_expected_c", "comment": null}, "hvr_year_5_c": {"type": "STRING", "index": 441, "name": "hvr_year_5_c", "comment": null}, "hvr_arr_total_c": {"type": "BIGNUMERIC", "index": 442, "name": "hvr_arr_total_c", "comment": null}, "hvr_type_arrperpetual_c": {"type": "STRING", "index": 443, "name": "hvr_type_arrperpetual_c", "comment": null}, "hvr_tcv_c": {"type": "BIGNUMERIC", "index": 444, "name": "hvr_tcv_c", "comment": null}, "hvr_year_3_c": {"type": "STRING", "index": 445, "name": "hvr_year_3_c", "comment": null}, "hvr_arr_type_c": {"type": "STRING", "index": 446, "name": "hvr_arr_type_c", "comment": null}, "demo_deep_technical_dive_scheduled_date_c": {"type": "TIMESTAMP", "index": 447, "name": "demo_deep_technical_dive_scheduled_date_c", "comment": null}, "hvr_pro_serve_products_c": {"type": "FLOAT64", "index": 448, "name": "hvr_pro_serve_products_c", "comment": null}, "hvr_pro_serve_total_c": {"type": "BIGNUMERIC", "index": 449, "name": "hvr_pro_serve_total_c", "comment": null}, "hvr_total_amount_c": {"type": "BIGNUMERIC", "index": 450, "name": "hvr_total_amount_c", "comment": null}, "lean_data_status_info_c": {"type": "STRING", "index": 451, "name": "lean_data_status_info_c", "comment": null}, "hvr_additional_partners_c": {"type": "STRING", "index": 452, "name": "hvr_additional_partners_c", "comment": null}, "hvr_local_amount_c": {"type": "FLOAT64", "index": 453, "name": "hvr_local_amount_c", "comment": null}, "explain_reason_for_hvr_6_1_sale_c": {"type": "STRING", "index": 454, "name": "explain_reason_for_hvr_6_1_sale_c", "comment": null}, "hvr_6_1_proposed_sale_c": {"type": "BOOL", "index": 455, "name": "hvr_6_1_proposed_sale_c", "comment": null}, "approval_of_hvr_6_1_sale_c": {"type": "BOOL", "index": 456, "name": "approval_of_hvr_6_1_sale_c", "comment": null}, "hvr_6_1_sale_decision_c": {"type": "STRING", "index": 457, "name": "hvr_6_1_sale_decision_c", "comment": null}, "hvr_poc_sources_details_c": {"type": "STRING", "index": 458, "name": "hvr_poc_sources_details_c", "comment": null}, "hvr_poc_targets_c": {"type": "STRING", "index": 459, "name": "hvr_poc_targets_c", "comment": null}, "hvr_check_list_sent_c": {"type": "STRING", "index": 460, "name": "hvr_check_list_sent_c", "comment": null}, "hvr_start_date_actual_c": {"type": "STRING", "index": 461, "name": "hvr_start_date_actual_c", "comment": null}, "hvr_check_list_received_c": {"type": "STRING", "index": 462, "name": "hvr_check_list_received_c", "comment": null}, "hvr_support_location_c": {"type": "STRING", "index": 463, "name": "hvr_support_location_c", "comment": null}, "hvr_stop_date_plan_c": {"type": "STRING", "index": 464, "name": "hvr_stop_date_plan_c", "comment": null}, "hvr_start_date_plan_c": {"type": "STRING", "index": 465, "name": "hvr_start_date_plan_c", "comment": null}, "hvr_what_worked_c": {"type": "STRING", "index": 466, "name": "hvr_what_worked_c", "comment": null}, "hvr_competition_c": {"type": "STRING", "index": 467, "name": "hvr_competition_c", "comment": null}, "hvr_what_didnt_work_c": {"type": "STRING", "index": 468, "name": "hvr_what_didnt_work_c", "comment": null}, "hvr_conducted_by_c": {"type": "STRING", "index": 469, "name": "hvr_conducted_by_c", "comment": null}, "hvr_poc_sources_c": {"type": "STRING", "index": 470, "name": "hvr_poc_sources_c", "comment": null}, "hvr_review_call_date_c": {"type": "STRING", "index": 471, "name": "hvr_review_call_date_c", "comment": null}, "hvr_stop_date_actual_c": {"type": "STRING", "index": 472, "name": "hvr_stop_date_actual_c", "comment": null}, "hvr_will_there_be_a_poc_c": {"type": "STRING", "index": 473, "name": "hvr_will_there_be_a_poc_c", "comment": null}, "hvr_poc_of_days_c": {"type": "STRING", "index": 474, "name": "hvr_poc_of_days_c", "comment": null}, "hvr_poc_targets_details_c": {"type": "STRING", "index": 475, "name": "hvr_poc_targets_details_c", "comment": null}, "hvr_hub_details_c": {"type": "STRING", "index": 476, "name": "hvr_hub_details_c", "comment": null}, "legacy_hvr_channel_c": {"type": "STRING", "index": 477, "name": "legacy_hvr_channel_c", "comment": null}, "account_strategist_stamp_c": {"type": "STRING", "index": 478, "name": "account_strategist_stamp_c", "comment": null}, "hvr_fivetran_conversion_type_c": {"type": "STRING", "index": 479, "name": "hvr_fivetran_conversion_type_c", "comment": null}, "olp_cancellation_override_c": {"type": "BOOL", "index": 480, "name": "olp_cancellation_override_c", "comment": null}, "account_strategist_1_c": {"type": "STRING", "index": 481, "name": "account_strategist_1_c", "comment": null}, "product_being_pitched_c": {"type": "STRING", "index": 482, "name": "product_being_pitched_c", "comment": null}, "estimated_monthly_dollar_consumption_c": {"type": "BIGNUMERIC", "index": 483, "name": "estimated_monthly_dollar_consumption_c", "comment": null}, "platform_level_sso_c": {"type": "STRING", "index": 484, "name": "platform_level_sso_c", "comment": null}, "salesforce_created_c": {"type": "BOOL", "index": 485, "name": "salesforce_created_c", "comment": null}, "route_pbf_overlay_c": {"type": "BOOL", "index": 486, "name": "route_pbf_overlay_c", "comment": null}, "hvr_deal_submitted_c": {"type": "BOOL", "index": 487, "name": "hvr_deal_submitted_c", "comment": null}, "annual_2_olp_conversion_created_c": {"type": "BOOL", "index": 488, "name": "annual_2_olp_conversion_created_c", "comment": null}, "sub_start_date_vp_level_exception_c": {"type": "BOOL", "index": 489, "name": "sub_start_date_vp_level_exception_c", "comment": null}, "closed_won_region_c": {"type": "STRING", "index": 490, "name": "closed_won_region_c", "comment": null}, "closed_won_segment_c": {"type": "STRING", "index": 491, "name": "closed_won_segment_c", "comment": null}, "deal_desk_notes_c": {"type": "STRING", "index": 492, "name": "deal_desk_notes_c", "comment": null}, "order_form_opt_out_c": {"type": "STRING", "index": 493, "name": "order_form_opt_out_c", "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.develop.opportunity_formula"}, "model.salesforce_source.stg_salesforce__user": {"metadata": {"type": "table", "schema": "dbt_renee", "name": "stg_salesforce__user", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_deleted": {"type": "BOOL", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 2, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "STRING", "index": 3, "name": "account_id", "comment": null}, "alias": {"type": "STRING", "index": 4, "name": "alias", "comment": null}, "city": {"type": "STRING", "index": 5, "name": "city", "comment": null}, "company_name": {"type": "STRING", "index": 6, "name": "company_name", "comment": null}, "contact_id": {"type": "STRING", "index": 7, "name": "contact_id", "comment": null}, "country": {"type": "STRING", "index": 8, "name": "country", "comment": null}, "country_code": {"type": "STRING", "index": 9, "name": "country_code", "comment": null}, "department": {"type": "STRING", "index": 10, "name": "department", "comment": null}, "email": {"type": "STRING", "index": 11, "name": "email", "comment": null}, "first_name": {"type": "STRING", "index": 12, "name": "first_name", "comment": null}, "user_id": {"type": "STRING", "index": 13, "name": "user_id", "comment": null}, "individual_id": {"type": "STRING", "index": 14, "name": "individual_id", "comment": null}, "is_active": {"type": "BOOL", "index": 15, "name": "is_active", "comment": null}, "last_login_date": {"type": "TIMESTAMP", "index": 16, "name": "last_login_date", "comment": null}, "last_name": {"type": "STRING", "index": 17, "name": "last_name", "comment": null}, "last_referenced_date": {"type": "TIMESTAMP", "index": 18, "name": "last_referenced_date", "comment": null}, "last_viewed_date": {"type": "TIMESTAMP", "index": 19, "name": "last_viewed_date", "comment": null}, "manager_id": {"type": "STRING", "index": 20, "name": "manager_id", "comment": null}, "user_name": {"type": "STRING", "index": 21, "name": "user_name", "comment": null}, "postal_code": {"type": "STRING", "index": 22, "name": "postal_code", "comment": null}, "profile_id": {"type": "STRING", "index": 23, "name": "profile_id", "comment": null}, "state": {"type": "STRING", "index": 24, "name": "state", "comment": null}, "state_code": {"type": "STRING", "index": 25, "name": "state_code", "comment": null}, "street": {"type": "STRING", "index": 26, "name": "street", "comment": null}, "title": {"type": "STRING", "index": 27, "name": "title", "comment": null}, "user_role_id": {"type": "STRING", "index": 28, "name": "user_role_id", "comment": null}, "user_type": {"type": "STRING", "index": 29, "name": "user_type", "comment": null}, "username": {"type": "STRING", "index": 30, "name": "username", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 278228.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 1054.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.salesforce_source.stg_salesforce__user"}, "model.salesforce_source.stg_salesforce__user_tmp": {"metadata": {"type": "view", "schema": "dbt_renee", "name": "stg_salesforce__user_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"user_preferences_disable_endorsement_email": {"type": "BOOL", "index": 1, "name": "user_preferences_disable_endorsement_email", "comment": null}, "locale_sid_key": {"type": "STRING", "index": 2, "name": "locale_sid_key", "comment": null}, "receives_info_emails": {"type": "BOOL", "index": 3, "name": "receives_info_emails", "comment": null}, "about_me": {"type": "STRING", "index": 4, "name": "about_me", "comment": null}, "division": {"type": "STRING", "index": 5, "name": "division", "comment": null}, "user_preferences_disable_change_comment_email": {"type": "BOOL", "index": 6, "name": "user_preferences_disable_change_comment_email", "comment": null}, "user_preferences_show_title_to_external_users": {"type": "BOOL", "index": 7, "name": "user_preferences_show_title_to_external_users", "comment": null}, "user_role_id": {"type": "STRING", "index": 8, "name": "user_role_id", "comment": null}, "user_type": {"type": "STRING", "index": 9, "name": "user_type", "comment": null}, "user_preferences_show_city_to_external_users": {"type": "BOOL", "index": 10, "name": "user_preferences_show_city_to_external_users", "comment": null}, "community_nickname": {"type": "STRING", "index": 11, "name": "community_nickname", "comment": null}, "user_preferences_show_postal_code_to_guest_users": {"type": "BOOL", "index": 12, "name": "user_preferences_show_postal_code_to_guest_users", "comment": null}, "id": {"type": "STRING", "index": 13, "name": "id", "comment": null}, "state": {"type": "STRING", "index": 14, "name": "state", "comment": null}, "fax": {"type": "STRING", "index": 15, "name": "fax", "comment": null}, "echosign_dev_1_echo_sign_email_verified_c": {"type": "BOOL", "index": 16, "name": "echosign_dev_1_echo_sign_email_verified_c", "comment": null}, "user_permissions_mobile_user": {"type": "BOOL", "index": 17, "name": "user_permissions_mobile_user", "comment": null}, "last_referenced_date": {"type": "TIMESTAMP", "index": 18, "name": "last_referenced_date", "comment": null}, "badge_text": {"type": "STRING", "index": 19, "name": "badge_text", "comment": null}, "offline_pda_trial_expiration_date": {"type": "TIMESTAMP", "index": 20, "name": "offline_pda_trial_expiration_date", "comment": null}, "offline_trial_expiration_date": {"type": "TIMESTAMP", "index": 21, "name": "offline_trial_expiration_date", "comment": null}, "user_preferences_show_fax_to_guest_users": {"type": "BOOL", "index": 22, "name": "user_preferences_show_fax_to_guest_users", "comment": null}, "user_preferences_show_street_address_to_guest_users": {"type": "BOOL", "index": 23, "name": "user_preferences_show_street_address_to_guest_users", "comment": null}, "user_preferences_show_email_to_guest_users": {"type": "BOOL", "index": 24, "name": "user_preferences_show_email_to_guest_users", "comment": null}, "phone": {"type": "STRING", "index": 25, "name": "phone", "comment": null}, "profile_id": {"type": "STRING", "index": 26, "name": "profile_id", "comment": null}, "company_name": {"type": "STRING", "index": 27, "name": "company_name", "comment": null}, "user_preferences_disable_file_share_notifications_for_api": {"type": "BOOL", "index": 28, "name": "user_preferences_disable_file_share_notifications_for_api", "comment": null}, "employee_number": {"type": "STRING", "index": 29, "name": "employee_number", "comment": null}, "user_preferences_activity_reminders_popup": {"type": "BOOL", "index": 30, "name": "user_preferences_activity_reminders_popup", "comment": null}, "user_preferences_sort_feed_by_comment": {"type": "BOOL", "index": 31, "name": "user_preferences_sort_feed_by_comment", "comment": null}, "user_preferences_disable_profile_post_email": {"type": "BOOL", "index": 32, "name": "user_preferences_disable_profile_post_email", "comment": null}, "user_permissions_offline_user": {"type": "BOOL", "index": 33, "name": "user_permissions_offline_user", "comment": null}, "extension": {"type": "STRING", "index": 34, "name": "extension", "comment": null}, "user_permissions_chatter_answers_user": {"type": "BOOL", "index": 35, "name": "user_permissions_chatter_answers_user", "comment": null}, "user_preferences_show_street_address_to_external_users": {"type": "BOOL", "index": 36, "name": "user_preferences_show_street_address_to_external_users", "comment": null}, "city": {"type": "STRING", "index": 37, "name": "city", "comment": null}, "signature": {"type": "STRING", "index": 38, "name": "signature", "comment": null}, "user_preferences_show_title_to_guest_users": {"type": "BOOL", "index": 39, "name": "user_preferences_show_title_to_guest_users", "comment": null}, "latitude": {"type": "FLOAT64", "index": 40, "name": "latitude", "comment": null}, "user_preferences_show_manager_to_guest_users": {"type": "BOOL", "index": 41, "name": "user_preferences_show_manager_to_guest_users", "comment": null}, "default_group_notification_frequency": {"type": "STRING", "index": 42, "name": "default_group_notification_frequency", "comment": null}, "user_preferences_disable_bookmark_email": {"type": "BOOL", "index": 43, "name": "user_preferences_disable_bookmark_email", "comment": null}, "user_preferences_show_state_to_guest_users": {"type": "BOOL", "index": 44, "name": "user_preferences_show_state_to_guest_users", "comment": null}, "forecast_enabled": {"type": "BOOL", "index": 45, "name": "forecast_enabled", "comment": null}, "user_preferences_disable_later_comment_email": {"type": "BOOL", "index": 46, "name": "user_preferences_disable_later_comment_email", "comment": null}, "user_preferences_show_manager_to_external_users": {"type": "BOOL", "index": 47, "name": "user_preferences_show_manager_to_external_users", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 48, "name": "_fivetran_synced", "comment": null}, "last_viewed_date": {"type": "TIMESTAMP", "index": 49, "name": "last_viewed_date", "comment": null}, "manager_id": {"type": "STRING", "index": 50, "name": "manager_id", "comment": null}, "user_preferences_reminder_sound_off": {"type": "BOOL", "index": 51, "name": "user_preferences_reminder_sound_off", "comment": null}, "full_photo_url": {"type": "STRING", "index": 52, "name": "full_photo_url", "comment": null}, "user_preferences_show_postal_code_to_external_users": {"type": "BOOL", "index": 53, "name": "user_preferences_show_postal_code_to_external_users", "comment": null}, "email": {"type": "STRING", "index": 54, "name": "email", "comment": null}, "user_preferences_show_mobile_phone_to_guest_users": {"type": "BOOL", "index": 55, "name": "user_preferences_show_mobile_phone_to_guest_users", "comment": null}, "stay_in_touch_note": {"type": "STRING", "index": 56, "name": "stay_in_touch_note", "comment": null}, "user_preferences_disable_followers_email": {"type": "BOOL", "index": 57, "name": "user_preferences_disable_followers_email", "comment": null}, "user_preferences_hide_csnget_chatter_mobile_task": {"type": "BOOL", "index": 58, "name": "user_preferences_hide_csnget_chatter_mobile_task", "comment": null}, "is_active": {"type": "BOOL", "index": 59, "name": "is_active", "comment": null}, "echosign_dev_1_echo_sign_allow_delegated_sending_c": {"type": "BOOL", "index": 60, "name": "echosign_dev_1_echo_sign_allow_delegated_sending_c", "comment": null}, "small_photo_url": {"type": "STRING", "index": 61, "name": "small_photo_url", "comment": null}, "user_preferences_show_work_phone_to_external_users": {"type": "BOOL", "index": 62, "name": "user_preferences_show_work_phone_to_external_users", "comment": null}, "user_preferences_hide_csndesktop_task": {"type": "BOOL", "index": 63, "name": "user_preferences_hide_csndesktop_task", "comment": null}, "last_name": {"type": "STRING", "index": 64, "name": "last_name", "comment": null}, "user_preferences_task_reminders_checkbox_default": {"type": "BOOL", "index": 65, "name": "user_preferences_task_reminders_checkbox_default", "comment": null}, "user_preferences_dis_comment_after_like_email": {"type": "BOOL", "index": 66, "name": "user_preferences_dis_comment_after_like_email", "comment": null}, "is_profile_photo_active": {"type": "BOOL", "index": 67, "name": "is_profile_photo_active", "comment": null}, "account_id": {"type": "STRING", "index": 68, "name": "account_id", "comment": null}, "user_preferences_show_profile_pic_to_guest_users": {"type": "BOOL", "index": 69, "name": "user_preferences_show_profile_pic_to_guest_users", "comment": null}, "postal_code": {"type": "STRING", "index": 70, "name": "postal_code", "comment": null}, "user_preferences_show_email_to_external_users": {"type": "BOOL", "index": 71, "name": "user_preferences_show_email_to_external_users", "comment": null}, "user_permissions_marketing_user": {"type": "BOOL", "index": 72, "name": "user_permissions_marketing_user", "comment": null}, "country": {"type": "STRING", "index": 73, "name": "country", "comment": null}, "email_encoding_key": {"type": "STRING", "index": 74, "name": "email_encoding_key", "comment": null}, "user_preferences_show_country_to_guest_users": {"type": "BOOL", "index": 75, "name": "user_preferences_show_country_to_guest_users", "comment": null}, "user_preferences_disable_mentions_post_email": {"type": "BOOL", "index": 76, "name": "user_preferences_disable_mentions_post_email", "comment": null}, "user_preferences_show_country_to_external_users": {"type": "BOOL", "index": 77, "name": "user_preferences_show_country_to_external_users", "comment": null}, "user_preferences_show_work_phone_to_guest_users": {"type": "BOOL", "index": 78, "name": "user_preferences_show_work_phone_to_guest_users", "comment": null}, "last_modified_date": {"type": "TIMESTAMP", "index": 79, "name": "last_modified_date", "comment": null}, "sender_name": {"type": "STRING", "index": 80, "name": "sender_name", "comment": null}, "user_preferences_apex_pages_developer_mode": {"type": "BOOL", "index": 81, "name": "user_preferences_apex_pages_developer_mode", "comment": null}, "user_preferences_hide_chatter_onboarding_splash": {"type": "BOOL", "index": 82, "name": "user_preferences_hide_chatter_onboarding_splash", "comment": null}, "stay_in_touch_signature": {"type": "STRING", "index": 83, "name": "stay_in_touch_signature", "comment": null}, "language_locale_key": {"type": "STRING", "index": 84, "name": "language_locale_key", "comment": null}, "last_modified_by_id": {"type": "STRING", "index": 85, "name": "last_modified_by_id", "comment": null}, "system_modstamp": {"type": "TIMESTAMP", "index": 86, "name": "system_modstamp", "comment": null}, "geocode_accuracy": {"type": "STRING", "index": 87, "name": "geocode_accuracy", "comment": null}, "receives_admin_info_emails": {"type": "BOOL", "index": 88, "name": "receives_admin_info_emails", "comment": null}, "user_preferences_disable_message_email": {"type": "BOOL", "index": 89, "name": "user_preferences_disable_message_email", "comment": null}, "time_zone_sid_key": {"type": "STRING", "index": 90, "name": "time_zone_sid_key", "comment": null}, "user_preferences_hide_second_chatter_onboarding_splash": {"type": "BOOL", "index": 91, "name": "user_preferences_hide_second_chatter_onboarding_splash", "comment": null}, "longitude": {"type": "FLOAT64", "index": 92, "name": "longitude", "comment": null}, "sender_email": {"type": "STRING", "index": 93, "name": "sender_email", "comment": null}, "email_preferences_auto_bcc_stay_in_touch": {"type": "BOOL", "index": 94, "name": "email_preferences_auto_bcc_stay_in_touch", "comment": null}, "email_preferences_auto_bcc": {"type": "BOOL", "index": 95, "name": "email_preferences_auto_bcc", "comment": null}, "last_login_date": {"type": "TIMESTAMP", "index": 96, "name": "last_login_date", "comment": null}, "call_center_id": {"type": "STRING", "index": 97, "name": "call_center_id", "comment": null}, "country_code": {"type": "STRING", "index": 98, "name": "country_code", "comment": null}, "user_preferences_path_assistant_collapsed": {"type": "BOOL", "index": 99, "name": "user_preferences_path_assistant_collapsed", "comment": null}, "banner_photo_url": {"type": "STRING", "index": 100, "name": "banner_photo_url", "comment": null}, "user_preferences_event_reminders_checkbox_default": {"type": "BOOL", "index": 101, "name": "user_preferences_event_reminders_checkbox_default", "comment": null}, "user_preferences_lightning_experience_preferred": {"type": "BOOL", "index": 102, "name": "user_preferences_lightning_experience_preferred", "comment": null}, "delegated_approver_id": {"type": "STRING", "index": 103, "name": "delegated_approver_id", "comment": null}, "user_preferences_disable_share_post_email": {"type": "BOOL", "index": 104, "name": "user_preferences_disable_share_post_email", "comment": null}, "last_password_change_date": {"type": "TIMESTAMP", "index": 105, "name": "last_password_change_date", "comment": null}, "name": {"type": "STRING", "index": 106, "name": "name", "comment": null}, "user_permissions_call_center_auto_login": {"type": "BOOL", "index": 107, "name": "user_permissions_call_center_auto_login", "comment": null}, "created_by_id": {"type": "STRING", "index": 108, "name": "created_by_id", "comment": null}, "user_preferences_dis_mentions_comment_email": {"type": "BOOL", "index": 109, "name": "user_preferences_dis_mentions_comment_email", "comment": null}, "state_code": {"type": "STRING", "index": 110, "name": "state_code", "comment": null}, "email_preferences_stay_in_touch_reminder": {"type": "BOOL", "index": 111, "name": "email_preferences_stay_in_touch_reminder", "comment": null}, "user_preferences_hide_s_1_browser_ui": {"type": "BOOL", "index": 112, "name": "user_preferences_hide_s_1_browser_ui", "comment": null}, "digest_frequency": {"type": "STRING", "index": 113, "name": "digest_frequency", "comment": null}, "contact_id": {"type": "STRING", "index": 114, "name": "contact_id", "comment": null}, "title": {"type": "STRING", "index": 115, "name": "title", "comment": null}, "user_permissions_interaction_user": {"type": "BOOL", "index": 116, "name": "user_permissions_interaction_user", "comment": null}, "user_preferences_enable_auto_sub_for_feeds": {"type": "BOOL", "index": 117, "name": "user_preferences_enable_auto_sub_for_feeds", "comment": null}, "user_permissions_support_user": {"type": "BOOL", "index": 118, "name": "user_permissions_support_user", "comment": null}, "user_preferences_show_fax_to_external_users": {"type": "BOOL", "index": 119, "name": "user_preferences_show_fax_to_external_users", "comment": null}, "mobile_phone": {"type": "STRING", "index": 120, "name": "mobile_phone", "comment": null}, "street": {"type": "STRING", "index": 121, "name": "street", "comment": null}, "user_permissions_avantgo_user": {"type": "BOOL", "index": 122, "name": "user_permissions_avantgo_user", "comment": null}, "user_preferences_disable_all_feeds_email": {"type": "BOOL", "index": 123, "name": "user_preferences_disable_all_feeds_email", "comment": null}, "alias": {"type": "STRING", "index": 124, "name": "alias", "comment": null}, "department": {"type": "STRING", "index": 125, "name": "department", "comment": null}, "first_name": {"type": "STRING", "index": 126, "name": "first_name", "comment": null}, "user_preferences_show_mobile_phone_to_external_users": {"type": "BOOL", "index": 127, "name": "user_preferences_show_mobile_phone_to_external_users", "comment": null}, "user_preferences_show_state_to_external_users": {"type": "BOOL", "index": 128, "name": "user_preferences_show_state_to_external_users", "comment": null}, "user_preferences_cache_diagnostics": {"type": "BOOL", "index": 129, "name": "user_preferences_cache_diagnostics", "comment": null}, "stay_in_touch_subject": {"type": "STRING", "index": 130, "name": "stay_in_touch_subject", "comment": null}, "federation_identifier": {"type": "STRING", "index": 131, "name": "federation_identifier", "comment": null}, "user_permissions_sfcontent_user": {"type": "BOOL", "index": 132, "name": "user_permissions_sfcontent_user", "comment": null}, "user_preferences_show_city_to_guest_users": {"type": "BOOL", "index": 133, "name": "user_preferences_show_city_to_guest_users", "comment": null}, "user_preferences_disable_like_email": {"type": "BOOL", "index": 134, "name": "user_preferences_disable_like_email", "comment": null}, "created_date": {"type": "TIMESTAMP", "index": 135, "name": "created_date", "comment": null}, "user_preferences_dis_prof_post_comment_email": {"type": "BOOL", "index": 136, "name": "user_preferences_dis_prof_post_comment_email", "comment": null}, "username": {"type": "STRING", "index": 137, "name": "username", "comment": null}, "user_permissions_knowledge_user": {"type": "BOOL", "index": 138, "name": "user_permissions_knowledge_user", "comment": null}, "dsfs_dspro_sfmembership_status_c": {"type": "STRING", "index": 139, "name": "dsfs_dspro_sfmembership_status_c", "comment": null}, "dsfs_dspro_sfpassword_c": {"type": "STRING", "index": 140, "name": "dsfs_dspro_sfpassword_c", "comment": null}, "dsfs_dspro_sfusername_c": {"type": "STRING", "index": 141, "name": "dsfs_dspro_sfusername_c", "comment": null}, "calendly_c": {"type": "STRING", "index": 142, "name": "calendly_c", "comment": null}, "user_preferences_enable_voice_pilot": {"type": "BOOL", "index": 143, "name": "user_preferences_enable_voice_pilot", "comment": null}, "is_ext_indicator_visible": {"type": "BOOL", "index": 144, "name": "is_ext_indicator_visible", "comment": null}, "medium_banner_photo_url": {"type": "STRING", "index": 145, "name": "medium_banner_photo_url", "comment": null}, "medium_photo_url": {"type": "STRING", "index": 146, "name": "medium_photo_url", "comment": null}, "out_of_office_message": {"type": "STRING", "index": 147, "name": "out_of_office_message", "comment": null}, "small_banner_photo_url": {"type": "STRING", "index": 148, "name": "small_banner_photo_url", "comment": null}, "user_preferences_create_lexapps_wtshown": {"type": "BOOL", "index": 149, "name": "user_preferences_create_lexapps_wtshown", "comment": null}, "user_preferences_exclude_mail_app_attachments": {"type": "BOOL", "index": 150, "name": "user_preferences_exclude_mail_app_attachments", "comment": null}, "user_preferences_favorites_show_top_favorites": {"type": "BOOL", "index": 151, "name": "user_preferences_favorites_show_top_favorites", "comment": null}, "user_preferences_favorites_wtshown": {"type": "BOOL", "index": 152, "name": "user_preferences_favorites_wtshown", "comment": null}, "user_preferences_global_nav_bar_wtshown": {"type": "BOOL", "index": 153, "name": "user_preferences_global_nav_bar_wtshown", "comment": null}, "user_preferences_global_nav_grid_menu_wtshown": {"type": "BOOL", "index": 154, "name": "user_preferences_global_nav_grid_menu_wtshown", "comment": null}, "user_preferences_hide_bigger_photo_callout": {"type": "BOOL", "index": 155, "name": "user_preferences_hide_bigger_photo_callout", "comment": null}, "user_preferences_hide_end_user_onboarding_assistant_modal": {"type": "BOOL", "index": 156, "name": "user_preferences_hide_end_user_onboarding_assistant_modal", "comment": null}, "user_preferences_hide_lightning_migration_modal": {"type": "BOOL", "index": 157, "name": "user_preferences_hide_lightning_migration_modal", "comment": null}, "user_preferences_hide_sfx_welcome_mat": {"type": "BOOL", "index": 158, "name": "user_preferences_hide_sfx_welcome_mat", "comment": null}, "user_preferences_preview_lightning": {"type": "BOOL", "index": 159, "name": "user_preferences_preview_lightning", "comment": null}, "user_preferences_record_home_reserved_wtshown": {"type": "BOOL", "index": 160, "name": "user_preferences_record_home_reserved_wtshown", "comment": null}, "user_preferences_record_home_section_collapse_wtshown": {"type": "BOOL", "index": 161, "name": "user_preferences_record_home_section_collapse_wtshown", "comment": null}, "pi_can_view_not_assigned_prospects_c": {"type": "BOOL", "index": 162, "name": "pi_can_view_not_assigned_prospects_c", "comment": null}, "pi_pardot_api_key_c": {"type": "STRING", "index": 163, "name": "pi_pardot_api_key_c", "comment": null}, "pi_pardot_api_version_c": {"type": "STRING", "index": 164, "name": "pi_pardot_api_version_c", "comment": null}, "pi_pardot_user_id_c": {"type": "STRING", "index": 165, "name": "pi_pardot_user_id_c", "comment": null}, "pi_pardot_user_key_c": {"type": "STRING", "index": 166, "name": "pi_pardot_user_key_c", "comment": null}, "pi_pardot_user_role_c": {"type": "STRING", "index": 167, "name": "pi_pardot_user_role_c", "comment": null}, "affectlayer_affect_layer_callback_number_label_c": {"type": "STRING", "index": 168, "name": "affectlayer_affect_layer_callback_number_label_c", "comment": null}, "affectlayer_affect_layer_caller_id_label_c": {"type": "STRING", "index": 169, "name": "affectlayer_affect_layer_caller_id_label_c", "comment": null}, "affectlayer_affect_layer_callback_number_c": {"type": "STRING", "index": 170, "name": "affectlayer_affect_layer_callback_number_c", "comment": null}, "affectlayer_affect_layer_caller_id_c": {"type": "STRING", "index": 171, "name": "affectlayer_affect_layer_caller_id_c", "comment": null}, "_fivetran_deleted": {"type": "BOOL", "index": 172, "name": "_fivetran_deleted", "comment": null}, "db_region_c": {"type": "STRING", "index": 173, "name": "db_region_c", "comment": null}, "sbqq_default_product_lookup_tab_c": {"type": "STRING", "index": 174, "name": "sbqq_default_product_lookup_tab_c", "comment": null}, "sbqq_diagnostic_tool_enabled_c": {"type": "BOOL", "index": 175, "name": "sbqq_diagnostic_tool_enabled_c", "comment": null}, "sbqq_output_format_change_allowed_c": {"type": "BOOL", "index": 176, "name": "sbqq_output_format_change_allowed_c", "comment": null}, "sbqq_product_sort_preference_c": {"type": "STRING", "index": 177, "name": "sbqq_product_sort_preference_c", "comment": null}, "sbqq_reset_product_lookup_c": {"type": "BOOL", "index": 178, "name": "sbqq_reset_product_lookup_c", "comment": null}, "sbqq_theme_c": {"type": "STRING", "index": 179, "name": "sbqq_theme_c", "comment": null}, "individual_id": {"type": "STRING", "index": 180, "name": "individual_id", "comment": null}, "user_preferences_has_celebration_badge": {"type": "BOOL", "index": 181, "name": "user_preferences_has_celebration_badge", "comment": null}, "user_preferences_new_lightning_report_run_page_enabled": {"type": "BOOL", "index": 182, "name": "user_preferences_new_lightning_report_run_page_enabled", "comment": null}, "user_preferences_pipeline_view_hide_help_popover": {"type": "BOOL", "index": 183, "name": "user_preferences_pipeline_view_hide_help_popover", "comment": null}, "user_preferences_preview_custom_theme": {"type": "BOOL", "index": 184, "name": "user_preferences_preview_custom_theme", "comment": null}, "user_preferences_suppress_event_sfxreminders": {"type": "BOOL", "index": 185, "name": "user_preferences_suppress_event_sfxreminders", "comment": null}, "user_preferences_suppress_task_sfxreminders": {"type": "BOOL", "index": 186, "name": "user_preferences_suppress_task_sfxreminders", "comment": null}, "user_preferences_user_debug_mode_pref": {"type": "BOOL", "index": 187, "name": "user_preferences_user_debug_mode_pref", "comment": null}, "mkto_si_is_caching_anon_web_activity_list_c": {"type": "BOOL", "index": 188, "name": "mkto_si_is_caching_anon_web_activity_list_c", "comment": null}, "mkto_si_is_caching_best_bets_c": {"type": "BOOL", "index": 189, "name": "mkto_si_is_caching_best_bets_c", "comment": null}, "mkto_si_is_caching_email_activity_list_c": {"type": "BOOL", "index": 190, "name": "mkto_si_is_caching_email_activity_list_c", "comment": null}, "mkto_si_is_caching_grouped_web_activity_list_c": {"type": "BOOL", "index": 191, "name": "mkto_si_is_caching_grouped_web_activity_list_c", "comment": null}, "mkto_si_is_caching_interesting_moments_list_c": {"type": "BOOL", "index": 192, "name": "mkto_si_is_caching_interesting_moments_list_c", "comment": null}, "mkto_si_is_caching_scoring_list_c": {"type": "BOOL", "index": 193, "name": "mkto_si_is_caching_scoring_list_c", "comment": null}, "mkto_si_is_caching_stream_list_c": {"type": "BOOL", "index": 194, "name": "mkto_si_is_caching_stream_list_c", "comment": null}, "mkto_si_is_caching_watch_list_c": {"type": "BOOL", "index": 195, "name": "mkto_si_is_caching_watch_list_c", "comment": null}, "mkto_si_is_caching_web_activity_list_c": {"type": "BOOL", "index": 196, "name": "mkto_si_is_caching_web_activity_list_c", "comment": null}, "mkto_si_sales_insight_counter_c": {"type": "FLOAT64", "index": 197, "name": "mkto_si_sales_insight_counter_c", "comment": null}, "tmd_enable_merge_c": {"type": "BOOL", "index": 198, "name": "tmd_enable_merge_c", "comment": null}, "work_ramp_groups_c": {"type": "STRING", "index": 199, "name": "work_ramp_groups_c", "comment": null}, "new_2_h_role_name_c": {"type": "STRING", "index": 200, "name": "new_2_h_role_name_c", "comment": null}, "vh_customer_success_request_approver_c": {"type": "STRING", "index": 201, "name": "vh_customer_success_request_approver_c", "comment": null}, "vh_customer_support_request_approver_c": {"type": "STRING", "index": 202, "name": "vh_customer_support_request_approver_c", "comment": null}, "vh_engineering_request_approver_c": {"type": "STRING", "index": 203, "name": "vh_engineering_request_approver_c", "comment": null}, "vh_industry_specialist_request_approver_c": {"type": "STRING", "index": 204, "name": "vh_industry_specialist_request_approver_c", "comment": null}, "vh_other_request_approver_c": {"type": "STRING", "index": 205, "name": "vh_other_request_approver_c", "comment": null}, "vh_product_manager_request_approver_c": {"type": "STRING", "index": 206, "name": "vh_product_manager_request_approver_c", "comment": null}, "vh_rfp_specialist_request_approver_c": {"type": "STRING", "index": 207, "name": "vh_rfp_specialist_request_approver_c", "comment": null}, "vh_sales_engineer_request_approver_c": {"type": "STRING", "index": 208, "name": "vh_sales_engineer_request_approver_c", "comment": null}, "vh_sales_support_engineer_request_approver_c": {"type": "STRING", "index": 209, "name": "vh_sales_support_engineer_request_approver_c", "comment": null}, "vh_security_request_approver_c": {"type": "STRING", "index": 210, "name": "vh_security_request_approver_c", "comment": null}, "vh_services_request_approver_c": {"type": "STRING", "index": 211, "name": "vh_services_request_approver_c", "comment": null}, "vh_tech_ops_request_approver_c": {"type": "STRING", "index": 212, "name": "vh_tech_ops_request_approver_c", "comment": null}, "vh_technical_specialist_request_approver_c": {"type": "STRING", "index": 213, "name": "vh_technical_specialist_request_approver_c", "comment": null}, "vh_value_engineer_request_approver_c": {"type": "STRING", "index": 214, "name": "vh_value_engineer_request_approver_c", "comment": null}, "has_been_mapped_to_csm_in_custom_setting_c": {"type": "BOOL", "index": 215, "name": "has_been_mapped_to_csm_in_custom_setting_c", "comment": null}, "number_of_failed_logins": {"type": "INT64", "index": 216, "name": "number_of_failed_logins", "comment": null}, "user_preferences_native_email_client": {"type": "BOOL", "index": 217, "name": "user_preferences_native_email_client", "comment": null}, "user_preferences_receive_no_notifications_as_approver": {"type": "BOOL", "index": 218, "name": "user_preferences_receive_no_notifications_as_approver", "comment": null}, "user_preferences_receive_notifications_as_delegated_approver": {"type": "BOOL", "index": 219, "name": "user_preferences_receive_notifications_as_delegated_approver", "comment": null}, "user_preferences_srhoverride_activities": {"type": "BOOL", "index": 220, "name": "user_preferences_srhoverride_activities", "comment": null}, "sync_to_spiff_c": {"type": "BOOL", "index": 221, "name": "sync_to_spiff_c", "comment": null}, "user_preferences_hide_statements_redirect_confirmation": {"type": "BOOL", "index": 222, "name": "user_preferences_hide_statements_redirect_confirmation", "comment": null}, "user_preferences_hide_invoices_redirect_confirmation": {"type": "BOOL", "index": 223, "name": "user_preferences_hide_invoices_redirect_confirmation", "comment": null}, "user_preferences_hide_browse_product_redirect_confirmation": {"type": "BOOL", "index": 224, "name": "user_preferences_hide_browse_product_redirect_confirmation", "comment": null}, "user_preferences_hide_online_sales_app_welcome_mat": {"type": "BOOL", "index": 225, "name": "user_preferences_hide_online_sales_app_welcome_mat", "comment": null}, "user_preferences_send_list_email_through_external_service": {"type": "BOOL", "index": 226, "name": "user_preferences_send_list_email_through_external_service", "comment": null}, "user_preferences_reverse_open_activities_view": {"type": "BOOL", "index": 227, "name": "user_preferences_reverse_open_activities_view", "comment": null}, "csm_manager_c": {"type": "BOOL", "index": 228, "name": "csm_manager_c", "comment": null}, "legacy_hvr_id_c": {"type": "STRING", "index": 229, "name": "legacy_hvr_id_c", "comment": null}, "installed_package_licenses_auto_applied_c": {"type": "BOOL", "index": 230, "name": "installed_package_licenses_auto_applied_c", "comment": null}, "csm_skip_director_approval_c": {"type": "BOOL", "index": 231, "name": "csm_skip_director_approval_c", "comment": null}, "user_preferences_show_forecasting_change_signals": {"type": "BOOL", "index": 232, "name": "user_preferences_show_forecasting_change_signals", "comment": null}, "user_preferences_has_sent_warning_email": {"type": "BOOL", "index": 233, "name": "user_preferences_has_sent_warning_email", "comment": null}, "vivun_approvers_auto_created_c": {"type": "BOOL", "index": 234, "name": "vivun_approvers_auto_created_c", "comment": null}, "vivun_alert_sent_c": {"type": "BOOL", "index": 235, "name": "vivun_alert_sent_c", "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.salesforce_source.stg_salesforce__user_tmp"}, "model.salesforce_source.stg_salesforce__contact": {"metadata": {"type": "table", "schema": "dbt_renee", "name": "stg_salesforce__contact", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "TIMESTAMP", "index": 1, "name": "_fivetran_synced", "comment": null}, "contact_id": {"type": "STRING", "index": 2, "name": "contact_id", "comment": null}, "account_id": {"type": "STRING", "index": 3, "name": "account_id", "comment": null}, "department": {"type": "STRING", "index": 4, "name": "department", "comment": null}, "description": {"type": "STRING", "index": 5, "name": "description", "comment": null}, "email": {"type": "STRING", "index": 6, "name": "email", "comment": null}, "first_name": {"type": "STRING", "index": 7, "name": "first_name", "comment": null}, "home_phone": {"type": "STRING", "index": 8, "name": "home_phone", "comment": null}, "individual_id": {"type": "STRING", "index": 9, "name": "individual_id", "comment": null}, "is_deleted": {"type": "BOOL", "index": 10, "name": "is_deleted", "comment": null}, "last_activity_date": {"type": "TIMESTAMP", "index": 11, "name": "last_activity_date", "comment": null}, "last_modified_by_id": {"type": "STRING", "index": 12, "name": "last_modified_by_id", "comment": null}, "last_modified_date": {"type": "TIMESTAMP", "index": 13, "name": "last_modified_date", "comment": null}, "last_name": {"type": "STRING", "index": 14, "name": "last_name", "comment": null}, "last_referenced_date": {"type": "TIMESTAMP", "index": 15, "name": "last_referenced_date", "comment": null}, "last_viewed_date": {"type": "TIMESTAMP", "index": 16, "name": "last_viewed_date", "comment": null}, "lead_source": {"type": "STRING", "index": 17, "name": "lead_source", "comment": null}, "mailing_city": {"type": "STRING", "index": 18, "name": "mailing_city", "comment": null}, "mailing_country": {"type": "STRING", "index": 19, "name": "mailing_country", "comment": null}, "mailing_country_code": {"type": "STRING", "index": 20, "name": "mailing_country_code", "comment": null}, "mailing_postal_code": {"type": "STRING", "index": 21, "name": "mailing_postal_code", "comment": null}, "mailing_state": {"type": "STRING", "index": 22, "name": "mailing_state", "comment": null}, "mailing_state_code": {"type": "STRING", "index": 23, "name": "mailing_state_code", "comment": null}, "mailing_street": {"type": "STRING", "index": 24, "name": "mailing_street", "comment": null}, "master_record_id": {"type": "STRING", "index": 25, "name": "master_record_id", "comment": null}, "mobile_phone": {"type": "STRING", "index": 26, "name": "mobile_phone", "comment": null}, "name": {"type": "STRING", "index": 27, "name": "name", "comment": null}, "owner_id": {"type": "STRING", "index": 28, "name": "owner_id", "comment": null}, "phone": {"type": "STRING", "index": 29, "name": "phone", "comment": null}, "reports_to_id": {"type": "STRING", "index": 30, "name": "reports_to_id", "comment": null}, "title": {"type": "STRING", "index": 31, "name": "title", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 268281177.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 1066103.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.salesforce_source.stg_salesforce__contact"}, "model.salesforce_source.stg_salesforce__order": {"metadata": {"type": "table", "schema": "dbt_renee", "name": "stg_salesforce__order", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "TIMESTAMP", "index": 1, "name": "_fivetran_synced", "comment": null}, "order_id": {"type": "STRING", "index": 2, "name": "order_id", "comment": null}, "account_id": {"type": "STRING", "index": 3, "name": "account_id", "comment": null}, "activated_by_id": {"type": "STRING", "index": 4, "name": "activated_by_id", "comment": null}, "activated_date": {"type": "TIMESTAMP", "index": 5, "name": "activated_date", "comment": null}, "billing_city": {"type": "STRING", "index": 6, "name": "billing_city", "comment": null}, "billing_country": {"type": "STRING", "index": 7, "name": "billing_country", "comment": null}, "billing_country_code": {"type": "STRING", "index": 8, "name": "billing_country_code", "comment": null}, "billing_postal_code": {"type": "STRING", "index": 9, "name": "billing_postal_code", "comment": null}, "billing_state": {"type": "STRING", "index": 10, "name": "billing_state", "comment": null}, "billing_state_code": {"type": "STRING", "index": 11, "name": "billing_state_code", "comment": null}, "billing_street": {"type": "STRING", "index": 12, "name": "billing_street", "comment": null}, "contract_id": {"type": "STRING", "index": 13, "name": "contract_id", "comment": null}, "created_by_id": {"type": "STRING", "index": 14, "name": "created_by_id", "comment": null}, "created_date": {"type": "TIMESTAMP", "index": 15, "name": "created_date", "comment": null}, "customer_authorized_by_id": {"type": "STRING", "index": 16, "name": "customer_authorized_by_id", "comment": null}, "description": {"type": "STRING", "index": 17, "name": "description", "comment": null}, "end_date": {"type": "TIMESTAMP", "index": 18, "name": "end_date", "comment": null}, "is_deleted": {"type": "BOOL", "index": 19, "name": "is_deleted", "comment": null}, "last_modified_by_id": {"type": "STRING", "index": 20, "name": "last_modified_by_id", "comment": null}, "last_modified_date": {"type": "TIMESTAMP", "index": 21, "name": "last_modified_date", "comment": null}, "last_referenced_date": {"type": "TIMESTAMP", "index": 22, "name": "last_referenced_date", "comment": null}, "last_viewed_date": {"type": "TIMESTAMP", "index": 23, "name": "last_viewed_date", "comment": null}, "opportunity_id": {"type": "STRING", "index": 24, "name": "opportunity_id", "comment": null}, "order_number": {"type": "STRING", "index": 25, "name": "order_number", "comment": null}, "original_order_id": {"type": "STRING", "index": 26, "name": "original_order_id", "comment": null}, "owner_id": {"type": "STRING", "index": 27, "name": "owner_id", "comment": null}, "pricebook_2_id": {"type": "STRING", "index": 28, "name": "pricebook_2_id", "comment": null}, "shipping_city": {"type": "STRING", "index": 29, "name": "shipping_city", "comment": null}, "shipping_country": {"type": "STRING", "index": 30, "name": "shipping_country", "comment": null}, "shipping_country_code": {"type": "STRING", "index": 31, "name": "shipping_country_code", "comment": null}, "shipping_postal_code": {"type": "STRING", "index": 32, "name": "shipping_postal_code", "comment": null}, "shipping_state": {"type": "STRING", "index": 33, "name": "shipping_state", "comment": null}, "shipping_state_code": {"type": "STRING", "index": 34, "name": "shipping_state_code", "comment": null}, "shipping_street": {"type": "STRING", "index": 35, "name": "shipping_street", "comment": null}, "status": {"type": "STRING", "index": 36, "name": "status", "comment": null}, "total_amount": {"type": "FLOAT64", "index": 37, "name": "total_amount", "comment": null}, "type": {"type": "STRING", "index": 38, "name": "type", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 7757119.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 24017.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.salesforce_source.stg_salesforce__order"}, "model.salesforce_source.stg_salesforce__product_2": {"metadata": {"type": "table", "schema": "dbt_renee", "name": "stg_salesforce__product_2", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "TIMESTAMP", "index": 1, "name": "_fivetran_synced", "comment": null}, "product_2_id": {"type": "STRING", "index": 2, "name": "product_2_id", "comment": null}, "created_by_id": {"type": "STRING", "index": 3, "name": "created_by_id", "comment": null}, "created_date": {"type": "TIMESTAMP", "index": 4, "name": "created_date", "comment": null}, "description": {"type": "STRING", "index": 5, "name": "description", "comment": null}, "display_url": {"type": "STRING", "index": 6, "name": "display_url", "comment": null}, "external_id": {"type": "STRING", "index": 7, "name": "external_id", "comment": null}, "family": {"type": "STRING", "index": 8, "name": "family", "comment": null}, "is_active": {"type": "BOOL", "index": 9, "name": "is_active", "comment": null}, "is_archived": {"type": "BOOL", "index": 10, "name": "is_archived", "comment": null}, "is_deleted": {"type": "BOOL", "index": 11, "name": "is_deleted", "comment": null}, "last_modified_by_id": {"type": "STRING", "index": 12, "name": "last_modified_by_id", "comment": null}, "last_modified_date": {"type": "TIMESTAMP", "index": 13, "name": "last_modified_date", "comment": null}, "last_referenced_date": {"type": "TIMESTAMP", "index": 14, "name": "last_referenced_date", "comment": null}, "last_viewed_date": {"type": "TIMESTAMP", "index": 15, "name": "last_viewed_date", "comment": null}, "name": {"type": "STRING", "index": 16, "name": "name", "comment": null}, "number_of_quantity_installments": {"type": "INT64", "index": 17, "name": "number_of_quantity_installments", "comment": null}, "number_of_revenue_installments": {"type": "INT64", "index": 18, "name": "number_of_revenue_installments", "comment": null}, "product_code": {"type": "STRING", "index": 19, "name": "product_code", "comment": null}, "quantity_installment_period": {"type": "STRING", "index": 20, "name": "quantity_installment_period", "comment": null}, "quantity_schedule_type": {"type": "STRING", "index": 21, "name": "quantity_schedule_type", "comment": null}, "quantity_unit_of_measure": {"type": "STRING", "index": 22, "name": "quantity_unit_of_measure", "comment": null}, "record_type_id": {"type": "STRING", "index": 23, "name": "record_type_id", "comment": null}, "revenue_installment_period": {"type": "STRING", "index": 24, "name": "revenue_installment_period", "comment": null}, "revenue_schedule_type": {"type": "STRING", "index": 25, "name": "revenue_schedule_type", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 244872.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 975.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.salesforce_source.stg_salesforce__product_2"}, "model.salesforce_source.stg_salesforce__account": {"metadata": {"type": "table", "schema": "dbt_renee", "name": "stg_salesforce__account", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "TIMESTAMP", "index": 1, "name": "_fivetran_synced", "comment": null}, "account_number": {"type": "STRING", "index": 2, "name": "account_number", "comment": null}, "account_source": {"type": "STRING", "index": 3, "name": "account_source", "comment": null}, "annual_revenue": {"type": "NUMERIC", "index": 4, "name": "annual_revenue", "comment": null}, "billing_city": {"type": "STRING", "index": 5, "name": "billing_city", "comment": null}, "billing_country": {"type": "STRING", "index": 6, "name": "billing_country", "comment": null}, "billing_postal_code": {"type": "STRING", "index": 7, "name": "billing_postal_code", "comment": null}, "billing_state": {"type": "STRING", "index": 8, "name": "billing_state", "comment": null}, "billing_state_code": {"type": "STRING", "index": 9, "name": "billing_state_code", "comment": null}, "billing_street": {"type": "STRING", "index": 10, "name": "billing_street", "comment": null}, "description": {"type": "STRING", "index": 11, "name": "description", "comment": null}, "account_id": {"type": "STRING", "index": 12, "name": "account_id", "comment": null}, "industry": {"type": "STRING", "index": 13, "name": "industry", "comment": null}, "is_deleted": {"type": "BOOL", "index": 14, "name": "is_deleted", "comment": null}, "last_activity_date": {"type": "TIMESTAMP", "index": 15, "name": "last_activity_date", "comment": null}, "last_referenced_date": {"type": "TIMESTAMP", "index": 16, "name": "last_referenced_date", "comment": null}, "last_viewed_date": {"type": "TIMESTAMP", "index": 17, "name": "last_viewed_date", "comment": null}, "master_record_id": {"type": "STRING", "index": 18, "name": "master_record_id", "comment": null}, "account_name": {"type": "STRING", "index": 19, "name": "account_name", "comment": null}, "number_of_employees": {"type": "INT64", "index": 20, "name": "number_of_employees", "comment": null}, "owner_id": {"type": "STRING", "index": 21, "name": "owner_id", "comment": null}, "ownership": {"type": "STRING", "index": 22, "name": "ownership", "comment": null}, "parent_id": {"type": "STRING", "index": 23, "name": "parent_id", "comment": null}, "rating": {"type": "STRING", "index": 24, "name": "rating", "comment": null}, "record_type_id": {"type": "STRING", "index": 25, "name": "record_type_id", "comment": null}, "shipping_city": {"type": "STRING", "index": 26, "name": "shipping_city", "comment": null}, "shipping_country": {"type": "STRING", "index": 27, "name": "shipping_country", "comment": null}, "shipping_country_code": {"type": "STRING", "index": 28, "name": "shipping_country_code", "comment": null}, "shipping_postal_code": {"type": "STRING", "index": 29, "name": "shipping_postal_code", "comment": null}, "shipping_state": {"type": "STRING", "index": 30, "name": "shipping_state", "comment": null}, "shipping_state_code": {"type": "STRING", "index": 31, "name": "shipping_state_code", "comment": null}, "shipping_street": {"type": "STRING", "index": 32, "name": "shipping_street", "comment": null}, "type": {"type": "STRING", "index": 33, "name": "type", "comment": null}, "website": {"type": "STRING", "index": 34, "name": "website", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 110177988.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 522168.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.salesforce_source.stg_salesforce__account"}, "model.salesforce_source.stg_salesforce__lead_tmp": {"metadata": {"type": "view", "schema": "dbt_renee", "name": "stg_salesforce__lead_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"country": {"type": "STRING", "index": 1, "name": "country", "comment": null}, "email_bounced_reason": {"type": "STRING", "index": 2, "name": "email_bounced_reason", "comment": null}, "email_bounced_date": {"type": "TIMESTAMP", "index": 3, "name": "email_bounced_date", "comment": null}, "owner_id": {"type": "STRING", "index": 4, "name": "owner_id", "comment": null}, "secondary_email_c": {"type": "STRING", "index": 5, "name": "secondary_email_c", "comment": null}, "lead_source": {"type": "STRING", "index": 6, "name": "lead_source", "comment": null}, "converted_date": {"type": "TIMESTAMP", "index": 7, "name": "converted_date", "comment": null}, "last_modified_date": {"type": "TIMESTAMP", "index": 8, "name": "last_modified_date", "comment": null}, "master_record_id": {"type": "STRING", "index": 9, "name": "master_record_id", "comment": null}, "last_modified_by_id": {"type": "STRING", "index": 10, "name": "last_modified_by_id", "comment": null}, "system_modstamp": {"type": "TIMESTAMP", "index": 11, "name": "system_modstamp", "comment": null}, "geocode_accuracy": {"type": "STRING", "index": 12, "name": "geocode_accuracy", "comment": null}, "converted_contact_id": {"type": "STRING", "index": 13, "name": "converted_contact_id", "comment": null}, "up_region_c": {"type": "STRING", "index": 14, "name": "up_region_c", "comment": null}, "id": {"type": "STRING", "index": 15, "name": "id", "comment": null}, "photo_url": {"type": "STRING", "index": 16, "name": "photo_url", "comment": null}, "state": {"type": "STRING", "index": 17, "name": "state", "comment": null}, "longitude": {"type": "FLOAT64", "index": 18, "name": "longitude", "comment": null}, "last_referenced_date": {"type": "TIMESTAMP", "index": 19, "name": "last_referenced_date", "comment": null}, "up_district_c": {"type": "STRING", "index": 20, "name": "up_district_c", "comment": null}, "last_activity_date": {"type": "TIMESTAMP", "index": 21, "name": "last_activity_date", "comment": null}, "country_code": {"type": "STRING", "index": 22, "name": "country_code", "comment": null}, "phone": {"type": "STRING", "index": 23, "name": "phone", "comment": null}, "mc_4_sf_mc_subscriber_c": {"type": "STRING", "index": 24, "name": "mc_4_sf_mc_subscriber_c", "comment": null}, "name": {"type": "STRING", "index": 25, "name": "name", "comment": null}, "jigsaw_contact_id": {"type": "STRING", "index": 26, "name": "jigsaw_contact_id", "comment": null}, "lead_source_detail_c": {"type": "STRING", "index": 27, "name": "lead_source_detail_c", "comment": null}, "created_by_id": {"type": "STRING", "index": 28, "name": "created_by_id", "comment": null}, "salutation": {"type": "STRING", "index": 29, "name": "salutation", "comment": null}, "is_converted": {"type": "BOOL", "index": 30, "name": "is_converted", "comment": null}, "state_code": {"type": "STRING", "index": 31, "name": "state_code", "comment": null}, "is_unread_by_owner": {"type": "BOOL", "index": 32, "name": "is_unread_by_owner", "comment": null}, "status": {"type": "STRING", "index": 33, "name": "status", "comment": null}, "city": {"type": "STRING", "index": 34, "name": "city", "comment": null}, "latitude": {"type": "FLOAT64", "index": 35, "name": "latitude", "comment": null}, "cbit_clearbit_c": {"type": "STRING", "index": 36, "name": "cbit_clearbit_c", "comment": null}, "industry": {"type": "STRING", "index": 37, "name": "industry", "comment": null}, "title": {"type": "STRING", "index": 38, "name": "title", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 39, "name": "_fivetran_synced", "comment": null}, "last_viewed_date": {"type": "TIMESTAMP", "index": 40, "name": "last_viewed_date", "comment": null}, "converted_opportunity_id": {"type": "STRING", "index": 41, "name": "converted_opportunity_id", "comment": null}, "is_deleted": {"type": "BOOL", "index": 42, "name": "is_deleted", "comment": null}, "street": {"type": "STRING", "index": 43, "name": "street", "comment": null}, "company": {"type": "STRING", "index": 44, "name": "company", "comment": null}, "first_name": {"type": "STRING", "index": 45, "name": "first_name", "comment": null}, "email": {"type": "STRING", "index": 46, "name": "email", "comment": null}, "website": {"type": "STRING", "index": 47, "name": "website", "comment": null}, "last_name": {"type": "STRING", "index": 48, "name": "last_name", "comment": null}, "number_of_employees": {"type": "INT64", "index": 49, "name": "number_of_employees", "comment": null}, "up_territory_c": {"type": "STRING", "index": 50, "name": "up_territory_c", "comment": null}, "created_date": {"type": "TIMESTAMP", "index": 51, "name": "created_date", "comment": null}, "gclid_c": {"type": "STRING", "index": 52, "name": "gclid_c", "comment": null}, "active_in_sequence_c": {"type": "BOOL", "index": 53, "name": "active_in_sequence_c", "comment": null}, "postal_code": {"type": "STRING", "index": 54, "name": "postal_code", "comment": null}, "cbit_clearbit_ready_c": {"type": "BOOL", "index": 55, "name": "cbit_clearbit_ready_c", "comment": null}, "has_opted_out_of_email": {"type": "BOOL", "index": 56, "name": "has_opted_out_of_email", "comment": null}, "converted_account_id": {"type": "STRING", "index": 57, "name": "converted_account_id", "comment": null}, "mobile_phone": {"type": "STRING", "index": 58, "name": "mobile_phone", "comment": null}, "calendly_created_c": {"type": "BOOL", "index": 59, "name": "calendly_created_c", "comment": null}, "account_c": {"type": "STRING", "index": 60, "name": "account_c", "comment": null}, "all_connectors_c": {"type": "STRING", "index": 61, "name": "all_connectors_c", "comment": null}, "all_data_warehouses_c": {"type": "STRING", "index": 62, "name": "all_data_warehouses_c", "comment": null}, "bi_tools_c": {"type": "STRING", "index": 63, "name": "bi_tools_c", "comment": null}, "competitors_c": {"type": "STRING", "index": 64, "name": "competitors_c", "comment": null}, "annual_revenue": {"type": "FLOAT64", "index": 65, "name": "annual_revenue", "comment": null}, "connectors_products_c": {"type": "STRING", "index": 66, "name": "connectors_products_c", "comment": null}, "contact_c": {"type": "STRING", "index": 67, "name": "contact_c", "comment": null}, "data_warehouse_products_c": {"type": "STRING", "index": 68, "name": "data_warehouse_products_c", "comment": null}, "notes_c": {"type": "STRING", "index": 69, "name": "notes_c", "comment": null}, "timeframe_c": {"type": "STRING", "index": 70, "name": "timeframe_c", "comment": null}, "account_all_products_c": {"type": "STRING", "index": 71, "name": "account_all_products_c", "comment": null}, "account_bi_tools_c": {"type": "STRING", "index": 72, "name": "account_bi_tools_c", "comment": null}, "account_data_warehouses_c": {"type": "STRING", "index": 73, "name": "account_data_warehouses_c", "comment": null}, "opportunity_competitors_c": {"type": "STRING", "index": 74, "name": "opportunity_competitors_c", "comment": null}, "opportunity_products_c": {"type": "STRING", "index": 75, "name": "opportunity_products_c", "comment": null}, "description": {"type": "STRING", "index": 76, "name": "description", "comment": null}, "referral_account_c": {"type": "STRING", "index": 77, "name": "referral_account_c", "comment": null}, "referral_contact_c": {"type": "STRING", "index": 78, "name": "referral_contact_c", "comment": null}, "volume_in_millions_c": {"type": "FLOAT64", "index": 79, "name": "volume_in_millions_c", "comment": null}, "feature_requests_c": {"type": "STRING", "index": 80, "name": "feature_requests_c", "comment": null}, "lead_number_c": {"type": "STRING", "index": 81, "name": "lead_number_c", "comment": null}, "demo_scheduled_by_calenderly_c": {"type": "BOOL", "index": 82, "name": "demo_scheduled_by_calenderly_c", "comment": null}, "to_delete_c": {"type": "BOOL", "index": 83, "name": "to_delete_c", "comment": null}, "bounced_email_c": {"type": "BOOL", "index": 84, "name": "bounced_email_c", "comment": null}, "email_quality_c": {"type": "BOOL", "index": 85, "name": "email_quality_c", "comment": null}, "email_quality_catchall_c": {"type": "BOOL", "index": 86, "name": "email_quality_catchall_c", "comment": null}, "old_lead_source_c": {"type": "STRING", "index": 87, "name": "old_lead_source_c", "comment": null}, "email_bounced_c": {"type": "BOOL", "index": 88, "name": "email_bounced_c", "comment": null}, "old_lead_source_detail_c": {"type": "STRING", "index": 89, "name": "old_lead_source_detail_c", "comment": null}, "utm_medium_c": {"type": "STRING", "index": 90, "name": "utm_medium_c", "comment": null}, "utm_source_c": {"type": "STRING", "index": 91, "name": "utm_source_c", "comment": null}, "utm_campaign_c": {"type": "STRING", "index": 92, "name": "utm_campaign_c", "comment": null}, "utm_content_c": {"type": "STRING", "index": 93, "name": "utm_content_c", "comment": null}, "utm_term_c": {"type": "STRING", "index": 94, "name": "utm_term_c", "comment": null}, "act_on_lead_score_c": {"type": "FLOAT64", "index": 95, "name": "act_on_lead_score_c", "comment": null}, "cbit_created_by_clearbit_c": {"type": "BOOL", "index": 96, "name": "cbit_created_by_clearbit_c", "comment": null}, "fivetran_user_id_c": {"type": "STRING", "index": 97, "name": "fivetran_user_id_c", "comment": null}, "geo_state_acton_c": {"type": "STRING", "index": 98, "name": "geo_state_acton_c", "comment": null}, "actoncountry_c": {"type": "STRING", "index": 99, "name": "actoncountry_c", "comment": null}, "actoncity_c": {"type": "STRING", "index": 100, "name": "actoncity_c", "comment": null}, "actoncountrycode_c": {"type": "STRING", "index": 101, "name": "actoncountrycode_c", "comment": null}, "actonpostalcode_c": {"type": "STRING", "index": 102, "name": "actonpostalcode_c", "comment": null}, "actonreferrer_c": {"type": "STRING", "index": 103, "name": "actonreferrer_c", "comment": null}, "actonstate_c": {"type": "STRING", "index": 104, "name": "actonstate_c", "comment": null}, "geo_city_c": {"type": "STRING", "index": 105, "name": "geo_city_c", "comment": null}, "geo_country_c": {"type": "STRING", "index": 106, "name": "geo_country_c", "comment": null}, "geo_country_code_c": {"type": "STRING", "index": 107, "name": "geo_country_code_c", "comment": null}, "geo_postal_code_c": {"type": "STRING", "index": 108, "name": "geo_postal_code_c", "comment": null}, "geo_state_c": {"type": "STRING", "index": 109, "name": "geo_state_c", "comment": null}, "company_type_c": {"type": "STRING", "index": 110, "name": "company_type_c", "comment": null}, "pi_campaign_c": {"type": "STRING", "index": 111, "name": "pi_campaign_c", "comment": null}, "pi_comments_c": {"type": "STRING", "index": 112, "name": "pi_comments_c", "comment": null}, "pi_conversion_date_c": {"type": "TIMESTAMP", "index": 113, "name": "pi_conversion_date_c", "comment": null}, "pi_conversion_object_name_c": {"type": "STRING", "index": 114, "name": "pi_conversion_object_name_c", "comment": null}, "pi_conversion_object_type_c": {"type": "STRING", "index": 115, "name": "pi_conversion_object_type_c", "comment": null}, "pi_created_date_c": {"type": "TIMESTAMP", "index": 116, "name": "pi_created_date_c", "comment": null}, "pi_first_activity_c": {"type": "TIMESTAMP", "index": 117, "name": "pi_first_activity_c", "comment": null}, "pi_first_search_term_c": {"type": "STRING", "index": 118, "name": "pi_first_search_term_c", "comment": null}, "pi_first_search_type_c": {"type": "STRING", "index": 119, "name": "pi_first_search_type_c", "comment": null}, "pi_first_touch_url_c": {"type": "STRING", "index": 120, "name": "pi_first_touch_url_c", "comment": null}, "pi_grade_c": {"type": "STRING", "index": 121, "name": "pi_grade_c", "comment": null}, "pi_last_activity_c": {"type": "TIMESTAMP", "index": 122, "name": "pi_last_activity_c", "comment": null}, "pi_needs_score_synced_c": {"type": "BOOL", "index": 123, "name": "pi_needs_score_synced_c", "comment": null}, "pi_notes_c": {"type": "STRING", "index": 124, "name": "pi_notes_c", "comment": null}, "pi_pardot_hard_bounced_c": {"type": "BOOL", "index": 125, "name": "pi_pardot_hard_bounced_c", "comment": null}, "pi_pardot_last_scored_at_c": {"type": "TIMESTAMP", "index": 126, "name": "pi_pardot_last_scored_at_c", "comment": null}, "pi_score_c": {"type": "FLOAT64", "index": 127, "name": "pi_score_c", "comment": null}, "pi_url_c": {"type": "STRING", "index": 128, "name": "pi_url_c", "comment": null}, "pi_utm_campaign_c": {"type": "STRING", "index": 129, "name": "pi_utm_campaign_c", "comment": null}, "pi_utm_content_c": {"type": "STRING", "index": 130, "name": "pi_utm_content_c", "comment": null}, "pi_utm_medium_c": {"type": "STRING", "index": 131, "name": "pi_utm_medium_c", "comment": null}, "pi_utm_source_c": {"type": "STRING", "index": 132, "name": "pi_utm_source_c", "comment": null}, "pi_utm_term_c": {"type": "STRING", "index": 133, "name": "pi_utm_term_c", "comment": null}, "fax": {"type": "STRING", "index": 134, "name": "fax", "comment": null}, "region_c": {"type": "STRING", "index": 135, "name": "region_c", "comment": null}, "competitor_c": {"type": "BOOL", "index": 136, "name": "competitor_c", "comment": null}, "source_detail_c": {"type": "STRING", "index": 137, "name": "source_detail_c", "comment": null}, "fivetran_account_stage_c": {"type": "STRING", "index": 138, "name": "fivetran_account_stage_c", "comment": null}, "fivetran_account_id_c": {"type": "STRING", "index": 139, "name": "fivetran_account_id_c", "comment": null}, "lean_data_router_status_c": {"type": "STRING", "index": 140, "name": "lean_data_router_status_c", "comment": null}, "lean_data_matched_lead_c": {"type": "STRING", "index": 141, "name": "lean_data_matched_lead_c", "comment": null}, "lean_data_routing_action_c": {"type": "STRING", "index": 142, "name": "lean_data_routing_action_c", "comment": null}, "lean_data_search_index_c": {"type": "STRING", "index": 143, "name": "lean_data_search_index_c", "comment": null}, "lean_data_reporting_matched_account_c": {"type": "STRING", "index": 144, "name": "lean_data_reporting_matched_account_c", "comment": null}, "lean_data_reporting_timestamp_c": {"type": "TIMESTAMP", "index": 145, "name": "lean_data_reporting_timestamp_c", "comment": null}, "lean_data_ld_segment_c": {"type": "STRING", "index": 146, "name": "lean_data_ld_segment_c", "comment": null}, "lean_data_marketing_sys_created_date_c": {"type": "TIMESTAMP", "index": 147, "name": "lean_data_marketing_sys_created_date_c", "comment": null}, "lean_data_matched_account_c": {"type": "STRING", "index": 148, "name": "lean_data_matched_account_c", "comment": null}, "lean_data_a_2_b_account_c": {"type": "STRING", "index": 149, "name": "lean_data_a_2_b_account_c", "comment": null}, "lean_data_search_c": {"type": "STRING", "index": 150, "name": "lean_data_search_c", "comment": null}, "lean_data_routing_status_c": {"type": "STRING", "index": 151, "name": "lean_data_routing_status_c", "comment": null}, "lean_data_a_2_b_group_c": {"type": "STRING", "index": 152, "name": "lean_data_a_2_b_group_c", "comment": null}, "lean_data_matched_buyer_persona_c": {"type": "STRING", "index": 153, "name": "lean_data_matched_buyer_persona_c", "comment": null}, "lean_data_tag_c": {"type": "STRING", "index": 154, "name": "lean_data_tag_c", "comment": null}, "lean_data_status_info_c": {"type": "STRING", "index": 155, "name": "lean_data_status_info_c", "comment": null}, "lean_data_modified_score_c": {"type": "FLOAT64", "index": 156, "name": "lean_data_modified_score_c", "comment": null}, "do_not_route_lead_c": {"type": "BOOL", "index": 157, "name": "do_not_route_lead_c", "comment": null}, "partner_type_c": {"type": "STRING", "index": 158, "name": "partner_type_c", "comment": null}, "allbound_id_c": {"type": "STRING", "index": 159, "name": "allbound_id_c", "comment": null}, "lid_linked_in_company_id_c": {"type": "STRING", "index": 160, "name": "lid_linked_in_company_id_c", "comment": null}, "lid_linked_in_member_token_c": {"type": "STRING", "index": 161, "name": "lid_linked_in_member_token_c", "comment": null}, "lean_data_re_route_c": {"type": "FLOAT64", "index": 162, "name": "lean_data_re_route_c", "comment": null}, "sales_loft_1_most_recent_cadence_next_step_due_date_c": {"type": "TIMESTAMP", "index": 163, "name": "sales_loft_1_most_recent_cadence_next_step_due_date_c", "comment": null}, "sales_loft_1_most_recent_last_completed_step_c": {"type": "FLOAT64", "index": 164, "name": "sales_loft_1_most_recent_last_completed_step_c", "comment": null}, "sales_loft_1_most_recent_cadence_name_c": {"type": "STRING", "index": 165, "name": "sales_loft_1_most_recent_cadence_name_c", "comment": null}, "network_c": {"type": "STRING", "index": 166, "name": "network_c", "comment": null}, "matchtype_c": {"type": "STRING", "index": 167, "name": "matchtype_c", "comment": null}, "device_c": {"type": "STRING", "index": 168, "name": "device_c", "comment": null}, "creative_c": {"type": "STRING", "index": 169, "name": "creative_c", "comment": null}, "adgroupid_c": {"type": "STRING", "index": 170, "name": "adgroupid_c", "comment": null}, "keyword_c": {"type": "STRING", "index": 171, "name": "keyword_c", "comment": null}, "campaignid_c": {"type": "STRING", "index": 172, "name": "campaignid_c", "comment": null}, "partner_rep_email_c": {"type": "STRING", "index": 173, "name": "partner_rep_email_c", "comment": null}, "partner_rep_name_c": {"type": "STRING", "index": 174, "name": "partner_rep_name_c", "comment": null}, "lead_type_c": {"type": "STRING", "index": 175, "name": "lead_type_c", "comment": null}, "contact_stage_c": {"type": "STRING", "index": 176, "name": "contact_stage_c", "comment": null}, "original_utm_campaign_c": {"type": "STRING", "index": 177, "name": "original_utm_campaign_c", "comment": null}, "original_utm_content_c": {"type": "STRING", "index": 178, "name": "original_utm_content_c", "comment": null}, "original_utm_medium_c": {"type": "STRING", "index": 179, "name": "original_utm_medium_c", "comment": null}, "original_utm_source_c": {"type": "STRING", "index": 180, "name": "original_utm_source_c", "comment": null}, "original_utm_term_c": {"type": "STRING", "index": 181, "name": "original_utm_term_c", "comment": null}, "es_app_esalexa_rank_c": {"type": "FLOAT64", "index": 182, "name": "es_app_esalexa_rank_c", "comment": null}, "es_app_esaudience_names_c": {"type": "STRING", "index": 183, "name": "es_app_esaudience_names_c", "comment": null}, "es_app_escity_c": {"type": "STRING", "index": 184, "name": "es_app_escity_c", "comment": null}, "es_app_escompany_phone_c": {"type": "STRING", "index": 185, "name": "es_app_escompany_phone_c", "comment": null}, "es_app_escountry_c": {"type": "STRING", "index": 186, "name": "es_app_escountry_c", "comment": null}, "es_app_escreated_timestamp_c": {"type": "TIMESTAMP", "index": 187, "name": "es_app_escreated_timestamp_c", "comment": null}, "es_app_esecid_c": {"type": "FLOAT64", "index": 188, "name": "es_app_esecid_c", "comment": null}, "es_app_esemployees_c": {"type": "STRING", "index": 189, "name": "es_app_esemployees_c", "comment": null}, "es_app_esenriched_c": {"type": "BOOL", "index": 190, "name": "es_app_esenriched_c", "comment": null}, "es_app_esenriched_timestamp_c": {"type": "TIMESTAMP", "index": 191, "name": "es_app_esenriched_timestamp_c", "comment": null}, "es_app_esfacebook_c": {"type": "STRING", "index": 192, "name": "es_app_esfacebook_c", "comment": null}, "es_app_esindustry_c": {"type": "STRING", "index": 193, "name": "es_app_esindustry_c", "comment": null}, "es_app_esintent_aggregate_score_c": {"type": "FLOAT64", "index": 194, "name": "es_app_esintent_aggregate_score_c", "comment": null}, "es_app_esintent_timestamp_c": {"type": "TIMESTAMP", "index": 195, "name": "es_app_esintent_timestamp_c", "comment": null}, "es_app_esintent_topics_c": {"type": "STRING", "index": 196, "name": "es_app_esintent_topics_c", "comment": null}, "es_app_eskeywords_c": {"type": "STRING", "index": 197, "name": "es_app_eskeywords_c", "comment": null}, "es_app_eslinked_in_c": {"type": "STRING", "index": 198, "name": "es_app_eslinked_in_c", "comment": null}, "es_app_esoverall_fit_score_c": {"type": "FLOAT64", "index": 199, "name": "es_app_esoverall_fit_score_c", "comment": null}, "es_app_esrevenue_c": {"type": "STRING", "index": 200, "name": "es_app_esrevenue_c", "comment": null}, "es_app_essource_c": {"type": "BOOL", "index": 201, "name": "es_app_essource_c", "comment": null}, "es_app_esstate_c": {"type": "STRING", "index": 202, "name": "es_app_esstate_c", "comment": null}, "es_app_esstreet_c": {"type": "STRING", "index": 203, "name": "es_app_esstreet_c", "comment": null}, "es_app_estechnologies_c": {"type": "STRING", "index": 204, "name": "es_app_estechnologies_c", "comment": null}, "es_app_estwitter_c": {"type": "STRING", "index": 205, "name": "es_app_estwitter_c", "comment": null}, "es_app_eszipcode_c": {"type": "STRING", "index": 206, "name": "es_app_eszipcode_c", "comment": null}, "marketing_prospect_routing_rules_c": {"type": "BOOL", "index": 207, "name": "marketing_prospect_routing_rules_c", "comment": null}, "individual_id": {"type": "STRING", "index": 208, "name": "individual_id", "comment": null}, "marketing_process_c": {"type": "STRING", "index": 209, "name": "marketing_process_c", "comment": null}, "automation_tracking_c": {"type": "STRING", "index": 210, "name": "automation_tracking_c", "comment": null}, "user_gems_has_changed_job_c": {"type": "TIMESTAMP", "index": 211, "name": "user_gems_has_changed_job_c", "comment": null}, "user_gems_linked_in_c": {"type": "STRING", "index": 212, "name": "user_gems_linked_in_c", "comment": null}, "email_opt_in_c": {"type": "BOOL", "index": 213, "name": "email_opt_in_c", "comment": null}, "email_opt_in_explicit_c": {"type": "BOOL", "index": 214, "name": "email_opt_in_explicit_c", "comment": null}, "email_opt_in_implicit_c": {"type": "BOOL", "index": 215, "name": "email_opt_in_implicit_c", "comment": null}, "gdpr_opt_in_explicit_c": {"type": "BOOL", "index": 216, "name": "gdpr_opt_in_explicit_c", "comment": null}, "user_gems_is_a_user_gem_c": {"type": "BOOL", "index": 217, "name": "user_gems_is_a_user_gem_c", "comment": null}, "user_gems_past_account_c": {"type": "STRING", "index": 218, "name": "user_gems_past_account_c", "comment": null}, "user_gems_past_company_c": {"type": "STRING", "index": 219, "name": "user_gems_past_company_c", "comment": null}, "user_gems_past_contact_c": {"type": "STRING", "index": 220, "name": "user_gems_past_contact_c", "comment": null}, "user_gems_past_title_c": {"type": "STRING", "index": 221, "name": "user_gems_past_title_c", "comment": null}, "promotion_id_c": {"type": "STRING", "index": 222, "name": "promotion_id_c", "comment": null}, "previous_customer_c": {"type": "BOOL", "index": 223, "name": "previous_customer_c", "comment": null}, "referral_contact_email_c": {"type": "STRING", "index": 224, "name": "referral_contact_email_c", "comment": null}, "referral_firstname_c": {"type": "STRING", "index": 225, "name": "referral_firstname_c", "comment": null}, "referral_last_name_c": {"type": "STRING", "index": 226, "name": "referral_last_name_c", "comment": null}, "mkto_71_lead_score_c": {"type": "FLOAT64", "index": 227, "name": "mkto_71_lead_score_c", "comment": null}, "mkto_71_acquisition_date_c": {"type": "TIMESTAMP", "index": 228, "name": "mkto_71_acquisition_date_c", "comment": null}, "mkto_71_acquisition_program_id_c": {"type": "FLOAT64", "index": 229, "name": "mkto_71_acquisition_program_id_c", "comment": null}, "mkto_acquisition_program_c": {"type": "STRING", "index": 230, "name": "mkto_acquisition_program_c", "comment": null}, "mkto_71_inferred_city_c": {"type": "STRING", "index": 231, "name": "mkto_71_inferred_city_c", "comment": null}, "mkto_71_inferred_company_c": {"type": "STRING", "index": 232, "name": "mkto_71_inferred_company_c", "comment": null}, "mkto_71_inferred_country_c": {"type": "STRING", "index": 233, "name": "mkto_71_inferred_country_c", "comment": null}, "mkto_71_inferred_metropolitan_area_c": {"type": "STRING", "index": 234, "name": "mkto_71_inferred_metropolitan_area_c", "comment": null}, "mkto_71_inferred_phone_area_code_c": {"type": "STRING", "index": 235, "name": "mkto_71_inferred_phone_area_code_c", "comment": null}, "mkto_71_inferred_postal_code_c": {"type": "STRING", "index": 236, "name": "mkto_71_inferred_postal_code_c", "comment": null}, "mkto_71_inferred_state_region_c": {"type": "STRING", "index": 237, "name": "mkto_71_inferred_state_region_c", "comment": null}, "mkto_71_original_referrer_c": {"type": "STRING", "index": 238, "name": "mkto_71_original_referrer_c", "comment": null}, "mkto_71_original_search_engine_c": {"type": "STRING", "index": 239, "name": "mkto_71_original_search_engine_c", "comment": null}, "mkto_71_original_search_phrase_c": {"type": "STRING", "index": 240, "name": "mkto_71_original_search_phrase_c", "comment": null}, "mkto_71_original_source_info_c": {"type": "STRING", "index": 241, "name": "mkto_71_original_source_info_c", "comment": null}, "mkto_71_original_source_type_c": {"type": "STRING", "index": 242, "name": "mkto_71_original_source_type_c", "comment": null}, "mkto_si_hide_date_c": {"type": "TIMESTAMP", "index": 243, "name": "mkto_si_hide_date_c", "comment": null}, "mkto_si_last_interesting_moment_date_c": {"type": "TIMESTAMP", "index": 244, "name": "mkto_si_last_interesting_moment_date_c", "comment": null}, "mkto_si_last_interesting_moment_desc_c": {"type": "STRING", "index": 245, "name": "mkto_si_last_interesting_moment_desc_c", "comment": null}, "mkto_si_last_interesting_moment_source_c": {"type": "STRING", "index": 246, "name": "mkto_si_last_interesting_moment_source_c", "comment": null}, "mkto_si_last_interesting_moment_type_c": {"type": "STRING", "index": 247, "name": "mkto_si_last_interesting_moment_type_c", "comment": null}, "mkto_si_msicontact_id_c": {"type": "STRING", "index": 248, "name": "mkto_si_msicontact_id_c", "comment": null}, "mkto_si_priority_c": {"type": "FLOAT64", "index": 249, "name": "mkto_si_priority_c", "comment": null}, "mkto_si_relative_score_value_c": {"type": "FLOAT64", "index": 250, "name": "mkto_si_relative_score_value_c", "comment": null}, "mkto_si_urgency_value_c": {"type": "FLOAT64", "index": 251, "name": "mkto_si_urgency_value_c", "comment": null}, "cloudingo_agent_ar_c": {"type": "STRING", "index": 252, "name": "cloudingo_agent_ar_c", "comment": null}, "cloudingo_agent_ardi_c": {"type": "STRING", "index": 253, "name": "cloudingo_agent_ardi_c", "comment": null}, "cloudingo_agent_as_c": {"type": "FLOAT64", "index": 254, "name": "cloudingo_agent_as_c", "comment": null}, "cloudingo_agent_atz_c": {"type": "STRING", "index": 255, "name": "cloudingo_agent_atz_c", "comment": null}, "cloudingo_agent_av_c": {"type": "STRING", "index": 256, "name": "cloudingo_agent_av_c", "comment": null}, "cloudingo_agent_les_c": {"type": "FLOAT64", "index": 257, "name": "cloudingo_agent_les_c", "comment": null}, "do_not_sync_marketo_c": {"type": "BOOL", "index": 258, "name": "do_not_sync_marketo_c", "comment": null}, "source_every_utm_campaign_c": {"type": "STRING", "index": 259, "name": "source_every_utm_campaign_c", "comment": null}, "source_every_utm_content_c": {"type": "STRING", "index": 260, "name": "source_every_utm_content_c", "comment": null}, "source_every_utm_medium_c": {"type": "STRING", "index": 261, "name": "source_every_utm_medium_c", "comment": null}, "source_every_utm_source_c": {"type": "STRING", "index": 262, "name": "source_every_utm_source_c", "comment": null}, "source_every_utm_term_c": {"type": "STRING", "index": 263, "name": "source_every_utm_term_c", "comment": null}, "source_first_utm_campaign_c": {"type": "STRING", "index": 264, "name": "source_first_utm_campaign_c", "comment": null}, "source_first_utm_content_c": {"type": "STRING", "index": 265, "name": "source_first_utm_content_c", "comment": null}, "source_first_utm_medium_c": {"type": "STRING", "index": 266, "name": "source_first_utm_medium_c", "comment": null}, "source_first_utm_source_c": {"type": "STRING", "index": 267, "name": "source_first_utm_source_c", "comment": null}, "source_first_utm_term_c": {"type": "STRING", "index": 268, "name": "source_first_utm_term_c", "comment": null}, "source_last_utm_campaign_c": {"type": "STRING", "index": 269, "name": "source_last_utm_campaign_c", "comment": null}, "source_last_utm_content_c": {"type": "STRING", "index": 270, "name": "source_last_utm_content_c", "comment": null}, "source_last_utm_medium_c": {"type": "STRING", "index": 271, "name": "source_last_utm_medium_c", "comment": null}, "source_last_utm_source_c": {"type": "STRING", "index": 272, "name": "source_last_utm_source_c", "comment": null}, "source_last_utm_term_c": {"type": "STRING", "index": 273, "name": "source_last_utm_term_c", "comment": null}, "direct_office_c": {"type": "STRING", "index": 274, "name": "direct_office_c", "comment": null}, "city_c": {"type": "STRING", "index": 275, "name": "city_c", "comment": null}, "country_c": {"type": "STRING", "index": 276, "name": "country_c", "comment": null}, "state_c": {"type": "STRING", "index": 277, "name": "state_c", "comment": null}, "source_first_lead_source_category_c": {"type": "STRING", "index": 278, "name": "source_first_lead_source_category_c", "comment": null}, "source_last_lead_source_c": {"type": "STRING", "index": 279, "name": "source_last_lead_source_c", "comment": null}, "source_last_lead_source_category_c": {"type": "STRING", "index": 280, "name": "source_last_lead_source_category_c", "comment": null}, "source_last_lead_source_detail_c": {"type": "STRING", "index": 281, "name": "source_last_lead_source_detail_c", "comment": null}, "source_every_lead_source_c": {"type": "STRING", "index": 282, "name": "source_every_lead_source_c", "comment": null}, "source_every_lead_source_category_c": {"type": "STRING", "index": 283, "name": "source_every_lead_source_category_c", "comment": null}, "source_every_lead_source_detail_c": {"type": "STRING", "index": 284, "name": "source_every_lead_source_detail_c", "comment": null}, "source_first_lead_source_c": {"type": "STRING", "index": 285, "name": "source_first_lead_source_c", "comment": null}, "source_first_lead_source_detail_c": {"type": "STRING", "index": 286, "name": "source_first_lead_source_detail_c", "comment": null}, "behavioral_score_c": {"type": "FLOAT64", "index": 287, "name": "behavioral_score_c", "comment": null}, "demographic_score_c": {"type": "FLOAT64", "index": 288, "name": "demographic_score_c", "comment": null}, "drift_cql_c": {"type": "FLOAT64", "index": 289, "name": "drift_cql_c", "comment": null}, "unique_email_c": {"type": "STRING", "index": 290, "name": "unique_email_c", "comment": null}, "is_emea_event_routing_c": {"type": "BOOL", "index": 291, "name": "is_emea_event_routing_c", "comment": null}, "csi_code_c": {"type": "FLOAT64", "index": 292, "name": "csi_code_c", "comment": null}, "csi_description_c": {"type": "STRING", "index": 293, "name": "csi_description_c", "comment": null}, "converted_date_time_c": {"type": "TIMESTAMP", "index": 294, "name": "converted_date_time_c", "comment": null}, "lead_created_date_time_reporting_c": {"type": "TIMESTAMP", "index": 295, "name": "lead_created_date_time_reporting_c", "comment": null}, "lead_iq_country_c": {"type": "STRING", "index": 296, "name": "lead_iq_country_c", "comment": null}, "lead_iq_employee_count_c": {"type": "STRING", "index": 297, "name": "lead_iq_employee_count_c", "comment": null}, "lead_iq_employee_range_c": {"type": "STRING", "index": 298, "name": "lead_iq_employee_range_c", "comment": null}, "lead_iq_state_c": {"type": "STRING", "index": 299, "name": "lead_iq_state_c", "comment": null}, "lead_iq_zip_code_c": {"type": "STRING", "index": 300, "name": "lead_iq_zip_code_c", "comment": null}, "zoominfo_country_c": {"type": "STRING", "index": 301, "name": "zoominfo_country_c", "comment": null}, "zoominfo_employee_count_c": {"type": "STRING", "index": 302, "name": "zoominfo_employee_count_c", "comment": null}, "zoominfo_state_c": {"type": "STRING", "index": 303, "name": "zoominfo_state_c", "comment": null}, "zoominfo_technologies_c": {"type": "STRING", "index": 304, "name": "zoominfo_technologies_c", "comment": null}, "zoominfo_zip_code_c": {"type": "STRING", "index": 305, "name": "zoominfo_zip_code_c", "comment": null}, "attended_event_c": {"type": "BOOL", "index": 306, "name": "attended_event_c", "comment": null}, "mql_date_c": {"type": "TIMESTAMP", "index": 307, "name": "mql_date_c", "comment": null}, "user_gems_user_gems_id_c": {"type": "STRING", "index": 308, "name": "user_gems_user_gems_id_c", "comment": null}, "dozisf_zoom_info_company_id_c": {"type": "STRING", "index": 309, "name": "dozisf_zoom_info_company_id_c", "comment": null}, "dozisf_zoom_info_first_updated_c": {"type": "TIMESTAMP", "index": 310, "name": "dozisf_zoom_info_first_updated_c", "comment": null}, "dozisf_zoom_info_id_c": {"type": "STRING", "index": 311, "name": "dozisf_zoom_info_id_c", "comment": null}, "dozisf_zoom_info_last_updated_c": {"type": "TIMESTAMP", "index": 312, "name": "dozisf_zoom_info_last_updated_c", "comment": null}, "lean_data_manual_route_trigger_c": {"type": "BOOL", "index": 313, "name": "lean_data_manual_route_trigger_c", "comment": null}, "first_mql_date_c": {"type": "TIMESTAMP", "index": 314, "name": "first_mql_date_c", "comment": null}, "fivetran_account_association_date_c": {"type": "TIMESTAMP", "index": 315, "name": "fivetran_account_association_date_c", "comment": null}, "fivetran_account_user_role_s_c": {"type": "STRING", "index": 316, "name": "fivetran_account_user_role_s_c", "comment": null}, "mql_reason_c": {"type": "STRING", "index": 317, "name": "mql_reason_c", "comment": null}, "trial_contact_start_date_c": {"type": "TIMESTAMP", "index": 318, "name": "trial_contact_start_date_c", "comment": null}, "enrichment_request_c": {"type": "BOOL", "index": 319, "name": "enrichment_request_c", "comment": null}, "meta_data_create_date_c": {"type": "TIMESTAMP", "index": 320, "name": "meta_data_create_date_c", "comment": null}, "clarus_date_c": {"type": "TIMESTAMP", "index": 321, "name": "clarus_date_c", "comment": null}, "clarus_editor_c": {"type": "STRING", "index": 322, "name": "clarus_editor_c", "comment": null}, "clarus_notes_c": {"type": "STRING", "index": 323, "name": "clarus_notes_c", "comment": null}, "clarus_project_c": {"type": "STRING", "index": 324, "name": "clarus_project_c", "comment": null}, "clarus_status_c": {"type": "STRING", "index": 325, "name": "clarus_status_c", "comment": null}, "marketing_connector_interest_c": {"type": "STRING", "index": 326, "name": "marketing_connector_interest_c", "comment": null}, "recent_marketing_campaign_status_c": {"type": "STRING", "index": 327, "name": "recent_marketing_campaign_status_c", "comment": null}, "salesloft_cadence_trigger_c": {"type": "STRING", "index": 328, "name": "salesloft_cadence_trigger_c", "comment": null}, "datawarehouse_used_c": {"type": "STRING", "index": 329, "name": "datawarehouse_used_c", "comment": null}, "contact_status_c": {"type": "STRING", "index": 330, "name": "contact_status_c", "comment": null}, "leandata_contact_owner_override_c": {"type": "STRING", "index": 331, "name": "leandata_contact_owner_override_c", "comment": null}, "potential_fivetran_use_case_c": {"type": "STRING", "index": 332, "name": "potential_fivetran_use_case_c", "comment": null}, "bizible_2_account_c": {"type": "STRING", "index": 333, "name": "bizible_2_account_c", "comment": null}, "bizible_2_ad_campaign_name_ft_c": {"type": "STRING", "index": 334, "name": "bizible_2_ad_campaign_name_ft_c", "comment": null}, "bizible_2_ad_campaign_name_lc_c": {"type": "STRING", "index": 335, "name": "bizible_2_ad_campaign_name_lc_c", "comment": null}, "bizible_2_bizible_id_c": {"type": "STRING", "index": 336, "name": "bizible_2_bizible_id_c", "comment": null}, "bizible_2_landing_page_ft_c": {"type": "STRING", "index": 337, "name": "bizible_2_landing_page_ft_c", "comment": null}, "bizible_2_landing_page_lc_c": {"type": "STRING", "index": 338, "name": "bizible_2_landing_page_lc_c", "comment": null}, "bizible_2_marketing_channel_ft_c": {"type": "STRING", "index": 339, "name": "bizible_2_marketing_channel_ft_c", "comment": null}, "bizible_2_marketing_channel_lc_c": {"type": "STRING", "index": 340, "name": "bizible_2_marketing_channel_lc_c", "comment": null}, "bizible_2_touchpoint_date_ft_c": {"type": "TIMESTAMP", "index": 341, "name": "bizible_2_touchpoint_date_ft_c", "comment": null}, "bizible_2_touchpoint_date_lc_c": {"type": "TIMESTAMP", "index": 342, "name": "bizible_2_touchpoint_date_lc_c", "comment": null}, "bizible_2_touchpoint_source_ft_c": {"type": "STRING", "index": 343, "name": "bizible_2_touchpoint_source_ft_c", "comment": null}, "bizible_2_touchpoint_source_lc_c": {"type": "STRING", "index": 344, "name": "bizible_2_touchpoint_source_lc_c", "comment": null}, "sales_email_opt_out_c": {"type": "BOOL", "index": 345, "name": "sales_email_opt_out_c", "comment": null}, "sales_email_opt_out_date_time_c": {"type": "TIMESTAMP", "index": 346, "name": "sales_email_opt_out_date_time_c", "comment": null}, "bombora_app_bombora_surge_record_count_c": {"type": "FLOAT64", "index": 347, "name": "bombora_app_bombora_surge_record_count_c", "comment": null}, "bombora_app_bombora_last_date_time_updated_c": {"type": "TIMESTAMP", "index": 348, "name": "bombora_app_bombora_last_date_time_updated_c", "comment": null}, "bombora_app_bombora_total_composite_score_c": {"type": "FLOAT64", "index": 349, "name": "bombora_app_bombora_total_composite_score_c", "comment": null}, "linked_in_url_c": {"type": "STRING", "index": 350, "name": "linked_in_url_c", "comment": null}, "beta_connector_interest_c": {"type": "STRING", "index": 351, "name": "beta_connector_interest_c", "comment": null}, "user_gems_ug_past_infos_c": {"type": "STRING", "index": 352, "name": "user_gems_ug_past_infos_c", "comment": null}, "user_gems_ug_current_infos_c": {"type": "STRING", "index": 353, "name": "user_gems_ug_current_infos_c", "comment": null}, "user_gems_ug_created_by_ug_c": {"type": "BOOL", "index": 354, "name": "user_gems_ug_created_by_ug_c", "comment": null}, "free_trial_email_confirmed_date_c": {"type": "TIMESTAMP", "index": 355, "name": "free_trial_email_confirmed_date_c", "comment": null}, "dnboptimizer_dn_bcontact_record_c": {"type": "STRING", "index": 356, "name": "dnboptimizer_dn_bcontact_record_c", "comment": null}, "dnboptimizer_dn_bcompany_record_c": {"type": "STRING", "index": 357, "name": "dnboptimizer_dn_bcompany_record_c", "comment": null}, "dnboptimizer_dnb_d_u_n_s_number_c": {"type": "STRING", "index": 358, "name": "dnboptimizer_dnb_d_u_n_s_number_c", "comment": null}, "i_sell_oskey_id_c": {"type": "STRING", "index": 359, "name": "i_sell_oskey_id_c", "comment": null}, "verified_c": {"type": "BOOL", "index": 360, "name": "verified_c", "comment": null}, "email_opt_out_date_time_c": {"type": "TIMESTAMP", "index": 361, "name": "email_opt_out_date_time_c", "comment": null}, "pbf_startup_c": {"type": "STRING", "index": 362, "name": "pbf_startup_c", "comment": null}, "pbf_startup_certify_eligibility_c": {"type": "BOOL", "index": 363, "name": "pbf_startup_certify_eligibility_c", "comment": null}, "engagio_intent_minutes_last_30_days_c": {"type": "FLOAT64", "index": 364, "name": "engagio_intent_minutes_last_30_days_c", "comment": null}, "engagio_engagement_minutes_last_3_months_c": {"type": "FLOAT64", "index": 365, "name": "engagio_engagement_minutes_last_3_months_c", "comment": null}, "engagio_engagement_minutes_last_7_days_c": {"type": "FLOAT64", "index": 366, "name": "engagio_engagement_minutes_last_7_days_c", "comment": null}, "engagio_matched_account_c": {"type": "STRING", "index": 367, "name": "engagio_matched_account_c", "comment": null}, "engagio_first_engagement_date_c": {"type": "TIMESTAMP", "index": 368, "name": "engagio_first_engagement_date_c", "comment": null}, "engagio_match_time_c": {"type": "TIMESTAMP", "index": 369, "name": "engagio_match_time_c", "comment": null}, "engagio_department_c": {"type": "STRING", "index": 370, "name": "engagio_department_c", "comment": null}, "engagio_role_c": {"type": "STRING", "index": 371, "name": "engagio_role_c", "comment": null}, "legacy_hvr_id_c": {"type": "STRING", "index": 372, "name": "legacy_hvr_id_c", "comment": null}, "hvr_channel_c": {"type": "STRING", "index": 373, "name": "hvr_channel_c", "comment": null}, "email_opt_in_double_c": {"type": "BOOL", "index": 374, "name": "email_opt_in_double_c", "comment": null}, "phone_number_catch_all_c": {"type": "STRING", "index": 375, "name": "phone_number_catch_all_c", "comment": null}, "contacts_domain_exists_c": {"type": "BOOL", "index": 376, "name": "contacts_domain_exists_c", "comment": null}, "utm_id_c": {"type": "STRING", "index": 377, "name": "utm_id_c", "comment": null}, "source_every_utm_id_c": {"type": "STRING", "index": 378, "name": "source_every_utm_id_c", "comment": null}, "source_last_utm_id_c": {"type": "STRING", "index": 379, "name": "source_last_utm_id_c", "comment": null}, "source_first_utm_id_c": {"type": "STRING", "index": 380, "name": "source_first_utm_id_c", "comment": null}, "do_not_sync_reason_marketo_c": {"type": "STRING", "index": 381, "name": "do_not_sync_reason_marketo_c", "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.salesforce_source.stg_salesforce__lead_tmp"}, "model.salesforce_source.stg_salesforce__opportunity_tmp": {"metadata": {"type": "view", "schema": "dbt_renee", "name": "stg_salesforce__opportunity_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"close_date": {"type": "TIMESTAMP", "index": 1, "name": "close_date", "comment": null}, "secondary_reason_won_c": {"type": "STRING", "index": 2, "name": "secondary_reason_won_c", "comment": null}, "owner_id": {"type": "STRING", "index": 3, "name": "owner_id", "comment": null}, "primary_reason_lost_c": {"type": "STRING", "index": 4, "name": "primary_reason_lost_c", "comment": null}, "subscription_end_date_c": {"type": "TIMESTAMP", "index": 5, "name": "subscription_end_date_c", "comment": null}, "lead_source": {"type": "STRING", "index": 6, "name": "lead_source", "comment": null}, "expected_trial_start_date_c": {"type": "TIMESTAMP", "index": 7, "name": "expected_trial_start_date_c", "comment": null}, "last_modified_date": {"type": "TIMESTAMP", "index": 8, "name": "last_modified_date", "comment": null}, "type": {"type": "STRING", "index": 9, "name": "type", "comment": null}, "trial_end_date_c": {"type": "TIMESTAMP", "index": 10, "name": "trial_end_date_c", "comment": null}, "pricebook_2_id": {"type": "STRING", "index": 11, "name": "pricebook_2_id", "comment": null}, "next_step": {"type": "STRING", "index": 12, "name": "next_step", "comment": null}, "fiscal_year": {"type": "INT64", "index": 13, "name": "fiscal_year", "comment": null}, "last_modified_by_id": {"type": "STRING", "index": 14, "name": "last_modified_by_id", "comment": null}, "system_modstamp": {"type": "TIMESTAMP", "index": 15, "name": "system_modstamp", "comment": null}, "stage_name": {"type": "STRING", "index": 16, "name": "stage_name", "comment": null}, "id": {"type": "STRING", "index": 17, "name": "id", "comment": null}, "campaign_id": {"type": "STRING", "index": 18, "name": "campaign_id", "comment": null}, "is_closed": {"type": "BOOL", "index": 19, "name": "is_closed", "comment": null}, "last_referenced_date": {"type": "TIMESTAMP", "index": 20, "name": "last_referenced_date", "comment": null}, "probability": {"type": "FLOAT64", "index": 21, "name": "probability", "comment": null}, "last_activity_date": {"type": "TIMESTAMP", "index": 22, "name": "last_activity_date", "comment": null}, "secondary_reason_lost_c": {"type": "STRING", "index": 23, "name": "secondary_reason_lost_c", "comment": null}, "synced_quote_id": {"type": "STRING", "index": 24, "name": "synced_quote_id", "comment": null}, "is_won": {"type": "BOOL", "index": 25, "name": "is_won", "comment": null}, "fiscal": {"type": "STRING", "index": 26, "name": "fiscal", "comment": null}, "name": {"type": "STRING", "index": 27, "name": "name", "comment": null}, "lead_source_detail_c": {"type": "STRING", "index": 28, "name": "lead_source_detail_c", "comment": null}, "created_by_id": {"type": "STRING", "index": 29, "name": "created_by_id", "comment": null}, "primary_reason_won_c": {"type": "STRING", "index": 30, "name": "primary_reason_won_c", "comment": null}, "billing_frequency_c": {"type": "STRING", "index": 31, "name": "billing_frequency_c", "comment": null}, "forecast_category": {"type": "STRING", "index": 32, "name": "forecast_category", "comment": null}, "description": {"type": "STRING", "index": 33, "name": "description", "comment": null}, "has_overdue_task": {"type": "BOOL", "index": 34, "name": "has_overdue_task", "comment": null}, "last_viewed_date": {"type": "TIMESTAMP", "index": 35, "name": "last_viewed_date", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 36, "name": "_fivetran_synced", "comment": null}, "pandadoc_tracking_number_c": {"type": "STRING", "index": 37, "name": "pandadoc_tracking_number_c", "comment": null}, "is_deleted": {"type": "BOOL", "index": 38, "name": "is_deleted", "comment": null}, "trial_start_date_c": {"type": "TIMESTAMP", "index": 39, "name": "trial_start_date_c", "comment": null}, "subscription_start_date_c": {"type": "TIMESTAMP", "index": 40, "name": "subscription_start_date_c", "comment": null}, "has_open_activity": {"type": "BOOL", "index": 41, "name": "has_open_activity", "comment": null}, "fiscal_quarter": {"type": "INT64", "index": 42, "name": "fiscal_quarter", "comment": null}, "automatic_renewal_c": {"type": "BOOL", "index": 43, "name": "automatic_renewal_c", "comment": null}, "confidence_c": {"type": "STRING", "index": 44, "name": "confidence_c", "comment": null}, "amount": {"type": "FLOAT64", "index": 45, "name": "amount", "comment": null}, "discount_c": {"type": "FLOAT64", "index": 46, "name": "discount_c", "comment": null}, "integrations_c": {"type": "STRING", "index": 47, "name": "integrations_c", "comment": null}, "has_opportunity_line_item": {"type": "BOOL", "index": 48, "name": "has_opportunity_line_item", "comment": null}, "account_id": {"type": "STRING", "index": 49, "name": "account_id", "comment": null}, "forecast_category_name": {"type": "STRING", "index": 50, "name": "forecast_category_name", "comment": null}, "created_date": {"type": "TIMESTAMP", "index": 51, "name": "created_date", "comment": null}, "gclid_c": {"type": "STRING", "index": 52, "name": "gclid_c", "comment": null}, "next_step_due_date_c": {"type": "TIMESTAMP", "index": 53, "name": "next_step_due_date_c", "comment": null}, "next_step_due_date_del_c": {"type": "TIMESTAMP", "index": 54, "name": "next_step_due_date_del_c", "comment": null}, "competitors_c": {"type": "STRING", "index": 55, "name": "competitors_c", "comment": null}, "connector_products_c": {"type": "STRING", "index": 56, "name": "connector_products_c", "comment": null}, "data_warehouse_products_c": {"type": "STRING", "index": 57, "name": "data_warehouse_products_c", "comment": null}, "notes_c": {"type": "STRING", "index": 58, "name": "notes_c", "comment": null}, "timeframe_c": {"type": "STRING", "index": 59, "name": "timeframe_c", "comment": null}, "website_c": {"type": "STRING", "index": 60, "name": "website_c", "comment": null}, "opportunity_competitors_c": {"type": "STRING", "index": 61, "name": "opportunity_competitors_c", "comment": null}, "opportunity_data_warehouses_c": {"type": "STRING", "index": 62, "name": "opportunity_data_warehouses_c", "comment": null}, "opportunity_products_c": {"type": "STRING", "index": 63, "name": "opportunity_products_c", "comment": null}, "account_all_products_c": {"type": "STRING", "index": 64, "name": "account_all_products_c", "comment": null}, "account_bi_tools_c": {"type": "STRING", "index": 65, "name": "account_bi_tools_c", "comment": null}, "account_data_warehouses_c": {"type": "STRING", "index": 66, "name": "account_data_warehouses_c", "comment": null}, "referral_account_c": {"type": "STRING", "index": 67, "name": "referral_account_c", "comment": null}, "referral_contact_c": {"type": "STRING", "index": 68, "name": "referral_contact_c", "comment": null}, "subscription_active_c": {"type": "BOOL", "index": 69, "name": "subscription_active_c", "comment": null}, "volume_in_millions_c": {"type": "FLOAT64", "index": 70, "name": "volume_in_millions_c", "comment": null}, "feature_requests_c": {"type": "STRING", "index": 71, "name": "feature_requests_c", "comment": null}, "subscription_end_date_greater_than_today_c": {"type": "BOOL", "index": 72, "name": "subscription_end_date_greater_than_today_c", "comment": null}, "bread_winner_total_amount_due_c": {"type": "FLOAT64", "index": 73, "name": "bread_winner_total_amount_due_c", "comment": null}, "bread_winner_total_amount_invoiced_c": {"type": "FLOAT64", "index": 74, "name": "bread_winner_total_amount_invoiced_c", "comment": null}, "bread_winner_total_amount_overdue_c": {"type": "FLOAT64", "index": 75, "name": "bread_winner_total_amount_overdue_c", "comment": null}, "bread_winner_total_amount_paid_c": {"type": "FLOAT64", "index": 76, "name": "bread_winner_total_amount_paid_c", "comment": null}, "bread_winner_total_draft_amount_c": {"type": "FLOAT64", "index": 77, "name": "bread_winner_total_draft_amount_c", "comment": null}, "reason_lost_c": {"type": "STRING", "index": 78, "name": "reason_lost_c", "comment": null}, "reason_won_c": {"type": "STRING", "index": 79, "name": "reason_won_c", "comment": null}, "billing_contact_first_name_c": {"type": "STRING", "index": 80, "name": "billing_contact_first_name_c", "comment": null}, "billing_contact_last_name_c": {"type": "STRING", "index": 81, "name": "billing_contact_last_name_c", "comment": null}, "billing_email_c": {"type": "STRING", "index": 82, "name": "billing_email_c", "comment": null}, "billing_phone_c": {"type": "STRING", "index": 83, "name": "billing_phone_c", "comment": null}, "invoice_payment_terms_net_c": {"type": "STRING", "index": 84, "name": "invoice_payment_terms_net_c", "comment": null}, "subscription_not_started_c": {"type": "BOOL", "index": 85, "name": "subscription_not_started_c", "comment": null}, "invoice_due_date_c": {"type": "TIMESTAMP", "index": 86, "name": "invoice_due_date_c", "comment": null}, "payment_terms_c": {"type": "STRING", "index": 87, "name": "payment_terms_c", "comment": null}, "associated_stripe_charge_id_c": {"type": "STRING", "index": 88, "name": "associated_stripe_charge_id_c", "comment": null}, "record_type_id": {"type": "STRING", "index": 89, "name": "record_type_id", "comment": null}, "contract_type_c": {"type": "STRING", "index": 90, "name": "contract_type_c", "comment": null}, "lost_communication_preference_c": {"type": "STRING", "index": 91, "name": "lost_communication_preference_c", "comment": null}, "lost_primary_reason_c": {"type": "STRING", "index": 92, "name": "lost_primary_reason_c", "comment": null}, "associate_sdr_c": {"type": "STRING", "index": 93, "name": "associate_sdr_c", "comment": null}, "associated_sdr_c": {"type": "STRING", "index": 94, "name": "associated_sdr_c", "comment": null}, "no_show_c": {"type": "BOOL", "index": 95, "name": "no_show_c", "comment": null}, "order_form_c": {"type": "STRING", "index": 96, "name": "order_form_c", "comment": null}, "reason_unqualified_c": {"type": "STRING", "index": 97, "name": "reason_unqualified_c", "comment": null}, "closing_notes_for_ams_c": {"type": "STRING", "index": 98, "name": "closing_notes_for_ams_c", "comment": null}, "sdr_setup_trial_successfully_c": {"type": "BOOL", "index": 99, "name": "sdr_setup_trial_successfully_c", "comment": null}, "number_of_contact_roles_c": {"type": "FLOAT64", "index": 100, "name": "number_of_contact_roles_c", "comment": null}, "utm_campaign_c": {"type": "STRING", "index": 101, "name": "utm_campaign_c", "comment": null}, "utm_content_c": {"type": "STRING", "index": 102, "name": "utm_content_c", "comment": null}, "utm_medium_c": {"type": "STRING", "index": 103, "name": "utm_medium_c", "comment": null}, "utm_source_c": {"type": "STRING", "index": 104, "name": "utm_source_c", "comment": null}, "utm_term_c": {"type": "STRING", "index": 105, "name": "utm_term_c", "comment": null}, "original_opportunity_c": {"type": "STRING", "index": 106, "name": "original_opportunity_c", "comment": null}, "lean_data_reporting_total_marketing_touches_c": {"type": "FLOAT64", "index": 107, "name": "lean_data_reporting_total_marketing_touches_c", "comment": null}, "lean_data_days_in_stage_c": {"type": "FLOAT64", "index": 108, "name": "lean_data_days_in_stage_c", "comment": null}, "lean_data_routing_action_c": {"type": "STRING", "index": 109, "name": "lean_data_routing_action_c", "comment": null}, "lean_data_reporting_won_number_c": {"type": "STRING", "index": 110, "name": "lean_data_reporting_won_number_c", "comment": null}, "lean_data_reporting_opportunity_source_c": {"type": "STRING", "index": 111, "name": "lean_data_reporting_opportunity_source_c", "comment": null}, "lean_data_reporting_last_run_date_c": {"type": "TIMESTAMP", "index": 112, "name": "lean_data_reporting_last_run_date_c", "comment": null}, "lean_data_order_number_c": {"type": "STRING", "index": 113, "name": "lean_data_order_number_c", "comment": null}, "sales_engineer_c": {"type": "STRING", "index": 114, "name": "sales_engineer_c", "comment": null}, "sales_engineer_needed_c": {"type": "BOOL", "index": 115, "name": "sales_engineer_needed_c", "comment": null}, "netsuite_conn_reseller_c": {"type": "STRING", "index": 116, "name": "netsuite_conn_reseller_c", "comment": null}, "netsuite_conn_net_suite_sync_err_c": {"type": "STRING", "index": 117, "name": "netsuite_conn_net_suite_sync_err_c", "comment": null}, "netsuite_conn_from_contract_c": {"type": "STRING", "index": 118, "name": "netsuite_conn_from_contract_c", "comment": null}, "netsuite_conn_celigo_contract_c": {"type": "STRING", "index": 119, "name": "netsuite_conn_celigo_contract_c", "comment": null}, "netsuite_conn_ns_renewal_transaction_internal_id_c": {"type": "STRING", "index": 120, "name": "netsuite_conn_ns_renewal_transaction_internal_id_c", "comment": null}, "netsuite_conn_end_date_c": {"type": "TIMESTAMP", "index": 121, "name": "netsuite_conn_end_date_c", "comment": null}, "netsuite_conn_contract_term_c": {"type": "FLOAT64", "index": 122, "name": "netsuite_conn_contract_term_c", "comment": null}, "netsuite_conn_push_as_net_suite_project_c": {"type": "BOOL", "index": 123, "name": "netsuite_conn_push_as_net_suite_project_c", "comment": null}, "netsuite_conn_net_suite_contract_id_c": {"type": "STRING", "index": 124, "name": "netsuite_conn_net_suite_contract_id_c", "comment": null}, "netsuite_conn_current_opportunity_id_c": {"type": "STRING", "index": 125, "name": "netsuite_conn_current_opportunity_id_c", "comment": null}, "netsuite_conn_distributor_c": {"type": "STRING", "index": 126, "name": "netsuite_conn_distributor_c", "comment": null}, "netsuite_conn_bill_to_tier_c": {"type": "STRING", "index": 127, "name": "netsuite_conn_bill_to_tier_c", "comment": null}, "netsuite_conn_end_user_c": {"type": "STRING", "index": 128, "name": "netsuite_conn_end_user_c", "comment": null}, "netsuite_conn_current_sales_order_id_c": {"type": "STRING", "index": 129, "name": "netsuite_conn_current_sales_order_id_c", "comment": null}, "netsuite_conn_celigo_update_c": {"type": "BOOL", "index": 130, "name": "netsuite_conn_celigo_update_c", "comment": null}, "netsuite_conn_eligible_account_for_channel_sales_c": {"type": "STRING", "index": 131, "name": "netsuite_conn_eligible_account_for_channel_sales_c", "comment": null}, "netsuite_conn_tracking_number_c": {"type": "STRING", "index": 132, "name": "netsuite_conn_tracking_number_c", "comment": null}, "netsuite_conn_originated_from_net_suite_c": {"type": "BOOL", "index": 133, "name": "netsuite_conn_originated_from_net_suite_c", "comment": null}, "netsuite_conn_nsrenewal_opportunity_internal_id_c": {"type": "FLOAT64", "index": 134, "name": "netsuite_conn_nsrenewal_opportunity_internal_id_c", "comment": null}, "netsuite_conn_net_suite_renewal_terms_c": {"type": "FLOAT64", "index": 135, "name": "netsuite_conn_net_suite_renewal_terms_c", "comment": null}, "netsuite_conn_push_as_net_suite_opportunity_c": {"type": "BOOL", "index": 136, "name": "netsuite_conn_push_as_net_suite_opportunity_c", "comment": null}, "netsuite_conn_order_type_c": {"type": "STRING", "index": 137, "name": "netsuite_conn_order_type_c", "comment": null}, "netsuite_conn_sync_in_progress_c": {"type": "BOOL", "index": 138, "name": "netsuite_conn_sync_in_progress_c", "comment": null}, "netsuite_conn_net_suite_sales_order_number_c": {"type": "STRING", "index": 139, "name": "netsuite_conn_net_suite_sales_order_number_c", "comment": null}, "netsuite_conn_push_to_net_suite_c": {"type": "BOOL", "index": 140, "name": "netsuite_conn_push_to_net_suite_c", "comment": null}, "netsuite_conn_net_suite_project_id_c": {"type": "STRING", "index": 141, "name": "netsuite_conn_net_suite_project_id_c", "comment": null}, "netsuite_conn_net_suite_contract_term_c": {"type": "FLOAT64", "index": 142, "name": "netsuite_conn_net_suite_contract_term_c", "comment": null}, "netsuite_conn_start_date_c": {"type": "TIMESTAMP", "index": 143, "name": "netsuite_conn_start_date_c", "comment": null}, "netsuite_conn_ship_to_tier_c": {"type": "STRING", "index": 144, "name": "netsuite_conn_ship_to_tier_c", "comment": null}, "db_competitor_c": {"type": "STRING", "index": 145, "name": "db_competitor_c", "comment": null}, "lid_linked_in_company_id_c": {"type": "STRING", "index": 146, "name": "lid_linked_in_company_id_c", "comment": null}, "lid_is_influenced_c": {"type": "BOOL", "index": 147, "name": "lid_is_influenced_c", "comment": null}, "debooked_date_c": {"type": "TIMESTAMP", "index": 148, "name": "debooked_date_c", "comment": null}, "debooked_amount_c": {"type": "BIGNUMERIC", "index": 149, "name": "debooked_amount_c", "comment": null}, "is_debooked_c": {"type": "BOOL", "index": 150, "name": "is_debooked_c", "comment": null}, "economic_buyer_c": {"type": "STRING", "index": 151, "name": "economic_buyer_c", "comment": null}, "decision_process_c": {"type": "STRING", "index": 152, "name": "decision_process_c", "comment": null}, "decision_criteria_c": {"type": "STRING", "index": 153, "name": "decision_criteria_c", "comment": null}, "champion_c": {"type": "STRING", "index": 154, "name": "champion_c", "comment": null}, "metrics_c": {"type": "STRING", "index": 155, "name": "metrics_c", "comment": null}, "identify_pain_c": {"type": "STRING", "index": 156, "name": "identify_pain_c", "comment": null}, "is_non_renewable_c": {"type": "BOOL", "index": 157, "name": "is_non_renewable_c", "comment": null}, "sales_loft_1_primary_contact_c": {"type": "STRING", "index": 158, "name": "sales_loft_1_primary_contact_c", "comment": null}, "sales_loft_1_most_recent_last_completed_step_c": {"type": "FLOAT64", "index": 159, "name": "sales_loft_1_most_recent_last_completed_step_c", "comment": null}, "sales_loft_1_most_recent_cadence_name_c": {"type": "STRING", "index": 160, "name": "sales_loft_1_most_recent_cadence_name_c", "comment": null}, "is_partner_opp_c": {"type": "BOOL", "index": 161, "name": "is_partner_opp_c", "comment": null}, "territory_2_id": {"type": "STRING", "index": 162, "name": "territory_2_id", "comment": null}, "is_excluded_from_territory_2_filter": {"type": "BOOL", "index": 163, "name": "is_excluded_from_territory_2_filter", "comment": null}, "sbqq_amended_contract_c": {"type": "STRING", "index": 164, "name": "sbqq_amended_contract_c", "comment": null}, "sbqq_contracted_c": {"type": "BOOL", "index": 165, "name": "sbqq_contracted_c", "comment": null}, "sbqq_create_contracted_prices_c": {"type": "BOOL", "index": 166, "name": "sbqq_create_contracted_prices_c", "comment": null}, "sbqq_order_group_id_c": {"type": "STRING", "index": 167, "name": "sbqq_order_group_id_c", "comment": null}, "sbqq_ordered_c": {"type": "BOOL", "index": 168, "name": "sbqq_ordered_c", "comment": null}, "sbqq_primary_quote_c": {"type": "STRING", "index": 169, "name": "sbqq_primary_quote_c", "comment": null}, "sbqq_quote_pricebook_id_c": {"type": "STRING", "index": 170, "name": "sbqq_quote_pricebook_id_c", "comment": null}, "sbqq_renewal_c": {"type": "BOOL", "index": 171, "name": "sbqq_renewal_c", "comment": null}, "sbqq_renewed_contract_c": {"type": "STRING", "index": 172, "name": "sbqq_renewed_contract_c", "comment": null}, "is_non_recurring_c": {"type": "BOOL", "index": 173, "name": "is_non_recurring_c", "comment": null}, "did_a_partner_help_this_sale_c": {"type": "STRING", "index": 174, "name": "did_a_partner_help_this_sale_c", "comment": null}, "did_they_select_a_bi_tool_c": {"type": "STRING", "index": 175, "name": "did_they_select_a_bi_tool_c", "comment": null}, "which_bi_tool_did_they_select_c": {"type": "STRING", "index": 176, "name": "which_bi_tool_did_they_select_c", "comment": null}, "which_partner_was_most_influential_c": {"type": "STRING", "index": 177, "name": "which_partner_was_most_influential_c", "comment": null}, "which_bi_tool_s_are_they_using_c": {"type": "STRING", "index": 178, "name": "which_bi_tool_s_are_they_using_c", "comment": null}, "associated_bdr_c": {"type": "STRING", "index": 179, "name": "associated_bdr_c", "comment": null}, "aws_payment_c": {"type": "BOOL", "index": 180, "name": "aws_payment_c", "comment": null}, "expected_revenue": {"type": "BIGNUMERIC", "index": 181, "name": "expected_revenue", "comment": null}, "competitor_we_lost_to_c": {"type": "STRING", "index": 182, "name": "competitor_we_lost_to_c", "comment": null}, "marketplace_payment_c": {"type": "STRING", "index": 183, "name": "marketplace_payment_c", "comment": null}, "has_competition_c": {"type": "BOOL", "index": 184, "name": "has_competition_c", "comment": null}, "no_known_competition_c": {"type": "BOOL", "index": 185, "name": "no_known_competition_c", "comment": null}, "marketing_process_c": {"type": "STRING", "index": 186, "name": "marketing_process_c", "comment": null}, "automation_tracking_c": {"type": "STRING", "index": 187, "name": "automation_tracking_c", "comment": null}, "user_gems_has_changed_job_c": {"type": "TIMESTAMP", "index": 188, "name": "user_gems_has_changed_job_c", "comment": null}, "manager_forecast_amount_c": {"type": "FLOAT64", "index": 189, "name": "manager_forecast_amount_c", "comment": null}, "manager_forecast_category_c": {"type": "STRING", "index": 190, "name": "manager_forecast_category_c", "comment": null}, "superset_forecast_category_c": {"type": "STRING", "index": 191, "name": "superset_forecast_category_c", "comment": null}, "forecast_amount_c": {"type": "BIGNUMERIC", "index": 192, "name": "forecast_amount_c", "comment": null}, "are_we_co_selling_with_anyone_c": {"type": "STRING", "index": 193, "name": "are_we_co_selling_with_anyone_c", "comment": null}, "has_co_sell_activity_c": {"type": "BOOL", "index": 194, "name": "has_co_sell_activity_c", "comment": null}, "signed_order_c": {"type": "BOOL", "index": 195, "name": "signed_order_c", "comment": null}, "compelling_event_c": {"type": "STRING", "index": 196, "name": "compelling_event_c", "comment": null}, "territory_c": {"type": "STRING", "index": 197, "name": "territory_c", "comment": null}, "validation_override_c": {"type": "BOOL", "index": 198, "name": "validation_override_c", "comment": null}, "map_reviewed_with_ae_c": {"type": "STRING", "index": 199, "name": "map_reviewed_with_ae_c", "comment": null}, "se_manager_notes_c": {"type": "STRING", "index": 200, "name": "se_manager_notes_c", "comment": null}, "se_notes_c": {"type": "STRING", "index": 201, "name": "se_notes_c", "comment": null}, "se_stage_c": {"type": "STRING", "index": 202, "name": "se_stage_c", "comment": null}, "next_steps_date_c": {"type": "TIMESTAMP", "index": 203, "name": "next_steps_date_c", "comment": null}, "pbf_c": {"type": "BOOL", "index": 204, "name": "pbf_c", "comment": null}, "partner_c": {"type": "STRING", "index": 205, "name": "partner_c", "comment": null}, "channel_c": {"type": "STRING", "index": 206, "name": "channel_c", "comment": null}, "primary_contact_fivetran_c": {"type": "STRING", "index": 207, "name": "primary_contact_fivetran_c", "comment": null}, "time_spent_minutes_c": {"type": "FLOAT64", "index": 208, "name": "time_spent_minutes_c", "comment": null}, "date_for_next_update_c": {"type": "TIMESTAMP", "index": 209, "name": "date_for_next_update_c", "comment": null}, "lean_data_trigger_c": {"type": "BOOL", "index": 210, "name": "lean_data_trigger_c", "comment": null}, "workflow_helper_c": {"type": "BOOL", "index": 211, "name": "workflow_helper_c", "comment": null}, "deal_risk_c": {"type": "STRING", "index": 212, "name": "deal_risk_c", "comment": null}, "gcp_approved_c": {"type": "BOOL", "index": 213, "name": "gcp_approved_c", "comment": null}, "next_steps_c": {"type": "STRING", "index": 214, "name": "next_steps_c", "comment": null}, "manger_notes_c": {"type": "STRING", "index": 215, "name": "manger_notes_c", "comment": null}, "manager_notes_c": {"type": "STRING", "index": 216, "name": "manager_notes_c", "comment": null}, "marketplace_offer_accepted_c": {"type": "BOOL", "index": 217, "name": "marketplace_offer_accepted_c", "comment": null}, "stage_0_date_time_c": {"type": "TIMESTAMP", "index": 218, "name": "stage_0_date_time_c", "comment": null}, "stage_1_date_time_c": {"type": "TIMESTAMP", "index": 219, "name": "stage_1_date_time_c", "comment": null}, "round_robin_ae_c": {"type": "STRING", "index": 220, "name": "round_robin_ae_c", "comment": null}, "round_robin_ae_trigger_c": {"type": "BOOL", "index": 221, "name": "round_robin_ae_trigger_c", "comment": null}, "automation_validation_override_c": {"type": "BOOL", "index": 222, "name": "automation_validation_override_c", "comment": null}, "related_renewal_opportunity_c": {"type": "STRING", "index": 223, "name": "related_renewal_opportunity_c", "comment": null}, "sales_rep_to_be_credited_c": {"type": "STRING", "index": 224, "name": "sales_rep_to_be_credited_c", "comment": null}, "trial_self_service_converted_c": {"type": "BOOL", "index": 225, "name": "trial_self_service_converted_c", "comment": null}, "migration_opportunity_c": {"type": "BOOL", "index": 226, "name": "migration_opportunity_c", "comment": null}, "post_close_changes_c": {"type": "BOOL", "index": 227, "name": "post_close_changes_c", "comment": null}, "assigned_tsm_c": {"type": "STRING", "index": 228, "name": "assigned_tsm_c", "comment": null}, "allbound_partner_id_c": {"type": "STRING", "index": 229, "name": "allbound_partner_id_c", "comment": null}, "se_summary_c": {"type": "STRING", "index": 230, "name": "se_summary_c", "comment": null}, "ae_paired_csm_c": {"type": "STRING", "index": 231, "name": "ae_paired_csm_c", "comment": null}, "vh_can_revive_c": {"type": "BOOL", "index": 232, "name": "vh_can_revive_c", "comment": null}, "vh_date_revived_c": {"type": "TIMESTAMP", "index": 233, "name": "vh_date_revived_c", "comment": null}, "vh_deal_breaker_opportunity_gap_score_c": {"type": "STRING", "index": 234, "name": "vh_deal_breaker_opportunity_gap_score_c", "comment": null}, "vh_deal_challenge_opportunity_gap_score_c": {"type": "STRING", "index": 235, "name": "vh_deal_challenge_opportunity_gap_score_c", "comment": null}, "vh_nice_to_have_opportunity_gap_score_c": {"type": "STRING", "index": 236, "name": "vh_nice_to_have_opportunity_gap_score_c", "comment": null}, "vh_opportunity_gap_score_c": {"type": "STRING", "index": 237, "name": "vh_opportunity_gap_score_c", "comment": null}, "vh_opportunity_score_c": {"type": "FLOAT64", "index": 238, "name": "vh_opportunity_score_c", "comment": null}, "vh_presales_concern_c": {"type": "STRING", "index": 239, "name": "vh_presales_concern_c", "comment": null}, "vh_presales_stage_c": {"type": "STRING", "index": 240, "name": "vh_presales_stage_c", "comment": null}, "vh_technical_differentiation_c": {"type": "STRING", "index": 241, "name": "vh_technical_differentiation_c", "comment": null}, "se_manager_summary_c": {"type": "STRING", "index": 242, "name": "se_manager_summary_c", "comment": null}, "bugs_c": {"type": "STRING", "index": 243, "name": "bugs_c", "comment": null}, "approval_required_c": {"type": "BOOL", "index": 244, "name": "approval_required_c", "comment": null}, "push_counter_c": {"type": "FLOAT64", "index": 245, "name": "push_counter_c", "comment": null}, "mar_link_c": {"type": "STRING", "index": 246, "name": "mar_link_c", "comment": null}, "contact_id": {"type": "STRING", "index": 247, "name": "contact_id", "comment": null}, "last_amount_changed_history_id": {"type": "STRING", "index": 248, "name": "last_amount_changed_history_id", "comment": null}, "last_close_date_changed_history_id": {"type": "STRING", "index": 249, "name": "last_close_date_changed_history_id", "comment": null}, "expected_renewal_amount_c": {"type": "NUMERIC", "index": 250, "name": "expected_renewal_amount_c", "comment": null}, "connectors_c": {"type": "STRING", "index": 251, "name": "connectors_c", "comment": null}, "estimated_credit_consumption_per_month_c": {"type": "FLOAT64", "index": 252, "name": "estimated_credit_consumption_per_month_c", "comment": null}, "project_status_c": {"type": "STRING", "index": 253, "name": "project_status_c", "comment": null}, "type_of_churn_c": {"type": "STRING", "index": 254, "name": "type_of_churn_c", "comment": null}, "usage_reason_c": {"type": "STRING", "index": 255, "name": "usage_reason_c", "comment": null}, "use_cases_c": {"type": "STRING", "index": 256, "name": "use_cases_c", "comment": null}, "bizible_2_bizible_opportunity_amount_c": {"type": "BIGNUMERIC", "index": 257, "name": "bizible_2_bizible_opportunity_amount_c", "comment": null}, "active_technical_owner_c": {"type": "STRING", "index": 258, "name": "active_technical_owner_c", "comment": null}, "referral_partner_c": {"type": "STRING", "index": 259, "name": "referral_partner_c", "comment": null}, "celigo_sfnsio_bill_to_tier_c": {"type": "STRING", "index": 260, "name": "celigo_sfnsio_bill_to_tier_c", "comment": null}, "celigo_sfnsio_contract_opportunity_c": {"type": "BOOL", "index": 261, "name": "celigo_sfnsio_contract_opportunity_c", "comment": null}, "celigo_sfnsio_contract_term_c": {"type": "FLOAT64", "index": 262, "name": "celigo_sfnsio_contract_term_c", "comment": null}, "celigo_sfnsio_distributor_c": {"type": "STRING", "index": 263, "name": "celigo_sfnsio_distributor_c", "comment": null}, "celigo_sfnsio_end_date_c": {"type": "TIMESTAMP", "index": 264, "name": "celigo_sfnsio_end_date_c", "comment": null}, "celigo_sfnsio_end_user_c": {"type": "STRING", "index": 265, "name": "celigo_sfnsio_end_user_c", "comment": null}, "celigo_sfnsio_from_contract_c": {"type": "STRING", "index": 266, "name": "celigo_sfnsio_from_contract_c", "comment": null}, "celigo_sfnsio_net_suite_id_c": {"type": "STRING", "index": 267, "name": "celigo_sfnsio_net_suite_id_c", "comment": null}, "celigo_sfnsio_net_suite_opportunity_id_c": {"type": "STRING", "index": 268, "name": "celigo_sfnsio_net_suite_opportunity_id_c", "comment": null}, "celigo_sfnsio_net_suite_opportunity_record_url_c": {"type": "STRING", "index": 269, "name": "celigo_sfnsio_net_suite_opportunity_record_url_c", "comment": null}, "celigo_sfnsio_net_suite_order_number_c": {"type": "STRING", "index": 270, "name": "celigo_sfnsio_net_suite_order_number_c", "comment": null}, "celigo_sfnsio_net_suite_record_c": {"type": "STRING", "index": 271, "name": "celigo_sfnsio_net_suite_record_c", "comment": null}, "celigo_sfnsio_net_suite_sync_error_c": {"type": "STRING", "index": 272, "name": "celigo_sfnsio_net_suite_sync_error_c", "comment": null}, "celigo_sfnsio_ns_originated_order_c": {"type": "BOOL", "index": 273, "name": "celigo_sfnsio_ns_originated_order_c", "comment": null}, "celigo_sfnsio_renewal_term_c": {"type": "FLOAT64", "index": 274, "name": "celigo_sfnsio_renewal_term_c", "comment": null}, "celigo_sfnsio_reseller_c": {"type": "STRING", "index": 275, "name": "celigo_sfnsio_reseller_c", "comment": null}, "celigo_sfnsio_ship_to_tier_c": {"type": "STRING", "index": 276, "name": "celigo_sfnsio_ship_to_tier_c", "comment": null}, "celigo_sfnsio_skip_export_to_net_suite_c": {"type": "BOOL", "index": 277, "name": "celigo_sfnsio_skip_export_to_net_suite_c", "comment": null}, "celigo_sfnsio_start_date_c": {"type": "TIMESTAMP", "index": 278, "name": "celigo_sfnsio_start_date_c", "comment": null}, "celigo_sfnsio_test_mode_record_c": {"type": "BOOL", "index": 279, "name": "celigo_sfnsio_test_mode_record_c", "comment": null}, "initial_meeting_notes_c": {"type": "STRING", "index": 280, "name": "initial_meeting_notes_c", "comment": null}, "initial_meeting_source_c": {"type": "STRING", "index": 281, "name": "initial_meeting_source_c", "comment": null}, "initial_meeting_date_c": {"type": "TIMESTAMP", "index": 282, "name": "initial_meeting_date_c", "comment": null}, "initial_meeting_status_c": {"type": "STRING", "index": 283, "name": "initial_meeting_status_c", "comment": null}, "bdr_sdr_override_c": {"type": "BOOL", "index": 284, "name": "bdr_sdr_override_c", "comment": null}, "tsm_discovered_c": {"type": "BOOL", "index": 285, "name": "tsm_discovered_c", "comment": null}, "for_initial_revenue_ramp_c": {"type": "BOOL", "index": 286, "name": "for_initial_revenue_ramp_c", "comment": null}, "clari_amount_c": {"type": "BIGNUMERIC", "index": 287, "name": "clari_amount_c", "comment": null}, "connector_x_c": {"type": "STRING", "index": 288, "name": "connector_x_c", "comment": null}, "use_cases_deprecate_c": {"type": "STRING", "index": 289, "name": "use_cases_deprecate_c", "comment": null}, "data_stack_c": {"type": "STRING", "index": 290, "name": "data_stack_c", "comment": null}, "projected_ending_4_mos_amount_total_c": {"type": "BIGNUMERIC", "index": 291, "name": "projected_ending_4_mos_amount_total_c", "comment": null}, "p_o_number_c": {"type": "STRING", "index": 292, "name": "p_o_number_c", "comment": null}, "user_gems_user_gems_summary_c": {"type": "STRING", "index": 293, "name": "user_gems_user_gems_summary_c", "comment": null}, "fivetran_map_link_c": {"type": "STRING", "index": 294, "name": "fivetran_map_link_c", "comment": null}, "after_scenario_c": {"type": "STRING", "index": 295, "name": "after_scenario_c", "comment": null}, "top_competition_c": {"type": "STRING", "index": 296, "name": "top_competition_c", "comment": null}, "economic_buyer_lu_c": {"type": "STRING", "index": 297, "name": "economic_buyer_lu_c", "comment": null}, "champion_lu_c": {"type": "STRING", "index": 298, "name": "champion_lu_c", "comment": null}, "paper_process_c": {"type": "STRING", "index": 299, "name": "paper_process_c", "comment": null}, "before_scenario_c": {"type": "STRING", "index": 300, "name": "before_scenario_c", "comment": null}, "defensible_differentiators_c": {"type": "STRING", "index": 301, "name": "defensible_differentiators_c", "comment": null}, "positive_business_outcomes_c": {"type": "STRING", "index": 302, "name": "positive_business_outcomes_c", "comment": null}, "customer_marketplace_pref_c": {"type": "STRING", "index": 303, "name": "customer_marketplace_pref_c", "comment": null}, "using_consultant_si_c": {"type": "STRING", "index": 304, "name": "using_consultant_si_c", "comment": null}, "value_drivers_c": {"type": "STRING", "index": 305, "name": "value_drivers_c", "comment": null}, "is_solution_architect_needed_c": {"type": "BOOL", "index": 306, "name": "is_solution_architect_needed_c", "comment": null}, "contact_opportunity_created_from_c": {"type": "STRING", "index": 307, "name": "contact_opportunity_created_from_c", "comment": null}, "previous_contract_blended_unit_price_c": {"type": "BIGNUMERIC", "index": 308, "name": "previous_contract_blended_unit_price_c", "comment": null}, "previous_contract_total_credits_purchase_c": {"type": "FLOAT64", "index": 309, "name": "previous_contract_total_credits_purchase_c", "comment": null}, "original_price_per_credit_c": {"type": "BIGNUMERIC", "index": 310, "name": "original_price_per_credit_c", "comment": null}, "previous_contract_discount_percentage_c": {"type": "FLOAT64", "index": 311, "name": "previous_contract_discount_percentage_c", "comment": null}, "expected_renewal_amount_override_1_c": {"type": "NUMERIC", "index": 312, "name": "expected_renewal_amount_override_1_c", "comment": null}, "expected_renewal_override_c": {"type": "BIGNUMERIC", "index": 313, "name": "expected_renewal_override_c", "comment": null}, "bookings_arr_2_c": {"type": "BIGNUMERIC", "index": 314, "name": "bookings_arr_2_c", "comment": null}, "baseline_arr_2_c": {"type": "BIGNUMERIC", "index": 315, "name": "baseline_arr_2_c", "comment": null}, "value_of_services_purchased_c": {"type": "BIGNUMERIC", "index": 316, "name": "value_of_services_purchased_c", "comment": null}, "value_of_credits_purchased_c": {"type": "NUMERIC", "index": 317, "name": "value_of_credits_purchased_c", "comment": null}, "renewal_fields_verified_c": {"type": "BOOL", "index": 318, "name": "renewal_fields_verified_c", "comment": null}, "no_co_sell_reason_c": {"type": "STRING", "index": 319, "name": "no_co_sell_reason_c", "comment": null}, "credit_summary_at_creation_c": {"type": "STRING", "index": 320, "name": "credit_summary_at_creation_c", "comment": null}, "renewal_date_on_creation_c": {"type": "TIMESTAMP", "index": 321, "name": "renewal_date_on_creation_c", "comment": null}, "did_you_pitch_quickstart_packages_c": {"type": "STRING", "index": 322, "name": "did_you_pitch_quickstart_packages_c", "comment": null}, "expected_renewal_amount_stamp_c": {"type": "BIGNUMERIC", "index": 323, "name": "expected_renewal_amount_stamp_c", "comment": null}, "platform_level_stamped_c": {"type": "STRING", "index": 324, "name": "platform_level_stamped_c", "comment": null}, "customer_spend_type_c": {"type": "STRING", "index": 325, "name": "customer_spend_type_c", "comment": null}, "self_service_routing_c": {"type": "BOOL", "index": 326, "name": "self_service_routing_c", "comment": null}, "value_of_rollover_credits_quote_stamp_c": {"type": "BIGNUMERIC", "index": 327, "name": "value_of_rollover_credits_quote_stamp_c", "comment": null}, "renewal_manager_notes_c": {"type": "STRING", "index": 328, "name": "renewal_manager_notes_c", "comment": null}, "fivetran_use_case_c": {"type": "STRING", "index": 329, "name": "fivetran_use_case_c", "comment": null}, "did_you_try_to_sell_services_c": {"type": "STRING", "index": 330, "name": "did_you_try_to_sell_services_c", "comment": null}, "routed_from_manual_bdr_ae_activity_c": {"type": "BOOL", "index": 331, "name": "routed_from_manual_bdr_ae_activity_c", "comment": null}, "group_id_c": {"type": "STRING", "index": 332, "name": "group_id_c", "comment": null}, "comma_separated_schema_list_c": {"type": "STRING", "index": 333, "name": "comma_separated_schema_list_c", "comment": null}, "si_referral_count_c": {"type": "FLOAT64", "index": 334, "name": "si_referral_count_c", "comment": null}, "si_referral_partner_chosen_c": {"type": "BOOL", "index": 335, "name": "si_referral_partner_chosen_c", "comment": null}, "partner_relationship_added_c": {"type": "STRING", "index": 336, "name": "partner_relationship_added_c", "comment": null}, "si_with_partner_referral_activity_type_c": {"type": "BOOL", "index": 337, "name": "si_with_partner_referral_activity_type_c", "comment": null}, "late_renewal_subscription_c": {"type": "STRING", "index": 338, "name": "late_renewal_subscription_c", "comment": null}, "rev_ops_created_renewal_c": {"type": "BOOL", "index": 339, "name": "rev_ops_created_renewal_c", "comment": null}, "conversion_opp_type_c": {"type": "STRING", "index": 340, "name": "conversion_opp_type_c", "comment": null}, "projected_mrr_increase_clari_c": {"type": "FLOAT64", "index": 341, "name": "projected_mrr_increase_clari_c", "comment": null}, "amount_rollover_annualized_stamped_c": {"type": "BIGNUMERIC", "index": 342, "name": "amount_rollover_annualized_stamped_c", "comment": null}, "credit_amount_stamped_c": {"type": "BIGNUMERIC", "index": 343, "name": "credit_amount_stamped_c", "comment": null}, "rollover_value_on_close_c": {"type": "BIGNUMERIC", "index": 344, "name": "rollover_value_on_close_c", "comment": null}, "lost_to_a_competitive_solution_c": {"type": "STRING", "index": 345, "name": "lost_to_a_competitive_solution_c", "comment": null}, "lost_primary_reason_detail_c": {"type": "STRING", "index": 346, "name": "lost_primary_reason_detail_c", "comment": null}, "marketing_activity_in_last_30_days_c": {"type": "BOOL", "index": 347, "name": "marketing_activity_in_last_30_days_c", "comment": null}, "disco_meeting_date_c": {"type": "TIMESTAMP", "index": 348, "name": "disco_meeting_date_c", "comment": null}, "disco_meeting_status_c": {"type": "STRING", "index": 349, "name": "disco_meeting_status_c", "comment": null}, "third_party_data_c": {"type": "STRING", "index": 350, "name": "third_party_data_c", "comment": null}, "pbf_overlay_c": {"type": "STRING", "index": 351, "name": "pbf_overlay_c", "comment": null}, "services_stage_2_date_c": {"type": "TIMESTAMP", "index": 352, "name": "services_stage_2_date_c", "comment": null}, "why_did_we_lose_the_services_pitch_c": {"type": "STRING", "index": 353, "name": "why_did_we_lose_the_services_pitch_c", "comment": null}, "partner_relationship_created_automation_c": {"type": "BOOL", "index": 354, "name": "partner_relationship_created_automation_c", "comment": null}, "non_connector_expansion_c": {"type": "BOOL", "index": 355, "name": "non_connector_expansion_c", "comment": null}, "purchase_order_required_c": {"type": "STRING", "index": 356, "name": "purchase_order_required_c", "comment": null}, "push_count": {"type": "INT64", "index": 357, "name": "push_count", "comment": null}, "last_stage_change_date": {"type": "TIMESTAMP", "index": 358, "name": "last_stage_change_date", "comment": null}, "logged_to_partner_portal_c": {"type": "BOOL", "index": 359, "name": "logged_to_partner_portal_c", "comment": null}, "bdr_sdr_cross_sell_disco_call_c": {"type": "BOOL", "index": 360, "name": "bdr_sdr_cross_sell_disco_call_c", "comment": null}, "expected_renewal_expansion_override_c": {"type": "BIGNUMERIC", "index": 361, "name": "expected_renewal_expansion_override_c", "comment": null}, "hvr_contract_end_date_c": {"type": "TIMESTAMP", "index": 362, "name": "hvr_contract_end_date_c", "comment": null}, "hvr_technical_fit_c": {"type": "STRING", "index": 363, "name": "hvr_technical_fit_c", "comment": null}, "hvr_arr_new_c": {"type": "BIGNUMERIC", "index": 364, "name": "hvr_arr_new_c", "comment": null}, "legacy_hvr_id_c": {"type": "STRING", "index": 365, "name": "legacy_hvr_id_c", "comment": null}, "hvr_sales_region_c": {"type": "STRING", "index": 366, "name": "hvr_sales_region_c", "comment": null}, "contract_id": {"type": "STRING", "index": 367, "name": "contract_id", "comment": null}, "hvr_arr_end_c": {"type": "TIMESTAMP", "index": 368, "name": "hvr_arr_end_c", "comment": null}, "hvr_sum_of_forecast_calc_c": {"type": "BIGNUMERIC", "index": 369, "name": "hvr_sum_of_forecast_calc_c", "comment": null}, "hvr_nrr_total_c": {"type": "BIGNUMERIC", "index": 370, "name": "hvr_nrr_total_c", "comment": null}, "hvr_type_summary_c": {"type": "STRING", "index": 371, "name": "hvr_type_summary_c", "comment": null}, "hvr_special_instructions_for_licensing_c": {"type": "STRING", "index": 372, "name": "hvr_special_instructions_for_licensing_c", "comment": null}, "hvr_year_3_amount_c": {"type": "BIGNUMERIC", "index": 373, "name": "hvr_year_3_amount_c", "comment": null}, "hvr_targets_c": {"type": "STRING", "index": 374, "name": "hvr_targets_c", "comment": null}, "hvr_type_adj_c": {"type": "STRING", "index": 375, "name": "hvr_type_adj_c", "comment": null}, "hvr_arr_expansion_c": {"type": "BIGNUMERIC", "index": 376, "name": "hvr_arr_expansion_c", "comment": null}, "negative_consequences_c": {"type": "STRING", "index": 377, "name": "negative_consequences_c", "comment": null}, "hvr_quarterly_forecast_summary_c": {"type": "STRING", "index": 378, "name": "hvr_quarterly_forecast_summary_c", "comment": null}, "hvr_sal_confirmed_with_ae_c": {"type": "BOOL", "index": 379, "name": "hvr_sal_confirmed_with_ae_c", "comment": null}, "hvr_years_2_5_on_quote_c": {"type": "BIGNUMERIC", "index": 380, "name": "hvr_years_2_5_on_quote_c", "comment": null}, "hvr_arr_license_total_c": {"type": "BIGNUMERIC", "index": 381, "name": "hvr_arr_license_total_c", "comment": null}, "hvr_term_months_c": {"type": "FLOAT64", "index": 382, "name": "hvr_term_months_c", "comment": null}, "hvr_upside_value_at_50_c": {"type": "BIGNUMERIC", "index": 383, "name": "hvr_upside_value_at_50_c", "comment": null}, "proof_point_c": {"type": "STRING", "index": 384, "name": "proof_point_c", "comment": null}, "hub_fingerprint_c": {"type": "STRING", "index": 385, "name": "hub_fingerprint_c", "comment": null}, "demo_deep_technical_dive_completed_date_c": {"type": "TIMESTAMP", "index": 386, "name": "demo_deep_technical_dive_completed_date_c", "comment": null}, "hvr_license_type_1_c": {"type": "STRING", "index": 387, "name": "hvr_license_type_1_c", "comment": null}, "hvr_year_2_c": {"type": "STRING", "index": 388, "name": "hvr_year_2_c", "comment": null}, "hvr_currency_code_c": {"type": "STRING", "index": 389, "name": "hvr_currency_code_c", "comment": null}, "hvr_fq_c": {"type": "STRING", "index": 390, "name": "hvr_fq_c", "comment": null}, "hvr_multi_year_total_c": {"type": "BIGNUMERIC", "index": 391, "name": "hvr_multi_year_total_c", "comment": null}, "hvr_annual_support_c": {"type": "BIGNUMERIC", "index": 392, "name": "hvr_annual_support_c", "comment": null}, "hvr_targets_count_c": {"type": "FLOAT64", "index": 393, "name": "hvr_targets_count_c", "comment": null}, "opportunity_channel_confirmed_c": {"type": "BOOL", "index": 394, "name": "opportunity_channel_confirmed_c", "comment": null}, "how_we_do_it_c": {"type": "STRING", "index": 395, "name": "how_we_do_it_c", "comment": null}, "hvr_primary_cloud_preference_c": {"type": "STRING", "index": 396, "name": "hvr_primary_cloud_preference_c", "comment": null}, "hvr_year_4_c": {"type": "STRING", "index": 397, "name": "hvr_year_4_c", "comment": null}, "hvr_sources_c": {"type": "STRING", "index": 398, "name": "hvr_sources_c", "comment": null}, "hvr_arr_start_c": {"type": "TIMESTAMP", "index": 399, "name": "hvr_arr_start_c", "comment": null}, "hvr_fy_c": {"type": "STRING", "index": 400, "name": "hvr_fy_c", "comment": null}, "hvr_year_5_amount_c": {"type": "BIGNUMERIC", "index": 401, "name": "hvr_year_5_amount_c", "comment": null}, "is_private": {"type": "BOOL", "index": 402, "name": "is_private", "comment": null}, "hvr_arr_support_products_c": {"type": "FLOAT64", "index": 403, "name": "hvr_arr_support_products_c", "comment": null}, "license_key_generated_c": {"type": "BOOL", "index": 404, "name": "license_key_generated_c", "comment": null}, "hvr_arr_from_products_c": {"type": "BIGNUMERIC", "index": 405, "name": "hvr_arr_from_products_c", "comment": null}, "total_opportunity_quantity": {"type": "FLOAT64", "index": 406, "name": "total_opportunity_quantity", "comment": null}, "hvr_sapruntimeflag_c": {"type": "BOOL", "index": 407, "name": "hvr_sapruntimeflag_c", "comment": null}, "hvr_arr_from_total_arr_products_added_c": {"type": "BIGNUMERIC", "index": 408, "name": "hvr_arr_from_total_arr_products_added_c", "comment": null}, "hvr_arr_support_total_c": {"type": "BIGNUMERIC", "index": 409, "name": "hvr_arr_support_total_c", "comment": null}, "hvr_year_4_amount_c": {"type": "BIGNUMERIC", "index": 410, "name": "hvr_year_4_amount_c", "comment": null}, "opportunity_sources_and_targets_reviewed_c": {"type": "BOOL", "index": 411, "name": "opportunity_sources_and_targets_reviewed_c", "comment": null}, "hvr_pilot_fees_c": {"type": "BIGNUMERIC", "index": 412, "name": "hvr_pilot_fees_c", "comment": null}, "intacct_customer_id_c": {"type": "STRING", "index": 413, "name": "intacct_customer_id_c", "comment": null}, "hvr_arr_old_c": {"type": "BIGNUMERIC", "index": 414, "name": "hvr_arr_old_c", "comment": null}, "hvr_arr_adjusted_c": {"type": "BIGNUMERIC", "index": 415, "name": "hvr_arr_adjusted_c", "comment": null}, "hvr_churn_date_c": {"type": "TIMESTAMP", "index": 416, "name": "hvr_churn_date_c", "comment": null}, "hvr_arr_total_products_c": {"type": "BIGNUMERIC", "index": 417, "name": "hvr_arr_total_products_c", "comment": null}, "required_capabilities_c": {"type": "STRING", "index": 418, "name": "required_capabilities_c", "comment": null}, "hvr_sources_count_c": {"type": "FLOAT64", "index": 419, "name": "hvr_sources_count_c", "comment": null}, "hvr_secondary_cloud_preference_c": {"type": "STRING", "index": 420, "name": "hvr_secondary_cloud_preference_c", "comment": null}, "hvr_arr_type_2_c": {"type": "STRING", "index": 421, "name": "hvr_arr_type_2_c", "comment": null}, "differentiators_against_c": {"type": "STRING", "index": 422, "name": "differentiators_against_c", "comment": null}, "nrr_total_c": {"type": "BIGNUMERIC", "index": 423, "name": "nrr_total_c", "comment": null}, "hvr_years_25_on_quote_c": {"type": "BIGNUMERIC", "index": 424, "name": "hvr_years_25_on_quote_c", "comment": null}, "hvr_opportunity_targets_c": {"type": "STRING", "index": 425, "name": "hvr_opportunity_targets_c", "comment": null}, "hvr_license_type_2_c": {"type": "STRING", "index": 426, "name": "hvr_license_type_2_c", "comment": null}, "hvr_solution_use_case_sub_category_c": {"type": "STRING", "index": 427, "name": "hvr_solution_use_case_sub_category_c", "comment": null}, "license_key_submission_date_stamp_c": {"type": "TIMESTAMP", "index": 428, "name": "license_key_submission_date_stamp_c", "comment": null}, "hvr_year_2_amount_c": {"type": "BIGNUMERIC", "index": 429, "name": "hvr_year_2_amount_c", "comment": null}, "hvr_new_arr_c": {"type": "BIGNUMERIC", "index": 430, "name": "hvr_new_arr_c", "comment": null}, "support_level_c": {"type": "STRING", "index": 431, "name": "support_level_c", "comment": null}, "hvr_arr_c": {"type": "BIGNUMERIC", "index": 432, "name": "hvr_arr_c", "comment": null}, "hvr_arr_calculated_c": {"type": "BIGNUMERIC", "index": 433, "name": "hvr_arr_calculated_c", "comment": null}, "hvr_amount_arrperpetual_c": {"type": "BIGNUMERIC", "index": 434, "name": "hvr_amount_arrperpetual_c", "comment": null}, "hvr_exchange_rate_c": {"type": "FLOAT64", "index": 435, "name": "hvr_exchange_rate_c", "comment": null}, "hvr_perpetual_amount_c": {"type": "BIGNUMERIC", "index": 436, "name": "hvr_perpetual_amount_c", "comment": null}, "hvr_arr_contraction_c": {"type": "BIGNUMERIC", "index": 437, "name": "hvr_arr_contraction_c", "comment": null}, "hvr_arr_months_c": {"type": "FLOAT64", "index": 438, "name": "hvr_arr_months_c", "comment": null}, "hvr_arr_gold_at_12_of_license_total_c": {"type": "BIGNUMERIC", "index": 439, "name": "hvr_arr_gold_at_12_of_license_total_c", "comment": null}, "hvr_arr_forecast_expected_c": {"type": "BIGNUMERIC", "index": 440, "name": "hvr_arr_forecast_expected_c", "comment": null}, "hvr_year_5_c": {"type": "STRING", "index": 441, "name": "hvr_year_5_c", "comment": null}, "hvr_arr_total_c": {"type": "BIGNUMERIC", "index": 442, "name": "hvr_arr_total_c", "comment": null}, "hvr_type_arrperpetual_c": {"type": "STRING", "index": 443, "name": "hvr_type_arrperpetual_c", "comment": null}, "hvr_tcv_c": {"type": "BIGNUMERIC", "index": 444, "name": "hvr_tcv_c", "comment": null}, "hvr_year_3_c": {"type": "STRING", "index": 445, "name": "hvr_year_3_c", "comment": null}, "hvr_arr_type_c": {"type": "STRING", "index": 446, "name": "hvr_arr_type_c", "comment": null}, "demo_deep_technical_dive_scheduled_date_c": {"type": "TIMESTAMP", "index": 447, "name": "demo_deep_technical_dive_scheduled_date_c", "comment": null}, "hvr_pro_serve_products_c": {"type": "FLOAT64", "index": 448, "name": "hvr_pro_serve_products_c", "comment": null}, "hvr_pro_serve_total_c": {"type": "BIGNUMERIC", "index": 449, "name": "hvr_pro_serve_total_c", "comment": null}, "hvr_total_amount_c": {"type": "BIGNUMERIC", "index": 450, "name": "hvr_total_amount_c", "comment": null}, "lean_data_status_info_c": {"type": "STRING", "index": 451, "name": "lean_data_status_info_c", "comment": null}, "hvr_additional_partners_c": {"type": "STRING", "index": 452, "name": "hvr_additional_partners_c", "comment": null}, "hvr_local_amount_c": {"type": "FLOAT64", "index": 453, "name": "hvr_local_amount_c", "comment": null}, "explain_reason_for_hvr_6_1_sale_c": {"type": "STRING", "index": 454, "name": "explain_reason_for_hvr_6_1_sale_c", "comment": null}, "hvr_6_1_proposed_sale_c": {"type": "BOOL", "index": 455, "name": "hvr_6_1_proposed_sale_c", "comment": null}, "approval_of_hvr_6_1_sale_c": {"type": "BOOL", "index": 456, "name": "approval_of_hvr_6_1_sale_c", "comment": null}, "hvr_6_1_sale_decision_c": {"type": "STRING", "index": 457, "name": "hvr_6_1_sale_decision_c", "comment": null}, "hvr_poc_sources_details_c": {"type": "STRING", "index": 458, "name": "hvr_poc_sources_details_c", "comment": null}, "hvr_poc_targets_c": {"type": "STRING", "index": 459, "name": "hvr_poc_targets_c", "comment": null}, "hvr_check_list_sent_c": {"type": "STRING", "index": 460, "name": "hvr_check_list_sent_c", "comment": null}, "hvr_start_date_actual_c": {"type": "STRING", "index": 461, "name": "hvr_start_date_actual_c", "comment": null}, "hvr_check_list_received_c": {"type": "STRING", "index": 462, "name": "hvr_check_list_received_c", "comment": null}, "hvr_support_location_c": {"type": "STRING", "index": 463, "name": "hvr_support_location_c", "comment": null}, "hvr_stop_date_plan_c": {"type": "STRING", "index": 464, "name": "hvr_stop_date_plan_c", "comment": null}, "hvr_start_date_plan_c": {"type": "STRING", "index": 465, "name": "hvr_start_date_plan_c", "comment": null}, "hvr_what_worked_c": {"type": "STRING", "index": 466, "name": "hvr_what_worked_c", "comment": null}, "hvr_competition_c": {"type": "STRING", "index": 467, "name": "hvr_competition_c", "comment": null}, "hvr_what_didnt_work_c": {"type": "STRING", "index": 468, "name": "hvr_what_didnt_work_c", "comment": null}, "hvr_conducted_by_c": {"type": "STRING", "index": 469, "name": "hvr_conducted_by_c", "comment": null}, "hvr_poc_sources_c": {"type": "STRING", "index": 470, "name": "hvr_poc_sources_c", "comment": null}, "hvr_review_call_date_c": {"type": "STRING", "index": 471, "name": "hvr_review_call_date_c", "comment": null}, "hvr_stop_date_actual_c": {"type": "STRING", "index": 472, "name": "hvr_stop_date_actual_c", "comment": null}, "hvr_will_there_be_a_poc_c": {"type": "STRING", "index": 473, "name": "hvr_will_there_be_a_poc_c", "comment": null}, "hvr_poc_of_days_c": {"type": "STRING", "index": 474, "name": "hvr_poc_of_days_c", "comment": null}, "hvr_poc_targets_details_c": {"type": "STRING", "index": 475, "name": "hvr_poc_targets_details_c", "comment": null}, "hvr_hub_details_c": {"type": "STRING", "index": 476, "name": "hvr_hub_details_c", "comment": null}, "legacy_hvr_channel_c": {"type": "STRING", "index": 477, "name": "legacy_hvr_channel_c", "comment": null}, "account_strategist_stamp_c": {"type": "STRING", "index": 478, "name": "account_strategist_stamp_c", "comment": null}, "hvr_fivetran_conversion_type_c": {"type": "STRING", "index": 479, "name": "hvr_fivetran_conversion_type_c", "comment": null}, "olp_cancellation_override_c": {"type": "BOOL", "index": 480, "name": "olp_cancellation_override_c", "comment": null}, "account_strategist_1_c": {"type": "STRING", "index": 481, "name": "account_strategist_1_c", "comment": null}, "product_being_pitched_c": {"type": "STRING", "index": 482, "name": "product_being_pitched_c", "comment": null}, "estimated_monthly_dollar_consumption_c": {"type": "BIGNUMERIC", "index": 483, "name": "estimated_monthly_dollar_consumption_c", "comment": null}, "platform_level_sso_c": {"type": "STRING", "index": 484, "name": "platform_level_sso_c", "comment": null}, "salesforce_created_c": {"type": "BOOL", "index": 485, "name": "salesforce_created_c", "comment": null}, "route_pbf_overlay_c": {"type": "BOOL", "index": 486, "name": "route_pbf_overlay_c", "comment": null}, "hvr_deal_submitted_c": {"type": "BOOL", "index": 487, "name": "hvr_deal_submitted_c", "comment": null}, "annual_2_olp_conversion_created_c": {"type": "BOOL", "index": 488, "name": "annual_2_olp_conversion_created_c", "comment": null}, "sub_start_date_vp_level_exception_c": {"type": "BOOL", "index": 489, "name": "sub_start_date_vp_level_exception_c", "comment": null}, "closed_won_region_c": {"type": "STRING", "index": 490, "name": "closed_won_region_c", "comment": null}, "closed_won_segment_c": {"type": "STRING", "index": 491, "name": "closed_won_segment_c", "comment": null}, "deal_desk_notes_c": {"type": "STRING", "index": 492, "name": "deal_desk_notes_c", "comment": null}, "order_form_opt_out_c": {"type": "STRING", "index": 493, "name": "order_form_opt_out_c", "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.salesforce_source.stg_salesforce__opportunity_tmp"}, "model.salesforce_source.stg_salesforce__user_role_tmp": {"metadata": {"type": "view", "schema": "dbt_renee", "name": "stg_salesforce__user_role_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "BOOL", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 3, "name": "_fivetran_synced", "comment": null}, "case_access_for_account_owner": {"type": "STRING", "index": 4, "name": "case_access_for_account_owner", "comment": null}, "contact_access_for_account_owner": {"type": "STRING", "index": 5, "name": "contact_access_for_account_owner", "comment": null}, "developer_name": {"type": "STRING", "index": 6, "name": "developer_name", "comment": null}, "forecast_user_id": {"type": "STRING", "index": 7, "name": "forecast_user_id", "comment": null}, "last_modified_by_id": {"type": "STRING", "index": 8, "name": "last_modified_by_id", "comment": null}, "last_modified_date": {"type": "TIMESTAMP", "index": 9, "name": "last_modified_date", "comment": null}, "may_forecast_manager_share": {"type": "BOOL", "index": 10, "name": "may_forecast_manager_share", "comment": null}, "name": {"type": "STRING", "index": 11, "name": "name", "comment": null}, "opportunity_access_for_account_owner": {"type": "STRING", "index": 12, "name": "opportunity_access_for_account_owner", "comment": null}, "parent_role_id": {"type": "STRING", "index": 13, "name": "parent_role_id", "comment": null}, "portal_account_id": {"type": "STRING", "index": 14, "name": "portal_account_id", "comment": null}, "portal_account_owner_id": {"type": "STRING", "index": 15, "name": "portal_account_owner_id", "comment": null}, "portal_type": {"type": "STRING", "index": 16, "name": "portal_type", "comment": null}, "rollup_description": {"type": "STRING", "index": 17, "name": "rollup_description", "comment": null}, "system_modstamp": {"type": "TIMESTAMP", "index": 18, "name": "system_modstamp", "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.salesforce_source.stg_salesforce__user_role_tmp"}, "model.salesforce_source.stg_salesforce__opportunity": {"metadata": {"type": "table", "schema": "dbt_renee", "name": "stg_salesforce__opportunity", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "TIMESTAMP", "index": 1, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "STRING", "index": 2, "name": "account_id", "comment": null}, "amount": {"type": "NUMERIC", "index": 3, "name": "amount", "comment": null}, "campaign_id": {"type": "STRING", "index": 4, "name": "campaign_id", "comment": null}, "close_date": {"type": "TIMESTAMP", "index": 5, "name": "close_date", "comment": null}, "created_date": {"type": "TIMESTAMP", "index": 6, "name": "created_date", "comment": null}, "description": {"type": "STRING", "index": 7, "name": "description", "comment": null}, "expected_revenue": {"type": "NUMERIC", "index": 8, "name": "expected_revenue", "comment": null}, "fiscal": {"type": "STRING", "index": 9, "name": "fiscal", "comment": null}, "fiscal_quarter": {"type": "INT64", "index": 10, "name": "fiscal_quarter", "comment": null}, "fiscal_year": {"type": "INT64", "index": 11, "name": "fiscal_year", "comment": null}, "forecast_category": {"type": "STRING", "index": 12, "name": "forecast_category", "comment": null}, "forecast_category_name": {"type": "STRING", "index": 13, "name": "forecast_category_name", "comment": null}, "has_open_activity": {"type": "BOOL", "index": 14, "name": "has_open_activity", "comment": null}, "has_opportunity_line_item": {"type": "BOOL", "index": 15, "name": "has_opportunity_line_item", "comment": null}, "has_overdue_task": {"type": "BOOL", "index": 16, "name": "has_overdue_task", "comment": null}, "opportunity_id": {"type": "STRING", "index": 17, "name": "opportunity_id", "comment": null}, "is_closed": {"type": "BOOL", "index": 18, "name": "is_closed", "comment": null}, "is_deleted": {"type": "BOOL", "index": 19, "name": "is_deleted", "comment": null}, "is_won": {"type": "BOOL", "index": 20, "name": "is_won", "comment": null}, "last_activity_date": {"type": "TIMESTAMP", "index": 21, "name": "last_activity_date", "comment": null}, "last_referenced_date": {"type": "TIMESTAMP", "index": 22, "name": "last_referenced_date", "comment": null}, "last_viewed_date": {"type": "TIMESTAMP", "index": 23, "name": "last_viewed_date", "comment": null}, "lead_source": {"type": "STRING", "index": 24, "name": "lead_source", "comment": null}, "opportunity_name": {"type": "STRING", "index": 25, "name": "opportunity_name", "comment": null}, "next_step": {"type": "STRING", "index": 26, "name": "next_step", "comment": null}, "owner_id": {"type": "STRING", "index": 27, "name": "owner_id", "comment": null}, "probability": {"type": "FLOAT64", "index": 28, "name": "probability", "comment": null}, "record_type_id": {"type": "STRING", "index": 29, "name": "record_type_id", "comment": null}, "stage_name": {"type": "STRING", "index": 30, "name": "stage_name", "comment": null}, "synced_quote_id": {"type": "STRING", "index": 31, "name": "synced_quote_id", "comment": null}, "type": {"type": "STRING", "index": 32, "name": "type", "comment": null}, "order_form_opt_out_c": {"type": "STRING", "index": 33, "name": "order_form_opt_out_c", "comment": null}, "is_created_this_month": {"type": "BOOL", "index": 34, "name": "is_created_this_month", "comment": null}, "is_created_this_quarter": {"type": "BOOL", "index": 35, "name": "is_created_this_quarter", "comment": null}, "days_since_created": {"type": "INT64", "index": 36, "name": "days_since_created", "comment": null}, "days_to_close": {"type": "INT64", "index": 37, "name": "days_to_close", "comment": null}, "is_closed_this_month": {"type": "BOOL", "index": 38, "name": "is_closed_this_month", "comment": null}, "is_closed_this_quarter": {"type": "BOOL", "index": 39, "name": "is_closed_this_quarter", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 26452119.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 96450.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.salesforce_source.stg_salesforce__opportunity"}, "model.salesforce_source.stg_salesforce__contact_tmp": {"metadata": {"type": "view", "schema": "dbt_renee", "name": "stg_salesforce__contact_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 2, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "STRING", "index": 3, "name": "account_id", "comment": null}, "cbit_clearbit_c": {"type": "STRING", "index": 4, "name": "cbit_clearbit_c", "comment": null}, "cbit_clearbit_ready_c": {"type": "BOOL", "index": 5, "name": "cbit_clearbit_ready_c", "comment": null}, "created_by_id": {"type": "STRING", "index": 6, "name": "created_by_id", "comment": null}, "created_date": {"type": "TIMESTAMP", "index": 7, "name": "created_date", "comment": null}, "department": {"type": "STRING", "index": 8, "name": "department", "comment": null}, "email": {"type": "STRING", "index": 9, "name": "email", "comment": null}, "email_bounced_date": {"type": "TIMESTAMP", "index": 10, "name": "email_bounced_date", "comment": null}, "email_bounced_reason": {"type": "STRING", "index": 11, "name": "email_bounced_reason", "comment": null}, "fax": {"type": "STRING", "index": 12, "name": "fax", "comment": null}, "first_name": {"type": "STRING", "index": 13, "name": "first_name", "comment": null}, "is_deleted": {"type": "BOOL", "index": 14, "name": "is_deleted", "comment": null}, "is_email_bounced": {"type": "BOOL", "index": 15, "name": "is_email_bounced", "comment": null}, "jigsaw_contact_id": {"type": "STRING", "index": 16, "name": "jigsaw_contact_id", "comment": null}, "last_activity_date": {"type": "TIMESTAMP", "index": 17, "name": "last_activity_date", "comment": null}, "last_curequest_date": {"type": "TIMESTAMP", "index": 18, "name": "last_curequest_date", "comment": null}, "last_cuupdate_date": {"type": "TIMESTAMP", "index": 19, "name": "last_cuupdate_date", "comment": null}, "last_modified_by_id": {"type": "STRING", "index": 20, "name": "last_modified_by_id", "comment": null}, "last_modified_date": {"type": "TIMESTAMP", "index": 21, "name": "last_modified_date", "comment": null}, "last_name": {"type": "STRING", "index": 22, "name": "last_name", "comment": null}, "last_referenced_date": {"type": "TIMESTAMP", "index": 23, "name": "last_referenced_date", "comment": null}, "last_viewed_date": {"type": "TIMESTAMP", "index": 24, "name": "last_viewed_date", "comment": null}, "mailing_city": {"type": "STRING", "index": 25, "name": "mailing_city", "comment": null}, "mailing_country": {"type": "STRING", "index": 26, "name": "mailing_country", "comment": null}, "mailing_country_code": {"type": "STRING", "index": 27, "name": "mailing_country_code", "comment": null}, "mailing_geocode_accuracy": {"type": "STRING", "index": 28, "name": "mailing_geocode_accuracy", "comment": null}, "mailing_latitude": {"type": "FLOAT64", "index": 29, "name": "mailing_latitude", "comment": null}, "mailing_longitude": {"type": "FLOAT64", "index": 30, "name": "mailing_longitude", "comment": null}, "mailing_postal_code": {"type": "STRING", "index": 31, "name": "mailing_postal_code", "comment": null}, "mailing_state": {"type": "STRING", "index": 32, "name": "mailing_state", "comment": null}, "mailing_state_code": {"type": "STRING", "index": 33, "name": "mailing_state_code", "comment": null}, "mailing_street": {"type": "STRING", "index": 34, "name": "mailing_street", "comment": null}, "master_record_id": {"type": "STRING", "index": 35, "name": "master_record_id", "comment": null}, "mc_4_sf_mc_subscriber_c": {"type": "STRING", "index": 36, "name": "mc_4_sf_mc_subscriber_c", "comment": null}, "mobile_phone": {"type": "STRING", "index": 37, "name": "mobile_phone", "comment": null}, "name": {"type": "STRING", "index": 38, "name": "name", "comment": null}, "owner_id": {"type": "STRING", "index": 39, "name": "owner_id", "comment": null}, "phone": {"type": "STRING", "index": 40, "name": "phone", "comment": null}, "photo_url": {"type": "STRING", "index": 41, "name": "photo_url", "comment": null}, "reports_to_id": {"type": "STRING", "index": 42, "name": "reports_to_id", "comment": null}, "salutation": {"type": "STRING", "index": 43, "name": "salutation", "comment": null}, "system_modstamp": {"type": "TIMESTAMP", "index": 44, "name": "system_modstamp", "comment": null}, "title": {"type": "STRING", "index": 45, "name": "title", "comment": null}, "email_bounced_c": {"type": "BOOL", "index": 46, "name": "email_bounced_c", "comment": null}, "email_quality_unknown_c": {"type": "BOOL", "index": 47, "name": "email_quality_unknown_c", "comment": null}, "gclid_c": {"type": "STRING", "index": 48, "name": "gclid_c", "comment": null}, "referral_account_c": {"type": "STRING", "index": 49, "name": "referral_account_c", "comment": null}, "referral_contact_c": {"type": "STRING", "index": 50, "name": "referral_contact_c", "comment": null}, "has_opted_out_of_email": {"type": "BOOL", "index": 51, "name": "has_opted_out_of_email", "comment": null}, "act_on_lead_score_c": {"type": "FLOAT64", "index": 52, "name": "act_on_lead_score_c", "comment": null}, "cbit_created_by_clearbit_c": {"type": "BOOL", "index": 53, "name": "cbit_created_by_clearbit_c", "comment": null}, "fivetran_user_id_c": {"type": "STRING", "index": 54, "name": "fivetran_user_id_c", "comment": null}, "no_longer_at_company_c": {"type": "BOOL", "index": 55, "name": "no_longer_at_company_c", "comment": null}, "pi_campaign_c": {"type": "STRING", "index": 56, "name": "pi_campaign_c", "comment": null}, "pi_comments_c": {"type": "STRING", "index": 57, "name": "pi_comments_c", "comment": null}, "pi_conversion_date_c": {"type": "TIMESTAMP", "index": 58, "name": "pi_conversion_date_c", "comment": null}, "pi_conversion_object_name_c": {"type": "STRING", "index": 59, "name": "pi_conversion_object_name_c", "comment": null}, "pi_conversion_object_type_c": {"type": "STRING", "index": 60, "name": "pi_conversion_object_type_c", "comment": null}, "pi_created_date_c": {"type": "TIMESTAMP", "index": 61, "name": "pi_created_date_c", "comment": null}, "pi_first_activity_c": {"type": "TIMESTAMP", "index": 62, "name": "pi_first_activity_c", "comment": null}, "pi_first_search_term_c": {"type": "STRING", "index": 63, "name": "pi_first_search_term_c", "comment": null}, "pi_first_search_type_c": {"type": "STRING", "index": 64, "name": "pi_first_search_type_c", "comment": null}, "pi_first_touch_url_c": {"type": "STRING", "index": 65, "name": "pi_first_touch_url_c", "comment": null}, "pi_grade_c": {"type": "STRING", "index": 66, "name": "pi_grade_c", "comment": null}, "pi_last_activity_c": {"type": "TIMESTAMP", "index": 67, "name": "pi_last_activity_c", "comment": null}, "pi_needs_score_synced_c": {"type": "BOOL", "index": 68, "name": "pi_needs_score_synced_c", "comment": null}, "pi_notes_c": {"type": "STRING", "index": 69, "name": "pi_notes_c", "comment": null}, "pi_pardot_hard_bounced_c": {"type": "BOOL", "index": 70, "name": "pi_pardot_hard_bounced_c", "comment": null}, "pi_pardot_last_scored_at_c": {"type": "TIMESTAMP", "index": 71, "name": "pi_pardot_last_scored_at_c", "comment": null}, "pi_score_c": {"type": "FLOAT64", "index": 72, "name": "pi_score_c", "comment": null}, "pi_url_c": {"type": "STRING", "index": 73, "name": "pi_url_c", "comment": null}, "pi_utm_campaign_c": {"type": "STRING", "index": 74, "name": "pi_utm_campaign_c", "comment": null}, "pi_utm_content_c": {"type": "STRING", "index": 75, "name": "pi_utm_content_c", "comment": null}, "pi_utm_medium_c": {"type": "STRING", "index": 76, "name": "pi_utm_medium_c", "comment": null}, "pi_utm_source_c": {"type": "STRING", "index": 77, "name": "pi_utm_source_c", "comment": null}, "pi_utm_term_c": {"type": "STRING", "index": 78, "name": "pi_utm_term_c", "comment": null}, "lead_source": {"type": "STRING", "index": 79, "name": "lead_source", "comment": null}, "contact_status_c": {"type": "STRING", "index": 80, "name": "contact_status_c", "comment": null}, "region_c": {"type": "STRING", "index": 81, "name": "region_c", "comment": null}, "competitor_c": {"type": "BOOL", "index": 82, "name": "competitor_c", "comment": null}, "bt_stripe_gender_c": {"type": "STRING", "index": 83, "name": "bt_stripe_gender_c", "comment": null}, "bt_stripe_ssn_last_4_encrypted_c": {"type": "STRING", "index": 84, "name": "bt_stripe_ssn_last_4_encrypted_c", "comment": null}, "bt_stripe_personal_id_number_c": {"type": "STRING", "index": 85, "name": "bt_stripe_personal_id_number_c", "comment": null}, "bt_stripe_personal_id_number_encrypted_c": {"type": "STRING", "index": 86, "name": "bt_stripe_personal_id_number_encrypted_c", "comment": null}, "bt_stripe_maiden_name_c": {"type": "STRING", "index": 87, "name": "bt_stripe_maiden_name_c", "comment": null}, "bt_stripe_languages_c": {"type": "STRING", "index": 88, "name": "bt_stripe_languages_c", "comment": null}, "bt_stripe_default_payment_method_c": {"type": "STRING", "index": 89, "name": "bt_stripe_default_payment_method_c", "comment": null}, "bt_stripe_ssn_last_4_c": {"type": "FLOAT64", "index": 90, "name": "bt_stripe_ssn_last_4_c", "comment": null}, "bt_stripe_personal_id_type_c": {"type": "STRING", "index": 91, "name": "bt_stripe_personal_id_type_c", "comment": null}, "bt_stripe_default_payment_gateway_c": {"type": "STRING", "index": 92, "name": "bt_stripe_default_payment_gateway_c", "comment": null}, "bt_stripe_level_c": {"type": "STRING", "index": 93, "name": "bt_stripe_level_c", "comment": null}, "lean_data_routing_action_c": {"type": "STRING", "index": 94, "name": "lean_data_routing_action_c", "comment": null}, "lean_data_matched_buyer_persona_c": {"type": "STRING", "index": 95, "name": "lean_data_matched_buyer_persona_c", "comment": null}, "lean_data_ld_segment_c": {"type": "STRING", "index": 96, "name": "lean_data_ld_segment_c", "comment": null}, "lean_data_tag_c": {"type": "STRING", "index": 97, "name": "lean_data_tag_c", "comment": null}, "lean_data_modified_score_c": {"type": "FLOAT64", "index": 98, "name": "lean_data_modified_score_c", "comment": null}, "do_not_route_lead_c": {"type": "BOOL", "index": 99, "name": "do_not_route_lead_c", "comment": null}, "technical_contact_c": {"type": "BOOL", "index": 100, "name": "technical_contact_c", "comment": null}, "allbound_id_c": {"type": "STRING", "index": 101, "name": "allbound_id_c", "comment": null}, "notes_c": {"type": "STRING", "index": 102, "name": "notes_c", "comment": null}, "netsuite_conn_sync_in_progress_c": {"type": "BOOL", "index": 103, "name": "netsuite_conn_sync_in_progress_c", "comment": null}, "netsuite_conn_celigo_update_c": {"type": "BOOL", "index": 104, "name": "netsuite_conn_celigo_update_c", "comment": null}, "netsuite_conn_net_suite_id_c": {"type": "STRING", "index": 105, "name": "netsuite_conn_net_suite_id_c", "comment": null}, "netsuite_conn_net_suite_sync_err_c": {"type": "STRING", "index": 106, "name": "netsuite_conn_net_suite_sync_err_c", "comment": null}, "netsuite_conn_push_to_net_suite_c": {"type": "BOOL", "index": 107, "name": "netsuite_conn_push_to_net_suite_c", "comment": null}, "netsuite_conn_pushed_from_opportunity_c": {"type": "BOOL", "index": 108, "name": "netsuite_conn_pushed_from_opportunity_c", "comment": null}, "description": {"type": "STRING", "index": 109, "name": "description", "comment": null}, "lid_linked_in_company_id_c": {"type": "STRING", "index": 110, "name": "lid_linked_in_company_id_c", "comment": null}, "lid_linked_in_member_token_c": {"type": "STRING", "index": 111, "name": "lid_linked_in_member_token_c", "comment": null}, "is_eu_resident_c": {"type": "BOOL", "index": 112, "name": "is_eu_resident_c", "comment": null}, "do_not_call": {"type": "BOOL", "index": 113, "name": "do_not_call", "comment": null}, "sales_loft_1_most_recent_cadence_next_step_due_date_c": {"type": "TIMESTAMP", "index": 114, "name": "sales_loft_1_most_recent_cadence_next_step_due_date_c", "comment": null}, "sales_loft_1_most_recent_last_completed_step_c": {"type": "FLOAT64", "index": 115, "name": "sales_loft_1_most_recent_last_completed_step_c", "comment": null}, "sales_loft_1_most_recent_cadence_name_c": {"type": "STRING", "index": 116, "name": "sales_loft_1_most_recent_cadence_name_c", "comment": null}, "source_detail_c": {"type": "STRING", "index": 117, "name": "source_detail_c", "comment": null}, "utm_source_c": {"type": "STRING", "index": 118, "name": "utm_source_c", "comment": null}, "utm_content_c": {"type": "STRING", "index": 119, "name": "utm_content_c", "comment": null}, "utm_term_c": {"type": "STRING", "index": 120, "name": "utm_term_c", "comment": null}, "utm_medium_c": {"type": "STRING", "index": 121, "name": "utm_medium_c", "comment": null}, "utm_campaign_c": {"type": "STRING", "index": 122, "name": "utm_campaign_c", "comment": null}, "network_c": {"type": "STRING", "index": 123, "name": "network_c", "comment": null}, "matchtype_c": {"type": "STRING", "index": 124, "name": "matchtype_c", "comment": null}, "device_c": {"type": "STRING", "index": 125, "name": "device_c", "comment": null}, "creative_c": {"type": "STRING", "index": 126, "name": "creative_c", "comment": null}, "adgroupid_c": {"type": "STRING", "index": 127, "name": "adgroupid_c", "comment": null}, "keyword_c": {"type": "STRING", "index": 128, "name": "keyword_c", "comment": null}, "campaignid_c": {"type": "STRING", "index": 129, "name": "campaignid_c", "comment": null}, "partner_rep_email_c": {"type": "STRING", "index": 130, "name": "partner_rep_email_c", "comment": null}, "partner_rep_name_c": {"type": "STRING", "index": 131, "name": "partner_rep_name_c", "comment": null}, "contact_type_c": {"type": "STRING", "index": 132, "name": "contact_type_c", "comment": null}, "old_lead_source_c": {"type": "STRING", "index": 133, "name": "old_lead_source_c", "comment": null}, "old_lead_source_detail_c": {"type": "STRING", "index": 134, "name": "old_lead_source_detail_c", "comment": null}, "contact_stage_c": {"type": "STRING", "index": 135, "name": "contact_stage_c", "comment": null}, "original_utm_campaign_c": {"type": "STRING", "index": 136, "name": "original_utm_campaign_c", "comment": null}, "original_utm_content_c": {"type": "STRING", "index": 137, "name": "original_utm_content_c", "comment": null}, "original_utm_medium_c": {"type": "STRING", "index": 138, "name": "original_utm_medium_c", "comment": null}, "original_utm_source_c": {"type": "STRING", "index": 139, "name": "original_utm_source_c", "comment": null}, "original_utm_term_c": {"type": "STRING", "index": 140, "name": "original_utm_term_c", "comment": null}, "es_app_escreated_timestamp_c": {"type": "TIMESTAMP", "index": 141, "name": "es_app_escreated_timestamp_c", "comment": null}, "es_app_esecid_c": {"type": "FLOAT64", "index": 142, "name": "es_app_esecid_c", "comment": null}, "es_app_esenriched_c": {"type": "BOOL", "index": 143, "name": "es_app_esenriched_c", "comment": null}, "es_app_esenriched_timestamp_c": {"type": "TIMESTAMP", "index": 144, "name": "es_app_esenriched_timestamp_c", "comment": null}, "es_app_esintent_aggregate_score_c": {"type": "FLOAT64", "index": 145, "name": "es_app_esintent_aggregate_score_c", "comment": null}, "es_app_esintent_timestamp_c": {"type": "TIMESTAMP", "index": 146, "name": "es_app_esintent_timestamp_c", "comment": null}, "es_app_esintent_topics_c": {"type": "STRING", "index": 147, "name": "es_app_esintent_topics_c", "comment": null}, "es_app_esoverall_fit_score_c": {"type": "FLOAT64", "index": 148, "name": "es_app_esoverall_fit_score_c", "comment": null}, "es_app_essource_c": {"type": "BOOL", "index": 149, "name": "es_app_essource_c", "comment": null}, "individual_id": {"type": "STRING", "index": 150, "name": "individual_id", "comment": null}, "marketing_process_c": {"type": "STRING", "index": 151, "name": "marketing_process_c", "comment": null}, "automation_tracking_c": {"type": "STRING", "index": 152, "name": "automation_tracking_c", "comment": null}, "user_gems_has_changed_job_c": {"type": "TIMESTAMP", "index": 153, "name": "user_gems_has_changed_job_c", "comment": null}, "email_opt_in_explicit_c": {"type": "BOOL", "index": 154, "name": "email_opt_in_explicit_c", "comment": null}, "email_opt_in_implicit_c": {"type": "BOOL", "index": 155, "name": "email_opt_in_implicit_c", "comment": null}, "gdpr_opt_in_explicit_c": {"type": "BOOL", "index": 156, "name": "gdpr_opt_in_explicit_c", "comment": null}, "user_gems_is_a_user_gem_c": {"type": "BOOL", "index": 157, "name": "user_gems_is_a_user_gem_c", "comment": null}, "user_gems_past_account_c": {"type": "STRING", "index": 158, "name": "user_gems_past_account_c", "comment": null}, "user_gems_past_company_c": {"type": "STRING", "index": 159, "name": "user_gems_past_company_c", "comment": null}, "user_gems_past_contact_c": {"type": "STRING", "index": 160, "name": "user_gems_past_contact_c", "comment": null}, "user_gems_past_title_c": {"type": "STRING", "index": 161, "name": "user_gems_past_title_c", "comment": null}, "partner_contact_c": {"type": "BOOL", "index": 162, "name": "partner_contact_c", "comment": null}, "promotion_id_c": {"type": "STRING", "index": 163, "name": "promotion_id_c", "comment": null}, "referral_exists_c": {"type": "BOOL", "index": 164, "name": "referral_exists_c", "comment": null}, "referral_first_name_c": {"type": "STRING", "index": 165, "name": "referral_first_name_c", "comment": null}, "referral_last_name_c": {"type": "STRING", "index": 166, "name": "referral_last_name_c", "comment": null}, "mkto_71_contact_acquisition_date_c": {"type": "TIMESTAMP", "index": 167, "name": "mkto_71_contact_acquisition_date_c", "comment": null}, "mkto_71_contact_acquisition_program_c": {"type": "STRING", "index": 168, "name": "mkto_71_contact_acquisition_program_c", "comment": null}, "mkto_71_contact_acquisition_program_id_c": {"type": "FLOAT64", "index": 169, "name": "mkto_71_contact_acquisition_program_id_c", "comment": null}, "mkto_71_contact_inferred_city_c": {"type": "STRING", "index": 170, "name": "mkto_71_contact_inferred_city_c", "comment": null}, "mkto_71_contact_inferred_company_c": {"type": "STRING", "index": 171, "name": "mkto_71_contact_inferred_company_c", "comment": null}, "mkto_71_contact_inferred_country_c": {"type": "STRING", "index": 172, "name": "mkto_71_contact_inferred_country_c", "comment": null}, "mkto_71_contact_inferred_metropolitan_a_c": {"type": "STRING", "index": 173, "name": "mkto_71_contact_inferred_metropolitan_a_c", "comment": null}, "mkto_71_contact_inferred_phone_area_cod_c": {"type": "STRING", "index": 174, "name": "mkto_71_contact_inferred_phone_area_cod_c", "comment": null}, "mkto_71_contact_inferred_postal_code_c": {"type": "STRING", "index": 175, "name": "mkto_71_contact_inferred_postal_code_c", "comment": null}, "mkto_71_contact_inferred_state_region_c": {"type": "STRING", "index": 176, "name": "mkto_71_contact_inferred_state_region_c", "comment": null}, "mkto_71_contact_lead_score_c": {"type": "FLOAT64", "index": 177, "name": "mkto_71_contact_lead_score_c", "comment": null}, "mkto_71_contact_original_referrer_c": {"type": "STRING", "index": 178, "name": "mkto_71_contact_original_referrer_c", "comment": null}, "mkto_71_contact_original_search_engine_c": {"type": "STRING", "index": 179, "name": "mkto_71_contact_original_search_engine_c", "comment": null}, "mkto_71_contact_original_search_phrase_c": {"type": "STRING", "index": 180, "name": "mkto_71_contact_original_search_phrase_c", "comment": null}, "mkto_71_contact_original_source_info_c": {"type": "STRING", "index": 181, "name": "mkto_71_contact_original_source_info_c", "comment": null}, "mkto_71_contact_original_source_type_c": {"type": "STRING", "index": 182, "name": "mkto_71_contact_original_source_type_c", "comment": null}, "mkto_si_hide_date_c": {"type": "TIMESTAMP", "index": 183, "name": "mkto_si_hide_date_c", "comment": null}, "mkto_si_last_interesting_moment_date_c": {"type": "TIMESTAMP", "index": 184, "name": "mkto_si_last_interesting_moment_date_c", "comment": null}, "mkto_si_last_interesting_moment_desc_c": {"type": "STRING", "index": 185, "name": "mkto_si_last_interesting_moment_desc_c", "comment": null}, "mkto_si_last_interesting_moment_source_c": {"type": "STRING", "index": 186, "name": "mkto_si_last_interesting_moment_source_c", "comment": null}, "mkto_si_last_interesting_moment_type_c": {"type": "STRING", "index": 187, "name": "mkto_si_last_interesting_moment_type_c", "comment": null}, "mkto_si_mkto_lead_score_c": {"type": "FLOAT64", "index": 188, "name": "mkto_si_mkto_lead_score_c", "comment": null}, "mkto_si_priority_c": {"type": "FLOAT64", "index": 189, "name": "mkto_si_priority_c", "comment": null}, "mkto_si_relative_score_value_c": {"type": "FLOAT64", "index": 190, "name": "mkto_si_relative_score_value_c", "comment": null}, "mkto_si_urgency_value_c": {"type": "FLOAT64", "index": 191, "name": "mkto_si_urgency_value_c", "comment": null}, "cloudingo_agent_ces_c": {"type": "FLOAT64", "index": 192, "name": "cloudingo_agent_ces_c", "comment": null}, "cloudingo_agent_mar_c": {"type": "STRING", "index": 193, "name": "cloudingo_agent_mar_c", "comment": null}, "cloudingo_agent_mas_c": {"type": "FLOAT64", "index": 194, "name": "cloudingo_agent_mas_c", "comment": null}, "cloudingo_agent_mav_c": {"type": "STRING", "index": 195, "name": "cloudingo_agent_mav_c", "comment": null}, "cloudingo_agent_mrdi_c": {"type": "STRING", "index": 196, "name": "cloudingo_agent_mrdi_c", "comment": null}, "cloudingo_agent_mtz_c": {"type": "STRING", "index": 197, "name": "cloudingo_agent_mtz_c", "comment": null}, "cloudingo_agent_oar_c": {"type": "STRING", "index": 198, "name": "cloudingo_agent_oar_c", "comment": null}, "cloudingo_agent_oas_c": {"type": "FLOAT64", "index": 199, "name": "cloudingo_agent_oas_c", "comment": null}, "cloudingo_agent_oav_c": {"type": "STRING", "index": 200, "name": "cloudingo_agent_oav_c", "comment": null}, "cloudingo_agent_ordi_c": {"type": "STRING", "index": 201, "name": "cloudingo_agent_ordi_c", "comment": null}, "cloudingo_agent_otz_c": {"type": "STRING", "index": 202, "name": "cloudingo_agent_otz_c", "comment": null}, "do_not_sync_marketo_c": {"type": "BOOL", "index": 203, "name": "do_not_sync_marketo_c", "comment": null}, "phone_extension_c": {"type": "STRING", "index": 204, "name": "phone_extension_c", "comment": null}, "job_function_c": {"type": "STRING", "index": 205, "name": "job_function_c", "comment": null}, "job_level_c": {"type": "STRING", "index": 206, "name": "job_level_c", "comment": null}, "direct_office_c": {"type": "STRING", "index": 207, "name": "direct_office_c", "comment": null}, "city_c": {"type": "STRING", "index": 208, "name": "city_c", "comment": null}, "country_c": {"type": "STRING", "index": 209, "name": "country_c", "comment": null}, "state_c": {"type": "STRING", "index": 210, "name": "state_c", "comment": null}, "secondary_email_c": {"type": "STRING", "index": 211, "name": "secondary_email_c", "comment": null}, "es_seniority_c": {"type": "STRING", "index": 212, "name": "es_seniority_c", "comment": null}, "source_last_lead_source_c": {"type": "STRING", "index": 213, "name": "source_last_lead_source_c", "comment": null}, "source_last_lead_source_category_c": {"type": "STRING", "index": 214, "name": "source_last_lead_source_category_c", "comment": null}, "source_last_lead_source_detail_c": {"type": "STRING", "index": 215, "name": "source_last_lead_source_detail_c", "comment": null}, "drift_cql_c": {"type": "FLOAT64", "index": 216, "name": "drift_cql_c", "comment": null}, "hot_contact_c": {"type": "BOOL", "index": 217, "name": "hot_contact_c", "comment": null}, "behavioral_score_c": {"type": "FLOAT64", "index": 218, "name": "behavioral_score_c", "comment": null}, "unique_email_c": {"type": "STRING", "index": 219, "name": "unique_email_c", "comment": null}, "is_emea_event_routing_c": {"type": "BOOL", "index": 220, "name": "is_emea_event_routing_c", "comment": null}, "csi_code_c": {"type": "FLOAT64", "index": 221, "name": "csi_code_c", "comment": null}, "clearbit_role_c": {"type": "STRING", "index": 222, "name": "clearbit_role_c", "comment": null}, "clearbit_seniority_c": {"type": "STRING", "index": 223, "name": "clearbit_seniority_c", "comment": null}, "clearbit_sub_role_c": {"type": "STRING", "index": 224, "name": "clearbit_sub_role_c", "comment": null}, "rh_2_currency_test_c": {"type": "BIGNUMERIC", "index": 225, "name": "rh_2_currency_test_c", "comment": null}, "rh_2_describe_c": {"type": "STRING", "index": 226, "name": "rh_2_describe_c", "comment": null}, "rh_2_integer_test_c": {"type": "FLOAT64", "index": 227, "name": "rh_2_integer_test_c", "comment": null}, "created_by_role_c": {"type": "STRING", "index": 228, "name": "created_by_role_c", "comment": null}, "demographic_score_c": {"type": "FLOAT64", "index": 229, "name": "demographic_score_c", "comment": null}, "country_code_c": {"type": "STRING", "index": 230, "name": "country_code_c", "comment": null}, "state_code_c": {"type": "STRING", "index": 231, "name": "state_code_c", "comment": null}, "attended_event_c": {"type": "BOOL", "index": 232, "name": "attended_event_c", "comment": null}, "zoominfo_technologies_c": {"type": "STRING", "index": 233, "name": "zoominfo_technologies_c", "comment": null}, "mql_date_c": {"type": "TIMESTAMP", "index": 234, "name": "mql_date_c", "comment": null}, "user_gems_user_gems_id_c": {"type": "STRING", "index": 235, "name": "user_gems_user_gems_id_c", "comment": null}, "dozisf_zoom_info_company_id_c": {"type": "STRING", "index": 236, "name": "dozisf_zoom_info_company_id_c", "comment": null}, "dozisf_zoom_info_first_updated_c": {"type": "TIMESTAMP", "index": 237, "name": "dozisf_zoom_info_first_updated_c", "comment": null}, "dozisf_zoom_info_id_c": {"type": "STRING", "index": 238, "name": "dozisf_zoom_info_id_c", "comment": null}, "dozisf_zoom_info_last_updated_c": {"type": "TIMESTAMP", "index": 239, "name": "dozisf_zoom_info_last_updated_c", "comment": null}, "lean_data_manual_route_trigger_c": {"type": "BOOL", "index": 240, "name": "lean_data_manual_route_trigger_c", "comment": null}, "first_mql_date_c": {"type": "TIMESTAMP", "index": 241, "name": "first_mql_date_c", "comment": null}, "active_relationship_c": {"type": "BOOL", "index": 242, "name": "active_relationship_c", "comment": null}, "clarus_date_c": {"type": "TIMESTAMP", "index": 243, "name": "clarus_date_c", "comment": null}, "clarus_editor_c": {"type": "STRING", "index": 244, "name": "clarus_editor_c", "comment": null}, "clarus_notes_c": {"type": "STRING", "index": 245, "name": "clarus_notes_c", "comment": null}, "clarus_project_c": {"type": "STRING", "index": 246, "name": "clarus_project_c", "comment": null}, "clarus_status_c": {"type": "STRING", "index": 247, "name": "clarus_status_c", "comment": null}, "historical_contact_status_c": {"type": "STRING", "index": 248, "name": "historical_contact_status_c", "comment": null}, "fivetran_account_association_date_c": {"type": "TIMESTAMP", "index": 249, "name": "fivetran_account_association_date_c", "comment": null}, "fivetran_account_user_role_s_c": {"type": "STRING", "index": 250, "name": "fivetran_account_user_role_s_c", "comment": null}, "mql_reason_c": {"type": "STRING", "index": 251, "name": "mql_reason_c", "comment": null}, "attempting_contact_date_time_c": {"type": "TIMESTAMP", "index": 252, "name": "attempting_contact_date_time_c", "comment": null}, "linked_in_url_c": {"type": "STRING", "index": 253, "name": "linked_in_url_c", "comment": null}, "trial_contact_start_date_c": {"type": "TIMESTAMP", "index": 254, "name": "trial_contact_start_date_c", "comment": null}, "contact_holdover_c": {"type": "BOOL", "index": 255, "name": "contact_holdover_c", "comment": null}, "bill_to_contact_hidden_c": {"type": "BOOL", "index": 256, "name": "bill_to_contact_hidden_c", "comment": null}, "enrichment_request_c": {"type": "BOOL", "index": 257, "name": "enrichment_request_c", "comment": null}, "meta_data_create_date_c": {"type": "TIMESTAMP", "index": 258, "name": "meta_data_create_date_c", "comment": null}, "primary_se_c": {"type": "STRING", "index": 259, "name": "primary_se_c", "comment": null}, "unqualified_reason_c": {"type": "STRING", "index": 260, "name": "unqualified_reason_c", "comment": null}, "opp_handoff_ae_c": {"type": "STRING", "index": 261, "name": "opp_handoff_ae_c", "comment": null}, "marketing_connector_interest_c": {"type": "STRING", "index": 262, "name": "marketing_connector_interest_c", "comment": null}, "recent_marketing_campaign_status_c": {"type": "STRING", "index": 263, "name": "recent_marketing_campaign_status_c", "comment": null}, "salesloft_cadence_trigger_c": {"type": "STRING", "index": 264, "name": "salesloft_cadence_trigger_c", "comment": null}, "last_ae_activity_owner_c": {"type": "STRING", "index": 265, "name": "last_ae_activity_owner_c", "comment": null}, "last_bdr_activity_owner_c": {"type": "STRING", "index": 266, "name": "last_bdr_activity_owner_c", "comment": null}, "last_manual_ae_activity_date_c": {"type": "TIMESTAMP", "index": 267, "name": "last_manual_ae_activity_date_c", "comment": null}, "last_manual_bdr_activity_date_c": {"type": "TIMESTAMP", "index": 268, "name": "last_manual_bdr_activity_date_c", "comment": null}, "leandata_contact_owner_override_c": {"type": "STRING", "index": 269, "name": "leandata_contact_owner_override_c", "comment": null}, "potential_fivetran_use_case_c": {"type": "STRING", "index": 270, "name": "potential_fivetran_use_case_c", "comment": null}, "lean_data_router_completion_date_time_c": {"type": "TIMESTAMP", "index": 271, "name": "lean_data_router_completion_date_time_c", "comment": null}, "partner_territory_c": {"type": "STRING", "index": 272, "name": "partner_territory_c", "comment": null}, "partner_company_c": {"type": "STRING", "index": 273, "name": "partner_company_c", "comment": null}, "bizible_2_ad_campaign_name_ft_c": {"type": "STRING", "index": 274, "name": "bizible_2_ad_campaign_name_ft_c", "comment": null}, "bizible_2_ad_campaign_name_lc_c": {"type": "STRING", "index": 275, "name": "bizible_2_ad_campaign_name_lc_c", "comment": null}, "bizible_2_bizible_id_c": {"type": "STRING", "index": 276, "name": "bizible_2_bizible_id_c", "comment": null}, "bizible_2_landing_page_ft_c": {"type": "STRING", "index": 277, "name": "bizible_2_landing_page_ft_c", "comment": null}, "bizible_2_landing_page_lc_c": {"type": "STRING", "index": 278, "name": "bizible_2_landing_page_lc_c", "comment": null}, "bizible_2_marketing_channel_ft_c": {"type": "STRING", "index": 279, "name": "bizible_2_marketing_channel_ft_c", "comment": null}, "bizible_2_marketing_channel_lc_c": {"type": "STRING", "index": 280, "name": "bizible_2_marketing_channel_lc_c", "comment": null}, "bizible_2_touchpoint_date_ft_c": {"type": "TIMESTAMP", "index": 281, "name": "bizible_2_touchpoint_date_ft_c", "comment": null}, "bizible_2_touchpoint_date_lc_c": {"type": "TIMESTAMP", "index": 282, "name": "bizible_2_touchpoint_date_lc_c", "comment": null}, "bizible_2_touchpoint_source_ft_c": {"type": "STRING", "index": 283, "name": "bizible_2_touchpoint_source_ft_c", "comment": null}, "bizible_2_touchpoint_source_lc_c": {"type": "STRING", "index": 284, "name": "bizible_2_touchpoint_source_lc_c", "comment": null}, "sales_email_opt_out_c": {"type": "BOOL", "index": 285, "name": "sales_email_opt_out_c", "comment": null}, "sales_email_opt_out_date_time_c": {"type": "TIMESTAMP", "index": 286, "name": "sales_email_opt_out_date_time_c", "comment": null}, "celigo_sfnsio_net_suite_id_c": {"type": "STRING", "index": 287, "name": "celigo_sfnsio_net_suite_id_c", "comment": null}, "celigo_sfnsio_net_suite_record_c": {"type": "STRING", "index": 288, "name": "celigo_sfnsio_net_suite_record_c", "comment": null}, "celigo_sfnsio_net_suite_sync_error_c": {"type": "STRING", "index": 289, "name": "celigo_sfnsio_net_suite_sync_error_c", "comment": null}, "celigo_sfnsio_skip_export_to_net_suite_c": {"type": "BOOL", "index": 290, "name": "celigo_sfnsio_skip_export_to_net_suite_c", "comment": null}, "celigo_sfnsio_test_mode_record_c": {"type": "BOOL", "index": 291, "name": "celigo_sfnsio_test_mode_record_c", "comment": null}, "ironclad_workflow_c": {"type": "STRING", "index": 292, "name": "ironclad_workflow_c", "comment": null}, "last_sales_activity_date_time_c": {"type": "TIMESTAMP", "index": 293, "name": "last_sales_activity_date_time_c", "comment": null}, "user_activity_logged_by_c": {"type": "STRING", "index": 294, "name": "user_activity_logged_by_c", "comment": null}, "first_activity_after_mql_date_c": {"type": "TIMESTAMP", "index": 295, "name": "first_activity_after_mql_date_c", "comment": null}, "last_sdr_activity_owner_c": {"type": "STRING", "index": 296, "name": "last_sdr_activity_owner_c", "comment": null}, "last_sdr_activity_date_c": {"type": "TIMESTAMP", "index": 297, "name": "last_sdr_activity_date_c", "comment": null}, "beta_connector_interest_c": {"type": "STRING", "index": 298, "name": "beta_connector_interest_c", "comment": null}, "first_manual_activity_after_mql_date_c": {"type": "TIMESTAMP", "index": 299, "name": "first_manual_activity_after_mql_date_c", "comment": null}, "user_gems_ug_past_infos_c": {"type": "STRING", "index": 300, "name": "user_gems_ug_past_infos_c", "comment": null}, "user_gems_ug_current_infos_c": {"type": "STRING", "index": 301, "name": "user_gems_ug_current_infos_c", "comment": null}, "user_gems_ug_created_by_ug_c": {"type": "BOOL", "index": 302, "name": "user_gems_ug_created_by_ug_c", "comment": null}, "free_trial_email_confirmed_date_c": {"type": "TIMESTAMP", "index": 303, "name": "free_trial_email_confirmed_date_c", "comment": null}, "routed_from_manual_bdr_ae_activity_c": {"type": "BOOL", "index": 304, "name": "routed_from_manual_bdr_ae_activity_c", "comment": null}, "dnboptimizer_dn_bcontact_record_c": {"type": "STRING", "index": 305, "name": "dnboptimizer_dn_bcontact_record_c", "comment": null}, "i_sell_avention_id_c": {"type": "STRING", "index": 306, "name": "i_sell_avention_id_c", "comment": null}, "persona_c": {"type": "STRING", "index": 307, "name": "persona_c", "comment": null}, "last_marketing_interesting_moment_date_c": {"type": "TIMESTAMP", "index": 308, "name": "last_marketing_interesting_moment_date_c", "comment": null}, "verified_c": {"type": "BOOL", "index": 309, "name": "verified_c", "comment": null}, "salesloft_owner_c": {"type": "STRING", "index": 310, "name": "salesloft_owner_c", "comment": null}, "salesloft_owner_sf_c": {"type": "STRING", "index": 311, "name": "salesloft_owner_sf_c", "comment": null}, "email_opt_out_date_time_c": {"type": "TIMESTAMP", "index": 312, "name": "email_opt_out_date_time_c", "comment": null}, "pbf_startup_primary_role_c": {"type": "STRING", "index": 313, "name": "pbf_startup_primary_role_c", "comment": null}, "pbf_startup_certify_eligibility_c": {"type": "BOOL", "index": 314, "name": "pbf_startup_certify_eligibility_c", "comment": null}, "engagio_intent_minutes_last_30_days_c": {"type": "FLOAT64", "index": 315, "name": "engagio_intent_minutes_last_30_days_c", "comment": null}, "engagio_engagement_minutes_last_3_months_c": {"type": "FLOAT64", "index": 316, "name": "engagio_engagement_minutes_last_3_months_c", "comment": null}, "engagio_engagement_minutes_last_7_days_c": {"type": "FLOAT64", "index": 317, "name": "engagio_engagement_minutes_last_7_days_c", "comment": null}, "engagio_first_engagement_date_c": {"type": "TIMESTAMP", "index": 318, "name": "engagio_first_engagement_date_c", "comment": null}, "engagio_department_c": {"type": "STRING", "index": 319, "name": "engagio_department_c", "comment": null}, "engagio_role_c": {"type": "STRING", "index": 320, "name": "engagio_role_c", "comment": null}, "mql_date_changed_c": {"type": "BOOL", "index": 321, "name": "mql_date_changed_c", "comment": null}, "first_activity_after_mql_changed_c": {"type": "BOOL", "index": 322, "name": "first_activity_after_mql_changed_c", "comment": null}, "birthdate": {"type": "TIMESTAMP", "index": 323, "name": "birthdate", "comment": null}, "legacy_hvr_id_c": {"type": "STRING", "index": 324, "name": "legacy_hvr_id_c", "comment": null}, "has_opted_out_of_fax": {"type": "BOOL", "index": 325, "name": "has_opted_out_of_fax", "comment": null}, "other_latitude": {"type": "FLOAT64", "index": 326, "name": "other_latitude", "comment": null}, "username_c": {"type": "STRING", "index": 327, "name": "username_c", "comment": null}, "assistant_name": {"type": "STRING", "index": 328, "name": "assistant_name", "comment": null}, "created_at_c": {"type": "STRING", "index": 329, "name": "created_at_c", "comment": null}, "partner_contact_deprecate_c": {"type": "BOOL", "index": 330, "name": "partner_contact_deprecate_c", "comment": null}, "other_street": {"type": "STRING", "index": 331, "name": "other_street", "comment": null}, "other_state": {"type": "STRING", "index": 332, "name": "other_state", "comment": null}, "home_phone": {"type": "STRING", "index": 333, "name": "home_phone", "comment": null}, "other_city": {"type": "STRING", "index": 334, "name": "other_city", "comment": null}, "company_c": {"type": "STRING", "index": 335, "name": "company_c", "comment": null}, "opportunity_c": {"type": "STRING", "index": 336, "name": "opportunity_c", "comment": null}, "hvr_update_c": {"type": "BOOL", "index": 337, "name": "hvr_update_c", "comment": null}, "other_phone": {"type": "STRING", "index": 338, "name": "other_phone", "comment": null}, "other_geocode_accuracy": {"type": "STRING", "index": 339, "name": "other_geocode_accuracy", "comment": null}, "other_postal_code": {"type": "STRING", "index": 340, "name": "other_postal_code", "comment": null}, "other_country": {"type": "STRING", "index": 341, "name": "other_country", "comment": null}, "assistant_phone": {"type": "STRING", "index": 342, "name": "assistant_phone", "comment": null}, "jigsaw": {"type": "STRING", "index": 343, "name": "jigsaw", "comment": null}, "avatar_c": {"type": "STRING", "index": 344, "name": "avatar_c", "comment": null}, "other_longitude": {"type": "FLOAT64", "index": 345, "name": "other_longitude", "comment": null}, "lean_data_status_info_c": {"type": "STRING", "index": 346, "name": "lean_data_status_info_c", "comment": null}, "analytics_id_c": {"type": "STRING", "index": 347, "name": "analytics_id_c", "comment": null}, "dnb_primary_address_postal_code_c": {"type": "STRING", "index": 348, "name": "dnb_primary_address_postal_code_c", "comment": null}, "dnb_contact_phone_c": {"type": "STRING", "index": 349, "name": "dnb_contact_phone_c", "comment": null}, "dnb_email_deliverability_score_c": {"type": "FLOAT64", "index": 350, "name": "dnb_email_deliverability_score_c", "comment": null}, "dnb_job_title_c": {"type": "STRING", "index": 351, "name": "dnb_job_title_c", "comment": null}, "dnb_email_c": {"type": "STRING", "index": 352, "name": "dnb_email_c", "comment": null}, "dnb_primary_address_city_c": {"type": "STRING", "index": 353, "name": "dnb_primary_address_city_c", "comment": null}, "dnb_phone_accuracy_score_c": {"type": "FLOAT64", "index": 354, "name": "dnb_phone_accuracy_score_c", "comment": null}, "dnb_primary_address_state_province_c": {"type": "STRING", "index": 355, "name": "dnb_primary_address_state_province_c", "comment": null}, "dnb_primary_address_state_province_abbre_c": {"type": "STRING", "index": 356, "name": "dnb_primary_address_state_province_abbre_c", "comment": null}, "dnb_primary_address_country_region_code_c": {"type": "STRING", "index": 357, "name": "dnb_primary_address_country_region_code_c", "comment": null}, "email_opt_in_double_c": {"type": "BOOL", "index": 358, "name": "email_opt_in_double_c", "comment": null}, "phone_number_catch_all_c": {"type": "STRING", "index": 359, "name": "phone_number_catch_all_c", "comment": null}, "contact_owners_manager_stamped_c": {"type": "STRING", "index": 360, "name": "contact_owners_manager_stamped_c", "comment": null}, "fivetran_account_id_c": {"type": "STRING", "index": 361, "name": "fivetran_account_id_c", "comment": null}, "contacts_domain_exists_c": {"type": "BOOL", "index": 362, "name": "contacts_domain_exists_c", "comment": null}, "utm_id_c": {"type": "STRING", "index": 363, "name": "utm_id_c", "comment": null}, "self_service_routing_c": {"type": "BOOL", "index": 364, "name": "self_service_routing_c", "comment": null}, "no_geo_data_c": {"type": "BOOL", "index": 365, "name": "no_geo_data_c", "comment": null}, "to_be_deleted_salesloft_backfill_c": {"type": "BOOL", "index": 366, "name": "to_be_deleted_salesloft_backfill_c", "comment": null}, "do_not_sync_reason_marketo_c": {"type": "STRING", "index": 367, "name": "do_not_sync_reason_marketo_c", "comment": null}, "linked_to_contract_c": {"type": "BOOL", "index": 368, "name": "linked_to_contract_c", "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.salesforce_source.stg_salesforce__contact_tmp"}, "model.salesforce_source.stg_salesforce__order_tmp": {"metadata": {"type": "view", "schema": "dbt_renee", "name": "stg_salesforce__order_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 2, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "STRING", "index": 3, "name": "account_id", "comment": null}, "activated_by_id": {"type": "STRING", "index": 4, "name": "activated_by_id", "comment": null}, "activated_date": {"type": "TIMESTAMP", "index": 5, "name": "activated_date", "comment": null}, "billing_city": {"type": "STRING", "index": 6, "name": "billing_city", "comment": null}, "billing_country": {"type": "STRING", "index": 7, "name": "billing_country", "comment": null}, "billing_country_code": {"type": "STRING", "index": 8, "name": "billing_country_code", "comment": null}, "billing_geocode_accuracy": {"type": "STRING", "index": 9, "name": "billing_geocode_accuracy", "comment": null}, "billing_latitude": {"type": "FLOAT64", "index": 10, "name": "billing_latitude", "comment": null}, "billing_longitude": {"type": "FLOAT64", "index": 11, "name": "billing_longitude", "comment": null}, "billing_postal_code": {"type": "STRING", "index": 12, "name": "billing_postal_code", "comment": null}, "billing_state": {"type": "STRING", "index": 13, "name": "billing_state", "comment": null}, "billing_state_code": {"type": "STRING", "index": 14, "name": "billing_state_code", "comment": null}, "billing_street": {"type": "STRING", "index": 15, "name": "billing_street", "comment": null}, "company_authorized_by_id": {"type": "STRING", "index": 16, "name": "company_authorized_by_id", "comment": null}, "contract_id": {"type": "STRING", "index": 17, "name": "contract_id", "comment": null}, "created_by_id": {"type": "STRING", "index": 18, "name": "created_by_id", "comment": null}, "created_date": {"type": "TIMESTAMP", "index": 19, "name": "created_date", "comment": null}, "customer_authorized_by_id": {"type": "STRING", "index": 20, "name": "customer_authorized_by_id", "comment": null}, "description": {"type": "STRING", "index": 21, "name": "description", "comment": null}, "effective_date": {"type": "TIMESTAMP", "index": 22, "name": "effective_date", "comment": null}, "end_date": {"type": "TIMESTAMP", "index": 23, "name": "end_date", "comment": null}, "is_deleted": {"type": "BOOL", "index": 24, "name": "is_deleted", "comment": null}, "is_reduction_order": {"type": "BOOL", "index": 25, "name": "is_reduction_order", "comment": null}, "last_modified_by_id": {"type": "STRING", "index": 26, "name": "last_modified_by_id", "comment": null}, "last_modified_date": {"type": "TIMESTAMP", "index": 27, "name": "last_modified_date", "comment": null}, "last_referenced_date": {"type": "TIMESTAMP", "index": 28, "name": "last_referenced_date", "comment": null}, "last_viewed_date": {"type": "TIMESTAMP", "index": 29, "name": "last_viewed_date", "comment": null}, "order_number": {"type": "STRING", "index": 30, "name": "order_number", "comment": null}, "original_order_id": {"type": "STRING", "index": 31, "name": "original_order_id", "comment": null}, "owner_id": {"type": "STRING", "index": 32, "name": "owner_id", "comment": null}, "pricebook_2_id": {"type": "STRING", "index": 33, "name": "pricebook_2_id", "comment": null}, "shipping_city": {"type": "STRING", "index": 34, "name": "shipping_city", "comment": null}, "shipping_country": {"type": "STRING", "index": 35, "name": "shipping_country", "comment": null}, "shipping_country_code": {"type": "STRING", "index": 36, "name": "shipping_country_code", "comment": null}, "shipping_geocode_accuracy": {"type": "STRING", "index": 37, "name": "shipping_geocode_accuracy", "comment": null}, "shipping_latitude": {"type": "FLOAT64", "index": 38, "name": "shipping_latitude", "comment": null}, "shipping_longitude": {"type": "FLOAT64", "index": 39, "name": "shipping_longitude", "comment": null}, "shipping_postal_code": {"type": "STRING", "index": 40, "name": "shipping_postal_code", "comment": null}, "shipping_state": {"type": "STRING", "index": 41, "name": "shipping_state", "comment": null}, "shipping_state_code": {"type": "STRING", "index": 42, "name": "shipping_state_code", "comment": null}, "shipping_street": {"type": "STRING", "index": 43, "name": "shipping_street", "comment": null}, "status": {"type": "STRING", "index": 44, "name": "status", "comment": null}, "status_code": {"type": "STRING", "index": 45, "name": "status_code", "comment": null}, "system_modstamp": {"type": "TIMESTAMP", "index": 46, "name": "system_modstamp", "comment": null}, "total_amount": {"type": "FLOAT64", "index": 47, "name": "total_amount", "comment": null}, "type": {"type": "STRING", "index": 48, "name": "type", "comment": null}, "netsuite_conn_celigo_update_c": {"type": "BOOL", "index": 49, "name": "netsuite_conn_celigo_update_c", "comment": null}, "netsuite_conn_net_suite_id_c": {"type": "STRING", "index": 50, "name": "netsuite_conn_net_suite_id_c", "comment": null}, "netsuite_conn_net_suite_sync_err_c": {"type": "STRING", "index": 51, "name": "netsuite_conn_net_suite_sync_err_c", "comment": null}, "netsuite_conn_pushed_from_net_suite_c": {"type": "BOOL", "index": 52, "name": "netsuite_conn_pushed_from_net_suite_c", "comment": null}, "netsuite_conn_opportunity_c": {"type": "STRING", "index": 53, "name": "netsuite_conn_opportunity_c", "comment": null}, "netsuite_conn_net_suite_order_status_c": {"type": "STRING", "index": 54, "name": "netsuite_conn_net_suite_order_status_c", "comment": null}, "netsuite_conn_sync_in_progress_c": {"type": "BOOL", "index": 55, "name": "netsuite_conn_sync_in_progress_c", "comment": null}, "netsuite_conn_tax_total_c": {"type": "FLOAT64", "index": 56, "name": "netsuite_conn_tax_total_c", "comment": null}, "netsuite_conn_tracking_numbers_c": {"type": "STRING", "index": 57, "name": "netsuite_conn_tracking_numbers_c", "comment": null}, "netsuite_conn_push_to_net_suite_c": {"type": "BOOL", "index": 58, "name": "netsuite_conn_push_to_net_suite_c", "comment": null}, "netsuite_conn_document_id_c": {"type": "STRING", "index": 59, "name": "netsuite_conn_document_id_c", "comment": null}, "netsuite_conn_subtotal_c": {"type": "FLOAT64", "index": 60, "name": "netsuite_conn_subtotal_c", "comment": null}, "netsuite_conn_discount_total_c": {"type": "FLOAT64", "index": 61, "name": "netsuite_conn_discount_total_c", "comment": null}, "netsuite_conn_total_c": {"type": "FLOAT64", "index": 62, "name": "netsuite_conn_total_c", "comment": null}, "netsuite_conn_net_suite_order_date_c": {"type": "TIMESTAMP", "index": 63, "name": "netsuite_conn_net_suite_order_date_c", "comment": null}, "netsuite_conn_ship_date_c": {"type": "TIMESTAMP", "index": 64, "name": "netsuite_conn_ship_date_c", "comment": null}, "netsuite_conn_quote_c": {"type": "STRING", "index": 65, "name": "netsuite_conn_quote_c", "comment": null}, "netsuite_conn_net_suite_order_number_c": {"type": "STRING", "index": 66, "name": "netsuite_conn_net_suite_order_number_c", "comment": null}, "sbqq_contracted_c": {"type": "BOOL", "index": 67, "name": "sbqq_contracted_c", "comment": null}, "sbqq_contracting_method_c": {"type": "STRING", "index": 68, "name": "sbqq_contracting_method_c", "comment": null}, "sbqq_payment_term_c": {"type": "STRING", "index": 69, "name": "sbqq_payment_term_c", "comment": null}, "sbqq_price_calc_status_c": {"type": "STRING", "index": 70, "name": "sbqq_price_calc_status_c", "comment": null}, "sbqq_price_calc_status_message_c": {"type": "STRING", "index": 71, "name": "sbqq_price_calc_status_message_c", "comment": null}, "sbqq_quote_c": {"type": "STRING", "index": 72, "name": "sbqq_quote_c", "comment": null}, "sbqq_renewal_term_c": {"type": "FLOAT64", "index": 73, "name": "sbqq_renewal_term_c", "comment": null}, "sbqq_renewal_uplift_rate_c": {"type": "FLOAT64", "index": 74, "name": "sbqq_renewal_uplift_rate_c", "comment": null}, "ava_sfcpq_ava_tax_message_c": {"type": "STRING", "index": 75, "name": "ava_sfcpq_ava_tax_message_c", "comment": null}, "ava_sfcpq_entity_use_code_c": {"type": "STRING", "index": 76, "name": "ava_sfcpq_entity_use_code_c", "comment": null}, "ava_sfcpq_invoice_message_c": {"type": "STRING", "index": 77, "name": "ava_sfcpq_invoice_message_c", "comment": null}, "ava_sfcpq_is_seller_importer_of_record_c": {"type": "BOOL", "index": 78, "name": "ava_sfcpq_is_seller_importer_of_record_c", "comment": null}, "ava_sfcpq_order_calculate_tax_c": {"type": "BOOL", "index": 79, "name": "ava_sfcpq_order_calculate_tax_c", "comment": null}, "ava_sfcpq_sales_tax_amount_c": {"type": "BIGNUMERIC", "index": 80, "name": "ava_sfcpq_sales_tax_amount_c", "comment": null}, "blng_bill_now_c": {"type": "BOOL", "index": 81, "name": "blng_bill_now_c", "comment": null}, "blng_billing_account_c": {"type": "STRING", "index": 82, "name": "blng_billing_account_c", "comment": null}, "blng_billing_day_of_month_c": {"type": "STRING", "index": 83, "name": "blng_billing_day_of_month_c", "comment": null}, "blng_invoice_batch_c": {"type": "STRING", "index": 84, "name": "blng_invoice_batch_c", "comment": null}, "amendment_type_c": {"type": "STRING", "index": 85, "name": "amendment_type_c", "comment": null}, "credit_summary_c": {"type": "STRING", "index": 86, "name": "credit_summary_c", "comment": null}, "evergreen_c": {"type": "BOOL", "index": 87, "name": "evergreen_c", "comment": null}, "invoicing_type_c": {"type": "STRING", "index": 88, "name": "invoicing_type_c", "comment": null}, "legal_entity_c": {"type": "STRING", "index": 89, "name": "legal_entity_c", "comment": null}, "prepaid_billing_frequency_c": {"type": "STRING", "index": 90, "name": "prepaid_billing_frequency_c", "comment": null}, "prepaid_order_c": {"type": "BOOL", "index": 91, "name": "prepaid_order_c", "comment": null}, "update_subscriptions_only_c": {"type": "BOOL", "index": 92, "name": "update_subscriptions_only_c", "comment": null}, "order_auto_activated_c": {"type": "BOOL", "index": 93, "name": "order_auto_activated_c", "comment": null}, "synced_to_net_suite_c": {"type": "BOOL", "index": 94, "name": "synced_to_net_suite_c", "comment": null}, "purchase_order_number_c": {"type": "STRING", "index": 95, "name": "purchase_order_number_c", "comment": null}, "celigo_sfnsio_discount_total_net_suite_c": {"type": "BIGNUMERIC", "index": 96, "name": "celigo_sfnsio_discount_total_net_suite_c", "comment": null}, "celigo_sfnsio_net_suite_id_c": {"type": "STRING", "index": 97, "name": "celigo_sfnsio_net_suite_id_c", "comment": null}, "celigo_sfnsio_net_suite_order_number_c": {"type": "STRING", "index": 98, "name": "celigo_sfnsio_net_suite_order_number_c", "comment": null}, "celigo_sfnsio_net_suite_order_status_c": {"type": "STRING", "index": 99, "name": "celigo_sfnsio_net_suite_order_status_c", "comment": null}, "celigo_sfnsio_net_suite_record_c": {"type": "STRING", "index": 100, "name": "celigo_sfnsio_net_suite_record_c", "comment": null}, "celigo_sfnsio_ship_date_c": {"type": "TIMESTAMP", "index": 101, "name": "celigo_sfnsio_ship_date_c", "comment": null}, "celigo_sfnsio_skip_export_to_net_suite_c": {"type": "BOOL", "index": 102, "name": "celigo_sfnsio_skip_export_to_net_suite_c", "comment": null}, "celigo_sfnsio_sub_total_net_suite_c": {"type": "BIGNUMERIC", "index": 103, "name": "celigo_sfnsio_sub_total_net_suite_c", "comment": null}, "celigo_sfnsio_tax_total_net_suite_c": {"type": "BIGNUMERIC", "index": 104, "name": "celigo_sfnsio_tax_total_net_suite_c", "comment": null}, "celigo_sfnsio_test_mode_record_c": {"type": "BOOL", "index": 105, "name": "celigo_sfnsio_test_mode_record_c", "comment": null}, "celigo_sfnsio_total_net_suite_c": {"type": "BIGNUMERIC", "index": 106, "name": "celigo_sfnsio_total_net_suite_c", "comment": null}, "amend_with_rollover_spend_type_c": {"type": "BOOL", "index": 107, "name": "amend_with_rollover_spend_type_c", "comment": null}, "customer_spend_type_c": {"type": "STRING", "index": 108, "name": "customer_spend_type_c", "comment": null}, "order_spend_type_c": {"type": "STRING", "index": 109, "name": "order_spend_type_c", "comment": null}, "opportunity_id": {"type": "STRING", "index": 110, "name": "opportunity_id", "comment": null}, "purchase_summary_c": {"type": "STRING", "index": 111, "name": "purchase_summary_c", "comment": null}, "is_hvr_legacy_order_c": {"type": "BOOL", "index": 112, "name": "is_hvr_legacy_order_c", "comment": null}, "ironclad_workflow_c": {"type": "STRING", "index": 113, "name": "ironclad_workflow_c", "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.salesforce_source.stg_salesforce__order_tmp"}, "model.salesforce_source.stg_salesforce__lead": {"metadata": {"type": "table", "schema": "dbt_renee", "name": "stg_salesforce__lead", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "TIMESTAMP", "index": 1, "name": "_fivetran_synced", "comment": null}, "lead_id": {"type": "STRING", "index": 2, "name": "lead_id", "comment": null}, "annual_revenue": {"type": "FLOAT64", "index": 3, "name": "annual_revenue", "comment": null}, "city": {"type": "STRING", "index": 4, "name": "city", "comment": null}, "company": {"type": "STRING", "index": 5, "name": "company", "comment": null}, "converted_account_id": {"type": "STRING", "index": 6, "name": "converted_account_id", "comment": null}, "converted_contact_id": {"type": "STRING", "index": 7, "name": "converted_contact_id", "comment": null}, "converted_date": {"type": "TIMESTAMP", "index": 8, "name": "converted_date", "comment": null}, "converted_opportunity_id": {"type": "STRING", "index": 9, "name": "converted_opportunity_id", "comment": null}, "country": {"type": "STRING", "index": 10, "name": "country", "comment": null}, "country_code": {"type": "STRING", "index": 11, "name": "country_code", "comment": null}, "created_by_id": {"type": "STRING", "index": 12, "name": "created_by_id", "comment": null}, "created_date": {"type": "TIMESTAMP", "index": 13, "name": "created_date", "comment": null}, "description": {"type": "STRING", "index": 14, "name": "description", "comment": null}, "email": {"type": "STRING", "index": 15, "name": "email", "comment": null}, "email_bounced_date": {"type": "TIMESTAMP", "index": 16, "name": "email_bounced_date", "comment": null}, "email_bounced_reason": {"type": "STRING", "index": 17, "name": "email_bounced_reason", "comment": null}, "first_name": {"type": "STRING", "index": 18, "name": "first_name", "comment": null}, "geocode_accuracy": {"type": "STRING", "index": 19, "name": "geocode_accuracy", "comment": null}, "has_opted_out_of_email": {"type": "BOOL", "index": 20, "name": "has_opted_out_of_email", "comment": null}, "individual_id": {"type": "STRING", "index": 21, "name": "individual_id", "comment": null}, "industry": {"type": "STRING", "index": 22, "name": "industry", "comment": null}, "is_converted": {"type": "BOOL", "index": 23, "name": "is_converted", "comment": null}, "is_deleted": {"type": "BOOL", "index": 24, "name": "is_deleted", "comment": null}, "is_unread_by_owner": {"type": "BOOL", "index": 25, "name": "is_unread_by_owner", "comment": null}, "last_activity_date": {"type": "TIMESTAMP", "index": 26, "name": "last_activity_date", "comment": null}, "last_modified_by_id": {"type": "STRING", "index": 27, "name": "last_modified_by_id", "comment": null}, "last_modified_date": {"type": "TIMESTAMP", "index": 28, "name": "last_modified_date", "comment": null}, "last_name": {"type": "STRING", "index": 29, "name": "last_name", "comment": null}, "last_referenced_date": {"type": "TIMESTAMP", "index": 30, "name": "last_referenced_date", "comment": null}, "last_viewed_date": {"type": "TIMESTAMP", "index": 31, "name": "last_viewed_date", "comment": null}, "lead_source": {"type": "STRING", "index": 32, "name": "lead_source", "comment": null}, "master_record_id": {"type": "STRING", "index": 33, "name": "master_record_id", "comment": null}, "mobile_phone": {"type": "STRING", "index": 34, "name": "mobile_phone", "comment": null}, "name": {"type": "STRING", "index": 35, "name": "name", "comment": null}, "number_of_employees": {"type": "INT64", "index": 36, "name": "number_of_employees", "comment": null}, "owner_id": {"type": "STRING", "index": 37, "name": "owner_id", "comment": null}, "phone": {"type": "STRING", "index": 38, "name": "phone", "comment": null}, "postal_code": {"type": "STRING", "index": 39, "name": "postal_code", "comment": null}, "state": {"type": "STRING", "index": 40, "name": "state", "comment": null}, "state_code": {"type": "STRING", "index": 41, "name": "state_code", "comment": null}, "status": {"type": "STRING", "index": 42, "name": "status", "comment": null}, "street": {"type": "STRING", "index": 43, "name": "street", "comment": null}, "title": {"type": "STRING", "index": 44, "name": "title", "comment": null}, "website": {"type": "STRING", "index": 45, "name": "website", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 437923062.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 1222726.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.salesforce_source.stg_salesforce__lead"}, "model.salesforce_source.stg_salesforce__opportunity_line_item": {"metadata": {"type": "table", "schema": "dbt_renee", "name": "stg_salesforce__opportunity_line_item", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "TIMESTAMP", "index": 1, "name": "_fivetran_synced", "comment": null}, "opportunity_line_item_id": {"type": "STRING", "index": 2, "name": "opportunity_line_item_id", "comment": null}, "created_by_id": {"type": "STRING", "index": 3, "name": "created_by_id", "comment": null}, "created_date": {"type": "TIMESTAMP", "index": 4, "name": "created_date", "comment": null}, "description": {"type": "STRING", "index": 5, "name": "description", "comment": null}, "discount": {"type": "FLOAT64", "index": 6, "name": "discount", "comment": null}, "has_quantity_schedule": {"type": "BOOL", "index": 7, "name": "has_quantity_schedule", "comment": null}, "has_revenue_schedule": {"type": "BOOL", "index": 8, "name": "has_revenue_schedule", "comment": null}, "has_schedule": {"type": "BOOL", "index": 9, "name": "has_schedule", "comment": null}, "is_deleted": {"type": "BOOL", "index": 10, "name": "is_deleted", "comment": null}, "last_modified_by_id": {"type": "STRING", "index": 11, "name": "last_modified_by_id", "comment": null}, "last_modified_date": {"type": "TIMESTAMP", "index": 12, "name": "last_modified_date", "comment": null}, "last_referenced_date": {"type": "TIMESTAMP", "index": 13, "name": "last_referenced_date", "comment": null}, "last_viewed_date": {"type": "TIMESTAMP", "index": 14, "name": "last_viewed_date", "comment": null}, "list_price": {"type": "FLOAT64", "index": 15, "name": "list_price", "comment": null}, "name": {"type": "STRING", "index": 16, "name": "name", "comment": null}, "opportunity_id": {"type": "STRING", "index": 17, "name": "opportunity_id", "comment": null}, "pricebook_entry_id": {"type": "STRING", "index": 18, "name": "pricebook_entry_id", "comment": null}, "product_2_id": {"type": "STRING", "index": 19, "name": "product_2_id", "comment": null}, "product_code": {"type": "STRING", "index": 20, "name": "product_code", "comment": null}, "quantity": {"type": "FLOAT64", "index": 21, "name": "quantity", "comment": null}, "service_date": {"type": "TIMESTAMP", "index": 22, "name": "service_date", "comment": null}, "sort_order": {"type": "INT64", "index": 23, "name": "sort_order", "comment": null}, "total_price": {"type": "FLOAT64", "index": 24, "name": "total_price", "comment": null}, "unit_price": {"type": "FLOAT64", "index": 25, "name": "unit_price", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 14094720.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 59846.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.salesforce_source.stg_salesforce__opportunity_line_item"}, "model.salesforce_source.stg_salesforce__event_tmp": {"metadata": {"type": "view", "schema": "dbt_renee", "name": "stg_salesforce__event_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 2, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "STRING", "index": 3, "name": "account_id", "comment": null}, "activity_date": {"type": "TIMESTAMP", "index": 4, "name": "activity_date", "comment": null}, "activity_date_time": {"type": "TIMESTAMP", "index": 5, "name": "activity_date_time", "comment": null}, "created_by_id": {"type": "STRING", "index": 6, "name": "created_by_id", "comment": null}, "created_date": {"type": "TIMESTAMP", "index": 7, "name": "created_date", "comment": null}, "description": {"type": "STRING", "index": 8, "name": "description", "comment": null}, "duration_in_minutes": {"type": "INT64", "index": 9, "name": "duration_in_minutes", "comment": null}, "end_date_time": {"type": "TIMESTAMP", "index": 10, "name": "end_date_time", "comment": null}, "event_subtype": {"type": "STRING", "index": 11, "name": "event_subtype", "comment": null}, "group_event_type": {"type": "STRING", "index": 12, "name": "group_event_type", "comment": null}, "invitee_uuid_c": {"type": "STRING", "index": 13, "name": "invitee_uuid_c", "comment": null}, "is_child": {"type": "BOOL", "index": 14, "name": "is_child", "comment": null}, "is_deleted": {"type": "BOOL", "index": 15, "name": "is_deleted", "comment": null}, "is_group_event": {"type": "BOOL", "index": 16, "name": "is_group_event", "comment": null}, "is_private": {"type": "BOOL", "index": 17, "name": "is_private", "comment": null}, "is_recurrence": {"type": "BOOL", "index": 18, "name": "is_recurrence", "comment": null}, "is_reminder_set": {"type": "BOOL", "index": 19, "name": "is_reminder_set", "comment": null}, "last_modified_by_id": {"type": "STRING", "index": 20, "name": "last_modified_by_id", "comment": null}, "last_modified_date": {"type": "TIMESTAMP", "index": 21, "name": "last_modified_date", "comment": null}, "location": {"type": "STRING", "index": 22, "name": "location", "comment": null}, "no_show_c": {"type": "BOOL", "index": 23, "name": "no_show_c", "comment": null}, "owner_id": {"type": "STRING", "index": 24, "name": "owner_id", "comment": null}, "recurrence_activity_id": {"type": "STRING", "index": 25, "name": "recurrence_activity_id", "comment": null}, "recurrence_day_of_month": {"type": "INT64", "index": 26, "name": "recurrence_day_of_month", "comment": null}, "recurrence_day_of_week_mask": {"type": "INT64", "index": 27, "name": "recurrence_day_of_week_mask", "comment": null}, "recurrence_end_date_only": {"type": "TIMESTAMP", "index": 28, "name": "recurrence_end_date_only", "comment": null}, "recurrence_instance": {"type": "STRING", "index": 29, "name": "recurrence_instance", "comment": null}, "recurrence_interval": {"type": "INT64", "index": 30, "name": "recurrence_interval", "comment": null}, "recurrence_month_of_year": {"type": "STRING", "index": 31, "name": "recurrence_month_of_year", "comment": null}, "recurrence_start_date_time": {"type": "TIMESTAMP", "index": 32, "name": "recurrence_start_date_time", "comment": null}, "recurrence_time_zone_sid_key": {"type": "STRING", "index": 33, "name": "recurrence_time_zone_sid_key", "comment": null}, "recurrence_type": {"type": "STRING", "index": 34, "name": "recurrence_type", "comment": null}, "referral_account_c": {"type": "STRING", "index": 35, "name": "referral_account_c", "comment": null}, "referral_contact_c": {"type": "STRING", "index": 36, "name": "referral_contact_c", "comment": null}, "reminder_date_time": {"type": "TIMESTAMP", "index": 37, "name": "reminder_date_time", "comment": null}, "show_as": {"type": "STRING", "index": 38, "name": "show_as", "comment": null}, "start_date_time": {"type": "TIMESTAMP", "index": 39, "name": "start_date_time", "comment": null}, "subject": {"type": "STRING", "index": 40, "name": "subject", "comment": null}, "system_modstamp": {"type": "TIMESTAMP", "index": 41, "name": "system_modstamp", "comment": null}, "type": {"type": "STRING", "index": 42, "name": "type", "comment": null}, "what_count": {"type": "INT64", "index": 43, "name": "what_count", "comment": null}, "what_id": {"type": "STRING", "index": 44, "name": "what_id", "comment": null}, "who_count": {"type": "INT64", "index": 45, "name": "who_count", "comment": null}, "who_id": {"type": "STRING", "index": 46, "name": "who_id", "comment": null}, "first_meeting_held_c": {"type": "BOOL", "index": 47, "name": "first_meeting_held_c", "comment": null}, "associated_sdr_c": {"type": "STRING", "index": 48, "name": "associated_sdr_c", "comment": null}, "first_meeting_c": {"type": "BOOL", "index": 49, "name": "first_meeting_c", "comment": null}, "call_recording_c": {"type": "STRING", "index": 50, "name": "call_recording_c", "comment": null}, "affectlayer_chorus_call_id_c": {"type": "STRING", "index": 51, "name": "affectlayer_chorus_call_id_c", "comment": null}, "affectlayer_affect_layer_call_id_c": {"type": "STRING", "index": 52, "name": "affectlayer_affect_layer_call_id_c", "comment": null}, "last_rep_activity_date_c": {"type": "TIMESTAMP", "index": 53, "name": "last_rep_activity_date_c", "comment": null}, "lid_url_c": {"type": "STRING", "index": 54, "name": "lid_url_c", "comment": null}, "lid_date_sent_c": {"type": "TIMESTAMP", "index": 55, "name": "lid_date_sent_c", "comment": null}, "sales_loft_step_id_c": {"type": "STRING", "index": 56, "name": "sales_loft_step_id_c", "comment": null}, "sales_loft_step_name_c": {"type": "STRING", "index": 57, "name": "sales_loft_step_name_c", "comment": null}, "sales_loft_step_type_c": {"type": "STRING", "index": 58, "name": "sales_loft_step_type_c", "comment": null}, "sales_loft_email_template_id_c": {"type": "STRING", "index": 59, "name": "sales_loft_email_template_id_c", "comment": null}, "sales_loft_external_identifier_c": {"type": "STRING", "index": 60, "name": "sales_loft_external_identifier_c", "comment": null}, "sales_loft_cadence_id_c": {"type": "STRING", "index": 61, "name": "sales_loft_cadence_id_c", "comment": null}, "sales_loft_clicked_count_c": {"type": "FLOAT64", "index": 62, "name": "sales_loft_clicked_count_c", "comment": null}, "sales_loft_cadence_name_c": {"type": "STRING", "index": 63, "name": "sales_loft_cadence_name_c", "comment": null}, "sales_loft_reply_count_c": {"type": "FLOAT64", "index": 64, "name": "sales_loft_reply_count_c", "comment": null}, "call_disposition_c": {"type": "STRING", "index": 65, "name": "call_disposition_c", "comment": null}, "sales_loft_email_template_title_c": {"type": "STRING", "index": 66, "name": "sales_loft_email_template_title_c", "comment": null}, "sales_loft_step_day_new_c": {"type": "FLOAT64", "index": 67, "name": "sales_loft_step_day_new_c", "comment": null}, "call_disposition_2_c": {"type": "STRING", "index": 68, "name": "call_disposition_2_c", "comment": null}, "sales_loft_viewed_count_c": {"type": "FLOAT64", "index": 69, "name": "sales_loft_viewed_count_c", "comment": null}, "sales_loft_1_sales_loft_step_day_c": {"type": "FLOAT64", "index": 70, "name": "sales_loft_1_sales_loft_step_day_c", "comment": null}, "sales_loft_1_sales_loft_clicked_count_c": {"type": "FLOAT64", "index": 71, "name": "sales_loft_1_sales_loft_clicked_count_c", "comment": null}, "sales_loft_1_sales_loft_view_count_c": {"type": "FLOAT64", "index": 72, "name": "sales_loft_1_sales_loft_view_count_c", "comment": null}, "sales_loft_1_call_disposition_c": {"type": "STRING", "index": 73, "name": "sales_loft_1_call_disposition_c", "comment": null}, "sales_loft_1_sales_loft_replies_count_c": {"type": "FLOAT64", "index": 74, "name": "sales_loft_1_sales_loft_replies_count_c", "comment": null}, "sales_loft_1_sales_loft_cadence_name_c": {"type": "STRING", "index": 75, "name": "sales_loft_1_sales_loft_cadence_name_c", "comment": null}, "sales_loft_1_call_sentiment_c": {"type": "STRING", "index": 76, "name": "sales_loft_1_call_sentiment_c", "comment": null}, "sales_loft_1_sales_loft_email_template_title_c": {"type": "STRING", "index": 77, "name": "sales_loft_1_sales_loft_email_template_title_c", "comment": null}, "is_recurrence_2": {"type": "BOOL", "index": 78, "name": "is_recurrence_2", "comment": null}, "is_recurrence_2_exception": {"type": "BOOL", "index": 79, "name": "is_recurrence_2_exception", "comment": null}, "is_recurrence_2_exclusion": {"type": "BOOL", "index": 80, "name": "is_recurrence_2_exclusion", "comment": null}, "recurrence_2_pattern_start_date": {"type": "TIMESTAMP", "index": 81, "name": "recurrence_2_pattern_start_date", "comment": null}, "recurrence_2_pattern_text": {"type": "STRING", "index": 82, "name": "recurrence_2_pattern_text", "comment": null}, "recurrence_2_pattern_time_zone": {"type": "STRING", "index": 83, "name": "recurrence_2_pattern_time_zone", "comment": null}, "recurrence_2_pattern_version": {"type": "STRING", "index": 84, "name": "recurrence_2_pattern_version", "comment": null}, "co_selling_activity_c": {"type": "STRING", "index": 85, "name": "co_selling_activity_c", "comment": null}, "is_a_co_sell_activity_c": {"type": "BOOL", "index": 86, "name": "is_a_co_sell_activity_c", "comment": null}, "partner_contact_c": {"type": "STRING", "index": 87, "name": "partner_contact_c", "comment": null}, "description_c": {"type": "STRING", "index": 88, "name": "description_c", "comment": null}, "campaign_c": {"type": "STRING", "index": 89, "name": "campaign_c", "comment": null}, "event_name_c": {"type": "STRING", "index": 90, "name": "event_name_c", "comment": null}, "partner_account_c": {"type": "STRING", "index": 91, "name": "partner_account_c", "comment": null}, "topic_c": {"type": "STRING", "index": 92, "name": "topic_c", "comment": null}, "attendance_number_c": {"type": "FLOAT64", "index": 93, "name": "attendance_number_c", "comment": null}, "partner_activity_type_c": {"type": "STRING", "index": 94, "name": "partner_activity_type_c", "comment": null}, "how_did_you_bring_value_or_create_trust_c": {"type": "STRING", "index": 95, "name": "how_did_you_bring_value_or_create_trust_c", "comment": null}, "proof_of_referral_c": {"type": "STRING", "index": 96, "name": "proof_of_referral_c", "comment": null}, "how_did_you_bring_value_or_earn_trust_c": {"type": "STRING", "index": 97, "name": "how_did_you_bring_value_or_earn_trust_c", "comment": null}, "duration_in_minutes_c": {"type": "FLOAT64", "index": 98, "name": "duration_in_minutes_c", "comment": null}, "vidyard_c": {"type": "BOOL", "index": 99, "name": "vidyard_c", "comment": null}, "collections_hold_c": {"type": "BOOL", "index": 100, "name": "collections_hold_c", "comment": null}, "execute_collections_plan_activity_c": {"type": "BOOL", "index": 101, "name": "execute_collections_plan_activity_c", "comment": null}, "expected_payment_date_c": {"type": "TIMESTAMP", "index": 102, "name": "expected_payment_date_c", "comment": null}, "end_date": {"type": "TIMESTAMP", "index": 103, "name": "end_date", "comment": null}, "opportunity_c": {"type": "STRING", "index": 104, "name": "opportunity_c", "comment": null}, "meeting_type_c": {"type": "STRING", "index": 105, "name": "meeting_type_c", "comment": null}, "meeting_name_c": {"type": "STRING", "index": 106, "name": "meeting_name_c", "comment": null}, "bizible_2_bizible_id_c": {"type": "STRING", "index": 107, "name": "bizible_2_bizible_id_c", "comment": null}, "bizible_2_bizible_touchpoint_date_c": {"type": "TIMESTAMP", "index": 108, "name": "bizible_2_bizible_touchpoint_date_c", "comment": null}, "assigned_to_role_c": {"type": "STRING", "index": 109, "name": "assigned_to_role_c", "comment": null}, "assigned_to_name_c": {"type": "STRING", "index": 110, "name": "assigned_to_name_c", "comment": null}, "legacy_hvr_id_c": {"type": "STRING", "index": 111, "name": "legacy_hvr_id_c", "comment": null}, "is_archived": {"type": "BOOL", "index": 112, "name": "is_archived", "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.salesforce_source.stg_salesforce__event_tmp"}, "model.salesforce_source.stg_salesforce__account_tmp": {"metadata": {"type": "view", "schema": "dbt_renee", "name": "stg_salesforce__account_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"bread_winner_total_unallocated_credit_c": {"type": "FLOAT64", "index": 1, "name": "bread_winner_total_unallocated_credit_c", "comment": null}, "owner_id": {"type": "STRING", "index": 2, "name": "owner_id", "comment": null}, "shipping_city": {"type": "STRING", "index": 3, "name": "shipping_city", "comment": null}, "last_modified_date": {"type": "TIMESTAMP", "index": 4, "name": "last_modified_date", "comment": null}, "master_record_id": {"type": "STRING", "index": 5, "name": "master_record_id", "comment": null}, "type": {"type": "STRING", "index": 6, "name": "type", "comment": null}, "zendesk_result_c": {"type": "STRING", "index": 7, "name": "zendesk_result_c", "comment": null}, "last_modified_by_id": {"type": "STRING", "index": 8, "name": "last_modified_by_id", "comment": null}, "system_modstamp": {"type": "TIMESTAMP", "index": 9, "name": "system_modstamp", "comment": null}, "fivetran_group_id_account_3_c": {"type": "STRING", "index": 10, "name": "fivetran_group_id_account_3_c", "comment": null}, "up_region_c": {"type": "STRING", "index": 11, "name": "up_region_c", "comment": null}, "zendesk_zendesk_old_tags_c": {"type": "STRING", "index": 12, "name": "zendesk_zendesk_old_tags_c", "comment": null}, "id": {"type": "STRING", "index": 13, "name": "id", "comment": null}, "photo_url": {"type": "STRING", "index": 14, "name": "photo_url", "comment": null}, "fivetran_group_id_account_1_c": {"type": "STRING", "index": 15, "name": "fivetran_group_id_account_1_c", "comment": null}, "jigsaw_company_id": {"type": "STRING", "index": 16, "name": "jigsaw_company_id", "comment": null}, "shipping_street": {"type": "STRING", "index": 17, "name": "shipping_street", "comment": null}, "last_referenced_date": {"type": "TIMESTAMP", "index": 18, "name": "last_referenced_date", "comment": null}, "up_district_c": {"type": "STRING", "index": 19, "name": "up_district_c", "comment": null}, "zendesk_zendesk_outof_sync_c": {"type": "BOOL", "index": 20, "name": "zendesk_zendesk_outof_sync_c", "comment": null}, "last_activity_date": {"type": "TIMESTAMP", "index": 21, "name": "last_activity_date", "comment": null}, "fivetran_account_name_1_c": {"type": "STRING", "index": 22, "name": "fivetran_account_name_1_c", "comment": null}, "fivetran_account_name_3_c": {"type": "STRING", "index": 23, "name": "fivetran_account_name_3_c", "comment": null}, "billing_street": {"type": "STRING", "index": 24, "name": "billing_street", "comment": null}, "billing_city": {"type": "STRING", "index": 25, "name": "billing_city", "comment": null}, "shipping_longitude": {"type": "FLOAT64", "index": 26, "name": "shipping_longitude", "comment": null}, "bi_tool_c": {"type": "STRING", "index": 27, "name": "bi_tool_c", "comment": null}, "bread_winner_total_amount_due_c": {"type": "FLOAT64", "index": 28, "name": "bread_winner_total_amount_due_c", "comment": null}, "phone": {"type": "STRING", "index": 29, "name": "phone", "comment": null}, "parent_id": {"type": "STRING", "index": 30, "name": "parent_id", "comment": null}, "name": {"type": "STRING", "index": 31, "name": "name", "comment": null}, "created_by_id": {"type": "STRING", "index": 32, "name": "created_by_id", "comment": null}, "billing_state_code": {"type": "STRING", "index": 33, "name": "billing_state_code", "comment": null}, "shipping_country": {"type": "STRING", "index": 34, "name": "shipping_country", "comment": null}, "shipping_postal_code": {"type": "STRING", "index": 35, "name": "shipping_postal_code", "comment": null}, "shipping_state_code": {"type": "STRING", "index": 36, "name": "shipping_state_code", "comment": null}, "shipping_state": {"type": "STRING", "index": 37, "name": "shipping_state", "comment": null}, "description": {"type": "STRING", "index": 38, "name": "description", "comment": null}, "cbit_clearbit_c": {"type": "STRING", "index": 39, "name": "cbit_clearbit_c", "comment": null}, "contract_renewal_date_c": {"type": "TIMESTAMP", "index": 40, "name": "contract_renewal_date_c", "comment": null}, "industry": {"type": "STRING", "index": 41, "name": "industry", "comment": null}, "bread_winner_total_amount_credit_c": {"type": "FLOAT64", "index": 42, "name": "bread_winner_total_amount_credit_c", "comment": null}, "zendesk_zendesk_organization_id_c": {"type": "STRING", "index": 43, "name": "zendesk_zendesk_organization_id_c", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 44, "name": "_fivetran_synced", "comment": null}, "billing_postal_code": {"type": "STRING", "index": 45, "name": "billing_postal_code", "comment": null}, "last_viewed_date": {"type": "TIMESTAMP", "index": 46, "name": "last_viewed_date", "comment": null}, "is_deleted": {"type": "BOOL", "index": 47, "name": "is_deleted", "comment": null}, "billing_state": {"type": "STRING", "index": 48, "name": "billing_state", "comment": null}, "bread_winner_total_amount_overdue_c": {"type": "FLOAT64", "index": 49, "name": "bread_winner_total_amount_overdue_c", "comment": null}, "fivetran_group_id_account_2_c": {"type": "STRING", "index": 50, "name": "fivetran_group_id_account_2_c", "comment": null}, "billing_latitude": {"type": "FLOAT64", "index": 51, "name": "billing_latitude", "comment": null}, "shipping_country_code": {"type": "STRING", "index": 52, "name": "shipping_country_code", "comment": null}, "bread_winner_total_amount_invoiced_c": {"type": "FLOAT64", "index": 53, "name": "bread_winner_total_amount_invoiced_c", "comment": null}, "website": {"type": "STRING", "index": 54, "name": "website", "comment": null}, "shipping_geocode_accuracy": {"type": "STRING", "index": 55, "name": "shipping_geocode_accuracy", "comment": null}, "billing_geocode_accuracy": {"type": "STRING", "index": 56, "name": "billing_geocode_accuracy", "comment": null}, "integrations_c": {"type": "STRING", "index": 57, "name": "integrations_c", "comment": null}, "billing_country": {"type": "STRING", "index": 58, "name": "billing_country", "comment": null}, "payment_terms_c": {"type": "STRING", "index": 59, "name": "payment_terms_c", "comment": null}, "zendesk_zendesk_organization_c": {"type": "STRING", "index": 60, "name": "zendesk_zendesk_organization_c", "comment": null}, "fivetran_account_name_2_c": {"type": "STRING", "index": 61, "name": "fivetran_account_name_2_c", "comment": null}, "billing_longitude": {"type": "FLOAT64", "index": 62, "name": "billing_longitude", "comment": null}, "bread_winner_total_draft_amount_c": {"type": "FLOAT64", "index": 63, "name": "bread_winner_total_draft_amount_c", "comment": null}, "lead_source_c": {"type": "STRING", "index": 64, "name": "lead_source_c", "comment": null}, "number_of_employees": {"type": "INT64", "index": 65, "name": "number_of_employees", "comment": null}, "up_territory_c": {"type": "STRING", "index": 66, "name": "up_territory_c", "comment": null}, "billing_country_code": {"type": "STRING", "index": 67, "name": "billing_country_code", "comment": null}, "shipping_latitude": {"type": "FLOAT64", "index": 68, "name": "shipping_latitude", "comment": null}, "created_date": {"type": "TIMESTAMP", "index": 69, "name": "created_date", "comment": null}, "cbit_clearbit_ready_c": {"type": "BOOL", "index": 70, "name": "cbit_clearbit_ready_c", "comment": null}, "bread_winner_total_amount_paid_c": {"type": "FLOAT64", "index": 71, "name": "bread_winner_total_amount_paid_c", "comment": null}, "account_level_c": {"type": "STRING", "index": 72, "name": "account_level_c", "comment": null}, "all_connectors_c": {"type": "STRING", "index": 73, "name": "all_connectors_c", "comment": null}, "all_data_warehouses_c": {"type": "STRING", "index": 74, "name": "all_data_warehouses_c", "comment": null}, "bi_tools_c": {"type": "STRING", "index": 75, "name": "bi_tools_c", "comment": null}, "account_all_data_warehouses_c": {"type": "STRING", "index": 76, "name": "account_all_data_warehouses_c", "comment": null}, "account_all_products_c": {"type": "STRING", "index": 77, "name": "account_all_products_c", "comment": null}, "account_bi_tools_c": {"type": "STRING", "index": 78, "name": "account_bi_tools_c", "comment": null}, "msa_effective_date_c": {"type": "TIMESTAMP", "index": 79, "name": "msa_effective_date_c", "comment": null}, "auto_renewal_c": {"type": "BOOL", "index": 80, "name": "auto_renewal_c", "comment": null}, "billing_frequency_c": {"type": "STRING", "index": 81, "name": "billing_frequency_c", "comment": null}, "sla_c": {"type": "BOOL", "index": 82, "name": "sla_c", "comment": null}, "nda_c": {"type": "STRING", "index": 83, "name": "nda_c", "comment": null}, "referral_account_c": {"type": "STRING", "index": 84, "name": "referral_account_c", "comment": null}, "referral_contact_c": {"type": "STRING", "index": 85, "name": "referral_contact_c", "comment": null}, "current_subscription_contracts_value_c": {"type": "FLOAT64", "index": 86, "name": "current_subscription_contracts_value_c", "comment": null}, "billing_contact_first_name_c": {"type": "STRING", "index": 87, "name": "billing_contact_first_name_c", "comment": null}, "billing_contact_last_name_c": {"type": "STRING", "index": 88, "name": "billing_contact_last_name_c", "comment": null}, "billing_email_c": {"type": "STRING", "index": 89, "name": "billing_email_c", "comment": null}, "bill_com_customer_id_c": {"type": "STRING", "index": 90, "name": "bill_com_customer_id_c", "comment": null}, "billing_frequency_del_c": {"type": "STRING", "index": 91, "name": "billing_frequency_del_c", "comment": null}, "primary_contact_c": {"type": "STRING", "index": 92, "name": "primary_contact_c", "comment": null}, "stripe_customer_id_c": {"type": "STRING", "index": 93, "name": "stripe_customer_id_c", "comment": null}, "current_monthly_subscription_end_date_c": {"type": "TIMESTAMP", "index": 94, "name": "current_monthly_subscription_end_date_c", "comment": null}, "monthly_customer_no_contract_c": {"type": "BOOL", "index": 95, "name": "monthly_customer_no_contract_c", "comment": null}, "marketing_approval_c": {"type": "STRING", "index": 96, "name": "marketing_approval_c", "comment": null}, "fivetran_account_id_c": {"type": "STRING", "index": 97, "name": "fivetran_account_id_c", "comment": null}, "fivetran_account_status_c": {"type": "STRING", "index": 98, "name": "fivetran_account_status_c", "comment": null}, "cbit_created_by_clearbit_c": {"type": "BOOL", "index": 99, "name": "cbit_created_by_clearbit_c", "comment": null}, "fivetran_account_name_c": {"type": "STRING", "index": 100, "name": "fivetran_account_name_c", "comment": null}, "mobile_phone_c": {"type": "STRING", "index": 101, "name": "mobile_phone_c", "comment": null}, "signup_page_c": {"type": "STRING", "index": 102, "name": "signup_page_c", "comment": null}, "account_source": {"type": "STRING", "index": 103, "name": "account_source", "comment": null}, "fivetran_account_signup_page_c": {"type": "STRING", "index": 104, "name": "fivetran_account_signup_page_c", "comment": null}, "fivetran_referral_id_c": {"type": "STRING", "index": 105, "name": "fivetran_referral_id_c", "comment": null}, "record_type_id": {"type": "STRING", "index": 106, "name": "record_type_id", "comment": null}, "company_type_c": {"type": "STRING", "index": 107, "name": "company_type_c", "comment": null}, "partner_type_c": {"type": "STRING", "index": 108, "name": "partner_type_c", "comment": null}, "ez_button_signup_page_c": {"type": "STRING", "index": 109, "name": "ez_button_signup_page_c", "comment": null}, "partner_ez_button_id_c": {"type": "STRING", "index": 110, "name": "partner_ez_button_id_c", "comment": null}, "fivetran_account_stage_c": {"type": "STRING", "index": 111, "name": "fivetran_account_stage_c", "comment": null}, "trial_end_date_c": {"type": "TIMESTAMP", "index": 112, "name": "trial_end_date_c", "comment": null}, "handwrytten_numberof_locations_c": {"type": "FLOAT64", "index": 113, "name": "handwrytten_numberof_locations_c", "comment": null}, "account_number": {"type": "STRING", "index": 114, "name": "account_number", "comment": null}, "site": {"type": "STRING", "index": 115, "name": "site", "comment": null}, "ticker_symbol": {"type": "STRING", "index": 116, "name": "ticker_symbol", "comment": null}, "ownership": {"type": "STRING", "index": 117, "name": "ownership", "comment": null}, "rating": {"type": "STRING", "index": 118, "name": "rating", "comment": null}, "jigsaw": {"type": "STRING", "index": 119, "name": "jigsaw", "comment": null}, "sic": {"type": "STRING", "index": 120, "name": "sic", "comment": null}, "fax": {"type": "STRING", "index": 121, "name": "fax", "comment": null}, "sic_desc": {"type": "STRING", "index": 122, "name": "sic_desc", "comment": null}, "annual_revenue": {"type": "FLOAT64", "index": 123, "name": "annual_revenue", "comment": null}, "analytics_id_c": {"type": "STRING", "index": 124, "name": "analytics_id_c", "comment": null}, "competitor_c": {"type": "BOOL", "index": 125, "name": "competitor_c", "comment": null}, "region_c": {"type": "STRING", "index": 126, "name": "region_c", "comment": null}, "exclusive_ownership_c": {"type": "BOOL", "index": 127, "name": "exclusive_ownership_c", "comment": null}, "bt_stripe_slaexpiration_date_c": {"type": "TIMESTAMP", "index": 128, "name": "bt_stripe_slaexpiration_date_c", "comment": null}, "bt_stripe_numberof_locations_c": {"type": "FLOAT64", "index": 129, "name": "bt_stripe_numberof_locations_c", "comment": null}, "bt_stripe_slaserial_number_c": {"type": "STRING", "index": 130, "name": "bt_stripe_slaserial_number_c", "comment": null}, "bt_stripe_sla_c": {"type": "STRING", "index": 131, "name": "bt_stripe_sla_c", "comment": null}, "bt_stripe_customer_priority_c": {"type": "STRING", "index": 132, "name": "bt_stripe_customer_priority_c", "comment": null}, "bt_stripe_active_c": {"type": "STRING", "index": 133, "name": "bt_stripe_active_c", "comment": null}, "bt_stripe_upsell_opportunity_c": {"type": "STRING", "index": 134, "name": "bt_stripe_upsell_opportunity_c", "comment": null}, "last_rep_activity_date_c": {"type": "TIMESTAMP", "index": 135, "name": "last_rep_activity_date_c", "comment": null}, "lean_data_reporting_total_marketing_touches_c": {"type": "FLOAT64", "index": 136, "name": "lean_data_reporting_total_marketing_touches_c", "comment": null}, "lean_data_reporting_total_leads_and_contacts_c": {"type": "FLOAT64", "index": 137, "name": "lean_data_reporting_total_leads_and_contacts_c", "comment": null}, "lean_data_reporting_has_opportunity_c": {"type": "BOOL", "index": 138, "name": "lean_data_reporting_has_opportunity_c", "comment": null}, "lean_data_search_c": {"type": "STRING", "index": 139, "name": "lean_data_search_c", "comment": null}, "lean_data_reporting_last_marketing_touch_date_c": {"type": "TIMESTAMP", "index": 140, "name": "lean_data_reporting_last_marketing_touch_date_c", "comment": null}, "lean_data_reporting_customer_c": {"type": "BOOL", "index": 141, "name": "lean_data_reporting_customer_c", "comment": null}, "lean_data_routing_action_c": {"type": "STRING", "index": 142, "name": "lean_data_routing_action_c", "comment": null}, "lean_data_reporting_total_sales_touches_c": {"type": "FLOAT64", "index": 143, "name": "lean_data_reporting_total_sales_touches_c", "comment": null}, "lean_data_reporting_recent_marketing_touches_c": {"type": "FLOAT64", "index": 144, "name": "lean_data_reporting_recent_marketing_touches_c", "comment": null}, "lean_data_reporting_target_account_c": {"type": "BOOL", "index": 145, "name": "lean_data_reporting_target_account_c", "comment": null}, "lean_data_ld_email_domains_c": {"type": "STRING", "index": 146, "name": "lean_data_ld_email_domains_c", "comment": null}, "lean_data_reporting_last_sales_touch_date_c": {"type": "TIMESTAMP", "index": 147, "name": "lean_data_reporting_last_sales_touch_date_c", "comment": null}, "fivetran_trial_start_date_c": {"type": "TIMESTAMP", "index": 148, "name": "fivetran_trial_start_date_c", "comment": null}, "fivetran_account_created_date_c": {"type": "TIMESTAMP", "index": 149, "name": "fivetran_account_created_date_c", "comment": null}, "partner_owner_c": {"type": "STRING", "index": 150, "name": "partner_owner_c", "comment": null}, "unqualified_reason_c": {"type": "STRING", "index": 151, "name": "unqualified_reason_c", "comment": null}, "allbound_id_c": {"type": "STRING", "index": 152, "name": "allbound_id_c", "comment": null}, "allbound_partner_permissions_c": {"type": "STRING", "index": 153, "name": "allbound_partner_permissions_c", "comment": null}, "allbound_status_c": {"type": "STRING", "index": 154, "name": "allbound_status_c", "comment": null}, "netsuite_conn_sync_in_progress_c": {"type": "BOOL", "index": 155, "name": "netsuite_conn_sync_in_progress_c", "comment": null}, "netsuite_conn_celigo_update_c": {"type": "BOOL", "index": 156, "name": "netsuite_conn_celigo_update_c", "comment": null}, "netsuite_conn_account_balance_c": {"type": "FLOAT64", "index": 157, "name": "netsuite_conn_account_balance_c", "comment": null}, "netsuite_conn_net_suite_id_c": {"type": "STRING", "index": 158, "name": "netsuite_conn_net_suite_id_c", "comment": null}, "netsuite_conn_net_suite_sync_err_c": {"type": "STRING", "index": 159, "name": "netsuite_conn_net_suite_sync_err_c", "comment": null}, "netsuite_conn_account_overdue_balance_c": {"type": "FLOAT64", "index": 160, "name": "netsuite_conn_account_overdue_balance_c", "comment": null}, "netsuite_conn_push_to_net_suite_c": {"type": "BOOL", "index": 161, "name": "netsuite_conn_push_to_net_suite_c", "comment": null}, "netsuite_conn_credit_limit_c": {"type": "FLOAT64", "index": 162, "name": "netsuite_conn_credit_limit_c", "comment": null}, "netsuite_conn_days_overdue_c": {"type": "FLOAT64", "index": 163, "name": "netsuite_conn_days_overdue_c", "comment": null}, "netsuite_conn_channel_tier_c": {"type": "STRING", "index": 164, "name": "netsuite_conn_channel_tier_c", "comment": null}, "netsuite_conn_credit_hold_c": {"type": "STRING", "index": 165, "name": "netsuite_conn_credit_hold_c", "comment": null}, "netsuite_conn_pushed_from_opportunity_c": {"type": "BOOL", "index": 166, "name": "netsuite_conn_pushed_from_opportunity_c", "comment": null}, "netsuite_conn_unbilled_orders_c": {"type": "FLOAT64", "index": 167, "name": "netsuite_conn_unbilled_orders_c", "comment": null}, "lid_linked_in_company_id_c": {"type": "STRING", "index": 168, "name": "lid_linked_in_company_id_c", "comment": null}, "account_manager_c": {"type": "STRING", "index": 169, "name": "account_manager_c", "comment": null}, "associated_account_exec_c": {"type": "STRING", "index": 170, "name": "associated_account_exec_c", "comment": null}, "email_domain_c": {"type": "STRING", "index": 171, "name": "email_domain_c", "comment": null}, "fivetran_industry_sub_category_c": {"type": "STRING", "index": 172, "name": "fivetran_industry_sub_category_c", "comment": null}, "fivetran_industry_category_c": {"type": "STRING", "index": 173, "name": "fivetran_industry_category_c", "comment": null}, "sales_engineer_c": {"type": "STRING", "index": 174, "name": "sales_engineer_c", "comment": null}, "account_signed_msa_c": {"type": "BOOL", "index": 175, "name": "account_signed_msa_c", "comment": null}, "sbqq_asset_quantities_combined_c": {"type": "BOOL", "index": 176, "name": "sbqq_asset_quantities_combined_c", "comment": null}, "sbqq_co_termed_contracts_combined_c": {"type": "BOOL", "index": 177, "name": "sbqq_co_termed_contracts_combined_c", "comment": null}, "sbqq_co_termination_event_c": {"type": "STRING", "index": 178, "name": "sbqq_co_termination_event_c", "comment": null}, "sbqq_contract_co_termination_c": {"type": "STRING", "index": 179, "name": "sbqq_contract_co_termination_c", "comment": null}, "sbqq_default_opportunity_c": {"type": "STRING", "index": 180, "name": "sbqq_default_opportunity_c", "comment": null}, "sbqq_ignore_parent_contracted_prices_c": {"type": "BOOL", "index": 181, "name": "sbqq_ignore_parent_contracted_prices_c", "comment": null}, "sbqq_preserve_bundle_c": {"type": "BOOL", "index": 182, "name": "sbqq_preserve_bundle_c", "comment": null}, "sbqq_price_hold_end_c": {"type": "TIMESTAMP", "index": 183, "name": "sbqq_price_hold_end_c", "comment": null}, "sbqq_renewal_model_c": {"type": "STRING", "index": 184, "name": "sbqq_renewal_model_c", "comment": null}, "sbqq_renewal_pricing_method_c": {"type": "STRING", "index": 185, "name": "sbqq_renewal_pricing_method_c", "comment": null}, "sbqq_tax_exempt_c": {"type": "STRING", "index": 186, "name": "sbqq_tax_exempt_c", "comment": null}, "funnel_stage_c": {"type": "STRING", "index": 187, "name": "funnel_stage_c", "comment": null}, "funnel_type_c": {"type": "STRING", "index": 188, "name": "funnel_type_c", "comment": null}, "platform_level_c": {"type": "STRING", "index": 189, "name": "platform_level_c", "comment": null}, "subscription_value_c": {"type": "BIGNUMERIC", "index": 190, "name": "subscription_value_c", "comment": null}, "es_app_esalexa_rank_c": {"type": "FLOAT64", "index": 191, "name": "es_app_esalexa_rank_c", "comment": null}, "es_app_esaudience_names_c": {"type": "STRING", "index": 192, "name": "es_app_esaudience_names_c", "comment": null}, "es_app_escity_c": {"type": "STRING", "index": 193, "name": "es_app_escity_c", "comment": null}, "es_app_escompany_phone_c": {"type": "STRING", "index": 194, "name": "es_app_escompany_phone_c", "comment": null}, "es_app_escountry_c": {"type": "STRING", "index": 195, "name": "es_app_escountry_c", "comment": null}, "es_app_escreated_timestamp_c": {"type": "TIMESTAMP", "index": 196, "name": "es_app_escreated_timestamp_c", "comment": null}, "es_app_esecid_c": {"type": "FLOAT64", "index": 197, "name": "es_app_esecid_c", "comment": null}, "es_app_esemployees_c": {"type": "STRING", "index": 198, "name": "es_app_esemployees_c", "comment": null}, "es_app_esenriched_c": {"type": "BOOL", "index": 199, "name": "es_app_esenriched_c", "comment": null}, "es_app_esenriched_timestamp_c": {"type": "TIMESTAMP", "index": 200, "name": "es_app_esenriched_timestamp_c", "comment": null}, "es_app_esfacebook_c": {"type": "STRING", "index": 201, "name": "es_app_esfacebook_c", "comment": null}, "es_app_esindustry_c": {"type": "STRING", "index": 202, "name": "es_app_esindustry_c", "comment": null}, "es_app_esintent_aggregate_score_c": {"type": "FLOAT64", "index": 203, "name": "es_app_esintent_aggregate_score_c", "comment": null}, "es_app_esintent_timestamp_c": {"type": "TIMESTAMP", "index": 204, "name": "es_app_esintent_timestamp_c", "comment": null}, "es_app_esintent_topics_c": {"type": "STRING", "index": 205, "name": "es_app_esintent_topics_c", "comment": null}, "es_app_eskeywords_c": {"type": "STRING", "index": 206, "name": "es_app_eskeywords_c", "comment": null}, "es_app_eslinked_in_c": {"type": "STRING", "index": 207, "name": "es_app_eslinked_in_c", "comment": null}, "es_app_esoverall_fit_score_c": {"type": "FLOAT64", "index": 208, "name": "es_app_esoverall_fit_score_c", "comment": null}, "es_app_esrevenue_c": {"type": "STRING", "index": 209, "name": "es_app_esrevenue_c", "comment": null}, "es_app_essource_c": {"type": "BOOL", "index": 210, "name": "es_app_essource_c", "comment": null}, "es_app_esstate_c": {"type": "STRING", "index": 211, "name": "es_app_esstate_c", "comment": null}, "es_app_esstreet_c": {"type": "STRING", "index": 212, "name": "es_app_esstreet_c", "comment": null}, "es_app_estechnologies_c": {"type": "STRING", "index": 213, "name": "es_app_estechnologies_c", "comment": null}, "es_app_estwitter_c": {"type": "STRING", "index": 214, "name": "es_app_estwitter_c", "comment": null}, "es_app_eszipcode_c": {"type": "STRING", "index": 215, "name": "es_app_eszipcode_c", "comment": null}, "es_general_fit_c": {"type": "FLOAT64", "index": 216, "name": "es_general_fit_c", "comment": null}, "manual_override_country_code_c": {"type": "STRING", "index": 217, "name": "manual_override_country_code_c", "comment": null}, "manual_override_employee_count_c": {"type": "STRING", "index": 218, "name": "manual_override_employee_count_c", "comment": null}, "manual_override_state_c": {"type": "STRING", "index": 219, "name": "manual_override_state_c", "comment": null}, "manual_override_zip_c": {"type": "STRING", "index": 220, "name": "manual_override_zip_c", "comment": null}, "esraw_employee_size_c": {"type": "FLOAT64", "index": 221, "name": "esraw_employee_size_c", "comment": null}, "abm_score_c": {"type": "FLOAT64", "index": 222, "name": "abm_score_c", "comment": null}, "engagement_score_c": {"type": "FLOAT64", "index": 223, "name": "engagement_score_c", "comment": null}, "re_target_date_c": {"type": "TIMESTAMP", "index": 224, "name": "re_target_date_c", "comment": null}, "target_date_c": {"type": "TIMESTAMP", "index": 225, "name": "target_date_c", "comment": null}, "external_id_c": {"type": "STRING", "index": 226, "name": "external_id_c", "comment": null}, "case_study_marketing_use_c": {"type": "STRING", "index": 227, "name": "case_study_marketing_use_c", "comment": null}, "current_fortune_rank_c": {"type": "FLOAT64", "index": 228, "name": "current_fortune_rank_c", "comment": null}, "previouse_fortune_rank_c": {"type": "FLOAT64", "index": 229, "name": "previouse_fortune_rank_c", "comment": null}, "demandbase_country_c": {"type": "STRING", "index": 230, "name": "demandbase_country_c", "comment": null}, "demandbase_number_of_employees_c": {"type": "STRING", "index": 231, "name": "demandbase_number_of_employees_c", "comment": null}, "demandbase_state_c": {"type": "STRING", "index": 232, "name": "demandbase_state_c", "comment": null}, "demandbase_zip_c": {"type": "STRING", "index": 233, "name": "demandbase_zip_c", "comment": null}, "demandbase_general_fit_score_c": {"type": "STRING", "index": 234, "name": "demandbase_general_fit_score_c", "comment": null}, "demandbase_overall_score_c": {"type": "STRING", "index": 235, "name": "demandbase_overall_score_c", "comment": null}, "last_sales_activity_date_time_c": {"type": "TIMESTAMP", "index": 236, "name": "last_sales_activity_date_time_c", "comment": null}, "marketing_process_c": {"type": "STRING", "index": 237, "name": "marketing_process_c", "comment": null}, "automation_tracking_c": {"type": "STRING", "index": 238, "name": "automation_tracking_c", "comment": null}, "country_cc_c": {"type": "STRING", "index": 239, "name": "country_cc_c", "comment": null}, "demandbase_city_c": {"type": "STRING", "index": 240, "name": "demandbase_city_c", "comment": null}, "demandbase_sid_c": {"type": "STRING", "index": 241, "name": "demandbase_sid_c", "comment": null}, "ava_mapper_business_identification_number_c": {"type": "STRING", "index": 242, "name": "ava_mapper_business_identification_number_c", "comment": null}, "ava_mapper_entity_use_code_c": {"type": "STRING", "index": 243, "name": "ava_mapper_entity_use_code_c", "comment": null}, "ava_mapper_exemption_number_c": {"type": "STRING", "index": 244, "name": "ava_mapper_exemption_number_c", "comment": null}, "ava_mapper_is_seller_importer_of_record_c": {"type": "BOOL", "index": 245, "name": "ava_mapper_is_seller_importer_of_record_c", "comment": null}, "roll_out_group_c": {"type": "STRING", "index": 246, "name": "roll_out_group_c", "comment": null}, "is_updated_superset_c": {"type": "BOOL", "index": 247, "name": "is_updated_superset_c", "comment": null}, "assigned_ae_c": {"type": "STRING", "index": 248, "name": "assigned_ae_c", "comment": null}, "assigned_bdr_c": {"type": "STRING", "index": 249, "name": "assigned_bdr_c", "comment": null}, "assigned_se_c": {"type": "STRING", "index": 250, "name": "assigned_se_c", "comment": null}, "rollout_group_override_c": {"type": "STRING", "index": 251, "name": "rollout_group_override_c", "comment": null}, "disctrict_c": {"type": "STRING", "index": 252, "name": "disctrict_c", "comment": null}, "region_terr_c": {"type": "STRING", "index": 253, "name": "region_terr_c", "comment": null}, "territory_c": {"type": "STRING", "index": 254, "name": "territory_c", "comment": null}, "district_c": {"type": "STRING", "index": 255, "name": "district_c", "comment": null}, "territory_country_c": {"type": "STRING", "index": 256, "name": "territory_country_c", "comment": null}, "territory_employee_count_c": {"type": "FLOAT64", "index": 257, "name": "territory_employee_count_c", "comment": null}, "territory_state_c": {"type": "STRING", "index": 258, "name": "territory_state_c", "comment": null}, "territory_zip_c": {"type": "STRING", "index": 259, "name": "territory_zip_c", "comment": null}, "ava_sfcpq_ava_tax_exemption_customer_id_c": {"type": "STRING", "index": 260, "name": "ava_sfcpq_ava_tax_exemption_customer_id_c", "comment": null}, "ava_sfcpq_ava_tax_message_c": {"type": "STRING", "index": 261, "name": "ava_sfcpq_ava_tax_message_c", "comment": null}, "ava_sfcpq_business_identification_number_c": {"type": "STRING", "index": 262, "name": "ava_sfcpq_business_identification_number_c", "comment": null}, "ava_sfcpq_email_c": {"type": "STRING", "index": 263, "name": "ava_sfcpq_email_c", "comment": null}, "ava_sfcpq_exempt_entity_type_c": {"type": "STRING", "index": 264, "name": "ava_sfcpq_exempt_entity_type_c", "comment": null}, "ava_sfcpq_is_seller_importer_of_record_c": {"type": "BOOL", "index": 265, "name": "ava_sfcpq_is_seller_importer_of_record_c", "comment": null}, "ava_sfcpq_tax_exemption_code_c": {"type": "STRING", "index": 266, "name": "ava_sfcpq_tax_exemption_code_c", "comment": null}, "partner_tier_c": {"type": "STRING", "index": 267, "name": "partner_tier_c", "comment": null}, "referral_c": {"type": "STRING", "index": 268, "name": "referral_c", "comment": null}, "source_detail_c": {"type": "STRING", "index": 269, "name": "source_detail_c", "comment": null}, "cloudingo_agent_bar_c": {"type": "STRING", "index": 270, "name": "cloudingo_agent_bar_c", "comment": null}, "cloudingo_agent_bas_c": {"type": "FLOAT64", "index": 271, "name": "cloudingo_agent_bas_c", "comment": null}, "cloudingo_agent_bav_c": {"type": "STRING", "index": 272, "name": "cloudingo_agent_bav_c", "comment": null}, "cloudingo_agent_brdi_c": {"type": "STRING", "index": 273, "name": "cloudingo_agent_brdi_c", "comment": null}, "cloudingo_agent_btz_c": {"type": "STRING", "index": 274, "name": "cloudingo_agent_btz_c", "comment": null}, "cloudingo_agent_sar_c": {"type": "STRING", "index": 275, "name": "cloudingo_agent_sar_c", "comment": null}, "cloudingo_agent_sas_c": {"type": "FLOAT64", "index": 276, "name": "cloudingo_agent_sas_c", "comment": null}, "cloudingo_agent_sav_c": {"type": "STRING", "index": 277, "name": "cloudingo_agent_sav_c", "comment": null}, "cloudingo_agent_srdi_c": {"type": "STRING", "index": 278, "name": "cloudingo_agent_srdi_c", "comment": null}, "cloudingo_agent_stz_c": {"type": "STRING", "index": 279, "name": "cloudingo_agent_stz_c", "comment": null}, "do_not_sync_marketo_c": {"type": "BOOL", "index": 280, "name": "do_not_sync_marketo_c", "comment": null}, "nps_score_c": {"type": "STRING", "index": 281, "name": "nps_score_c", "comment": null}, "marketing_target_account_c": {"type": "BOOL", "index": 282, "name": "marketing_target_account_c", "comment": null}, "fivetran_fit_score_c": {"type": "FLOAT64", "index": 283, "name": "fivetran_fit_score_c", "comment": null}, "automated_communications_suspended_c": {"type": "BOOL", "index": 284, "name": "automated_communications_suspended_c", "comment": null}, "sales_target_account_c": {"type": "BOOL", "index": 285, "name": "sales_target_account_c", "comment": null}, "assigned_am_c": {"type": "STRING", "index": 286, "name": "assigned_am_c", "comment": null}, "account_notes_c": {"type": "STRING", "index": 287, "name": "account_notes_c", "comment": null}, "formula_fields_updated_c": {"type": "BOOL", "index": 288, "name": "formula_fields_updated_c", "comment": null}, "total_credits_bought_c": {"type": "FLOAT64", "index": 289, "name": "total_credits_bought_c", "comment": null}, "end_date_c": {"type": "TIMESTAMP", "index": 290, "name": "end_date_c", "comment": null}, "total_credits_used_c": {"type": "FLOAT64", "index": 291, "name": "total_credits_used_c", "comment": null}, "account_legal_name_c": {"type": "STRING", "index": 292, "name": "account_legal_name_c", "comment": null}, "clearbit_technologies_c": {"type": "STRING", "index": 293, "name": "clearbit_technologies_c", "comment": null}, "clearbit_industry_group_c": {"type": "STRING", "index": 294, "name": "clearbit_industry_group_c", "comment": null}, "employee_range_c": {"type": "STRING", "index": 295, "name": "employee_range_c", "comment": null}, "ft_account_id_s_verified_c": {"type": "BOOL", "index": 296, "name": "ft_account_id_s_verified_c", "comment": null}, "ft_account_verification_needed_c": {"type": "BOOL", "index": 297, "name": "ft_account_verification_needed_c", "comment": null}, "project_based_routing_c": {"type": "BOOL", "index": 298, "name": "project_based_routing_c", "comment": null}, "last_activity_logged_by_c": {"type": "STRING", "index": 299, "name": "last_activity_logged_by_c", "comment": null}, "clawback_trigger_email_alert_c": {"type": "BOOL", "index": 300, "name": "clawback_trigger_email_alert_c", "comment": null}, "start_date_c": {"type": "TIMESTAMP", "index": 301, "name": "start_date_c", "comment": null}, "is_emea_event_routing_c": {"type": "BOOL", "index": 302, "name": "is_emea_event_routing_c", "comment": null}, "csi_code_c": {"type": "FLOAT64", "index": 303, "name": "csi_code_c", "comment": null}, "csi_description_c": {"type": "STRING", "index": 304, "name": "csi_description_c", "comment": null}, "clearbit_alexa_rank_global_c": {"type": "FLOAT64", "index": 305, "name": "clearbit_alexa_rank_global_c", "comment": null}, "clearbit_alexa_rank_us_c": {"type": "FLOAT64", "index": 306, "name": "clearbit_alexa_rank_us_c", "comment": null}, "clearbit_company_type_c": {"type": "STRING", "index": 307, "name": "clearbit_company_type_c", "comment": null}, "clearbit_founded_year_c": {"type": "STRING", "index": 308, "name": "clearbit_founded_year_c", "comment": null}, "clearbit_indexed_at_c": {"type": "TIMESTAMP", "index": 309, "name": "clearbit_indexed_at_c", "comment": null}, "clearbit_industry_c": {"type": "STRING", "index": 310, "name": "clearbit_industry_c", "comment": null}, "clearbit_raised_c": {"type": "BIGNUMERIC", "index": 311, "name": "clearbit_raised_c", "comment": null}, "clearbit_tech_category_c": {"type": "STRING", "index": 312, "name": "clearbit_tech_category_c", "comment": null}, "clearbit_sector_c": {"type": "STRING", "index": 313, "name": "clearbit_sector_c", "comment": null}, "estimated_annual_revenue_c": {"type": "STRING", "index": 314, "name": "estimated_annual_revenue_c", "comment": null}, "clearbit_tags_c": {"type": "STRING", "index": 315, "name": "clearbit_tags_c", "comment": null}, "territory_inbound_c": {"type": "STRING", "index": 316, "name": "territory_inbound_c", "comment": null}, "lead_iq_country_c": {"type": "STRING", "index": 317, "name": "lead_iq_country_c", "comment": null}, "lead_iq_employee_count_c": {"type": "STRING", "index": 318, "name": "lead_iq_employee_count_c", "comment": null}, "lead_iq_employee_range_c": {"type": "STRING", "index": 319, "name": "lead_iq_employee_range_c", "comment": null}, "lead_iq_state_c": {"type": "STRING", "index": 320, "name": "lead_iq_state_c", "comment": null}, "lead_iq_zip_code_c": {"type": "STRING", "index": 321, "name": "lead_iq_zip_code_c", "comment": null}, "zoominfo_country_c": {"type": "STRING", "index": 322, "name": "zoominfo_country_c", "comment": null}, "zoominfo_employee_count_c": {"type": "STRING", "index": 323, "name": "zoominfo_employee_count_c", "comment": null}, "zoominfo_state_c": {"type": "STRING", "index": 324, "name": "zoominfo_state_c", "comment": null}, "zoominfo_technologies_c": {"type": "STRING", "index": 325, "name": "zoominfo_technologies_c", "comment": null}, "zoominfo_zip_code_c": {"type": "STRING", "index": 326, "name": "zoominfo_zip_code_c", "comment": null}, "company_country_c": {"type": "STRING", "index": 327, "name": "company_country_c", "comment": null}, "company_postal_code_c": {"type": "STRING", "index": 328, "name": "company_postal_code_c", "comment": null}, "company_province_c": {"type": "STRING", "index": 329, "name": "company_province_c", "comment": null}, "has_fivetran_connector_c": {"type": "BOOL", "index": 330, "name": "has_fivetran_connector_c", "comment": null}, "user_activity_logged_by_c": {"type": "STRING", "index": 331, "name": "user_activity_logged_by_c", "comment": null}, "segment_c": {"type": "STRING", "index": 332, "name": "segment_c", "comment": null}, "datawarehouse_used_c": {"type": "STRING", "index": 333, "name": "datawarehouse_used_c", "comment": null}, "bdr_priority_c": {"type": "STRING", "index": 334, "name": "bdr_priority_c", "comment": null}, "csi_description_del_c": {"type": "STRING", "index": 335, "name": "csi_description_del_c", "comment": null}, "last_bdr_activity_owner_c": {"type": "STRING", "index": 336, "name": "last_bdr_activity_owner_c", "comment": null}, "last_manual_bdr_activity_date_c": {"type": "TIMESTAMP", "index": 337, "name": "last_manual_bdr_activity_date_c", "comment": null}, "marketing_behavior_score_c": {"type": "FLOAT64", "index": 338, "name": "marketing_behavior_score_c", "comment": null}, "recommended_connector_c": {"type": "STRING", "index": 339, "name": "recommended_connector_c", "comment": null}, "dbt_package_run_c": {"type": "STRING", "index": 340, "name": "dbt_package_run_c", "comment": null}, "user_gems_has_a_user_gem_c": {"type": "BOOL", "index": 341, "name": "user_gems_has_a_user_gem_c", "comment": null}, "user_gems_user_gems_id_c": {"type": "STRING", "index": 342, "name": "user_gems_user_gems_id_c", "comment": null}, "clearbit_parent_company_domain_c": {"type": "STRING", "index": 343, "name": "clearbit_parent_company_domain_c", "comment": null}, "clearbit_ultimate_parent_domain_c": {"type": "STRING", "index": 344, "name": "clearbit_ultimate_parent_domain_c", "comment": null}, "dozisf_zoom_info_first_updated_c": {"type": "TIMESTAMP", "index": 345, "name": "dozisf_zoom_info_first_updated_c", "comment": null}, "dozisf_zoom_info_id_c": {"type": "STRING", "index": 346, "name": "dozisf_zoom_info_id_c", "comment": null}, "dozisf_zoom_info_last_updated_c": {"type": "TIMESTAMP", "index": 347, "name": "dozisf_zoom_info_last_updated_c", "comment": null}, "clearbit_billing_city_c": {"type": "STRING", "index": 348, "name": "clearbit_billing_city_c", "comment": null}, "clearbit_billing_country_c": {"type": "STRING", "index": 349, "name": "clearbit_billing_country_c", "comment": null}, "clearbit_billing_state_province_c": {"type": "STRING", "index": 350, "name": "clearbit_billing_state_province_c", "comment": null}, "clearbit_billing_street_c": {"type": "STRING", "index": 351, "name": "clearbit_billing_street_c", "comment": null}, "clearbit_billing_zip_postal_code_c": {"type": "STRING", "index": 352, "name": "clearbit_billing_zip_postal_code_c", "comment": null}, "date_time_formula_fields_changed_c": {"type": "TIMESTAMP", "index": 353, "name": "date_time_formula_fields_changed_c", "comment": null}, "region_deprecate_c": {"type": "STRING", "index": 354, "name": "region_deprecate_c", "comment": null}, "am_health_score_c": {"type": "FLOAT64", "index": 355, "name": "am_health_score_c", "comment": null}, "business_score_c": {"type": "FLOAT64", "index": 356, "name": "business_score_c", "comment": null}, "champion_relationship_c": {"type": "STRING", "index": 357, "name": "champion_relationship_c", "comment": null}, "customer_health_engagement_score_c": {"type": "FLOAT64", "index": 358, "name": "customer_health_engagement_score_c", "comment": null}, "expansion_score_c": {"type": "FLOAT64", "index": 359, "name": "expansion_score_c", "comment": null}, "friction_score_c": {"type": "FLOAT64", "index": 360, "name": "friction_score_c", "comment": null}, "health_score_c": {"type": "FLOAT64", "index": 361, "name": "health_score_c", "comment": null}, "usage_score_c": {"type": "FLOAT64", "index": 362, "name": "usage_score_c", "comment": null}, "promoter_score_c": {"type": "FLOAT64", "index": 363, "name": "promoter_score_c", "comment": null}, "pbf_account_c": {"type": "BOOL", "index": 364, "name": "pbf_account_c", "comment": null}, "clarus_date_c": {"type": "TIMESTAMP", "index": 365, "name": "clarus_date_c", "comment": null}, "clarus_editor_c": {"type": "STRING", "index": 366, "name": "clarus_editor_c", "comment": null}, "clarus_project_c": {"type": "STRING", "index": 367, "name": "clarus_project_c", "comment": null}, "override_account_type_c": {"type": "BOOL", "index": 368, "name": "override_account_type_c", "comment": null}, "clarus_notes_c": {"type": "STRING", "index": 369, "name": "clarus_notes_c", "comment": null}, "clarus_status_c": {"type": "STRING", "index": 370, "name": "clarus_status_c", "comment": null}, "fivetran_connectors_used_c": {"type": "STRING", "index": 371, "name": "fivetran_connectors_used_c", "comment": null}, "fivetran_data_warehouses_c": {"type": "STRING", "index": 372, "name": "fivetran_data_warehouses_c", "comment": null}, "fivetran_first_sync_date_c": {"type": "TIMESTAMP", "index": 373, "name": "fivetran_first_sync_date_c", "comment": null}, "fivetran_last_sync_date_c": {"type": "TIMESTAMP", "index": 374, "name": "fivetran_last_sync_date_c", "comment": null}, "fivetran_last_updated_date_c": {"type": "TIMESTAMP", "index": 375, "name": "fivetran_last_updated_date_c", "comment": null}, "fivetran_sync_status_c": {"type": "STRING", "index": 376, "name": "fivetran_sync_status_c", "comment": null}, "fivetran_trial_begin_date_c": {"type": "TIMESTAMP", "index": 377, "name": "fivetran_trial_begin_date_c", "comment": null}, "fivetran_trial_end_date_c": {"type": "TIMESTAMP", "index": 378, "name": "fivetran_trial_end_date_c", "comment": null}, "analyst_interview_c": {"type": "STRING", "index": 379, "name": "analyst_interview_c", "comment": null}, "beta_test_c": {"type": "STRING", "index": 380, "name": "beta_test_c", "comment": null}, "case_study_c": {"type": "STRING", "index": 381, "name": "case_study_c", "comment": null}, "customer_advocate_c": {"type": "STRING", "index": 382, "name": "customer_advocate_c", "comment": null}, "customer_advocate_notes_c": {"type": "STRING", "index": 383, "name": "customer_advocate_notes_c", "comment": null}, "event_speaker_c": {"type": "STRING", "index": 384, "name": "event_speaker_c", "comment": null}, "podcast_c": {"type": "STRING", "index": 385, "name": "podcast_c", "comment": null}, "pr_opportunity_c": {"type": "STRING", "index": 386, "name": "pr_opportunity_c", "comment": null}, "product_feedback_c": {"type": "STRING", "index": 387, "name": "product_feedback_c", "comment": null}, "reference_call_c": {"type": "STRING", "index": 388, "name": "reference_call_c", "comment": null}, "video_testimonial_c": {"type": "STRING", "index": 389, "name": "video_testimonial_c", "comment": null}, "webinar_c": {"type": "STRING", "index": 390, "name": "webinar_c", "comment": null}, "assigned_tsm_c": {"type": "STRING", "index": 391, "name": "assigned_tsm_c", "comment": null}, "last_ae_activity_owner_c": {"type": "STRING", "index": 392, "name": "last_ae_activity_owner_c", "comment": null}, "last_manual_ae_activity_date_c": {"type": "TIMESTAMP", "index": 393, "name": "last_manual_ae_activity_date_c", "comment": null}, "account_holdover_c": {"type": "BOOL", "index": 394, "name": "account_holdover_c", "comment": null}, "cpq_migration_complete_c": {"type": "BOOL", "index": 395, "name": "cpq_migration_complete_c", "comment": null}, "blng_bill_to_contact_c": {"type": "STRING", "index": 396, "name": "blng_bill_to_contact_c", "comment": null}, "blng_customer_profile_id_c": {"type": "STRING", "index": 397, "name": "blng_customer_profile_id_c", "comment": null}, "blng_default_payment_type_c": {"type": "STRING", "index": 398, "name": "blng_default_payment_type_c", "comment": null}, "sfbd_collections_agent_c": {"type": "STRING", "index": 399, "name": "sfbd_collections_agent_c", "comment": null}, "sfbd_collections_plan_date_c": {"type": "TIMESTAMP", "index": 400, "name": "sfbd_collections_plan_date_c", "comment": null}, "sfbd_collections_status_c": {"type": "STRING", "index": 401, "name": "sfbd_collections_status_c", "comment": null}, "sfbd_dunning_method_c": {"type": "STRING", "index": 402, "name": "sfbd_dunning_method_c", "comment": null}, "sfbd_sla_c": {"type": "STRING", "index": 403, "name": "sfbd_sla_c", "comment": null}, "sfbd_upsell_opportunity_c": {"type": "STRING", "index": 404, "name": "sfbd_upsell_opportunity_c", "comment": null}, "ava_blng_business_identification_number_c": {"type": "STRING", "index": 405, "name": "ava_blng_business_identification_number_c", "comment": null}, "ava_blng_entity_use_code_c": {"type": "STRING", "index": 406, "name": "ava_blng_entity_use_code_c", "comment": null}, "ava_blng_exemption_number_c": {"type": "STRING", "index": 407, "name": "ava_blng_exemption_number_c", "comment": null}, "ava_blng_is_seller_importer_of_record_c": {"type": "BOOL", "index": 408, "name": "ava_blng_is_seller_importer_of_record_c", "comment": null}, "account_status_c": {"type": "STRING", "index": 409, "name": "account_status_c", "comment": null}, "credit_summary_c": {"type": "STRING", "index": 410, "name": "credit_summary_c", "comment": null}, "current_month_beginning_credit_balance_c": {"type": "FLOAT64", "index": 411, "name": "current_month_beginning_credit_balance_c", "comment": null}, "customer_type_c": {"type": "STRING", "index": 412, "name": "customer_type_c", "comment": null}, "fivetran_customer_account_id_c": {"type": "STRING", "index": 413, "name": "fivetran_customer_account_id_c", "comment": null}, "last_credit_snapshot_date_c": {"type": "TIMESTAMP", "index": 414, "name": "last_credit_snapshot_date_c", "comment": null}, "last_usage_record_c": {"type": "TIMESTAMP", "index": 415, "name": "last_usage_record_c", "comment": null}, "number_of_credits_expired_c": {"type": "FLOAT64", "index": 416, "name": "number_of_credits_expired_c", "comment": null}, "number_of_fivetran_accounts_c": {"type": "FLOAT64", "index": 417, "name": "number_of_fivetran_accounts_c", "comment": null}, "payment_expected_date_c": {"type": "TIMESTAMP", "index": 418, "name": "payment_expected_date_c", "comment": null}, "previous_month_beginning_credit_balance_c": {"type": "FLOAT64", "index": 419, "name": "previous_month_beginning_credit_balance_c", "comment": null}, "previous_month_s_ending_credit_balance_c": {"type": "FLOAT64", "index": 420, "name": "previous_month_s_ending_credit_balance_c", "comment": null}, "previous_month_s_starting_credit_balance_c": {"type": "FLOAT64", "index": 421, "name": "previous_month_s_starting_credit_balance_c", "comment": null}, "trial_start_date_c": {"type": "TIMESTAMP", "index": 422, "name": "trial_start_date_c", "comment": null}, "notes_cs_c": {"type": "STRING", "index": 423, "name": "notes_cs_c", "comment": null}, "usage_ae_c": {"type": "STRING", "index": 424, "name": "usage_ae_c", "comment": null}, "usage_am_c": {"type": "STRING", "index": 425, "name": "usage_am_c", "comment": null}, "first_won_date_c": {"type": "TIMESTAMP", "index": 426, "name": "first_won_date_c", "comment": null}, "land_arr_c": {"type": "BIGNUMERIC", "index": 427, "name": "land_arr_c", "comment": null}, "active_ft_accounts_c": {"type": "FLOAT64", "index": 428, "name": "active_ft_accounts_c", "comment": null}, "usage_csm_c": {"type": "STRING", "index": 429, "name": "usage_csm_c", "comment": null}, "duns_number_c": {"type": "STRING", "index": 430, "name": "duns_number_c", "comment": null}, "land_region_2020_h_2_c": {"type": "STRING", "index": 431, "name": "land_region_2020_h_2_c", "comment": null}, "third_party_payer_c": {"type": "STRING", "index": 432, "name": "third_party_payer_c", "comment": null}, "ae_paired_csm_c": {"type": "STRING", "index": 433, "name": "ae_paired_csm_c", "comment": null}, "month_of_ownership_transfer_hidden_c": {"type": "TIMESTAMP", "index": 434, "name": "month_of_ownership_transfer_hidden_c", "comment": null}, "clearbit_sub_industry_c": {"type": "STRING", "index": 435, "name": "clearbit_sub_industry_c", "comment": null}, "business_intelligence_tool_c": {"type": "STRING", "index": 436, "name": "business_intelligence_tool_c", "comment": null}, "self_service_to_annual_c": {"type": "BOOL", "index": 437, "name": "self_service_to_annual_c", "comment": null}, "suppress_billing_c": {"type": "BOOL", "index": 438, "name": "suppress_billing_c", "comment": null}, "enterprise_target_account_c": {"type": "BOOL", "index": 439, "name": "enterprise_target_account_c", "comment": null}, "pending_to_add_fivetran_account_c": {"type": "BOOL", "index": 440, "name": "pending_to_add_fivetran_account_c", "comment": null}, "revenue_team_c": {"type": "STRING", "index": 441, "name": "revenue_team_c", "comment": null}, "is_non_renewable_c": {"type": "BOOL", "index": 442, "name": "is_non_renewable_c", "comment": null}, "bizible_2_engagement_score_c": {"type": "STRING", "index": 443, "name": "bizible_2_engagement_score_c", "comment": null}, "ad_clicks_rolling_30_c": {"type": "FLOAT64", "index": 444, "name": "ad_clicks_rolling_30_c", "comment": null}, "ad_clicks_rolling_90_c": {"type": "FLOAT64", "index": 445, "name": "ad_clicks_rolling_90_c", "comment": null}, "ad_data_up_to_date_as_of_c": {"type": "TIMESTAMP", "index": 446, "name": "ad_data_up_to_date_as_of_c", "comment": null}, "ad_impressions_rolling_30_c": {"type": "FLOAT64", "index": 447, "name": "ad_impressions_rolling_30_c", "comment": null}, "ad_impressions_rolling_90_c": {"type": "FLOAT64", "index": 448, "name": "ad_impressions_rolling_90_c", "comment": null}, "ad_spend_mt_d_c": {"type": "FLOAT64", "index": 449, "name": "ad_spend_mt_d_c", "comment": null}, "ad_spend_qt_d_c": {"type": "FLOAT64", "index": 450, "name": "ad_spend_qt_d_c", "comment": null}, "associated_terminus_accounts_c": {"type": "STRING", "index": 451, "name": "associated_terminus_accounts_c", "comment": null}, "associated_terminus_accounts_up_to_date_as_of_c": {"type": "TIMESTAMP", "index": 452, "name": "associated_terminus_accounts_up_to_date_as_of_c", "comment": null}, "end_of_surge_c": {"type": "TIMESTAMP", "index": 453, "name": "end_of_surge_c", "comment": null}, "highest_surge_percent_c": {"type": "FLOAT64", "index": 454, "name": "highest_surge_percent_c", "comment": null}, "last_ad_click_date_c": {"type": "TIMESTAMP", "index": 455, "name": "last_ad_click_date_c", "comment": null}, "last_unique_visitors_snapshot_c": {"type": "FLOAT64", "index": 456, "name": "last_unique_visitors_snapshot_c", "comment": null}, "last_visit_moment_c": {"type": "TIMESTAMP", "index": 457, "name": "last_visit_moment_c", "comment": null}, "last_visit_sessions_snapshot_c": {"type": "FLOAT64", "index": 458, "name": "last_visit_sessions_snapshot_c", "comment": null}, "start_of_surge_c": {"type": "TIMESTAMP", "index": 459, "name": "start_of_surge_c", "comment": null}, "surge_data_up_to_date_as_of_c": {"type": "TIMESTAMP", "index": 460, "name": "surge_data_up_to_date_as_of_c", "comment": null}, "surging_awareness_pages_c": {"type": "STRING", "index": 461, "name": "surging_awareness_pages_c", "comment": null}, "surging_high_value_pages_c": {"type": "STRING", "index": 462, "name": "surging_high_value_pages_c", "comment": null}, "surging_models_c": {"type": "STRING", "index": 463, "name": "surging_models_c", "comment": null}, "terminus_account_lists_c": {"type": "STRING", "index": 464, "name": "terminus_account_lists_c", "comment": null}, "terminus_account_lists_updated_moment_utc_c": {"type": "TIMESTAMP", "index": 465, "name": "terminus_account_lists_updated_moment_utc_c", "comment": null}, "unique_web_visitors_rolling_30_c": {"type": "FLOAT64", "index": 466, "name": "unique_web_visitors_rolling_30_c", "comment": null}, "web_visit_data_up_to_date_as_of_c": {"type": "TIMESTAMP", "index": 467, "name": "web_visit_data_up_to_date_as_of_c", "comment": null}, "web_visits_rolling_30_c": {"type": "FLOAT64", "index": 468, "name": "web_visits_rolling_30_c", "comment": null}, "revenue_all_time_c": {"type": "BIGNUMERIC", "index": 469, "name": "revenue_all_time_c", "comment": null}, "revenue_annual_c": {"type": "BIGNUMERIC", "index": 470, "name": "revenue_annual_c", "comment": null}, "total_closed_lost_opportunities_c": {"type": "FLOAT64", "index": 471, "name": "total_closed_lost_opportunities_c", "comment": null}, "total_closed_won_opportunities_c": {"type": "FLOAT64", "index": 472, "name": "total_closed_won_opportunities_c", "comment": null}, "total_opportunities_c": {"type": "FLOAT64", "index": 473, "name": "total_opportunities_c", "comment": null}, "ae_am_ownership_transfer_email_sent_c": {"type": "BOOL", "index": 474, "name": "ae_am_ownership_transfer_email_sent_c", "comment": null}, "comp_credit_quantity_override_c": {"type": "BOOL", "index": 475, "name": "comp_credit_quantity_override_c", "comment": null}, "celigo_sfnsio_account_balance_c": {"type": "BIGNUMERIC", "index": 476, "name": "celigo_sfnsio_account_balance_c", "comment": null}, "celigo_sfnsio_channel_tier_c": {"type": "STRING", "index": 477, "name": "celigo_sfnsio_channel_tier_c", "comment": null}, "celigo_sfnsio_credit_hold_c": {"type": "STRING", "index": 478, "name": "celigo_sfnsio_credit_hold_c", "comment": null}, "celigo_sfnsio_credit_limit_c": {"type": "BIGNUMERIC", "index": 479, "name": "celigo_sfnsio_credit_limit_c", "comment": null}, "celigo_sfnsio_days_overdue_c": {"type": "FLOAT64", "index": 480, "name": "celigo_sfnsio_days_overdue_c", "comment": null}, "celigo_sfnsio_net_suite_id_c": {"type": "STRING", "index": 481, "name": "celigo_sfnsio_net_suite_id_c", "comment": null}, "celigo_sfnsio_net_suite_record_c": {"type": "STRING", "index": 482, "name": "celigo_sfnsio_net_suite_record_c", "comment": null}, "celigo_sfnsio_net_suite_sync_error_c": {"type": "STRING", "index": 483, "name": "celigo_sfnsio_net_suite_sync_error_c", "comment": null}, "celigo_sfnsio_overdue_balance_c": {"type": "BIGNUMERIC", "index": 484, "name": "celigo_sfnsio_overdue_balance_c", "comment": null}, "celigo_sfnsio_skip_export_to_net_suite_c": {"type": "BOOL", "index": 485, "name": "celigo_sfnsio_skip_export_to_net_suite_c", "comment": null}, "celigo_sfnsio_test_mode_record_c": {"type": "BOOL", "index": 486, "name": "celigo_sfnsio_test_mode_record_c", "comment": null}, "celigo_sfnsio_unbilled_orders_c": {"type": "BIGNUMERIC", "index": 487, "name": "celigo_sfnsio_unbilled_orders_c", "comment": null}, "account_owner_notes_c": {"type": "STRING", "index": 488, "name": "account_owner_notes_c", "comment": null}, "ironclad_workflow_c": {"type": "STRING", "index": 489, "name": "ironclad_workflow_c", "comment": null}, "bombora_app_bombora_surge_record_count_c": {"type": "FLOAT64", "index": 490, "name": "bombora_app_bombora_surge_record_count_c", "comment": null}, "bombora_app_bombora_last_date_time_updated_c": {"type": "TIMESTAMP", "index": 491, "name": "bombora_app_bombora_last_date_time_updated_c", "comment": null}, "bombora_app_bombora_total_composite_score_c": {"type": "FLOAT64", "index": 492, "name": "bombora_app_bombora_total_composite_score_c", "comment": null}, "is_test_account_c": {"type": "BOOL", "index": 493, "name": "is_test_account_c", "comment": null}, "_fivetran_deleted": {"type": "BOOL", "index": 494, "name": "_fivetran_deleted", "comment": null}, "expansion_annual_goal_c": {"type": "BIGNUMERIC", "index": 495, "name": "expansion_annual_goal_c", "comment": null}, "volume_post_sales_c": {"type": "BOOL", "index": 496, "name": "volume_post_sales_c", "comment": null}, "baseline_arr_c": {"type": "BIGNUMERIC", "index": 497, "name": "baseline_arr_c", "comment": null}, "use_cases_notes_c": {"type": "STRING", "index": 498, "name": "use_cases_notes_c", "comment": null}, "cs_strategy_notes_c": {"type": "STRING", "index": 499, "name": "cs_strategy_notes_c", "comment": null}, "use_cases_c": {"type": "STRING", "index": 500, "name": "use_cases_c", "comment": null}, "current_champion_c": {"type": "STRING", "index": 501, "name": "current_champion_c", "comment": null}, "cs_strategy_c": {"type": "STRING", "index": 502, "name": "cs_strategy_c", "comment": null}, "assigned_sdr_c": {"type": "STRING", "index": 503, "name": "assigned_sdr_c", "comment": null}, "last_sdr_activity_owner_c": {"type": "STRING", "index": 504, "name": "last_sdr_activity_owner_c", "comment": null}, "last_sdr_activity_date_c": {"type": "TIMESTAMP", "index": 505, "name": "last_sdr_activity_date_c", "comment": null}, "ae_to_csm_ownership_handoff_c": {"type": "BOOL", "index": 506, "name": "ae_to_csm_ownership_handoff_c", "comment": null}, "customer_spend_type_c": {"type": "STRING", "index": 507, "name": "customer_spend_type_c", "comment": null}, "csm_assignment_date_c": {"type": "TIMESTAMP", "index": 508, "name": "csm_assignment_date_c", "comment": null}, "startup_promotion_qualifier_c": {"type": "BOOL", "index": 509, "name": "startup_promotion_qualifier_c", "comment": null}, "pricing_curve_c": {"type": "STRING", "index": 510, "name": "pricing_curve_c", "comment": null}, "committed_credits_verified_c": {"type": "BOOL", "index": 511, "name": "committed_credits_verified_c", "comment": null}, "connector_s_c": {"type": "STRING", "index": 512, "name": "connector_s_c", "comment": null}, "high_water_mark_arr_c": {"type": "BIGNUMERIC", "index": 513, "name": "high_water_mark_arr_c", "comment": null}, "usage_arr_c": {"type": "BIGNUMERIC", "index": 514, "name": "usage_arr_c", "comment": null}, "use_cases_x_c": {"type": "STRING", "index": 515, "name": "use_cases_x_c", "comment": null}, "p_o_number_c": {"type": "STRING", "index": 516, "name": "p_o_number_c", "comment": null}, "annualized_mrrv_previous_month_c": {"type": "BIGNUMERIC", "index": 517, "name": "annualized_mrrv_previous_month_c", "comment": null}, "olp_to_annual_change_date_c": {"type": "TIMESTAMP", "index": 518, "name": "olp_to_annual_change_date_c", "comment": null}, "customer_type_change_detail_c": {"type": "STRING", "index": 519, "name": "customer_type_change_detail_c", "comment": null}, "annual_to_olp_change_date_c": {"type": "TIMESTAMP", "index": 520, "name": "annual_to_olp_change_date_c", "comment": null}, "value_print_last_updated_c": {"type": "TIMESTAMP", "index": 521, "name": "value_print_last_updated_c", "comment": null}, "bookings_arr_c": {"type": "BIGNUMERIC", "index": 522, "name": "bookings_arr_c", "comment": null}, "geoand_cloud_region_c": {"type": "STRING", "index": 523, "name": "geoand_cloud_region_c", "comment": null}, "on_snowflake_business_critical_ed_c": {"type": "BOOL", "index": 524, "name": "on_snowflake_business_critical_ed_c", "comment": null}, "average_monthly_usage_lifetime_c": {"type": "FLOAT64", "index": 525, "name": "average_monthly_usage_lifetime_c", "comment": null}, "average_monthly_usage_4_mos_c": {"type": "FLOAT64", "index": 526, "name": "average_monthly_usage_4_mos_c", "comment": null}, "account_priority_c": {"type": "STRING", "index": 527, "name": "account_priority_c", "comment": null}, "total_credits_bought_override_c": {"type": "FLOAT64", "index": 528, "name": "total_credits_bought_override_c", "comment": null}, "rollover_credits_verified_c": {"type": "BOOL", "index": 529, "name": "rollover_credits_verified_c", "comment": null}, "dnboptimizer_dn_bcompany_record_c": {"type": "STRING", "index": 530, "name": "dnboptimizer_dn_bcompany_record_c", "comment": null}, "dnboptimizer_dnb_d_u_n_s_number_c": {"type": "STRING", "index": 531, "name": "dnboptimizer_dnb_d_u_n_s_number_c", "comment": null}, "i_sell_oskey_id_c": {"type": "STRING", "index": 532, "name": "i_sell_oskey_id_c", "comment": null}, "count_of_credit_summaries_c": {"type": "FLOAT64", "index": 533, "name": "count_of_credit_summaries_c", "comment": null}, "abm_targeting_timeline_c": {"type": "STRING", "index": 534, "name": "abm_targeting_timeline_c", "comment": null}, "abm_enterprise_tier_c": {"type": "STRING", "index": 535, "name": "abm_enterprise_tier_c", "comment": null}, "zoom_info_naics_c": {"type": "STRING", "index": 536, "name": "zoom_info_naics_c", "comment": null}, "dbt_billing_start_date_c": {"type": "TIMESTAMP", "index": 537, "name": "dbt_billing_start_date_c", "comment": null}, "dnb_match_score_confidence_code_c": {"type": "STRING", "index": 538, "name": "dnb_match_score_confidence_code_c", "comment": null}, "dnb_web_address_c": {"type": "STRING", "index": 539, "name": "dnb_web_address_c", "comment": null}, "dnb_primary_address_line_1_c": {"type": "STRING", "index": 540, "name": "dnb_primary_address_line_1_c", "comment": null}, "dnb_out_of_business_indicator_c": {"type": "STRING", "index": 541, "name": "dnb_out_of_business_indicator_c", "comment": null}, "dnb_location_type_c": {"type": "STRING", "index": 542, "name": "dnb_location_type_c", "comment": null}, "dnb_domestic_ultimate_indicator_c": {"type": "STRING", "index": 543, "name": "dnb_domestic_ultimate_indicator_c", "comment": null}, "dnb_naics_code_1_c": {"type": "STRING", "index": 544, "name": "dnb_naics_code_1_c", "comment": null}, "dnb_naics_code_2_c": {"type": "STRING", "index": 545, "name": "dnb_naics_code_2_c", "comment": null}, "dnb_global_ultimate_indicator_c": {"type": "STRING", "index": 546, "name": "dnb_global_ultimate_indicator_c", "comment": null}, "dnb_employee_count_trend_year_c": {"type": "FLOAT64", "index": 547, "name": "dnb_employee_count_trend_year_c", "comment": null}, "dnb_primary_address_country_region_c": {"type": "STRING", "index": 548, "name": "dnb_primary_address_country_region_c", "comment": null}, "dnb_telephone_number_c": {"type": "STRING", "index": 549, "name": "dnb_telephone_number_c", "comment": null}, "dnb_subsidiary_indicator_c": {"type": "STRING", "index": 550, "name": "dnb_subsidiary_indicator_c", "comment": null}, "dnb_parent_business_name_c": {"type": "STRING", "index": 551, "name": "dnb_parent_business_name_c", "comment": null}, "dnb_fiscal_year_end_c": {"type": "STRING", "index": 552, "name": "dnb_fiscal_year_end_c", "comment": null}, "dnb_us_tax_id_c": {"type": "STRING", "index": 553, "name": "dnb_us_tax_id_c", "comment": null}, "dnb_primary_address_state_province_abbre_c": {"type": "STRING", "index": 554, "name": "dnb_primary_address_state_province_abbre_c", "comment": null}, "dnb_match_grade_c": {"type": "STRING", "index": 555, "name": "dnb_match_grade_c", "comment": null}, "dnb_revenue_trend_year_c": {"type": "FLOAT64", "index": 556, "name": "dnb_revenue_trend_year_c", "comment": null}, "dnb_global_ultimate_duns_c": {"type": "STRING", "index": 557, "name": "dnb_global_ultimate_duns_c", "comment": null}, "dnb_sic_4_code_1_c": {"type": "STRING", "index": 558, "name": "dnb_sic_4_code_1_c", "comment": null}, "dnb_duns_number_c": {"type": "STRING", "index": 559, "name": "dnb_duns_number_c", "comment": null}, "dnb_domestic_ultimate_duns_c": {"type": "STRING", "index": 560, "name": "dnb_domestic_ultimate_duns_c", "comment": null}, "dnb_primary_address_state_province_c": {"type": "STRING", "index": 561, "name": "dnb_primary_address_state_province_c", "comment": null}, "dnb_num_family_members_c": {"type": "FLOAT64", "index": 562, "name": "dnb_num_family_members_c", "comment": null}, "dnb_employee_count_total_reliability_code_c": {"type": "STRING", "index": 563, "name": "dnb_employee_count_total_reliability_code_c", "comment": null}, "dnb_domestic_ultimate_business_name_c": {"type": "STRING", "index": 564, "name": "dnb_domestic_ultimate_business_name_c", "comment": null}, "dnb_primary_address_country_region_code_c": {"type": "STRING", "index": 565, "name": "dnb_primary_address_country_region_code_c", "comment": null}, "dnb_business_name_c": {"type": "STRING", "index": 566, "name": "dnb_business_name_c", "comment": null}, "dnb_sic_4_code_3_c": {"type": "STRING", "index": 567, "name": "dnb_sic_4_code_3_c", "comment": null}, "dnb_sic_4_code_2_c": {"type": "STRING", "index": 568, "name": "dnb_sic_4_code_2_c", "comment": null}, "dnb_match_data_profile_c": {"type": "STRING", "index": 569, "name": "dnb_match_data_profile_c", "comment": null}, "dnb_marketability_indicator_c": {"type": "STRING", "index": 570, "name": "dnb_marketability_indicator_c", "comment": null}, "dnb_primary_address_city_c": {"type": "STRING", "index": 571, "name": "dnb_primary_address_city_c", "comment": null}, "dnb_legal_structure_description_c": {"type": "STRING", "index": 572, "name": "dnb_legal_structure_description_c", "comment": null}, "dnb_sales_volume_usd_c": {"type": "FLOAT64", "index": 573, "name": "dnb_sales_volume_usd_c", "comment": null}, "dnb_primary_address_postal_code_c": {"type": "STRING", "index": 574, "name": "dnb_primary_address_postal_code_c", "comment": null}, "dnb_parent_duns_c": {"type": "STRING", "index": 575, "name": "dnb_parent_duns_c", "comment": null}, "dnb_tradestyle_name_1_c": {"type": "STRING", "index": 576, "name": "dnb_tradestyle_name_1_c", "comment": null}, "dnb_primary_c": {"type": "STRING", "index": 577, "name": "dnb_primary_c", "comment": null}, "dnb_employee_count_total_reliability_desc_c": {"type": "STRING", "index": 578, "name": "dnb_employee_count_total_reliability_desc_c", "comment": null}, "dnb_sales_volume_reliability_description_c": {"type": "STRING", "index": 579, "name": "dnb_sales_volume_reliability_description_c", "comment": null}, "dnb_employee_count_total_c": {"type": "FLOAT64", "index": 580, "name": "dnb_employee_count_total_c", "comment": null}, "dnb_business_description_c": {"type": "STRING", "index": 581, "name": "dnb_business_description_c", "comment": null}, "dnb_employee_count_here_c": {"type": "FLOAT64", "index": 582, "name": "dnb_employee_count_here_c", "comment": null}, "dnb_headquarter_business_name_c": {"type": "STRING", "index": 583, "name": "dnb_headquarter_business_name_c", "comment": null}, "dnb_global_ultimate_business_name_c": {"type": "STRING", "index": 584, "name": "dnb_global_ultimate_business_name_c", "comment": null}, "dnb_fortune_1000_rank_c": {"type": "STRING", "index": 585, "name": "dnb_fortune_1000_rank_c", "comment": null}, "end_date_of_services_package_c": {"type": "TIMESTAMP", "index": 586, "name": "end_date_of_services_package_c", "comment": null}, "third_party_data_c": {"type": "STRING", "index": 587, "name": "third_party_data_c", "comment": null}, "pbf_overlay_c": {"type": "STRING", "index": 588, "name": "pbf_overlay_c", "comment": null}, "pbf_churn_c": {"type": "BOOL", "index": 589, "name": "pbf_churn_c", "comment": null}, "last_pbf_sales_activity_c": {"type": "TIMESTAMP", "index": 590, "name": "last_pbf_sales_activity_c", "comment": null}, "pbf_status_c": {"type": "STRING", "index": 591, "name": "pbf_status_c", "comment": null}, "embedded_am_c": {"type": "STRING", "index": 592, "name": "embedded_am_c", "comment": null}, "pbf_expiration_date_c": {"type": "TIMESTAMP", "index": 593, "name": "pbf_expiration_date_c", "comment": null}, "api_created_connectors_c": {"type": "BOOL", "index": 594, "name": "api_created_connectors_c", "comment": null}, "xbeamprod_available_overlaps_c": {"type": "FLOAT64", "index": 595, "name": "xbeamprod_available_overlaps_c", "comment": null}, "cross_sell_account_approved_c": {"type": "BOOL", "index": 596, "name": "cross_sell_account_approved_c", "comment": null}, "why_was_account_flagged_for_cross_sell_c": {"type": "STRING", "index": 597, "name": "why_was_account_flagged_for_cross_sell_c", "comment": null}, "flagging_hvr_xsell_c": {"type": "BOOL", "index": 598, "name": "flagging_hvr_xsell_c", "comment": null}, "engagio_mqadate_c": {"type": "TIMESTAMP", "index": 599, "name": "engagio_mqadate_c", "comment": null}, "engagio_qualification_score_c": {"type": "FLOAT64", "index": 600, "name": "engagio_qualification_score_c", "comment": null}, "engagio_top_urls_c": {"type": "STRING", "index": 601, "name": "engagio_top_urls_c", "comment": null}, "engagio_number_of_people_c": {"type": "FLOAT64", "index": 602, "name": "engagio_number_of_people_c", "comment": null}, "engagio_engagement_minutes_last_7_days_c": {"type": "FLOAT64", "index": 603, "name": "engagio_engagement_minutes_last_7_days_c", "comment": null}, "engagio_first_engagement_date_c": {"type": "TIMESTAMP", "index": 604, "name": "engagio_first_engagement_date_c", "comment": null}, "engagio_web_visits_last_3_months_c": {"type": "FLOAT64", "index": 605, "name": "engagio_web_visits_last_3_months_c", "comment": null}, "engagio_intent_minutes_last_30_days_c": {"type": "FLOAT64", "index": 606, "name": "engagio_intent_minutes_last_30_days_c", "comment": null}, "engagio_pipeline_predict_score_c": {"type": "FLOAT64", "index": 607, "name": "engagio_pipeline_predict_score_c", "comment": null}, "engagio_engagement_minutes_last_3_months_c": {"type": "FLOAT64", "index": 608, "name": "engagio_engagement_minutes_last_3_months_c", "comment": null}, "engagio_status_c": {"type": "STRING", "index": 609, "name": "engagio_status_c", "comment": null}, "engagio_engaged_people_c": {"type": "FLOAT64", "index": 610, "name": "engagio_engaged_people_c", "comment": null}, "engagio_high_intent_keywords_c": {"type": "STRING", "index": 611, "name": "engagio_high_intent_keywords_c", "comment": null}, "force_merge_c": {"type": "BOOL", "index": 612, "name": "force_merge_c", "comment": null}, "strategic_account_c": {"type": "BOOL", "index": 613, "name": "strategic_account_c", "comment": null}, "feature_request_c": {"type": "STRING", "index": 614, "name": "feature_request_c", "comment": null}, "dbt_billing_enablement_date_c": {"type": "TIMESTAMP", "index": 615, "name": "dbt_billing_enablement_date_c", "comment": null}, "rev_ex_territory_review_dec_21_c": {"type": "BOOL", "index": 616, "name": "rev_ex_territory_review_dec_21_c", "comment": null}, "manual_subsidiary_indicator_c": {"type": "BOOL", "index": 617, "name": "manual_subsidiary_indicator_c", "comment": null}, "potential_fivetran_use_case_c": {"type": "STRING", "index": 618, "name": "potential_fivetran_use_case_c", "comment": null}, "fy_23_enterprise_target_c": {"type": "BOOL", "index": 619, "name": "fy_23_enterprise_target_c", "comment": null}, "target_account_hierarchy_member_c": {"type": "BOOL", "index": 620, "name": "target_account_hierarchy_member_c", "comment": null}, "ignore_manual_override_c": {"type": "BOOL", "index": 621, "name": "ignore_manual_override_c", "comment": null}, "ae_solo_target_account_c": {"type": "BOOL", "index": 622, "name": "ae_solo_target_account_c", "comment": null}, "fy_23_ae_target_accounts_c": {"type": "BOOL", "index": 623, "name": "fy_23_ae_target_accounts_c", "comment": null}, "temporary_target_accounts_c": {"type": "BOOL", "index": 624, "name": "temporary_target_accounts_c", "comment": null}, "fy_23_bdr_target_accounts_c": {"type": "BOOL", "index": 625, "name": "fy_23_bdr_target_accounts_c", "comment": null}, "csm_priority_c": {"type": "STRING", "index": 626, "name": "csm_priority_c", "comment": null}, "purchase_summary_c": {"type": "STRING", "index": 627, "name": "purchase_summary_c", "comment": null}, "approved_rollover_value_c": {"type": "BIGNUMERIC", "index": 628, "name": "approved_rollover_value_c", "comment": null}, "account_prospecting_status_c": {"type": "STRING", "index": 629, "name": "account_prospecting_status_c", "comment": null}, "hvr_customer_type_c": {"type": "STRING", "index": 630, "name": "hvr_customer_type_c", "comment": null}, "account_strategist_c": {"type": "STRING", "index": 631, "name": "account_strategist_c", "comment": null}, "ae_opt_to_hold_account_c": {"type": "BOOL", "index": 632, "name": "ae_opt_to_hold_account_c", "comment": null}, "ae_keeper_account_c": {"type": "STRING", "index": 633, "name": "ae_keeper_account_c", "comment": null}, "legacy_hvr_id_c": {"type": "STRING", "index": 634, "name": "legacy_hvr_id_c", "comment": null}, "has_non_frozen_ft_c": {"type": "BOOL", "index": 635, "name": "has_non_frozen_ft_c", "comment": null}, "is_excluded_from_realign": {"type": "BOOL", "index": 636, "name": "is_excluded_from_realign", "comment": null}, "hvr_primary_systems_c": {"type": "STRING", "index": 637, "name": "hvr_primary_systems_c", "comment": null}, "hvr_update_c": {"type": "BOOL", "index": 638, "name": "hvr_update_c", "comment": null}, "first_won_date_rollup_c": {"type": "FLOAT64", "index": 639, "name": "first_won_date_rollup_c", "comment": null}, "hvr_account_class_c": {"type": "STRING", "index": 640, "name": "hvr_account_class_c", "comment": null}, "csm_handoff_date_c": {"type": "TIMESTAMP", "index": 641, "name": "csm_handoff_date_c", "comment": null}, "domain_temp_c": {"type": "STRING", "index": 642, "name": "domain_temp_c", "comment": null}, "hvr_account_status_c": {"type": "STRING", "index": 643, "name": "hvr_account_status_c", "comment": null}, "had_ftcustomer_c": {"type": "BOOL", "index": 644, "name": "had_ftcustomer_c", "comment": null}, "merged_account_ids_c": {"type": "STRING", "index": 645, "name": "merged_account_ids_c", "comment": null}, "ftcustomer_c": {"type": "BOOL", "index": 646, "name": "ftcustomer_c", "comment": null}, "rh_2_test_currency_c": {"type": "BIGNUMERIC", "index": 647, "name": "rh_2_test_currency_c", "comment": null}, "usage_ae_reset_date_c": {"type": "TIMESTAMP", "index": 648, "name": "usage_ae_reset_date_c", "comment": null}, "behavior_score_summary_c": {"type": "FLOAT64", "index": 649, "name": "behavior_score_summary_c", "comment": null}, "lean_data_status_info_c": {"type": "STRING", "index": 650, "name": "lean_data_status_info_c", "comment": null}, "dnb_headquarter_d_u_n_s_number_c": {"type": "STRING", "index": 651, "name": "dnb_headquarter_d_u_n_s_number_c", "comment": null}, "temporary_subsidiary_flag_fy_23_c": {"type": "BOOL", "index": 652, "name": "temporary_subsidiary_flag_fy_23_c", "comment": null}, "rev_ex_fy_23_manual_override_c": {"type": "BOOL", "index": 653, "name": "rev_ex_fy_23_manual_override_c", "comment": null}, "enterprise_territory_exception_c": {"type": "BOOL", "index": 654, "name": "enterprise_territory_exception_c", "comment": null}, "enterprise_strategic_account_c": {"type": "BOOL", "index": 655, "name": "enterprise_strategic_account_c", "comment": null}, "global_ultimate_account_name_c": {"type": "STRING", "index": 656, "name": "global_ultimate_account_name_c", "comment": null}, "global_account_id_18_c": {"type": "STRING", "index": 657, "name": "global_account_id_18_c", "comment": null}, "global_ultimate_account_c": {"type": "STRING", "index": 658, "name": "global_ultimate_account_c", "comment": null}, "us_only_support_c": {"type": "BOOL", "index": 659, "name": "us_only_support_c", "comment": null}, "tcr_approved_date_c": {"type": "TIMESTAMP", "index": 660, "name": "tcr_approved_date_c", "comment": null}, "project_based_routing_expiration_c": {"type": "TIMESTAMP", "index": 661, "name": "project_based_routing_expiration_c", "comment": null}, "keeper_account_approved_c": {"type": "BOOL", "index": 662, "name": "keeper_account_approved_c", "comment": null}, "ae_keeper_account_request_justification_c": {"type": "STRING", "index": 663, "name": "ae_keeper_account_request_justification_c", "comment": null}, "hvr_fully_verified_migrated_c": {"type": "BOOL", "index": 664, "name": "hvr_fully_verified_migrated_c", "comment": null}, "olp_cancelled_c": {"type": "BOOL", "index": 665, "name": "olp_cancelled_c", "comment": null}, "contract_arr_c": {"type": "BIGNUMERIC", "index": 666, "name": "contract_arr_c", "comment": null}, "rollover_value_c": {"type": "BIGNUMERIC", "index": 667, "name": "rollover_value_c", "comment": null}, "manual_zendesk_sync_c": {"type": "BOOL", "index": 668, "name": "manual_zendesk_sync_c", "comment": null}, "active_contract_c": {"type": "STRING", "index": 669, "name": "active_contract_c", "comment": null}, "x_2022_credit_audit_c": {"type": "BOOL", "index": 670, "name": "x_2022_credit_audit_c", "comment": null}, "hvr_contract_arr_c": {"type": "BIGNUMERIC", "index": 671, "name": "hvr_contract_arr_c", "comment": null}, "customer_notes_c": {"type": "STRING", "index": 672, "name": "customer_notes_c", "comment": null}, "new_trial_opp_owner_c": {"type": "STRING", "index": 673, "name": "new_trial_opp_owner_c", "comment": null}, "duplicate_from_domain_unblocking_c": {"type": "BOOL", "index": 674, "name": "duplicate_from_domain_unblocking_c", "comment": null}, "abm_resource_page_c": {"type": "STRING", "index": 675, "name": "abm_resource_page_c", "comment": null}, "abm_account_summary_doc_c": {"type": "STRING", "index": 676, "name": "abm_account_summary_doc_c", "comment": null}, "abm_landing_page_mutiny_c": {"type": "STRING", "index": 677, "name": "abm_landing_page_mutiny_c", "comment": null}, "to_be_deleted_salesloft_backfill_c": {"type": "BOOL", "index": 678, "name": "to_be_deleted_salesloft_backfill_c", "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.salesforce_source.stg_salesforce__account_tmp"}, "model.salesforce_source.stg_salesforce__product_2_tmp": {"metadata": {"type": "view", "schema": "dbt_renee", "name": "stg_salesforce__product_2_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"last_referenced_date": {"type": "TIMESTAMP", "index": 1, "name": "last_referenced_date", "comment": null}, "is_active": {"type": "BOOL", "index": 2, "name": "is_active", "comment": null}, "description": {"type": "STRING", "index": 3, "name": "description", "comment": null}, "last_modified_date": {"type": "TIMESTAMP", "index": 4, "name": "last_modified_date", "comment": null}, "record_type_id": {"type": "STRING", "index": 5, "name": "record_type_id", "comment": null}, "product_code": {"type": "STRING", "index": 6, "name": "product_code", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 7, "name": "_fivetran_synced", "comment": null}, "last_viewed_date": {"type": "TIMESTAMP", "index": 8, "name": "last_viewed_date", "comment": null}, "is_deleted": {"type": "BOOL", "index": 9, "name": "is_deleted", "comment": null}, "last_modified_by_id": {"type": "STRING", "index": 10, "name": "last_modified_by_id", "comment": null}, "system_modstamp": {"type": "TIMESTAMP", "index": 11, "name": "system_modstamp", "comment": null}, "name": {"type": "STRING", "index": 12, "name": "name", "comment": null}, "id": {"type": "STRING", "index": 13, "name": "id", "comment": null}, "created_by_id": {"type": "STRING", "index": 14, "name": "created_by_id", "comment": null}, "created_date": {"type": "TIMESTAMP", "index": 15, "name": "created_date", "comment": null}, "family": {"type": "STRING", "index": 16, "name": "family", "comment": null}, "max_volume_c": {"type": "FLOAT64", "index": 17, "name": "max_volume_c", "comment": null}, "min_volume_c": {"type": "FLOAT64", "index": 18, "name": "min_volume_c", "comment": null}, "request_name_c": {"type": "STRING", "index": 19, "name": "request_name_c", "comment": null}, "default_quantity_c": {"type": "FLOAT64", "index": 20, "name": "default_quantity_c", "comment": null}, "account_c": {"type": "STRING", "index": 21, "name": "account_c", "comment": null}, "related_product_c": {"type": "STRING", "index": 22, "name": "related_product_c", "comment": null}, "picklist_value_c": {"type": "STRING", "index": 23, "name": "picklist_value_c", "comment": null}, "as_input_c": {"type": "BOOL", "index": 24, "name": "as_input_c", "comment": null}, "as_output_c": {"type": "BOOL", "index": 25, "name": "as_output_c", "comment": null}, "status_c": {"type": "STRING", "index": 26, "name": "status_c", "comment": null}, "number_of_quantity_installments": {"type": "INT64", "index": 27, "name": "number_of_quantity_installments", "comment": null}, "number_of_revenue_installments": {"type": "INT64", "index": 28, "name": "number_of_revenue_installments", "comment": null}, "quantity_installment_period": {"type": "STRING", "index": 29, "name": "quantity_installment_period", "comment": null}, "quantity_schedule_type": {"type": "STRING", "index": 30, "name": "quantity_schedule_type", "comment": null}, "revenue_installment_period": {"type": "STRING", "index": 31, "name": "revenue_installment_period", "comment": null}, "revenue_schedule_type": {"type": "STRING", "index": 32, "name": "revenue_schedule_type", "comment": null}, "connections_c": {"type": "STRING", "index": 33, "name": "connections_c", "comment": null}, "event_volume_c": {"type": "STRING", "index": 34, "name": "event_volume_c", "comment": null}, "roadmap_connections_c": {"type": "FLOAT64", "index": 35, "name": "roadmap_connections_c", "comment": null}, "row_volume_c": {"type": "STRING", "index": 36, "name": "row_volume_c", "comment": null}, "display_url": {"type": "STRING", "index": 37, "name": "display_url", "comment": null}, "external_data_source_id": {"type": "STRING", "index": 38, "name": "external_data_source_id", "comment": null}, "external_id": {"type": "STRING", "index": 39, "name": "external_id", "comment": null}, "quantity_unit_of_measure": {"type": "STRING", "index": 40, "name": "quantity_unit_of_measure", "comment": null}, "stock_keeping_unit": {"type": "STRING", "index": 41, "name": "stock_keeping_unit", "comment": null}, "features_c": {"type": "STRING", "index": 42, "name": "features_c", "comment": null}, "tier_3_price_c": {"type": "FLOAT64", "index": 43, "name": "tier_3_price_c", "comment": null}, "tier_2_price_c": {"type": "FLOAT64", "index": 44, "name": "tier_2_price_c", "comment": null}, "tier_4_price_c": {"type": "FLOAT64", "index": 45, "name": "tier_4_price_c", "comment": null}, "tier_1_price_c": {"type": "FLOAT64", "index": 46, "name": "tier_1_price_c", "comment": null}, "netsuite_conn_sync_in_progress_c": {"type": "BOOL", "index": 47, "name": "netsuite_conn_sync_in_progress_c", "comment": null}, "netsuite_conn_celigo_update_c": {"type": "BOOL", "index": 48, "name": "netsuite_conn_celigo_update_c", "comment": null}, "netsuite_conn_term_contract_pricing_type_c": {"type": "STRING", "index": 49, "name": "netsuite_conn_term_contract_pricing_type_c", "comment": null}, "netsuite_conn_net_suite_id_c": {"type": "STRING", "index": 50, "name": "netsuite_conn_net_suite_id_c", "comment": null}, "netsuite_conn_net_suite_sync_err_c": {"type": "STRING", "index": 51, "name": "netsuite_conn_net_suite_sync_err_c", "comment": null}, "netsuite_conn_push_to_net_suite_c": {"type": "BOOL", "index": 52, "name": "netsuite_conn_push_to_net_suite_c", "comment": null}, "netsuite_conn_item_category_c": {"type": "STRING", "index": 53, "name": "netsuite_conn_item_category_c", "comment": null}, "netsuite_conn_net_suite_item_type_c": {"type": "STRING", "index": 54, "name": "netsuite_conn_net_suite_item_type_c", "comment": null}, "netsuite_conn_sub_type_c": {"type": "STRING", "index": 55, "name": "netsuite_conn_sub_type_c", "comment": null}, "is_new_c": {"type": "BOOL", "index": 56, "name": "is_new_c", "comment": null}, "product_metadata_c": {"type": "STRING", "index": 57, "name": "product_metadata_c", "comment": null}, "product_metadata_del_c": {"type": "STRING", "index": 58, "name": "product_metadata_del_c", "comment": null}, "sbqq_asset_amendment_behavior_c": {"type": "STRING", "index": 59, "name": "sbqq_asset_amendment_behavior_c", "comment": null}, "sbqq_asset_conversion_c": {"type": "STRING", "index": 60, "name": "sbqq_asset_conversion_c", "comment": null}, "sbqq_batch_quantity_c": {"type": "FLOAT64", "index": 61, "name": "sbqq_batch_quantity_c", "comment": null}, "sbqq_billing_frequency_c": {"type": "STRING", "index": 62, "name": "sbqq_billing_frequency_c", "comment": null}, "sbqq_billing_type_c": {"type": "STRING", "index": 63, "name": "sbqq_billing_type_c", "comment": null}, "sbqq_block_pricing_field_c": {"type": "STRING", "index": 64, "name": "sbqq_block_pricing_field_c", "comment": null}, "sbqq_charge_type_c": {"type": "STRING", "index": 65, "name": "sbqq_charge_type_c", "comment": null}, "sbqq_component_c": {"type": "BOOL", "index": 66, "name": "sbqq_component_c", "comment": null}, "sbqq_compound_discount_rate_c": {"type": "FLOAT64", "index": 67, "name": "sbqq_compound_discount_rate_c", "comment": null}, "sbqq_configuration_event_c": {"type": "STRING", "index": 68, "name": "sbqq_configuration_event_c", "comment": null}, "sbqq_configuration_field_set_c": {"type": "STRING", "index": 69, "name": "sbqq_configuration_field_set_c", "comment": null}, "sbqq_configuration_fields_c": {"type": "STRING", "index": 70, "name": "sbqq_configuration_fields_c", "comment": null}, "sbqq_configuration_form_title_c": {"type": "STRING", "index": 71, "name": "sbqq_configuration_form_title_c", "comment": null}, "sbqq_configuration_type_c": {"type": "STRING", "index": 72, "name": "sbqq_configuration_type_c", "comment": null}, "sbqq_configuration_validator_c": {"type": "STRING", "index": 73, "name": "sbqq_configuration_validator_c", "comment": null}, "sbqq_configured_code_pattern_c": {"type": "STRING", "index": 74, "name": "sbqq_configured_code_pattern_c", "comment": null}, "sbqq_configured_description_pattern_c": {"type": "STRING", "index": 75, "name": "sbqq_configured_description_pattern_c", "comment": null}, "sbqq_cost_editable_c": {"type": "BOOL", "index": 76, "name": "sbqq_cost_editable_c", "comment": null}, "sbqq_cost_schedule_c": {"type": "STRING", "index": 77, "name": "sbqq_cost_schedule_c", "comment": null}, "sbqq_custom_configuration_page_c": {"type": "STRING", "index": 78, "name": "sbqq_custom_configuration_page_c", "comment": null}, "sbqq_custom_configuration_required_c": {"type": "BOOL", "index": 79, "name": "sbqq_custom_configuration_required_c", "comment": null}, "sbqq_customer_community_availability_c": {"type": "STRING", "index": 80, "name": "sbqq_customer_community_availability_c", "comment": null}, "sbqq_default_pricing_table_c": {"type": "STRING", "index": 81, "name": "sbqq_default_pricing_table_c", "comment": null}, "sbqq_default_quantity_c": {"type": "FLOAT64", "index": 82, "name": "sbqq_default_quantity_c", "comment": null}, "sbqq_description_locked_c": {"type": "BOOL", "index": 83, "name": "sbqq_description_locked_c", "comment": null}, "sbqq_discount_category_c": {"type": "STRING", "index": 84, "name": "sbqq_discount_category_c", "comment": null}, "sbqq_discount_schedule_c": {"type": "STRING", "index": 85, "name": "sbqq_discount_schedule_c", "comment": null}, "sbqq_dynamic_pricing_constraint_c": {"type": "STRING", "index": 86, "name": "sbqq_dynamic_pricing_constraint_c", "comment": null}, "sbqq_exclude_from_maintenance_c": {"type": "BOOL", "index": 87, "name": "sbqq_exclude_from_maintenance_c", "comment": null}, "sbqq_exclude_from_opportunity_c": {"type": "BOOL", "index": 88, "name": "sbqq_exclude_from_opportunity_c", "comment": null}, "sbqq_externally_configurable_c": {"type": "BOOL", "index": 89, "name": "sbqq_externally_configurable_c", "comment": null}, "sbqq_generate_contracted_price_c": {"type": "STRING", "index": 90, "name": "sbqq_generate_contracted_price_c", "comment": null}, "sbqq_has_configuration_attributes_c": {"type": "BOOL", "index": 91, "name": "sbqq_has_configuration_attributes_c", "comment": null}, "sbqq_has_consumption_schedule_c": {"type": "BOOL", "index": 92, "name": "sbqq_has_consumption_schedule_c", "comment": null}, "sbqq_hidden_c": {"type": "BOOL", "index": 93, "name": "sbqq_hidden_c", "comment": null}, "sbqq_hide_price_in_search_results_c": {"type": "BOOL", "index": 94, "name": "sbqq_hide_price_in_search_results_c", "comment": null}, "sbqq_include_in_maintenance_c": {"type": "BOOL", "index": 95, "name": "sbqq_include_in_maintenance_c", "comment": null}, "sbqq_new_quote_group_c": {"type": "BOOL", "index": 96, "name": "sbqq_new_quote_group_c", "comment": null}, "sbqq_non_discountable_c": {"type": "BOOL", "index": 97, "name": "sbqq_non_discountable_c", "comment": null}, "sbqq_non_partner_discountable_c": {"type": "BOOL", "index": 98, "name": "sbqq_non_partner_discountable_c", "comment": null}, "sbqq_option_layout_c": {"type": "STRING", "index": 99, "name": "sbqq_option_layout_c", "comment": null}, "sbqq_option_selection_method_c": {"type": "STRING", "index": 100, "name": "sbqq_option_selection_method_c", "comment": null}, "sbqq_optional_c": {"type": "BOOL", "index": 101, "name": "sbqq_optional_c", "comment": null}, "sbqq_price_editable_c": {"type": "BOOL", "index": 102, "name": "sbqq_price_editable_c", "comment": null}, "sbqq_pricing_method_c": {"type": "STRING", "index": 103, "name": "sbqq_pricing_method_c", "comment": null}, "sbqq_pricing_method_editable_c": {"type": "BOOL", "index": 104, "name": "sbqq_pricing_method_editable_c", "comment": null}, "sbqq_product_picture_id_c": {"type": "STRING", "index": 105, "name": "sbqq_product_picture_id_c", "comment": null}, "sbqq_quantity_editable_c": {"type": "BOOL", "index": 106, "name": "sbqq_quantity_editable_c", "comment": null}, "sbqq_quantity_scale_c": {"type": "FLOAT64", "index": 107, "name": "sbqq_quantity_scale_c", "comment": null}, "sbqq_reconfiguration_disabled_c": {"type": "BOOL", "index": 108, "name": "sbqq_reconfiguration_disabled_c", "comment": null}, "sbqq_renewal_product_c": {"type": "STRING", "index": 109, "name": "sbqq_renewal_product_c", "comment": null}, "sbqq_sort_order_c": {"type": "FLOAT64", "index": 110, "name": "sbqq_sort_order_c", "comment": null}, "sbqq_specifications_c": {"type": "STRING", "index": 111, "name": "sbqq_specifications_c", "comment": null}, "sbqq_subscription_base_c": {"type": "STRING", "index": 112, "name": "sbqq_subscription_base_c", "comment": null}, "sbqq_subscription_category_c": {"type": "STRING", "index": 113, "name": "sbqq_subscription_category_c", "comment": null}, "sbqq_subscription_percent_c": {"type": "FLOAT64", "index": 114, "name": "sbqq_subscription_percent_c", "comment": null}, "sbqq_subscription_pricing_c": {"type": "STRING", "index": 115, "name": "sbqq_subscription_pricing_c", "comment": null}, "sbqq_subscription_target_c": {"type": "STRING", "index": 116, "name": "sbqq_subscription_target_c", "comment": null}, "sbqq_subscription_term_c": {"type": "FLOAT64", "index": 117, "name": "sbqq_subscription_term_c", "comment": null}, "sbqq_subscription_type_c": {"type": "STRING", "index": 118, "name": "sbqq_subscription_type_c", "comment": null}, "sbqq_tax_code_c": {"type": "STRING", "index": 119, "name": "sbqq_tax_code_c", "comment": null}, "sbqq_taxable_c": {"type": "BOOL", "index": 120, "name": "sbqq_taxable_c", "comment": null}, "sbqq_term_discount_level_c": {"type": "STRING", "index": 121, "name": "sbqq_term_discount_level_c", "comment": null}, "sbqq_term_discount_schedule_c": {"type": "STRING", "index": 122, "name": "sbqq_term_discount_schedule_c", "comment": null}, "sbqq_upgrade_credit_c": {"type": "STRING", "index": 123, "name": "sbqq_upgrade_credit_c", "comment": null}, "sbqq_upgrade_ratio_c": {"type": "FLOAT64", "index": 124, "name": "sbqq_upgrade_ratio_c", "comment": null}, "sbqq_upgrade_source_c": {"type": "STRING", "index": 125, "name": "sbqq_upgrade_source_c", "comment": null}, "sbqq_upgrade_target_c": {"type": "STRING", "index": 126, "name": "sbqq_upgrade_target_c", "comment": null}, "connector_type_c": {"type": "STRING", "index": 127, "name": "connector_type_c", "comment": null}, "pbf_pro_type_discount_c": {"type": "BOOL", "index": 128, "name": "pbf_pro_type_discount_c", "comment": null}, "dimension_c": {"type": "STRING", "index": 129, "name": "dimension_c", "comment": null}, "connector_status_c": {"type": "STRING", "index": 130, "name": "connector_status_c", "comment": null}, "dimension_definition_c": {"type": "STRING", "index": 131, "name": "dimension_definition_c", "comment": null}, "ava_sfcpq_tax_code_c": {"type": "STRING", "index": 132, "name": "ava_sfcpq_tax_code_c", "comment": null}, "paid_consumption_c": {"type": "STRING", "index": 133, "name": "paid_consumption_c", "comment": null}, "is_complimentary_c": {"type": "BOOL", "index": 134, "name": "is_complimentary_c", "comment": null}, "product_external_id_c": {"type": "FLOAT64", "index": 135, "name": "product_external_id_c", "comment": null}, "blng_billing_rule_c": {"type": "STRING", "index": 136, "name": "blng_billing_rule_c", "comment": null}, "blng_revenue_recognition_rule_c": {"type": "STRING", "index": 137, "name": "blng_revenue_recognition_rule_c", "comment": null}, "blng_tax_rule_c": {"type": "STRING", "index": 138, "name": "blng_tax_rule_c", "comment": null}, "deployment_date_c": {"type": "TIMESTAMP", "index": 139, "name": "deployment_date_c", "comment": null}, "do_not_prorate_c": {"type": "BOOL", "index": 140, "name": "do_not_prorate_c", "comment": null}, "celigo_sfnsio_netsuite_id_c": {"type": "STRING", "index": 141, "name": "celigo_sfnsio_netsuite_id_c", "comment": null}, "sbqq_enable_large_configuration_c": {"type": "BOOL", "index": 142, "name": "sbqq_enable_large_configuration_c", "comment": null}, "sbqq_pricing_guidance_c": {"type": "STRING", "index": 143, "name": "sbqq_pricing_guidance_c", "comment": null}, "celigo_sfnsio_item_pricing_type_c": {"type": "STRING", "index": 144, "name": "celigo_sfnsio_item_pricing_type_c", "comment": null}, "celigo_sfnsio_test_mode_record_c": {"type": "BOOL", "index": 145, "name": "celigo_sfnsio_test_mode_record_c", "comment": null}, "celigo_sfnsio_celigo_last_modified_date_c": {"type": "TIMESTAMP", "index": 146, "name": "celigo_sfnsio_celigo_last_modified_date_c", "comment": null}, "celigo_sfnsio_net_suite_record_c": {"type": "STRING", "index": 147, "name": "celigo_sfnsio_net_suite_record_c", "comment": null}, "celigo_sfnsio_skip_export_to_net_suite_c": {"type": "BOOL", "index": 148, "name": "celigo_sfnsio_skip_export_to_net_suite_c", "comment": null}, "celigo_sfnsio_net_suite_item_type_c": {"type": "STRING", "index": 149, "name": "celigo_sfnsio_net_suite_item_type_c", "comment": null}, "celigo_sfnsio_net_suite_id_c": {"type": "STRING", "index": 150, "name": "celigo_sfnsio_net_suite_id_c", "comment": null}, "promo_code_c": {"type": "STRING", "index": 151, "name": "promo_code_c", "comment": null}, "product_category_c": {"type": "STRING", "index": 152, "name": "product_category_c", "comment": null}, "product_source_c": {"type": "STRING", "index": 153, "name": "product_source_c", "comment": null}, "non_recurring_c": {"type": "BOOL", "index": 154, "name": "non_recurring_c", "comment": null}, "is_archived": {"type": "BOOL", "index": 155, "name": "is_archived", "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.salesforce_source.stg_salesforce__product_2_tmp"}, "model.salesforce_source.stg_salesforce__user_role": {"metadata": {"type": "table", "schema": "dbt_renee", "name": "stg_salesforce__user_role", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_deleted": {"type": "BOOL", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 2, "name": "_fivetran_synced", "comment": null}, "developer_name": {"type": "STRING", "index": 3, "name": "developer_name", "comment": null}, "user_role_id": {"type": "STRING", "index": 4, "name": "user_role_id", "comment": null}, "user_role_name": {"type": "STRING", "index": 5, "name": "user_role_name", "comment": null}, "opportunity_access_for_account_owner": {"type": "STRING", "index": 6, "name": "opportunity_access_for_account_owner", "comment": null}, "parent_role_id": {"type": "STRING", "index": 7, "name": "parent_role_id", "comment": null}, "rollup_description": {"type": "STRING", "index": 8, "name": "rollup_description", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 25041.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 182.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.salesforce_source.stg_salesforce__user_role"}, "model.salesforce_source.stg_salesforce__opportunity_line_item_tmp": {"metadata": {"type": "view", "schema": "dbt_renee", "name": "stg_salesforce__opportunity_line_item_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"product_2_id": {"type": "STRING", "index": 1, "name": "product_2_id", "comment": null}, "quantity": {"type": "FLOAT64", "index": 2, "name": "quantity", "comment": null}, "total_price": {"type": "FLOAT64", "index": 3, "name": "total_price", "comment": null}, "description": {"type": "STRING", "index": 4, "name": "description", "comment": null}, "discount": {"type": "FLOAT64", "index": 5, "name": "discount", "comment": null}, "last_modified_date": {"type": "TIMESTAMP", "index": 6, "name": "last_modified_date", "comment": null}, "list_price": {"type": "FLOAT64", "index": 7, "name": "list_price", "comment": null}, "product_code": {"type": "STRING", "index": 8, "name": "product_code", "comment": null}, "unit_price": {"type": "FLOAT64", "index": 9, "name": "unit_price", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 10, "name": "_fivetran_synced", "comment": null}, "is_deleted": {"type": "BOOL", "index": 11, "name": "is_deleted", "comment": null}, "opportunity_id": {"type": "STRING", "index": 12, "name": "opportunity_id", "comment": null}, "last_modified_by_id": {"type": "STRING", "index": 13, "name": "last_modified_by_id", "comment": null}, "service_date": {"type": "TIMESTAMP", "index": 14, "name": "service_date", "comment": null}, "system_modstamp": {"type": "TIMESTAMP", "index": 15, "name": "system_modstamp", "comment": null}, "name": {"type": "STRING", "index": 16, "name": "name", "comment": null}, "id": {"type": "STRING", "index": 17, "name": "id", "comment": null}, "created_by_id": {"type": "STRING", "index": 18, "name": "created_by_id", "comment": null}, "created_date": {"type": "TIMESTAMP", "index": 19, "name": "created_date", "comment": null}, "sort_order": {"type": "INT64", "index": 20, "name": "sort_order", "comment": null}, "pricebook_entry_id": {"type": "STRING", "index": 21, "name": "pricebook_entry_id", "comment": null}, "one_saas_app_included_c": {"type": "BOOL", "index": 22, "name": "one_saas_app_included_c", "comment": null}, "one_saas_app_quantity_invoiced_c": {"type": "FLOAT64", "index": 23, "name": "one_saas_app_quantity_invoiced_c", "comment": null}, "one_saas_app_quantity_not_invoiced_c": {"type": "FLOAT64", "index": 24, "name": "one_saas_app_quantity_not_invoiced_c", "comment": null}, "has_quantity_schedule": {"type": "BOOL", "index": 25, "name": "has_quantity_schedule", "comment": null}, "has_revenue_schedule": {"type": "BOOL", "index": 26, "name": "has_revenue_schedule", "comment": null}, "has_schedule": {"type": "BOOL", "index": 27, "name": "has_schedule", "comment": null}, "event_volume_c": {"type": "FLOAT64", "index": 28, "name": "event_volume_c", "comment": null}, "roadmap_connections_c": {"type": "FLOAT64", "index": 29, "name": "roadmap_connections_c", "comment": null}, "row_volume_c": {"type": "FLOAT64", "index": 30, "name": "row_volume_c", "comment": null}, "months_c": {"type": "FLOAT64", "index": 31, "name": "months_c", "comment": null}, "netsuite_conn_term_contract_pricing_type_c": {"type": "STRING", "index": 32, "name": "netsuite_conn_term_contract_pricing_type_c", "comment": null}, "netsuite_conn_discount_item_c": {"type": "STRING", "index": 33, "name": "netsuite_conn_discount_item_c", "comment": null}, "netsuite_conn_user_entered_sales_price_c": {"type": "FLOAT64", "index": 34, "name": "netsuite_conn_user_entered_sales_price_c", "comment": null}, "netsuite_conn_item_category_c": {"type": "STRING", "index": 35, "name": "netsuite_conn_item_category_c", "comment": null}, "netsuite_conn_terms_c": {"type": "FLOAT64", "index": 36, "name": "netsuite_conn_terms_c", "comment": null}, "netsuite_conn_net_suite_item_key_id_c": {"type": "STRING", "index": 37, "name": "netsuite_conn_net_suite_item_key_id_c", "comment": null}, "netsuite_conn_pushed_from_net_suite_c": {"type": "BOOL", "index": 38, "name": "netsuite_conn_pushed_from_net_suite_c", "comment": null}, "netsuite_conn_end_date_c": {"type": "TIMESTAMP", "index": 39, "name": "netsuite_conn_end_date_c", "comment": null}, "netsuite_conn_list_rate_c": {"type": "FLOAT64", "index": 40, "name": "netsuite_conn_list_rate_c", "comment": null}, "netsuite_conn_from_contract_item_id_c": {"type": "STRING", "index": 41, "name": "netsuite_conn_from_contract_item_id_c", "comment": null}, "netsuite_conn_start_date_c": {"type": "TIMESTAMP", "index": 42, "name": "netsuite_conn_start_date_c", "comment": null}, "netsuite_conn_net_suite_item_id_import_c": {"type": "STRING", "index": 43, "name": "netsuite_conn_net_suite_item_id_import_c", "comment": null}, "sbqq_parent_id_c": {"type": "STRING", "index": 44, "name": "sbqq_parent_id_c", "comment": null}, "sbqq_quote_line_c": {"type": "STRING", "index": 45, "name": "sbqq_quote_line_c", "comment": null}, "sbqq_subscription_type_c": {"type": "STRING", "index": 46, "name": "sbqq_subscription_type_c", "comment": null}, "product_family_c": {"type": "STRING", "index": 47, "name": "product_family_c", "comment": null}, "last_referenced_date": {"type": "TIMESTAMP", "index": 48, "name": "last_referenced_date", "comment": null}, "last_viewed_date": {"type": "TIMESTAMP", "index": 49, "name": "last_viewed_date", "comment": null}, "celigo_sfnsio_contract_item_id_c": {"type": "STRING", "index": 50, "name": "celigo_sfnsio_contract_item_id_c", "comment": null}, "celigo_sfnsio_contract_term_c": {"type": "FLOAT64", "index": 51, "name": "celigo_sfnsio_contract_term_c", "comment": null}, "celigo_sfnsio_end_date_c": {"type": "TIMESTAMP", "index": 52, "name": "celigo_sfnsio_end_date_c", "comment": null}, "celigo_sfnsio_list_rate_c": {"type": "BIGNUMERIC", "index": 53, "name": "celigo_sfnsio_list_rate_c", "comment": null}, "celigo_sfnsio_net_suite_line_id_c": {"type": "STRING", "index": 54, "name": "celigo_sfnsio_net_suite_line_id_c", "comment": null}, "celigo_sfnsio_start_date_c": {"type": "TIMESTAMP", "index": 55, "name": "celigo_sfnsio_start_date_c", "comment": null}, "product_code_stamped_c": {"type": "STRING", "index": 56, "name": "product_code_stamped_c", "comment": null}, "hvr_use_case_c": {"type": "BOOL", "index": 57, "name": "hvr_use_case_c", "comment": null}, "net_unit_price_stamp_c": {"type": "BIGNUMERIC", "index": 58, "name": "net_unit_price_stamp_c", "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.salesforce_source.stg_salesforce__opportunity_line_item_tmp"}, "model.salesforce_source.stg_salesforce__task": {"metadata": {"type": "table", "schema": "dbt_renee", "name": "stg_salesforce__task", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "TIMESTAMP", "index": 1, "name": "_fivetran_synced", "comment": null}, "task_id": {"type": "STRING", "index": 2, "name": "task_id", "comment": null}, "account_id": {"type": "STRING", "index": 3, "name": "account_id", "comment": null}, "activity_date": {"type": "TIMESTAMP", "index": 4, "name": "activity_date", "comment": null}, "call_disposition": {"type": "STRING", "index": 5, "name": "call_disposition", "comment": null}, "call_duration_in_seconds": {"type": "INT64", "index": 6, "name": "call_duration_in_seconds", "comment": null}, "call_object": {"type": "STRING", "index": 7, "name": "call_object", "comment": null}, "call_type": {"type": "STRING", "index": 8, "name": "call_type", "comment": null}, "completed_date_time": {"type": "TIMESTAMP", "index": 9, "name": "completed_date_time", "comment": null}, "created_by_id": {"type": "STRING", "index": 10, "name": "created_by_id", "comment": null}, "created_date": {"type": "TIMESTAMP", "index": 11, "name": "created_date", "comment": null}, "description": {"type": "STRING", "index": 12, "name": "description", "comment": null}, "is_archived": {"type": "BOOL", "index": 13, "name": "is_archived", "comment": null}, "is_closed": {"type": "BOOL", "index": 14, "name": "is_closed", "comment": null}, "is_deleted": {"type": "BOOL", "index": 15, "name": "is_deleted", "comment": null}, "is_high_priority": {"type": "BOOL", "index": 16, "name": "is_high_priority", "comment": null}, "last_modified_by_id": {"type": "STRING", "index": 17, "name": "last_modified_by_id", "comment": null}, "last_modified_date": {"type": "TIMESTAMP", "index": 18, "name": "last_modified_date", "comment": null}, "owner_id": {"type": "STRING", "index": 19, "name": "owner_id", "comment": null}, "priority": {"type": "STRING", "index": 20, "name": "priority", "comment": null}, "record_type_id": {"type": "STRING", "index": 21, "name": "record_type_id", "comment": null}, "status": {"type": "STRING", "index": 22, "name": "status", "comment": null}, "subject": {"type": "STRING", "index": 23, "name": "subject", "comment": null}, "task_subtype": {"type": "STRING", "index": 24, "name": "task_subtype", "comment": null}, "type": {"type": "STRING", "index": 25, "name": "type", "comment": null}, "what_count": {"type": "INT64", "index": 26, "name": "what_count", "comment": null}, "what_id": {"type": "STRING", "index": 27, "name": "what_id", "comment": null}, "who_count": {"type": "INT64", "index": 28, "name": "who_count", "comment": null}, "who_id": {"type": "STRING", "index": 29, "name": "who_id", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 11835198091.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 5108505.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.salesforce_source.stg_salesforce__task"}}, "sources": {"source.salesforce_source.salesforce.user_role": {"metadata": {"type": "table", "schema": "salesforce", "name": "user_role", "database": "fivetran", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "BOOL", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 3, "name": "_fivetran_synced", "comment": null}, "case_access_for_account_owner": {"type": "STRING", "index": 4, "name": "case_access_for_account_owner", "comment": null}, "contact_access_for_account_owner": {"type": "STRING", "index": 5, "name": "contact_access_for_account_owner", "comment": null}, "developer_name": {"type": "STRING", "index": 6, "name": "developer_name", "comment": null}, "forecast_user_id": {"type": "STRING", "index": 7, "name": "forecast_user_id", "comment": null}, "last_modified_by_id": {"type": "STRING", "index": 8, "name": "last_modified_by_id", "comment": null}, "last_modified_date": {"type": "TIMESTAMP", "index": 9, "name": "last_modified_date", "comment": null}, "may_forecast_manager_share": {"type": "BOOL", "index": 10, "name": "may_forecast_manager_share", "comment": null}, "name": {"type": "STRING", "index": 11, "name": "name", "comment": null}, "opportunity_access_for_account_owner": {"type": "STRING", "index": 12, "name": "opportunity_access_for_account_owner", "comment": null}, "parent_role_id": {"type": "STRING", "index": 13, "name": "parent_role_id", "comment": null}, "portal_account_id": {"type": "STRING", "index": 14, "name": "portal_account_id", "comment": null}, "portal_account_owner_id": {"type": "STRING", "index": 15, "name": "portal_account_owner_id", "comment": null}, "portal_type": {"type": "STRING", "index": 16, "name": "portal_type", "comment": null}, "rollup_description": {"type": "STRING", "index": 17, "name": "rollup_description", "comment": null}, "system_modstamp": {"type": "TIMESTAMP", "index": 18, "name": "system_modstamp", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 35171.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 182.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.salesforce_source.salesforce.user_role"}, "source.salesforce_source.salesforce.task": {"metadata": {"type": "table", "schema": "salesforce", "name": "task", "database": "fivetran", "comment": null, "owner": null}, "columns": {"referral_account_c": {"type": "STRING", "index": 1, "name": "referral_account_c", "comment": null}, "who_id": {"type": "STRING", "index": 2, "name": "who_id", "comment": null}, "call_disposition": {"type": "STRING", "index": 3, "name": "call_disposition", "comment": null}, "recurrence_day_of_month": {"type": "INT64", "index": 4, "name": "recurrence_day_of_month", "comment": null}, "owner_id": {"type": "STRING", "index": 5, "name": "owner_id", "comment": null}, "recurrence_end_date_only": {"type": "TIMESTAMP", "index": 6, "name": "recurrence_end_date_only", "comment": null}, "subject": {"type": "STRING", "index": 7, "name": "subject", "comment": null}, "description": {"type": "STRING", "index": 8, "name": "description", "comment": null}, "last_modified_date": {"type": "TIMESTAMP", "index": 9, "name": "last_modified_date", "comment": null}, "recurrence_time_zone_sid_key": {"type": "STRING", "index": 10, "name": "recurrence_time_zone_sid_key", "comment": null}, "is_recurrence": {"type": "BOOL", "index": 11, "name": "is_recurrence", "comment": null}, "what_count": {"type": "INT64", "index": 12, "name": "what_count", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 13, "name": "_fivetran_synced", "comment": null}, "call_object": {"type": "STRING", "index": 14, "name": "call_object", "comment": null}, "is_deleted": {"type": "BOOL", "index": 15, "name": "is_deleted", "comment": null}, "recurrence_day_of_week_mask": {"type": "INT64", "index": 16, "name": "recurrence_day_of_week_mask", "comment": null}, "last_modified_by_id": {"type": "STRING", "index": 17, "name": "last_modified_by_id", "comment": null}, "system_modstamp": {"type": "TIMESTAMP", "index": 18, "name": "system_modstamp", "comment": null}, "recurrence_regenerated_type": {"type": "STRING", "index": 19, "name": "recurrence_regenerated_type", "comment": null}, "id": {"type": "STRING", "index": 20, "name": "id", "comment": null}, "recurrence_type": {"type": "STRING", "index": 21, "name": "recurrence_type", "comment": null}, "reminder_date_time": {"type": "TIMESTAMP", "index": 22, "name": "reminder_date_time", "comment": null}, "call_type": {"type": "STRING", "index": 23, "name": "call_type", "comment": null}, "is_high_priority": {"type": "BOOL", "index": 24, "name": "is_high_priority", "comment": null}, "is_closed": {"type": "BOOL", "index": 25, "name": "is_closed", "comment": null}, "recurrence_month_of_year": {"type": "STRING", "index": 26, "name": "recurrence_month_of_year", "comment": null}, "is_reminder_set": {"type": "BOOL", "index": 27, "name": "is_reminder_set", "comment": null}, "activity_date": {"type": "TIMESTAMP", "index": 28, "name": "activity_date", "comment": null}, "recurrence_instance": {"type": "STRING", "index": 29, "name": "recurrence_instance", "comment": null}, "priority": {"type": "STRING", "index": 30, "name": "priority", "comment": null}, "recurrence_interval": {"type": "INT64", "index": 31, "name": "recurrence_interval", "comment": null}, "who_count": {"type": "INT64", "index": 32, "name": "who_count", "comment": null}, "recurrence_start_date_only": {"type": "TIMESTAMP", "index": 33, "name": "recurrence_start_date_only", "comment": null}, "account_id": {"type": "STRING", "index": 34, "name": "account_id", "comment": null}, "referral_contact_c": {"type": "STRING", "index": 35, "name": "referral_contact_c", "comment": null}, "call_duration_in_seconds": {"type": "INT64", "index": 36, "name": "call_duration_in_seconds", "comment": null}, "created_by_id": {"type": "STRING", "index": 37, "name": "created_by_id", "comment": null}, "created_date": {"type": "TIMESTAMP", "index": 38, "name": "created_date", "comment": null}, "recurrence_activity_id": {"type": "STRING", "index": 39, "name": "recurrence_activity_id", "comment": null}, "what_id": {"type": "STRING", "index": 40, "name": "what_id", "comment": null}, "task_subtype": {"type": "STRING", "index": 41, "name": "task_subtype", "comment": null}, "status": {"type": "STRING", "index": 42, "name": "status", "comment": null}, "invitee_uuid_c": {"type": "STRING", "index": 43, "name": "invitee_uuid_c", "comment": null}, "type": {"type": "STRING", "index": 44, "name": "type", "comment": null}, "no_show_c": {"type": "BOOL", "index": 45, "name": "no_show_c", "comment": null}, "first_meeting_held_c": {"type": "BOOL", "index": 46, "name": "first_meeting_held_c", "comment": null}, "associated_sdr_c": {"type": "STRING", "index": 47, "name": "associated_sdr_c", "comment": null}, "first_meeting_c": {"type": "BOOL", "index": 48, "name": "first_meeting_c", "comment": null}, "call_recording_c": {"type": "STRING", "index": 49, "name": "call_recording_c", "comment": null}, "affectlayer_chorus_call_id_c": {"type": "STRING", "index": 50, "name": "affectlayer_chorus_call_id_c", "comment": null}, "affectlayer_affect_layer_call_id_c": {"type": "STRING", "index": 51, "name": "affectlayer_affect_layer_call_id_c", "comment": null}, "last_rep_activity_date_c": {"type": "TIMESTAMP", "index": 52, "name": "last_rep_activity_date_c", "comment": null}, "lid_url_c": {"type": "STRING", "index": 53, "name": "lid_url_c", "comment": null}, "lid_date_sent_c": {"type": "TIMESTAMP", "index": 54, "name": "lid_date_sent_c", "comment": null}, "record_type_id": {"type": "STRING", "index": 55, "name": "record_type_id", "comment": null}, "sales_loft_step_id_c": {"type": "STRING", "index": 56, "name": "sales_loft_step_id_c", "comment": null}, "sales_loft_step_name_c": {"type": "STRING", "index": 57, "name": "sales_loft_step_name_c", "comment": null}, "sales_loft_step_type_c": {"type": "STRING", "index": 58, "name": "sales_loft_step_type_c", "comment": null}, "sales_loft_email_template_id_c": {"type": "STRING", "index": 59, "name": "sales_loft_email_template_id_c", "comment": null}, "sales_loft_external_identifier_c": {"type": "STRING", "index": 60, "name": "sales_loft_external_identifier_c", "comment": null}, "sales_loft_cadence_id_c": {"type": "STRING", "index": 61, "name": "sales_loft_cadence_id_c", "comment": null}, "sales_loft_clicked_count_c": {"type": "FLOAT64", "index": 62, "name": "sales_loft_clicked_count_c", "comment": null}, "sales_loft_cadence_name_c": {"type": "STRING", "index": 63, "name": "sales_loft_cadence_name_c", "comment": null}, "sales_loft_reply_count_c": {"type": "FLOAT64", "index": 64, "name": "sales_loft_reply_count_c", "comment": null}, "call_disposition_c": {"type": "STRING", "index": 65, "name": "call_disposition_c", "comment": null}, "sales_loft_email_template_title_c": {"type": "STRING", "index": 66, "name": "sales_loft_email_template_title_c", "comment": null}, "sales_loft_step_day_new_c": {"type": "FLOAT64", "index": 67, "name": "sales_loft_step_day_new_c", "comment": null}, "call_disposition_2_c": {"type": "STRING", "index": 68, "name": "call_disposition_2_c", "comment": null}, "sales_loft_viewed_count_c": {"type": "FLOAT64", "index": 69, "name": "sales_loft_viewed_count_c", "comment": null}, "sales_loft_1_sales_loft_step_day_c": {"type": "FLOAT64", "index": 70, "name": "sales_loft_1_sales_loft_step_day_c", "comment": null}, "sales_loft_1_sales_loft_clicked_count_c": {"type": "FLOAT64", "index": 71, "name": "sales_loft_1_sales_loft_clicked_count_c", "comment": null}, "sales_loft_1_sales_loft_view_count_c": {"type": "FLOAT64", "index": 72, "name": "sales_loft_1_sales_loft_view_count_c", "comment": null}, "sales_loft_1_call_disposition_c": {"type": "STRING", "index": 73, "name": "sales_loft_1_call_disposition_c", "comment": null}, "sales_loft_1_sales_loft_replies_count_c": {"type": "FLOAT64", "index": 74, "name": "sales_loft_1_sales_loft_replies_count_c", "comment": null}, "sales_loft_1_sales_loft_cadence_name_c": {"type": "STRING", "index": 75, "name": "sales_loft_1_sales_loft_cadence_name_c", "comment": null}, "sales_loft_1_call_sentiment_c": {"type": "STRING", "index": 76, "name": "sales_loft_1_call_sentiment_c", "comment": null}, "sales_loft_1_sales_loft_email_template_title_c": {"type": "STRING", "index": 77, "name": "sales_loft_1_sales_loft_email_template_title_c", "comment": null}, "completed_date_time": {"type": "TIMESTAMP", "index": 78, "name": "completed_date_time", "comment": null}, "is_a_co_sell_activity_c": {"type": "BOOL", "index": 79, "name": "is_a_co_sell_activity_c", "comment": null}, "partner_contact_c": {"type": "STRING", "index": 80, "name": "partner_contact_c", "comment": null}, "co_selling_activity_c": {"type": "STRING", "index": 81, "name": "co_selling_activity_c", "comment": null}, "description_c": {"type": "STRING", "index": 82, "name": "description_c", "comment": null}, "co_sell_partner_account_c": {"type": "STRING", "index": 83, "name": "co_sell_partner_account_c", "comment": null}, "campaign_c": {"type": "STRING", "index": 84, "name": "campaign_c", "comment": null}, "partner_account_c": {"type": "STRING", "index": 85, "name": "partner_account_c", "comment": null}, "topic_c": {"type": "STRING", "index": 86, "name": "topic_c", "comment": null}, "event_name_c": {"type": "STRING", "index": 87, "name": "event_name_c", "comment": null}, "attendance_number_c": {"type": "FLOAT64", "index": 88, "name": "attendance_number_c", "comment": null}, "partner_activity_type_c": {"type": "STRING", "index": 89, "name": "partner_activity_type_c", "comment": null}, "proof_of_referral_c": {"type": "STRING", "index": 90, "name": "proof_of_referral_c", "comment": null}, "how_did_you_bring_value_or_create_trust_c": {"type": "STRING", "index": 91, "name": "how_did_you_bring_value_or_create_trust_c", "comment": null}, "how_did_you_bring_value_or_earn_trust_c": {"type": "STRING", "index": 92, "name": "how_did_you_bring_value_or_earn_trust_c", "comment": null}, "duration_in_minutes_c": {"type": "FLOAT64", "index": 93, "name": "duration_in_minutes_c", "comment": null}, "vidyard_c": {"type": "BOOL", "index": 94, "name": "vidyard_c", "comment": null}, "expected_payment_date_c": {"type": "TIMESTAMP", "index": 95, "name": "expected_payment_date_c", "comment": null}, "execute_collections_plan_activity_c": {"type": "BOOL", "index": 96, "name": "execute_collections_plan_activity_c", "comment": null}, "collections_hold_c": {"type": "BOOL", "index": 97, "name": "collections_hold_c", "comment": null}, "opportunity_c": {"type": "STRING", "index": 98, "name": "opportunity_c", "comment": null}, "meeting_type_c": {"type": "STRING", "index": 99, "name": "meeting_type_c", "comment": null}, "meeting_name_c": {"type": "STRING", "index": 100, "name": "meeting_name_c", "comment": null}, "bizible_2_bizible_id_c": {"type": "STRING", "index": 101, "name": "bizible_2_bizible_id_c", "comment": null}, "bizible_2_bizible_touchpoint_date_c": {"type": "TIMESTAMP", "index": 102, "name": "bizible_2_bizible_touchpoint_date_c", "comment": null}, "assigned_to_role_c": {"type": "STRING", "index": 103, "name": "assigned_to_role_c", "comment": null}, "assigned_to_name_c": {"type": "STRING", "index": 104, "name": "assigned_to_name_c", "comment": null}, "legacy_hvr_id_c": {"type": "STRING", "index": 105, "name": "legacy_hvr_id_c", "comment": null}, "is_archived": {"type": "BOOL", "index": 106, "name": "is_archived", "comment": null}}, "stats": {"clustering_fields": {"id": "clustering_fields", "label": "Clustered By", "value": "id", "include": true, "description": "The clustering columns for this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 13395156561.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 5996308.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.salesforce_source.salesforce.task"}, "source.salesforce_source.salesforce.order": {"metadata": {"type": "table", "schema": "salesforce", "name": "order", "database": "fivetran", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 2, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "STRING", "index": 3, "name": "account_id", "comment": null}, "activated_by_id": {"type": "STRING", "index": 4, "name": "activated_by_id", "comment": null}, "activated_date": {"type": "TIMESTAMP", "index": 5, "name": "activated_date", "comment": null}, "billing_city": {"type": "STRING", "index": 6, "name": "billing_city", "comment": null}, "billing_country": {"type": "STRING", "index": 7, "name": "billing_country", "comment": null}, "billing_country_code": {"type": "STRING", "index": 8, "name": "billing_country_code", "comment": null}, "billing_geocode_accuracy": {"type": "STRING", "index": 9, "name": "billing_geocode_accuracy", "comment": null}, "billing_latitude": {"type": "FLOAT64", "index": 10, "name": "billing_latitude", "comment": null}, "billing_longitude": {"type": "FLOAT64", "index": 11, "name": "billing_longitude", "comment": null}, "billing_postal_code": {"type": "STRING", "index": 12, "name": "billing_postal_code", "comment": null}, "billing_state": {"type": "STRING", "index": 13, "name": "billing_state", "comment": null}, "billing_state_code": {"type": "STRING", "index": 14, "name": "billing_state_code", "comment": null}, "billing_street": {"type": "STRING", "index": 15, "name": "billing_street", "comment": null}, "company_authorized_by_id": {"type": "STRING", "index": 16, "name": "company_authorized_by_id", "comment": null}, "contract_id": {"type": "STRING", "index": 17, "name": "contract_id", "comment": null}, "created_by_id": {"type": "STRING", "index": 18, "name": "created_by_id", "comment": null}, "created_date": {"type": "TIMESTAMP", "index": 19, "name": "created_date", "comment": null}, "customer_authorized_by_id": {"type": "STRING", "index": 20, "name": "customer_authorized_by_id", "comment": null}, "description": {"type": "STRING", "index": 21, "name": "description", "comment": null}, "effective_date": {"type": "TIMESTAMP", "index": 22, "name": "effective_date", "comment": null}, "end_date": {"type": "TIMESTAMP", "index": 23, "name": "end_date", "comment": null}, "is_deleted": {"type": "BOOL", "index": 24, "name": "is_deleted", "comment": null}, "is_reduction_order": {"type": "BOOL", "index": 25, "name": "is_reduction_order", "comment": null}, "last_modified_by_id": {"type": "STRING", "index": 26, "name": "last_modified_by_id", "comment": null}, "last_modified_date": {"type": "TIMESTAMP", "index": 27, "name": "last_modified_date", "comment": null}, "last_referenced_date": {"type": "TIMESTAMP", "index": 28, "name": "last_referenced_date", "comment": null}, "last_viewed_date": {"type": "TIMESTAMP", "index": 29, "name": "last_viewed_date", "comment": null}, "order_number": {"type": "STRING", "index": 30, "name": "order_number", "comment": null}, "original_order_id": {"type": "STRING", "index": 31, "name": "original_order_id", "comment": null}, "owner_id": {"type": "STRING", "index": 32, "name": "owner_id", "comment": null}, "pricebook_2_id": {"type": "STRING", "index": 33, "name": "pricebook_2_id", "comment": null}, "shipping_city": {"type": "STRING", "index": 34, "name": "shipping_city", "comment": null}, "shipping_country": {"type": "STRING", "index": 35, "name": "shipping_country", "comment": null}, "shipping_country_code": {"type": "STRING", "index": 36, "name": "shipping_country_code", "comment": null}, "shipping_geocode_accuracy": {"type": "STRING", "index": 37, "name": "shipping_geocode_accuracy", "comment": null}, "shipping_latitude": {"type": "FLOAT64", "index": 38, "name": "shipping_latitude", "comment": null}, "shipping_longitude": {"type": "FLOAT64", "index": 39, "name": "shipping_longitude", "comment": null}, "shipping_postal_code": {"type": "STRING", "index": 40, "name": "shipping_postal_code", "comment": null}, "shipping_state": {"type": "STRING", "index": 41, "name": "shipping_state", "comment": null}, "shipping_state_code": {"type": "STRING", "index": 42, "name": "shipping_state_code", "comment": null}, "shipping_street": {"type": "STRING", "index": 43, "name": "shipping_street", "comment": null}, "status": {"type": "STRING", "index": 44, "name": "status", "comment": null}, "status_code": {"type": "STRING", "index": 45, "name": "status_code", "comment": null}, "system_modstamp": {"type": "TIMESTAMP", "index": 46, "name": "system_modstamp", "comment": null}, "total_amount": {"type": "FLOAT64", "index": 47, "name": "total_amount", "comment": null}, "type": {"type": "STRING", "index": 48, "name": "type", "comment": null}, "netsuite_conn_celigo_update_c": {"type": "BOOL", "index": 49, "name": "netsuite_conn_celigo_update_c", "comment": null}, "netsuite_conn_net_suite_id_c": {"type": "STRING", "index": 50, "name": "netsuite_conn_net_suite_id_c", "comment": null}, "netsuite_conn_net_suite_sync_err_c": {"type": "STRING", "index": 51, "name": "netsuite_conn_net_suite_sync_err_c", "comment": null}, "netsuite_conn_pushed_from_net_suite_c": {"type": "BOOL", "index": 52, "name": "netsuite_conn_pushed_from_net_suite_c", "comment": null}, "netsuite_conn_opportunity_c": {"type": "STRING", "index": 53, "name": "netsuite_conn_opportunity_c", "comment": null}, "netsuite_conn_net_suite_order_status_c": {"type": "STRING", "index": 54, "name": "netsuite_conn_net_suite_order_status_c", "comment": null}, "netsuite_conn_sync_in_progress_c": {"type": "BOOL", "index": 55, "name": "netsuite_conn_sync_in_progress_c", "comment": null}, "netsuite_conn_tax_total_c": {"type": "FLOAT64", "index": 56, "name": "netsuite_conn_tax_total_c", "comment": null}, "netsuite_conn_tracking_numbers_c": {"type": "STRING", "index": 57, "name": "netsuite_conn_tracking_numbers_c", "comment": null}, "netsuite_conn_push_to_net_suite_c": {"type": "BOOL", "index": 58, "name": "netsuite_conn_push_to_net_suite_c", "comment": null}, "netsuite_conn_document_id_c": {"type": "STRING", "index": 59, "name": "netsuite_conn_document_id_c", "comment": null}, "netsuite_conn_subtotal_c": {"type": "FLOAT64", "index": 60, "name": "netsuite_conn_subtotal_c", "comment": null}, "netsuite_conn_discount_total_c": {"type": "FLOAT64", "index": 61, "name": "netsuite_conn_discount_total_c", "comment": null}, "netsuite_conn_total_c": {"type": "FLOAT64", "index": 62, "name": "netsuite_conn_total_c", "comment": null}, "netsuite_conn_net_suite_order_date_c": {"type": "TIMESTAMP", "index": 63, "name": "netsuite_conn_net_suite_order_date_c", "comment": null}, "netsuite_conn_ship_date_c": {"type": "TIMESTAMP", "index": 64, "name": "netsuite_conn_ship_date_c", "comment": null}, "netsuite_conn_quote_c": {"type": "STRING", "index": 65, "name": "netsuite_conn_quote_c", "comment": null}, "netsuite_conn_net_suite_order_number_c": {"type": "STRING", "index": 66, "name": "netsuite_conn_net_suite_order_number_c", "comment": null}, "sbqq_contracted_c": {"type": "BOOL", "index": 67, "name": "sbqq_contracted_c", "comment": null}, "sbqq_contracting_method_c": {"type": "STRING", "index": 68, "name": "sbqq_contracting_method_c", "comment": null}, "sbqq_payment_term_c": {"type": "STRING", "index": 69, "name": "sbqq_payment_term_c", "comment": null}, "sbqq_price_calc_status_c": {"type": "STRING", "index": 70, "name": "sbqq_price_calc_status_c", "comment": null}, "sbqq_price_calc_status_message_c": {"type": "STRING", "index": 71, "name": "sbqq_price_calc_status_message_c", "comment": null}, "sbqq_quote_c": {"type": "STRING", "index": 72, "name": "sbqq_quote_c", "comment": null}, "sbqq_renewal_term_c": {"type": "FLOAT64", "index": 73, "name": "sbqq_renewal_term_c", "comment": null}, "sbqq_renewal_uplift_rate_c": {"type": "FLOAT64", "index": 74, "name": "sbqq_renewal_uplift_rate_c", "comment": null}, "ava_sfcpq_ava_tax_message_c": {"type": "STRING", "index": 75, "name": "ava_sfcpq_ava_tax_message_c", "comment": null}, "ava_sfcpq_entity_use_code_c": {"type": "STRING", "index": 76, "name": "ava_sfcpq_entity_use_code_c", "comment": null}, "ava_sfcpq_invoice_message_c": {"type": "STRING", "index": 77, "name": "ava_sfcpq_invoice_message_c", "comment": null}, "ava_sfcpq_is_seller_importer_of_record_c": {"type": "BOOL", "index": 78, "name": "ava_sfcpq_is_seller_importer_of_record_c", "comment": null}, "ava_sfcpq_order_calculate_tax_c": {"type": "BOOL", "index": 79, "name": "ava_sfcpq_order_calculate_tax_c", "comment": null}, "ava_sfcpq_sales_tax_amount_c": {"type": "BIGNUMERIC", "index": 80, "name": "ava_sfcpq_sales_tax_amount_c", "comment": null}, "blng_bill_now_c": {"type": "BOOL", "index": 81, "name": "blng_bill_now_c", "comment": null}, "blng_billing_account_c": {"type": "STRING", "index": 82, "name": "blng_billing_account_c", "comment": null}, "blng_billing_day_of_month_c": {"type": "STRING", "index": 83, "name": "blng_billing_day_of_month_c", "comment": null}, "blng_invoice_batch_c": {"type": "STRING", "index": 84, "name": "blng_invoice_batch_c", "comment": null}, "amendment_type_c": {"type": "STRING", "index": 85, "name": "amendment_type_c", "comment": null}, "credit_summary_c": {"type": "STRING", "index": 86, "name": "credit_summary_c", "comment": null}, "evergreen_c": {"type": "BOOL", "index": 87, "name": "evergreen_c", "comment": null}, "invoicing_type_c": {"type": "STRING", "index": 88, "name": "invoicing_type_c", "comment": null}, "legal_entity_c": {"type": "STRING", "index": 89, "name": "legal_entity_c", "comment": null}, "prepaid_billing_frequency_c": {"type": "STRING", "index": 90, "name": "prepaid_billing_frequency_c", "comment": null}, "prepaid_order_c": {"type": "BOOL", "index": 91, "name": "prepaid_order_c", "comment": null}, "update_subscriptions_only_c": {"type": "BOOL", "index": 92, "name": "update_subscriptions_only_c", "comment": null}, "order_auto_activated_c": {"type": "BOOL", "index": 93, "name": "order_auto_activated_c", "comment": null}, "synced_to_net_suite_c": {"type": "BOOL", "index": 94, "name": "synced_to_net_suite_c", "comment": null}, "purchase_order_number_c": {"type": "STRING", "index": 95, "name": "purchase_order_number_c", "comment": null}, "celigo_sfnsio_discount_total_net_suite_c": {"type": "BIGNUMERIC", "index": 96, "name": "celigo_sfnsio_discount_total_net_suite_c", "comment": null}, "celigo_sfnsio_net_suite_id_c": {"type": "STRING", "index": 97, "name": "celigo_sfnsio_net_suite_id_c", "comment": null}, "celigo_sfnsio_net_suite_order_number_c": {"type": "STRING", "index": 98, "name": "celigo_sfnsio_net_suite_order_number_c", "comment": null}, "celigo_sfnsio_net_suite_order_status_c": {"type": "STRING", "index": 99, "name": "celigo_sfnsio_net_suite_order_status_c", "comment": null}, "celigo_sfnsio_net_suite_record_c": {"type": "STRING", "index": 100, "name": "celigo_sfnsio_net_suite_record_c", "comment": null}, "celigo_sfnsio_ship_date_c": {"type": "TIMESTAMP", "index": 101, "name": "celigo_sfnsio_ship_date_c", "comment": null}, "celigo_sfnsio_skip_export_to_net_suite_c": {"type": "BOOL", "index": 102, "name": "celigo_sfnsio_skip_export_to_net_suite_c", "comment": null}, "celigo_sfnsio_sub_total_net_suite_c": {"type": "BIGNUMERIC", "index": 103, "name": "celigo_sfnsio_sub_total_net_suite_c", "comment": null}, "celigo_sfnsio_tax_total_net_suite_c": {"type": "BIGNUMERIC", "index": 104, "name": "celigo_sfnsio_tax_total_net_suite_c", "comment": null}, "celigo_sfnsio_test_mode_record_c": {"type": "BOOL", "index": 105, "name": "celigo_sfnsio_test_mode_record_c", "comment": null}, "celigo_sfnsio_total_net_suite_c": {"type": "BIGNUMERIC", "index": 106, "name": "celigo_sfnsio_total_net_suite_c", "comment": null}, "amend_with_rollover_spend_type_c": {"type": "BOOL", "index": 107, "name": "amend_with_rollover_spend_type_c", "comment": null}, "customer_spend_type_c": {"type": "STRING", "index": 108, "name": "customer_spend_type_c", "comment": null}, "order_spend_type_c": {"type": "STRING", "index": 109, "name": "order_spend_type_c", "comment": null}, "opportunity_id": {"type": "STRING", "index": 110, "name": "opportunity_id", "comment": null}, "purchase_summary_c": {"type": "STRING", "index": 111, "name": "purchase_summary_c", "comment": null}, "is_hvr_legacy_order_c": {"type": "BOOL", "index": 112, "name": "is_hvr_legacy_order_c", "comment": null}, "ironclad_workflow_c": {"type": "STRING", "index": 113, "name": "ironclad_workflow_c", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 13422186.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 24896.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.salesforce_source.salesforce.order"}, "source.salesforce_source.salesforce.lead": {"metadata": {"type": "table", "schema": "salesforce", "name": "lead", "database": "fivetran", "comment": null, "owner": null}, "columns": {"country": {"type": "STRING", "index": 1, "name": "country", "comment": null}, "email_bounced_reason": {"type": "STRING", "index": 2, "name": "email_bounced_reason", "comment": null}, "email_bounced_date": {"type": "TIMESTAMP", "index": 3, "name": "email_bounced_date", "comment": null}, "owner_id": {"type": "STRING", "index": 4, "name": "owner_id", "comment": null}, "secondary_email_c": {"type": "STRING", "index": 5, "name": "secondary_email_c", "comment": null}, "lead_source": {"type": "STRING", "index": 6, "name": "lead_source", "comment": null}, "converted_date": {"type": "TIMESTAMP", "index": 7, "name": "converted_date", "comment": null}, "last_modified_date": {"type": "TIMESTAMP", "index": 8, "name": "last_modified_date", "comment": null}, "master_record_id": {"type": "STRING", "index": 9, "name": "master_record_id", "comment": null}, "last_modified_by_id": {"type": "STRING", "index": 10, "name": "last_modified_by_id", "comment": null}, "system_modstamp": {"type": "TIMESTAMP", "index": 11, "name": "system_modstamp", "comment": null}, "geocode_accuracy": {"type": "STRING", "index": 12, "name": "geocode_accuracy", "comment": null}, "converted_contact_id": {"type": "STRING", "index": 13, "name": "converted_contact_id", "comment": null}, "up_region_c": {"type": "STRING", "index": 14, "name": "up_region_c", "comment": null}, "id": {"type": "STRING", "index": 15, "name": "id", "comment": null}, "photo_url": {"type": "STRING", "index": 16, "name": "photo_url", "comment": null}, "state": {"type": "STRING", "index": 17, "name": "state", "comment": null}, "longitude": {"type": "FLOAT64", "index": 18, "name": "longitude", "comment": null}, "last_referenced_date": {"type": "TIMESTAMP", "index": 19, "name": "last_referenced_date", "comment": null}, "up_district_c": {"type": "STRING", "index": 20, "name": "up_district_c", "comment": null}, "last_activity_date": {"type": "TIMESTAMP", "index": 21, "name": "last_activity_date", "comment": null}, "country_code": {"type": "STRING", "index": 22, "name": "country_code", "comment": null}, "phone": {"type": "STRING", "index": 23, "name": "phone", "comment": null}, "mc_4_sf_mc_subscriber_c": {"type": "STRING", "index": 24, "name": "mc_4_sf_mc_subscriber_c", "comment": null}, "name": {"type": "STRING", "index": 25, "name": "name", "comment": null}, "jigsaw_contact_id": {"type": "STRING", "index": 26, "name": "jigsaw_contact_id", "comment": null}, "lead_source_detail_c": {"type": "STRING", "index": 27, "name": "lead_source_detail_c", "comment": null}, "created_by_id": {"type": "STRING", "index": 28, "name": "created_by_id", "comment": null}, "salutation": {"type": "STRING", "index": 29, "name": "salutation", "comment": null}, "is_converted": {"type": "BOOL", "index": 30, "name": "is_converted", "comment": null}, "state_code": {"type": "STRING", "index": 31, "name": "state_code", "comment": null}, "is_unread_by_owner": {"type": "BOOL", "index": 32, "name": "is_unread_by_owner", "comment": null}, "status": {"type": "STRING", "index": 33, "name": "status", "comment": null}, "city": {"type": "STRING", "index": 34, "name": "city", "comment": null}, "latitude": {"type": "FLOAT64", "index": 35, "name": "latitude", "comment": null}, "cbit_clearbit_c": {"type": "STRING", "index": 36, "name": "cbit_clearbit_c", "comment": null}, "industry": {"type": "STRING", "index": 37, "name": "industry", "comment": null}, "title": {"type": "STRING", "index": 38, "name": "title", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 39, "name": "_fivetran_synced", "comment": null}, "last_viewed_date": {"type": "TIMESTAMP", "index": 40, "name": "last_viewed_date", "comment": null}, "converted_opportunity_id": {"type": "STRING", "index": 41, "name": "converted_opportunity_id", "comment": null}, "is_deleted": {"type": "BOOL", "index": 42, "name": "is_deleted", "comment": null}, "street": {"type": "STRING", "index": 43, "name": "street", "comment": null}, "company": {"type": "STRING", "index": 44, "name": "company", "comment": null}, "first_name": {"type": "STRING", "index": 45, "name": "first_name", "comment": null}, "email": {"type": "STRING", "index": 46, "name": "email", "comment": null}, "website": {"type": "STRING", "index": 47, "name": "website", "comment": null}, "last_name": {"type": "STRING", "index": 48, "name": "last_name", "comment": null}, "number_of_employees": {"type": "INT64", "index": 49, "name": "number_of_employees", "comment": null}, "up_territory_c": {"type": "STRING", "index": 50, "name": "up_territory_c", "comment": null}, "created_date": {"type": "TIMESTAMP", "index": 51, "name": "created_date", "comment": null}, "gclid_c": {"type": "STRING", "index": 52, "name": "gclid_c", "comment": null}, "active_in_sequence_c": {"type": "BOOL", "index": 53, "name": "active_in_sequence_c", "comment": null}, "postal_code": {"type": "STRING", "index": 54, "name": "postal_code", "comment": null}, "cbit_clearbit_ready_c": {"type": "BOOL", "index": 55, "name": "cbit_clearbit_ready_c", "comment": null}, "has_opted_out_of_email": {"type": "BOOL", "index": 56, "name": "has_opted_out_of_email", "comment": null}, "converted_account_id": {"type": "STRING", "index": 57, "name": "converted_account_id", "comment": null}, "mobile_phone": {"type": "STRING", "index": 58, "name": "mobile_phone", "comment": null}, "calendly_created_c": {"type": "BOOL", "index": 59, "name": "calendly_created_c", "comment": null}, "account_c": {"type": "STRING", "index": 60, "name": "account_c", "comment": null}, "all_connectors_c": {"type": "STRING", "index": 61, "name": "all_connectors_c", "comment": null}, "all_data_warehouses_c": {"type": "STRING", "index": 62, "name": "all_data_warehouses_c", "comment": null}, "bi_tools_c": {"type": "STRING", "index": 63, "name": "bi_tools_c", "comment": null}, "competitors_c": {"type": "STRING", "index": 64, "name": "competitors_c", "comment": null}, "annual_revenue": {"type": "FLOAT64", "index": 65, "name": "annual_revenue", "comment": null}, "connectors_products_c": {"type": "STRING", "index": 66, "name": "connectors_products_c", "comment": null}, "contact_c": {"type": "STRING", "index": 67, "name": "contact_c", "comment": null}, "data_warehouse_products_c": {"type": "STRING", "index": 68, "name": "data_warehouse_products_c", "comment": null}, "notes_c": {"type": "STRING", "index": 69, "name": "notes_c", "comment": null}, "timeframe_c": {"type": "STRING", "index": 70, "name": "timeframe_c", "comment": null}, "account_all_products_c": {"type": "STRING", "index": 71, "name": "account_all_products_c", "comment": null}, "account_bi_tools_c": {"type": "STRING", "index": 72, "name": "account_bi_tools_c", "comment": null}, "account_data_warehouses_c": {"type": "STRING", "index": 73, "name": "account_data_warehouses_c", "comment": null}, "opportunity_competitors_c": {"type": "STRING", "index": 74, "name": "opportunity_competitors_c", "comment": null}, "opportunity_products_c": {"type": "STRING", "index": 75, "name": "opportunity_products_c", "comment": null}, "description": {"type": "STRING", "index": 76, "name": "description", "comment": null}, "referral_account_c": {"type": "STRING", "index": 77, "name": "referral_account_c", "comment": null}, "referral_contact_c": {"type": "STRING", "index": 78, "name": "referral_contact_c", "comment": null}, "volume_in_millions_c": {"type": "FLOAT64", "index": 79, "name": "volume_in_millions_c", "comment": null}, "feature_requests_c": {"type": "STRING", "index": 80, "name": "feature_requests_c", "comment": null}, "lead_number_c": {"type": "STRING", "index": 81, "name": "lead_number_c", "comment": null}, "demo_scheduled_by_calenderly_c": {"type": "BOOL", "index": 82, "name": "demo_scheduled_by_calenderly_c", "comment": null}, "to_delete_c": {"type": "BOOL", "index": 83, "name": "to_delete_c", "comment": null}, "bounced_email_c": {"type": "BOOL", "index": 84, "name": "bounced_email_c", "comment": null}, "email_quality_c": {"type": "BOOL", "index": 85, "name": "email_quality_c", "comment": null}, "email_quality_catchall_c": {"type": "BOOL", "index": 86, "name": "email_quality_catchall_c", "comment": null}, "old_lead_source_c": {"type": "STRING", "index": 87, "name": "old_lead_source_c", "comment": null}, "email_bounced_c": {"type": "BOOL", "index": 88, "name": "email_bounced_c", "comment": null}, "old_lead_source_detail_c": {"type": "STRING", "index": 89, "name": "old_lead_source_detail_c", "comment": null}, "utm_medium_c": {"type": "STRING", "index": 90, "name": "utm_medium_c", "comment": null}, "utm_source_c": {"type": "STRING", "index": 91, "name": "utm_source_c", "comment": null}, "utm_campaign_c": {"type": "STRING", "index": 92, "name": "utm_campaign_c", "comment": null}, "utm_content_c": {"type": "STRING", "index": 93, "name": "utm_content_c", "comment": null}, "utm_term_c": {"type": "STRING", "index": 94, "name": "utm_term_c", "comment": null}, "act_on_lead_score_c": {"type": "FLOAT64", "index": 95, "name": "act_on_lead_score_c", "comment": null}, "cbit_created_by_clearbit_c": {"type": "BOOL", "index": 96, "name": "cbit_created_by_clearbit_c", "comment": null}, "fivetran_user_id_c": {"type": "STRING", "index": 97, "name": "fivetran_user_id_c", "comment": null}, "geo_state_acton_c": {"type": "STRING", "index": 98, "name": "geo_state_acton_c", "comment": null}, "actoncountry_c": {"type": "STRING", "index": 99, "name": "actoncountry_c", "comment": null}, "actoncity_c": {"type": "STRING", "index": 100, "name": "actoncity_c", "comment": null}, "actoncountrycode_c": {"type": "STRING", "index": 101, "name": "actoncountrycode_c", "comment": null}, "actonpostalcode_c": {"type": "STRING", "index": 102, "name": "actonpostalcode_c", "comment": null}, "actonreferrer_c": {"type": "STRING", "index": 103, "name": "actonreferrer_c", "comment": null}, "actonstate_c": {"type": "STRING", "index": 104, "name": "actonstate_c", "comment": null}, "geo_city_c": {"type": "STRING", "index": 105, "name": "geo_city_c", "comment": null}, "geo_country_c": {"type": "STRING", "index": 106, "name": "geo_country_c", "comment": null}, "geo_country_code_c": {"type": "STRING", "index": 107, "name": "geo_country_code_c", "comment": null}, "geo_postal_code_c": {"type": "STRING", "index": 108, "name": "geo_postal_code_c", "comment": null}, "geo_state_c": {"type": "STRING", "index": 109, "name": "geo_state_c", "comment": null}, "company_type_c": {"type": "STRING", "index": 110, "name": "company_type_c", "comment": null}, "pi_campaign_c": {"type": "STRING", "index": 111, "name": "pi_campaign_c", "comment": null}, "pi_comments_c": {"type": "STRING", "index": 112, "name": "pi_comments_c", "comment": null}, "pi_conversion_date_c": {"type": "TIMESTAMP", "index": 113, "name": "pi_conversion_date_c", "comment": null}, "pi_conversion_object_name_c": {"type": "STRING", "index": 114, "name": "pi_conversion_object_name_c", "comment": null}, "pi_conversion_object_type_c": {"type": "STRING", "index": 115, "name": "pi_conversion_object_type_c", "comment": null}, "pi_created_date_c": {"type": "TIMESTAMP", "index": 116, "name": "pi_created_date_c", "comment": null}, "pi_first_activity_c": {"type": "TIMESTAMP", "index": 117, "name": "pi_first_activity_c", "comment": null}, "pi_first_search_term_c": {"type": "STRING", "index": 118, "name": "pi_first_search_term_c", "comment": null}, "pi_first_search_type_c": {"type": "STRING", "index": 119, "name": "pi_first_search_type_c", "comment": null}, "pi_first_touch_url_c": {"type": "STRING", "index": 120, "name": "pi_first_touch_url_c", "comment": null}, "pi_grade_c": {"type": "STRING", "index": 121, "name": "pi_grade_c", "comment": null}, "pi_last_activity_c": {"type": "TIMESTAMP", "index": 122, "name": "pi_last_activity_c", "comment": null}, "pi_needs_score_synced_c": {"type": "BOOL", "index": 123, "name": "pi_needs_score_synced_c", "comment": null}, "pi_notes_c": {"type": "STRING", "index": 124, "name": "pi_notes_c", "comment": null}, "pi_pardot_hard_bounced_c": {"type": "BOOL", "index": 125, "name": "pi_pardot_hard_bounced_c", "comment": null}, "pi_pardot_last_scored_at_c": {"type": "TIMESTAMP", "index": 126, "name": "pi_pardot_last_scored_at_c", "comment": null}, "pi_score_c": {"type": "FLOAT64", "index": 127, "name": "pi_score_c", "comment": null}, "pi_url_c": {"type": "STRING", "index": 128, "name": "pi_url_c", "comment": null}, "pi_utm_campaign_c": {"type": "STRING", "index": 129, "name": "pi_utm_campaign_c", "comment": null}, "pi_utm_content_c": {"type": "STRING", "index": 130, "name": "pi_utm_content_c", "comment": null}, "pi_utm_medium_c": {"type": "STRING", "index": 131, "name": "pi_utm_medium_c", "comment": null}, "pi_utm_source_c": {"type": "STRING", "index": 132, "name": "pi_utm_source_c", "comment": null}, "pi_utm_term_c": {"type": "STRING", "index": 133, "name": "pi_utm_term_c", "comment": null}, "fax": {"type": "STRING", "index": 134, "name": "fax", "comment": null}, "region_c": {"type": "STRING", "index": 135, "name": "region_c", "comment": null}, "competitor_c": {"type": "BOOL", "index": 136, "name": "competitor_c", "comment": null}, "source_detail_c": {"type": "STRING", "index": 137, "name": "source_detail_c", "comment": null}, "fivetran_account_stage_c": {"type": "STRING", "index": 138, "name": "fivetran_account_stage_c", "comment": null}, "fivetran_account_id_c": {"type": "STRING", "index": 139, "name": "fivetran_account_id_c", "comment": null}, "lean_data_router_status_c": {"type": "STRING", "index": 140, "name": "lean_data_router_status_c", "comment": null}, "lean_data_matched_lead_c": {"type": "STRING", "index": 141, "name": "lean_data_matched_lead_c", "comment": null}, "lean_data_routing_action_c": {"type": "STRING", "index": 142, "name": "lean_data_routing_action_c", "comment": null}, "lean_data_search_index_c": {"type": "STRING", "index": 143, "name": "lean_data_search_index_c", "comment": null}, "lean_data_reporting_matched_account_c": {"type": "STRING", "index": 144, "name": "lean_data_reporting_matched_account_c", "comment": null}, "lean_data_reporting_timestamp_c": {"type": "TIMESTAMP", "index": 145, "name": "lean_data_reporting_timestamp_c", "comment": null}, "lean_data_ld_segment_c": {"type": "STRING", "index": 146, "name": "lean_data_ld_segment_c", "comment": null}, "lean_data_marketing_sys_created_date_c": {"type": "TIMESTAMP", "index": 147, "name": "lean_data_marketing_sys_created_date_c", "comment": null}, "lean_data_matched_account_c": {"type": "STRING", "index": 148, "name": "lean_data_matched_account_c", "comment": null}, "lean_data_a_2_b_account_c": {"type": "STRING", "index": 149, "name": "lean_data_a_2_b_account_c", "comment": null}, "lean_data_search_c": {"type": "STRING", "index": 150, "name": "lean_data_search_c", "comment": null}, "lean_data_routing_status_c": {"type": "STRING", "index": 151, "name": "lean_data_routing_status_c", "comment": null}, "lean_data_a_2_b_group_c": {"type": "STRING", "index": 152, "name": "lean_data_a_2_b_group_c", "comment": null}, "lean_data_matched_buyer_persona_c": {"type": "STRING", "index": 153, "name": "lean_data_matched_buyer_persona_c", "comment": null}, "lean_data_tag_c": {"type": "STRING", "index": 154, "name": "lean_data_tag_c", "comment": null}, "lean_data_status_info_c": {"type": "STRING", "index": 155, "name": "lean_data_status_info_c", "comment": null}, "lean_data_modified_score_c": {"type": "FLOAT64", "index": 156, "name": "lean_data_modified_score_c", "comment": null}, "do_not_route_lead_c": {"type": "BOOL", "index": 157, "name": "do_not_route_lead_c", "comment": null}, "partner_type_c": {"type": "STRING", "index": 158, "name": "partner_type_c", "comment": null}, "allbound_id_c": {"type": "STRING", "index": 159, "name": "allbound_id_c", "comment": null}, "lid_linked_in_company_id_c": {"type": "STRING", "index": 160, "name": "lid_linked_in_company_id_c", "comment": null}, "lid_linked_in_member_token_c": {"type": "STRING", "index": 161, "name": "lid_linked_in_member_token_c", "comment": null}, "lean_data_re_route_c": {"type": "FLOAT64", "index": 162, "name": "lean_data_re_route_c", "comment": null}, "sales_loft_1_most_recent_cadence_next_step_due_date_c": {"type": "TIMESTAMP", "index": 163, "name": "sales_loft_1_most_recent_cadence_next_step_due_date_c", "comment": null}, "sales_loft_1_most_recent_last_completed_step_c": {"type": "FLOAT64", "index": 164, "name": "sales_loft_1_most_recent_last_completed_step_c", "comment": null}, "sales_loft_1_most_recent_cadence_name_c": {"type": "STRING", "index": 165, "name": "sales_loft_1_most_recent_cadence_name_c", "comment": null}, "network_c": {"type": "STRING", "index": 166, "name": "network_c", "comment": null}, "matchtype_c": {"type": "STRING", "index": 167, "name": "matchtype_c", "comment": null}, "device_c": {"type": "STRING", "index": 168, "name": "device_c", "comment": null}, "creative_c": {"type": "STRING", "index": 169, "name": "creative_c", "comment": null}, "adgroupid_c": {"type": "STRING", "index": 170, "name": "adgroupid_c", "comment": null}, "keyword_c": {"type": "STRING", "index": 171, "name": "keyword_c", "comment": null}, "campaignid_c": {"type": "STRING", "index": 172, "name": "campaignid_c", "comment": null}, "partner_rep_email_c": {"type": "STRING", "index": 173, "name": "partner_rep_email_c", "comment": null}, "partner_rep_name_c": {"type": "STRING", "index": 174, "name": "partner_rep_name_c", "comment": null}, "lead_type_c": {"type": "STRING", "index": 175, "name": "lead_type_c", "comment": null}, "contact_stage_c": {"type": "STRING", "index": 176, "name": "contact_stage_c", "comment": null}, "original_utm_campaign_c": {"type": "STRING", "index": 177, "name": "original_utm_campaign_c", "comment": null}, "original_utm_content_c": {"type": "STRING", "index": 178, "name": "original_utm_content_c", "comment": null}, "original_utm_medium_c": {"type": "STRING", "index": 179, "name": "original_utm_medium_c", "comment": null}, "original_utm_source_c": {"type": "STRING", "index": 180, "name": "original_utm_source_c", "comment": null}, "original_utm_term_c": {"type": "STRING", "index": 181, "name": "original_utm_term_c", "comment": null}, "es_app_esalexa_rank_c": {"type": "FLOAT64", "index": 182, "name": "es_app_esalexa_rank_c", "comment": null}, "es_app_esaudience_names_c": {"type": "STRING", "index": 183, "name": "es_app_esaudience_names_c", "comment": null}, "es_app_escity_c": {"type": "STRING", "index": 184, "name": "es_app_escity_c", "comment": null}, "es_app_escompany_phone_c": {"type": "STRING", "index": 185, "name": "es_app_escompany_phone_c", "comment": null}, "es_app_escountry_c": {"type": "STRING", "index": 186, "name": "es_app_escountry_c", "comment": null}, "es_app_escreated_timestamp_c": {"type": "TIMESTAMP", "index": 187, "name": "es_app_escreated_timestamp_c", "comment": null}, "es_app_esecid_c": {"type": "FLOAT64", "index": 188, "name": "es_app_esecid_c", "comment": null}, "es_app_esemployees_c": {"type": "STRING", "index": 189, "name": "es_app_esemployees_c", "comment": null}, "es_app_esenriched_c": {"type": "BOOL", "index": 190, "name": "es_app_esenriched_c", "comment": null}, "es_app_esenriched_timestamp_c": {"type": "TIMESTAMP", "index": 191, "name": "es_app_esenriched_timestamp_c", "comment": null}, "es_app_esfacebook_c": {"type": "STRING", "index": 192, "name": "es_app_esfacebook_c", "comment": null}, "es_app_esindustry_c": {"type": "STRING", "index": 193, "name": "es_app_esindustry_c", "comment": null}, "es_app_esintent_aggregate_score_c": {"type": "FLOAT64", "index": 194, "name": "es_app_esintent_aggregate_score_c", "comment": null}, "es_app_esintent_timestamp_c": {"type": "TIMESTAMP", "index": 195, "name": "es_app_esintent_timestamp_c", "comment": null}, "es_app_esintent_topics_c": {"type": "STRING", "index": 196, "name": "es_app_esintent_topics_c", "comment": null}, "es_app_eskeywords_c": {"type": "STRING", "index": 197, "name": "es_app_eskeywords_c", "comment": null}, "es_app_eslinked_in_c": {"type": "STRING", "index": 198, "name": "es_app_eslinked_in_c", "comment": null}, "es_app_esoverall_fit_score_c": {"type": "FLOAT64", "index": 199, "name": "es_app_esoverall_fit_score_c", "comment": null}, "es_app_esrevenue_c": {"type": "STRING", "index": 200, "name": "es_app_esrevenue_c", "comment": null}, "es_app_essource_c": {"type": "BOOL", "index": 201, "name": "es_app_essource_c", "comment": null}, "es_app_esstate_c": {"type": "STRING", "index": 202, "name": "es_app_esstate_c", "comment": null}, "es_app_esstreet_c": {"type": "STRING", "index": 203, "name": "es_app_esstreet_c", "comment": null}, "es_app_estechnologies_c": {"type": "STRING", "index": 204, "name": "es_app_estechnologies_c", "comment": null}, "es_app_estwitter_c": {"type": "STRING", "index": 205, "name": "es_app_estwitter_c", "comment": null}, "es_app_eszipcode_c": {"type": "STRING", "index": 206, "name": "es_app_eszipcode_c", "comment": null}, "marketing_prospect_routing_rules_c": {"type": "BOOL", "index": 207, "name": "marketing_prospect_routing_rules_c", "comment": null}, "individual_id": {"type": "STRING", "index": 208, "name": "individual_id", "comment": null}, "marketing_process_c": {"type": "STRING", "index": 209, "name": "marketing_process_c", "comment": null}, "automation_tracking_c": {"type": "STRING", "index": 210, "name": "automation_tracking_c", "comment": null}, "user_gems_has_changed_job_c": {"type": "TIMESTAMP", "index": 211, "name": "user_gems_has_changed_job_c", "comment": null}, "user_gems_linked_in_c": {"type": "STRING", "index": 212, "name": "user_gems_linked_in_c", "comment": null}, "email_opt_in_c": {"type": "BOOL", "index": 213, "name": "email_opt_in_c", "comment": null}, "email_opt_in_explicit_c": {"type": "BOOL", "index": 214, "name": "email_opt_in_explicit_c", "comment": null}, "email_opt_in_implicit_c": {"type": "BOOL", "index": 215, "name": "email_opt_in_implicit_c", "comment": null}, "gdpr_opt_in_explicit_c": {"type": "BOOL", "index": 216, "name": "gdpr_opt_in_explicit_c", "comment": null}, "user_gems_is_a_user_gem_c": {"type": "BOOL", "index": 217, "name": "user_gems_is_a_user_gem_c", "comment": null}, "user_gems_past_account_c": {"type": "STRING", "index": 218, "name": "user_gems_past_account_c", "comment": null}, "user_gems_past_company_c": {"type": "STRING", "index": 219, "name": "user_gems_past_company_c", "comment": null}, "user_gems_past_contact_c": {"type": "STRING", "index": 220, "name": "user_gems_past_contact_c", "comment": null}, "user_gems_past_title_c": {"type": "STRING", "index": 221, "name": "user_gems_past_title_c", "comment": null}, "promotion_id_c": {"type": "STRING", "index": 222, "name": "promotion_id_c", "comment": null}, "previous_customer_c": {"type": "BOOL", "index": 223, "name": "previous_customer_c", "comment": null}, "referral_contact_email_c": {"type": "STRING", "index": 224, "name": "referral_contact_email_c", "comment": null}, "referral_firstname_c": {"type": "STRING", "index": 225, "name": "referral_firstname_c", "comment": null}, "referral_last_name_c": {"type": "STRING", "index": 226, "name": "referral_last_name_c", "comment": null}, "mkto_71_lead_score_c": {"type": "FLOAT64", "index": 227, "name": "mkto_71_lead_score_c", "comment": null}, "mkto_71_acquisition_date_c": {"type": "TIMESTAMP", "index": 228, "name": "mkto_71_acquisition_date_c", "comment": null}, "mkto_71_acquisition_program_id_c": {"type": "FLOAT64", "index": 229, "name": "mkto_71_acquisition_program_id_c", "comment": null}, "mkto_acquisition_program_c": {"type": "STRING", "index": 230, "name": "mkto_acquisition_program_c", "comment": null}, "mkto_71_inferred_city_c": {"type": "STRING", "index": 231, "name": "mkto_71_inferred_city_c", "comment": null}, "mkto_71_inferred_company_c": {"type": "STRING", "index": 232, "name": "mkto_71_inferred_company_c", "comment": null}, "mkto_71_inferred_country_c": {"type": "STRING", "index": 233, "name": "mkto_71_inferred_country_c", "comment": null}, "mkto_71_inferred_metropolitan_area_c": {"type": "STRING", "index": 234, "name": "mkto_71_inferred_metropolitan_area_c", "comment": null}, "mkto_71_inferred_phone_area_code_c": {"type": "STRING", "index": 235, "name": "mkto_71_inferred_phone_area_code_c", "comment": null}, "mkto_71_inferred_postal_code_c": {"type": "STRING", "index": 236, "name": "mkto_71_inferred_postal_code_c", "comment": null}, "mkto_71_inferred_state_region_c": {"type": "STRING", "index": 237, "name": "mkto_71_inferred_state_region_c", "comment": null}, "mkto_71_original_referrer_c": {"type": "STRING", "index": 238, "name": "mkto_71_original_referrer_c", "comment": null}, "mkto_71_original_search_engine_c": {"type": "STRING", "index": 239, "name": "mkto_71_original_search_engine_c", "comment": null}, "mkto_71_original_search_phrase_c": {"type": "STRING", "index": 240, "name": "mkto_71_original_search_phrase_c", "comment": null}, "mkto_71_original_source_info_c": {"type": "STRING", "index": 241, "name": "mkto_71_original_source_info_c", "comment": null}, "mkto_71_original_source_type_c": {"type": "STRING", "index": 242, "name": "mkto_71_original_source_type_c", "comment": null}, "mkto_si_hide_date_c": {"type": "TIMESTAMP", "index": 243, "name": "mkto_si_hide_date_c", "comment": null}, "mkto_si_last_interesting_moment_date_c": {"type": "TIMESTAMP", "index": 244, "name": "mkto_si_last_interesting_moment_date_c", "comment": null}, "mkto_si_last_interesting_moment_desc_c": {"type": "STRING", "index": 245, "name": "mkto_si_last_interesting_moment_desc_c", "comment": null}, "mkto_si_last_interesting_moment_source_c": {"type": "STRING", "index": 246, "name": "mkto_si_last_interesting_moment_source_c", "comment": null}, "mkto_si_last_interesting_moment_type_c": {"type": "STRING", "index": 247, "name": "mkto_si_last_interesting_moment_type_c", "comment": null}, "mkto_si_msicontact_id_c": {"type": "STRING", "index": 248, "name": "mkto_si_msicontact_id_c", "comment": null}, "mkto_si_priority_c": {"type": "FLOAT64", "index": 249, "name": "mkto_si_priority_c", "comment": null}, "mkto_si_relative_score_value_c": {"type": "FLOAT64", "index": 250, "name": "mkto_si_relative_score_value_c", "comment": null}, "mkto_si_urgency_value_c": {"type": "FLOAT64", "index": 251, "name": "mkto_si_urgency_value_c", "comment": null}, "cloudingo_agent_ar_c": {"type": "STRING", "index": 252, "name": "cloudingo_agent_ar_c", "comment": null}, "cloudingo_agent_ardi_c": {"type": "STRING", "index": 253, "name": "cloudingo_agent_ardi_c", "comment": null}, "cloudingo_agent_as_c": {"type": "FLOAT64", "index": 254, "name": "cloudingo_agent_as_c", "comment": null}, "cloudingo_agent_atz_c": {"type": "STRING", "index": 255, "name": "cloudingo_agent_atz_c", "comment": null}, "cloudingo_agent_av_c": {"type": "STRING", "index": 256, "name": "cloudingo_agent_av_c", "comment": null}, "cloudingo_agent_les_c": {"type": "FLOAT64", "index": 257, "name": "cloudingo_agent_les_c", "comment": null}, "do_not_sync_marketo_c": {"type": "BOOL", "index": 258, "name": "do_not_sync_marketo_c", "comment": null}, "source_every_utm_campaign_c": {"type": "STRING", "index": 259, "name": "source_every_utm_campaign_c", "comment": null}, "source_every_utm_content_c": {"type": "STRING", "index": 260, "name": "source_every_utm_content_c", "comment": null}, "source_every_utm_medium_c": {"type": "STRING", "index": 261, "name": "source_every_utm_medium_c", "comment": null}, "source_every_utm_source_c": {"type": "STRING", "index": 262, "name": "source_every_utm_source_c", "comment": null}, "source_every_utm_term_c": {"type": "STRING", "index": 263, "name": "source_every_utm_term_c", "comment": null}, "source_first_utm_campaign_c": {"type": "STRING", "index": 264, "name": "source_first_utm_campaign_c", "comment": null}, "source_first_utm_content_c": {"type": "STRING", "index": 265, "name": "source_first_utm_content_c", "comment": null}, "source_first_utm_medium_c": {"type": "STRING", "index": 266, "name": "source_first_utm_medium_c", "comment": null}, "source_first_utm_source_c": {"type": "STRING", "index": 267, "name": "source_first_utm_source_c", "comment": null}, "source_first_utm_term_c": {"type": "STRING", "index": 268, "name": "source_first_utm_term_c", "comment": null}, "source_last_utm_campaign_c": {"type": "STRING", "index": 269, "name": "source_last_utm_campaign_c", "comment": null}, "source_last_utm_content_c": {"type": "STRING", "index": 270, "name": "source_last_utm_content_c", "comment": null}, "source_last_utm_medium_c": {"type": "STRING", "index": 271, "name": "source_last_utm_medium_c", "comment": null}, "source_last_utm_source_c": {"type": "STRING", "index": 272, "name": "source_last_utm_source_c", "comment": null}, "source_last_utm_term_c": {"type": "STRING", "index": 273, "name": "source_last_utm_term_c", "comment": null}, "direct_office_c": {"type": "STRING", "index": 274, "name": "direct_office_c", "comment": null}, "city_c": {"type": "STRING", "index": 275, "name": "city_c", "comment": null}, "country_c": {"type": "STRING", "index": 276, "name": "country_c", "comment": null}, "state_c": {"type": "STRING", "index": 277, "name": "state_c", "comment": null}, "source_first_lead_source_category_c": {"type": "STRING", "index": 278, "name": "source_first_lead_source_category_c", "comment": null}, "source_last_lead_source_c": {"type": "STRING", "index": 279, "name": "source_last_lead_source_c", "comment": null}, "source_last_lead_source_category_c": {"type": "STRING", "index": 280, "name": "source_last_lead_source_category_c", "comment": null}, "source_last_lead_source_detail_c": {"type": "STRING", "index": 281, "name": "source_last_lead_source_detail_c", "comment": null}, "source_every_lead_source_c": {"type": "STRING", "index": 282, "name": "source_every_lead_source_c", "comment": null}, "source_every_lead_source_category_c": {"type": "STRING", "index": 283, "name": "source_every_lead_source_category_c", "comment": null}, "source_every_lead_source_detail_c": {"type": "STRING", "index": 284, "name": "source_every_lead_source_detail_c", "comment": null}, "source_first_lead_source_c": {"type": "STRING", "index": 285, "name": "source_first_lead_source_c", "comment": null}, "source_first_lead_source_detail_c": {"type": "STRING", "index": 286, "name": "source_first_lead_source_detail_c", "comment": null}, "behavioral_score_c": {"type": "FLOAT64", "index": 287, "name": "behavioral_score_c", "comment": null}, "demographic_score_c": {"type": "FLOAT64", "index": 288, "name": "demographic_score_c", "comment": null}, "drift_cql_c": {"type": "FLOAT64", "index": 289, "name": "drift_cql_c", "comment": null}, "unique_email_c": {"type": "STRING", "index": 290, "name": "unique_email_c", "comment": null}, "is_emea_event_routing_c": {"type": "BOOL", "index": 291, "name": "is_emea_event_routing_c", "comment": null}, "csi_code_c": {"type": "FLOAT64", "index": 292, "name": "csi_code_c", "comment": null}, "csi_description_c": {"type": "STRING", "index": 293, "name": "csi_description_c", "comment": null}, "converted_date_time_c": {"type": "TIMESTAMP", "index": 294, "name": "converted_date_time_c", "comment": null}, "lead_created_date_time_reporting_c": {"type": "TIMESTAMP", "index": 295, "name": "lead_created_date_time_reporting_c", "comment": null}, "lead_iq_country_c": {"type": "STRING", "index": 296, "name": "lead_iq_country_c", "comment": null}, "lead_iq_employee_count_c": {"type": "STRING", "index": 297, "name": "lead_iq_employee_count_c", "comment": null}, "lead_iq_employee_range_c": {"type": "STRING", "index": 298, "name": "lead_iq_employee_range_c", "comment": null}, "lead_iq_state_c": {"type": "STRING", "index": 299, "name": "lead_iq_state_c", "comment": null}, "lead_iq_zip_code_c": {"type": "STRING", "index": 300, "name": "lead_iq_zip_code_c", "comment": null}, "zoominfo_country_c": {"type": "STRING", "index": 301, "name": "zoominfo_country_c", "comment": null}, "zoominfo_employee_count_c": {"type": "STRING", "index": 302, "name": "zoominfo_employee_count_c", "comment": null}, "zoominfo_state_c": {"type": "STRING", "index": 303, "name": "zoominfo_state_c", "comment": null}, "zoominfo_technologies_c": {"type": "STRING", "index": 304, "name": "zoominfo_technologies_c", "comment": null}, "zoominfo_zip_code_c": {"type": "STRING", "index": 305, "name": "zoominfo_zip_code_c", "comment": null}, "attended_event_c": {"type": "BOOL", "index": 306, "name": "attended_event_c", "comment": null}, "mql_date_c": {"type": "TIMESTAMP", "index": 307, "name": "mql_date_c", "comment": null}, "user_gems_user_gems_id_c": {"type": "STRING", "index": 308, "name": "user_gems_user_gems_id_c", "comment": null}, "dozisf_zoom_info_company_id_c": {"type": "STRING", "index": 309, "name": "dozisf_zoom_info_company_id_c", "comment": null}, "dozisf_zoom_info_first_updated_c": {"type": "TIMESTAMP", "index": 310, "name": "dozisf_zoom_info_first_updated_c", "comment": null}, "dozisf_zoom_info_id_c": {"type": "STRING", "index": 311, "name": "dozisf_zoom_info_id_c", "comment": null}, "dozisf_zoom_info_last_updated_c": {"type": "TIMESTAMP", "index": 312, "name": "dozisf_zoom_info_last_updated_c", "comment": null}, "lean_data_manual_route_trigger_c": {"type": "BOOL", "index": 313, "name": "lean_data_manual_route_trigger_c", "comment": null}, "first_mql_date_c": {"type": "TIMESTAMP", "index": 314, "name": "first_mql_date_c", "comment": null}, "fivetran_account_association_date_c": {"type": "TIMESTAMP", "index": 315, "name": "fivetran_account_association_date_c", "comment": null}, "fivetran_account_user_role_s_c": {"type": "STRING", "index": 316, "name": "fivetran_account_user_role_s_c", "comment": null}, "mql_reason_c": {"type": "STRING", "index": 317, "name": "mql_reason_c", "comment": null}, "trial_contact_start_date_c": {"type": "TIMESTAMP", "index": 318, "name": "trial_contact_start_date_c", "comment": null}, "enrichment_request_c": {"type": "BOOL", "index": 319, "name": "enrichment_request_c", "comment": null}, "meta_data_create_date_c": {"type": "TIMESTAMP", "index": 320, "name": "meta_data_create_date_c", "comment": null}, "clarus_date_c": {"type": "TIMESTAMP", "index": 321, "name": "clarus_date_c", "comment": null}, "clarus_editor_c": {"type": "STRING", "index": 322, "name": "clarus_editor_c", "comment": null}, "clarus_notes_c": {"type": "STRING", "index": 323, "name": "clarus_notes_c", "comment": null}, "clarus_project_c": {"type": "STRING", "index": 324, "name": "clarus_project_c", "comment": null}, "clarus_status_c": {"type": "STRING", "index": 325, "name": "clarus_status_c", "comment": null}, "marketing_connector_interest_c": {"type": "STRING", "index": 326, "name": "marketing_connector_interest_c", "comment": null}, "recent_marketing_campaign_status_c": {"type": "STRING", "index": 327, "name": "recent_marketing_campaign_status_c", "comment": null}, "salesloft_cadence_trigger_c": {"type": "STRING", "index": 328, "name": "salesloft_cadence_trigger_c", "comment": null}, "datawarehouse_used_c": {"type": "STRING", "index": 329, "name": "datawarehouse_used_c", "comment": null}, "contact_status_c": {"type": "STRING", "index": 330, "name": "contact_status_c", "comment": null}, "leandata_contact_owner_override_c": {"type": "STRING", "index": 331, "name": "leandata_contact_owner_override_c", "comment": null}, "potential_fivetran_use_case_c": {"type": "STRING", "index": 332, "name": "potential_fivetran_use_case_c", "comment": null}, "bizible_2_account_c": {"type": "STRING", "index": 333, "name": "bizible_2_account_c", "comment": null}, "bizible_2_ad_campaign_name_ft_c": {"type": "STRING", "index": 334, "name": "bizible_2_ad_campaign_name_ft_c", "comment": null}, "bizible_2_ad_campaign_name_lc_c": {"type": "STRING", "index": 335, "name": "bizible_2_ad_campaign_name_lc_c", "comment": null}, "bizible_2_bizible_id_c": {"type": "STRING", "index": 336, "name": "bizible_2_bizible_id_c", "comment": null}, "bizible_2_landing_page_ft_c": {"type": "STRING", "index": 337, "name": "bizible_2_landing_page_ft_c", "comment": null}, "bizible_2_landing_page_lc_c": {"type": "STRING", "index": 338, "name": "bizible_2_landing_page_lc_c", "comment": null}, "bizible_2_marketing_channel_ft_c": {"type": "STRING", "index": 339, "name": "bizible_2_marketing_channel_ft_c", "comment": null}, "bizible_2_marketing_channel_lc_c": {"type": "STRING", "index": 340, "name": "bizible_2_marketing_channel_lc_c", "comment": null}, "bizible_2_touchpoint_date_ft_c": {"type": "TIMESTAMP", "index": 341, "name": "bizible_2_touchpoint_date_ft_c", "comment": null}, "bizible_2_touchpoint_date_lc_c": {"type": "TIMESTAMP", "index": 342, "name": "bizible_2_touchpoint_date_lc_c", "comment": null}, "bizible_2_touchpoint_source_ft_c": {"type": "STRING", "index": 343, "name": "bizible_2_touchpoint_source_ft_c", "comment": null}, "bizible_2_touchpoint_source_lc_c": {"type": "STRING", "index": 344, "name": "bizible_2_touchpoint_source_lc_c", "comment": null}, "sales_email_opt_out_c": {"type": "BOOL", "index": 345, "name": "sales_email_opt_out_c", "comment": null}, "sales_email_opt_out_date_time_c": {"type": "TIMESTAMP", "index": 346, "name": "sales_email_opt_out_date_time_c", "comment": null}, "bombora_app_bombora_surge_record_count_c": {"type": "FLOAT64", "index": 347, "name": "bombora_app_bombora_surge_record_count_c", "comment": null}, "bombora_app_bombora_last_date_time_updated_c": {"type": "TIMESTAMP", "index": 348, "name": "bombora_app_bombora_last_date_time_updated_c", "comment": null}, "bombora_app_bombora_total_composite_score_c": {"type": "FLOAT64", "index": 349, "name": "bombora_app_bombora_total_composite_score_c", "comment": null}, "linked_in_url_c": {"type": "STRING", "index": 350, "name": "linked_in_url_c", "comment": null}, "beta_connector_interest_c": {"type": "STRING", "index": 351, "name": "beta_connector_interest_c", "comment": null}, "user_gems_ug_past_infos_c": {"type": "STRING", "index": 352, "name": "user_gems_ug_past_infos_c", "comment": null}, "user_gems_ug_current_infos_c": {"type": "STRING", "index": 353, "name": "user_gems_ug_current_infos_c", "comment": null}, "user_gems_ug_created_by_ug_c": {"type": "BOOL", "index": 354, "name": "user_gems_ug_created_by_ug_c", "comment": null}, "free_trial_email_confirmed_date_c": {"type": "TIMESTAMP", "index": 355, "name": "free_trial_email_confirmed_date_c", "comment": null}, "dnboptimizer_dn_bcontact_record_c": {"type": "STRING", "index": 356, "name": "dnboptimizer_dn_bcontact_record_c", "comment": null}, "dnboptimizer_dn_bcompany_record_c": {"type": "STRING", "index": 357, "name": "dnboptimizer_dn_bcompany_record_c", "comment": null}, "dnboptimizer_dnb_d_u_n_s_number_c": {"type": "STRING", "index": 358, "name": "dnboptimizer_dnb_d_u_n_s_number_c", "comment": null}, "i_sell_oskey_id_c": {"type": "STRING", "index": 359, "name": "i_sell_oskey_id_c", "comment": null}, "verified_c": {"type": "BOOL", "index": 360, "name": "verified_c", "comment": null}, "email_opt_out_date_time_c": {"type": "TIMESTAMP", "index": 361, "name": "email_opt_out_date_time_c", "comment": null}, "pbf_startup_c": {"type": "STRING", "index": 362, "name": "pbf_startup_c", "comment": null}, "pbf_startup_certify_eligibility_c": {"type": "BOOL", "index": 363, "name": "pbf_startup_certify_eligibility_c", "comment": null}, "engagio_intent_minutes_last_30_days_c": {"type": "FLOAT64", "index": 364, "name": "engagio_intent_minutes_last_30_days_c", "comment": null}, "engagio_engagement_minutes_last_3_months_c": {"type": "FLOAT64", "index": 365, "name": "engagio_engagement_minutes_last_3_months_c", "comment": null}, "engagio_engagement_minutes_last_7_days_c": {"type": "FLOAT64", "index": 366, "name": "engagio_engagement_minutes_last_7_days_c", "comment": null}, "engagio_matched_account_c": {"type": "STRING", "index": 367, "name": "engagio_matched_account_c", "comment": null}, "engagio_first_engagement_date_c": {"type": "TIMESTAMP", "index": 368, "name": "engagio_first_engagement_date_c", "comment": null}, "engagio_match_time_c": {"type": "TIMESTAMP", "index": 369, "name": "engagio_match_time_c", "comment": null}, "engagio_department_c": {"type": "STRING", "index": 370, "name": "engagio_department_c", "comment": null}, "engagio_role_c": {"type": "STRING", "index": 371, "name": "engagio_role_c", "comment": null}, "legacy_hvr_id_c": {"type": "STRING", "index": 372, "name": "legacy_hvr_id_c", "comment": null}, "hvr_channel_c": {"type": "STRING", "index": 373, "name": "hvr_channel_c", "comment": null}, "email_opt_in_double_c": {"type": "BOOL", "index": 374, "name": "email_opt_in_double_c", "comment": null}, "phone_number_catch_all_c": {"type": "STRING", "index": 375, "name": "phone_number_catch_all_c", "comment": null}, "contacts_domain_exists_c": {"type": "BOOL", "index": 376, "name": "contacts_domain_exists_c", "comment": null}, "utm_id_c": {"type": "STRING", "index": 377, "name": "utm_id_c", "comment": null}, "source_every_utm_id_c": {"type": "STRING", "index": 378, "name": "source_every_utm_id_c", "comment": null}, "source_last_utm_id_c": {"type": "STRING", "index": 379, "name": "source_last_utm_id_c", "comment": null}, "source_first_utm_id_c": {"type": "STRING", "index": 380, "name": "source_first_utm_id_c", "comment": null}, "do_not_sync_reason_marketo_c": {"type": "STRING", "index": 381, "name": "do_not_sync_reason_marketo_c", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1256082289.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 1350895.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.salesforce_source.salesforce.lead"}, "source.salesforce_source.salesforce.account": {"metadata": {"type": "table", "schema": "salesforce", "name": "account", "database": "fivetran", "comment": null, "owner": null}, "columns": {"bread_winner_total_unallocated_credit_c": {"type": "FLOAT64", "index": 1, "name": "bread_winner_total_unallocated_credit_c", "comment": null}, "owner_id": {"type": "STRING", "index": 2, "name": "owner_id", "comment": null}, "shipping_city": {"type": "STRING", "index": 3, "name": "shipping_city", "comment": null}, "last_modified_date": {"type": "TIMESTAMP", "index": 4, "name": "last_modified_date", "comment": null}, "master_record_id": {"type": "STRING", "index": 5, "name": "master_record_id", "comment": null}, "type": {"type": "STRING", "index": 6, "name": "type", "comment": null}, "zendesk_result_c": {"type": "STRING", "index": 7, "name": "zendesk_result_c", "comment": null}, "last_modified_by_id": {"type": "STRING", "index": 8, "name": "last_modified_by_id", "comment": null}, "system_modstamp": {"type": "TIMESTAMP", "index": 9, "name": "system_modstamp", "comment": null}, "fivetran_group_id_account_3_c": {"type": "STRING", "index": 10, "name": "fivetran_group_id_account_3_c", "comment": null}, "up_region_c": {"type": "STRING", "index": 11, "name": "up_region_c", "comment": null}, "zendesk_zendesk_old_tags_c": {"type": "STRING", "index": 12, "name": "zendesk_zendesk_old_tags_c", "comment": null}, "id": {"type": "STRING", "index": 13, "name": "id", "comment": null}, "photo_url": {"type": "STRING", "index": 14, "name": "photo_url", "comment": null}, "fivetran_group_id_account_1_c": {"type": "STRING", "index": 15, "name": "fivetran_group_id_account_1_c", "comment": null}, "jigsaw_company_id": {"type": "STRING", "index": 16, "name": "jigsaw_company_id", "comment": null}, "shipping_street": {"type": "STRING", "index": 17, "name": "shipping_street", "comment": null}, "last_referenced_date": {"type": "TIMESTAMP", "index": 18, "name": "last_referenced_date", "comment": null}, "up_district_c": {"type": "STRING", "index": 19, "name": "up_district_c", "comment": null}, "zendesk_zendesk_outof_sync_c": {"type": "BOOL", "index": 20, "name": "zendesk_zendesk_outof_sync_c", "comment": null}, "last_activity_date": {"type": "TIMESTAMP", "index": 21, "name": "last_activity_date", "comment": null}, "fivetran_account_name_1_c": {"type": "STRING", "index": 22, "name": "fivetran_account_name_1_c", "comment": null}, "fivetran_account_name_3_c": {"type": "STRING", "index": 23, "name": "fivetran_account_name_3_c", "comment": null}, "billing_street": {"type": "STRING", "index": 24, "name": "billing_street", "comment": null}, "billing_city": {"type": "STRING", "index": 25, "name": "billing_city", "comment": null}, "shipping_longitude": {"type": "FLOAT64", "index": 26, "name": "shipping_longitude", "comment": null}, "bi_tool_c": {"type": "STRING", "index": 27, "name": "bi_tool_c", "comment": null}, "bread_winner_total_amount_due_c": {"type": "FLOAT64", "index": 28, "name": "bread_winner_total_amount_due_c", "comment": null}, "phone": {"type": "STRING", "index": 29, "name": "phone", "comment": null}, "parent_id": {"type": "STRING", "index": 30, "name": "parent_id", "comment": null}, "name": {"type": "STRING", "index": 31, "name": "name", "comment": null}, "created_by_id": {"type": "STRING", "index": 32, "name": "created_by_id", "comment": null}, "billing_state_code": {"type": "STRING", "index": 33, "name": "billing_state_code", "comment": null}, "shipping_country": {"type": "STRING", "index": 34, "name": "shipping_country", "comment": null}, "shipping_postal_code": {"type": "STRING", "index": 35, "name": "shipping_postal_code", "comment": null}, "shipping_state_code": {"type": "STRING", "index": 36, "name": "shipping_state_code", "comment": null}, "shipping_state": {"type": "STRING", "index": 37, "name": "shipping_state", "comment": null}, "description": {"type": "STRING", "index": 38, "name": "description", "comment": null}, "cbit_clearbit_c": {"type": "STRING", "index": 39, "name": "cbit_clearbit_c", "comment": null}, "contract_renewal_date_c": {"type": "TIMESTAMP", "index": 40, "name": "contract_renewal_date_c", "comment": null}, "industry": {"type": "STRING", "index": 41, "name": "industry", "comment": null}, "bread_winner_total_amount_credit_c": {"type": "FLOAT64", "index": 42, "name": "bread_winner_total_amount_credit_c", "comment": null}, "zendesk_zendesk_organization_id_c": {"type": "STRING", "index": 43, "name": "zendesk_zendesk_organization_id_c", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 44, "name": "_fivetran_synced", "comment": null}, "billing_postal_code": {"type": "STRING", "index": 45, "name": "billing_postal_code", "comment": null}, "last_viewed_date": {"type": "TIMESTAMP", "index": 46, "name": "last_viewed_date", "comment": null}, "is_deleted": {"type": "BOOL", "index": 47, "name": "is_deleted", "comment": null}, "billing_state": {"type": "STRING", "index": 48, "name": "billing_state", "comment": null}, "bread_winner_total_amount_overdue_c": {"type": "FLOAT64", "index": 49, "name": "bread_winner_total_amount_overdue_c", "comment": null}, "fivetran_group_id_account_2_c": {"type": "STRING", "index": 50, "name": "fivetran_group_id_account_2_c", "comment": null}, "billing_latitude": {"type": "FLOAT64", "index": 51, "name": "billing_latitude", "comment": null}, "shipping_country_code": {"type": "STRING", "index": 52, "name": "shipping_country_code", "comment": null}, "bread_winner_total_amount_invoiced_c": {"type": "FLOAT64", "index": 53, "name": "bread_winner_total_amount_invoiced_c", "comment": null}, "website": {"type": "STRING", "index": 54, "name": "website", "comment": null}, "shipping_geocode_accuracy": {"type": "STRING", "index": 55, "name": "shipping_geocode_accuracy", "comment": null}, "billing_geocode_accuracy": {"type": "STRING", "index": 56, "name": "billing_geocode_accuracy", "comment": null}, "integrations_c": {"type": "STRING", "index": 57, "name": "integrations_c", "comment": null}, "billing_country": {"type": "STRING", "index": 58, "name": "billing_country", "comment": null}, "payment_terms_c": {"type": "STRING", "index": 59, "name": "payment_terms_c", "comment": null}, "zendesk_zendesk_organization_c": {"type": "STRING", "index": 60, "name": "zendesk_zendesk_organization_c", "comment": null}, "fivetran_account_name_2_c": {"type": "STRING", "index": 61, "name": "fivetran_account_name_2_c", "comment": null}, "billing_longitude": {"type": "FLOAT64", "index": 62, "name": "billing_longitude", "comment": null}, "bread_winner_total_draft_amount_c": {"type": "FLOAT64", "index": 63, "name": "bread_winner_total_draft_amount_c", "comment": null}, "lead_source_c": {"type": "STRING", "index": 64, "name": "lead_source_c", "comment": null}, "number_of_employees": {"type": "INT64", "index": 65, "name": "number_of_employees", "comment": null}, "up_territory_c": {"type": "STRING", "index": 66, "name": "up_territory_c", "comment": null}, "billing_country_code": {"type": "STRING", "index": 67, "name": "billing_country_code", "comment": null}, "shipping_latitude": {"type": "FLOAT64", "index": 68, "name": "shipping_latitude", "comment": null}, "created_date": {"type": "TIMESTAMP", "index": 69, "name": "created_date", "comment": null}, "cbit_clearbit_ready_c": {"type": "BOOL", "index": 70, "name": "cbit_clearbit_ready_c", "comment": null}, "bread_winner_total_amount_paid_c": {"type": "FLOAT64", "index": 71, "name": "bread_winner_total_amount_paid_c", "comment": null}, "account_level_c": {"type": "STRING", "index": 72, "name": "account_level_c", "comment": null}, "all_connectors_c": {"type": "STRING", "index": 73, "name": "all_connectors_c", "comment": null}, "all_data_warehouses_c": {"type": "STRING", "index": 74, "name": "all_data_warehouses_c", "comment": null}, "bi_tools_c": {"type": "STRING", "index": 75, "name": "bi_tools_c", "comment": null}, "account_all_data_warehouses_c": {"type": "STRING", "index": 76, "name": "account_all_data_warehouses_c", "comment": null}, "account_all_products_c": {"type": "STRING", "index": 77, "name": "account_all_products_c", "comment": null}, "account_bi_tools_c": {"type": "STRING", "index": 78, "name": "account_bi_tools_c", "comment": null}, "msa_effective_date_c": {"type": "TIMESTAMP", "index": 79, "name": "msa_effective_date_c", "comment": null}, "auto_renewal_c": {"type": "BOOL", "index": 80, "name": "auto_renewal_c", "comment": null}, "billing_frequency_c": {"type": "STRING", "index": 81, "name": "billing_frequency_c", "comment": null}, "sla_c": {"type": "BOOL", "index": 82, "name": "sla_c", "comment": null}, "nda_c": {"type": "STRING", "index": 83, "name": "nda_c", "comment": null}, "referral_account_c": {"type": "STRING", "index": 84, "name": "referral_account_c", "comment": null}, "referral_contact_c": {"type": "STRING", "index": 85, "name": "referral_contact_c", "comment": null}, "current_subscription_contracts_value_c": {"type": "FLOAT64", "index": 86, "name": "current_subscription_contracts_value_c", "comment": null}, "billing_contact_first_name_c": {"type": "STRING", "index": 87, "name": "billing_contact_first_name_c", "comment": null}, "billing_contact_last_name_c": {"type": "STRING", "index": 88, "name": "billing_contact_last_name_c", "comment": null}, "billing_email_c": {"type": "STRING", "index": 89, "name": "billing_email_c", "comment": null}, "bill_com_customer_id_c": {"type": "STRING", "index": 90, "name": "bill_com_customer_id_c", "comment": null}, "billing_frequency_del_c": {"type": "STRING", "index": 91, "name": "billing_frequency_del_c", "comment": null}, "primary_contact_c": {"type": "STRING", "index": 92, "name": "primary_contact_c", "comment": null}, "stripe_customer_id_c": {"type": "STRING", "index": 93, "name": "stripe_customer_id_c", "comment": null}, "current_monthly_subscription_end_date_c": {"type": "TIMESTAMP", "index": 94, "name": "current_monthly_subscription_end_date_c", "comment": null}, "monthly_customer_no_contract_c": {"type": "BOOL", "index": 95, "name": "monthly_customer_no_contract_c", "comment": null}, "marketing_approval_c": {"type": "STRING", "index": 96, "name": "marketing_approval_c", "comment": null}, "fivetran_account_id_c": {"type": "STRING", "index": 97, "name": "fivetran_account_id_c", "comment": null}, "fivetran_account_status_c": {"type": "STRING", "index": 98, "name": "fivetran_account_status_c", "comment": null}, "cbit_created_by_clearbit_c": {"type": "BOOL", "index": 99, "name": "cbit_created_by_clearbit_c", "comment": null}, "fivetran_account_name_c": {"type": "STRING", "index": 100, "name": "fivetran_account_name_c", "comment": null}, "mobile_phone_c": {"type": "STRING", "index": 101, "name": "mobile_phone_c", "comment": null}, "signup_page_c": {"type": "STRING", "index": 102, "name": "signup_page_c", "comment": null}, "account_source": {"type": "STRING", "index": 103, "name": "account_source", "comment": null}, "fivetran_account_signup_page_c": {"type": "STRING", "index": 104, "name": "fivetran_account_signup_page_c", "comment": null}, "fivetran_referral_id_c": {"type": "STRING", "index": 105, "name": "fivetran_referral_id_c", "comment": null}, "record_type_id": {"type": "STRING", "index": 106, "name": "record_type_id", "comment": null}, "company_type_c": {"type": "STRING", "index": 107, "name": "company_type_c", "comment": null}, "partner_type_c": {"type": "STRING", "index": 108, "name": "partner_type_c", "comment": null}, "ez_button_signup_page_c": {"type": "STRING", "index": 109, "name": "ez_button_signup_page_c", "comment": null}, "partner_ez_button_id_c": {"type": "STRING", "index": 110, "name": "partner_ez_button_id_c", "comment": null}, "fivetran_account_stage_c": {"type": "STRING", "index": 111, "name": "fivetran_account_stage_c", "comment": null}, "trial_end_date_c": {"type": "TIMESTAMP", "index": 112, "name": "trial_end_date_c", "comment": null}, "handwrytten_numberof_locations_c": {"type": "FLOAT64", "index": 113, "name": "handwrytten_numberof_locations_c", "comment": null}, "account_number": {"type": "STRING", "index": 114, "name": "account_number", "comment": null}, "site": {"type": "STRING", "index": 115, "name": "site", "comment": null}, "ticker_symbol": {"type": "STRING", "index": 116, "name": "ticker_symbol", "comment": null}, "ownership": {"type": "STRING", "index": 117, "name": "ownership", "comment": null}, "rating": {"type": "STRING", "index": 118, "name": "rating", "comment": null}, "jigsaw": {"type": "STRING", "index": 119, "name": "jigsaw", "comment": null}, "sic": {"type": "STRING", "index": 120, "name": "sic", "comment": null}, "fax": {"type": "STRING", "index": 121, "name": "fax", "comment": null}, "sic_desc": {"type": "STRING", "index": 122, "name": "sic_desc", "comment": null}, "annual_revenue": {"type": "FLOAT64", "index": 123, "name": "annual_revenue", "comment": null}, "analytics_id_c": {"type": "STRING", "index": 124, "name": "analytics_id_c", "comment": null}, "competitor_c": {"type": "BOOL", "index": 125, "name": "competitor_c", "comment": null}, "region_c": {"type": "STRING", "index": 126, "name": "region_c", "comment": null}, "exclusive_ownership_c": {"type": "BOOL", "index": 127, "name": "exclusive_ownership_c", "comment": null}, "bt_stripe_slaexpiration_date_c": {"type": "TIMESTAMP", "index": 128, "name": "bt_stripe_slaexpiration_date_c", "comment": null}, "bt_stripe_numberof_locations_c": {"type": "FLOAT64", "index": 129, "name": "bt_stripe_numberof_locations_c", "comment": null}, "bt_stripe_slaserial_number_c": {"type": "STRING", "index": 130, "name": "bt_stripe_slaserial_number_c", "comment": null}, "bt_stripe_sla_c": {"type": "STRING", "index": 131, "name": "bt_stripe_sla_c", "comment": null}, "bt_stripe_customer_priority_c": {"type": "STRING", "index": 132, "name": "bt_stripe_customer_priority_c", "comment": null}, "bt_stripe_active_c": {"type": "STRING", "index": 133, "name": "bt_stripe_active_c", "comment": null}, "bt_stripe_upsell_opportunity_c": {"type": "STRING", "index": 134, "name": "bt_stripe_upsell_opportunity_c", "comment": null}, "last_rep_activity_date_c": {"type": "TIMESTAMP", "index": 135, "name": "last_rep_activity_date_c", "comment": null}, "lean_data_reporting_total_marketing_touches_c": {"type": "FLOAT64", "index": 136, "name": "lean_data_reporting_total_marketing_touches_c", "comment": null}, "lean_data_reporting_total_leads_and_contacts_c": {"type": "FLOAT64", "index": 137, "name": "lean_data_reporting_total_leads_and_contacts_c", "comment": null}, "lean_data_reporting_has_opportunity_c": {"type": "BOOL", "index": 138, "name": "lean_data_reporting_has_opportunity_c", "comment": null}, "lean_data_search_c": {"type": "STRING", "index": 139, "name": "lean_data_search_c", "comment": null}, "lean_data_reporting_last_marketing_touch_date_c": {"type": "TIMESTAMP", "index": 140, "name": "lean_data_reporting_last_marketing_touch_date_c", "comment": null}, "lean_data_reporting_customer_c": {"type": "BOOL", "index": 141, "name": "lean_data_reporting_customer_c", "comment": null}, "lean_data_routing_action_c": {"type": "STRING", "index": 142, "name": "lean_data_routing_action_c", "comment": null}, "lean_data_reporting_total_sales_touches_c": {"type": "FLOAT64", "index": 143, "name": "lean_data_reporting_total_sales_touches_c", "comment": null}, "lean_data_reporting_recent_marketing_touches_c": {"type": "FLOAT64", "index": 144, "name": "lean_data_reporting_recent_marketing_touches_c", "comment": null}, "lean_data_reporting_target_account_c": {"type": "BOOL", "index": 145, "name": "lean_data_reporting_target_account_c", "comment": null}, "lean_data_ld_email_domains_c": {"type": "STRING", "index": 146, "name": "lean_data_ld_email_domains_c", "comment": null}, "lean_data_reporting_last_sales_touch_date_c": {"type": "TIMESTAMP", "index": 147, "name": "lean_data_reporting_last_sales_touch_date_c", "comment": null}, "fivetran_trial_start_date_c": {"type": "TIMESTAMP", "index": 148, "name": "fivetran_trial_start_date_c", "comment": null}, "fivetran_account_created_date_c": {"type": "TIMESTAMP", "index": 149, "name": "fivetran_account_created_date_c", "comment": null}, "partner_owner_c": {"type": "STRING", "index": 150, "name": "partner_owner_c", "comment": null}, "unqualified_reason_c": {"type": "STRING", "index": 151, "name": "unqualified_reason_c", "comment": null}, "allbound_id_c": {"type": "STRING", "index": 152, "name": "allbound_id_c", "comment": null}, "allbound_partner_permissions_c": {"type": "STRING", "index": 153, "name": "allbound_partner_permissions_c", "comment": null}, "allbound_status_c": {"type": "STRING", "index": 154, "name": "allbound_status_c", "comment": null}, "netsuite_conn_sync_in_progress_c": {"type": "BOOL", "index": 155, "name": "netsuite_conn_sync_in_progress_c", "comment": null}, "netsuite_conn_celigo_update_c": {"type": "BOOL", "index": 156, "name": "netsuite_conn_celigo_update_c", "comment": null}, "netsuite_conn_account_balance_c": {"type": "FLOAT64", "index": 157, "name": "netsuite_conn_account_balance_c", "comment": null}, "netsuite_conn_net_suite_id_c": {"type": "STRING", "index": 158, "name": "netsuite_conn_net_suite_id_c", "comment": null}, "netsuite_conn_net_suite_sync_err_c": {"type": "STRING", "index": 159, "name": "netsuite_conn_net_suite_sync_err_c", "comment": null}, "netsuite_conn_account_overdue_balance_c": {"type": "FLOAT64", "index": 160, "name": "netsuite_conn_account_overdue_balance_c", "comment": null}, "netsuite_conn_push_to_net_suite_c": {"type": "BOOL", "index": 161, "name": "netsuite_conn_push_to_net_suite_c", "comment": null}, "netsuite_conn_credit_limit_c": {"type": "FLOAT64", "index": 162, "name": "netsuite_conn_credit_limit_c", "comment": null}, "netsuite_conn_days_overdue_c": {"type": "FLOAT64", "index": 163, "name": "netsuite_conn_days_overdue_c", "comment": null}, "netsuite_conn_channel_tier_c": {"type": "STRING", "index": 164, "name": "netsuite_conn_channel_tier_c", "comment": null}, "netsuite_conn_credit_hold_c": {"type": "STRING", "index": 165, "name": "netsuite_conn_credit_hold_c", "comment": null}, "netsuite_conn_pushed_from_opportunity_c": {"type": "BOOL", "index": 166, "name": "netsuite_conn_pushed_from_opportunity_c", "comment": null}, "netsuite_conn_unbilled_orders_c": {"type": "FLOAT64", "index": 167, "name": "netsuite_conn_unbilled_orders_c", "comment": null}, "lid_linked_in_company_id_c": {"type": "STRING", "index": 168, "name": "lid_linked_in_company_id_c", "comment": null}, "account_manager_c": {"type": "STRING", "index": 169, "name": "account_manager_c", "comment": null}, "associated_account_exec_c": {"type": "STRING", "index": 170, "name": "associated_account_exec_c", "comment": null}, "email_domain_c": {"type": "STRING", "index": 171, "name": "email_domain_c", "comment": null}, "fivetran_industry_sub_category_c": {"type": "STRING", "index": 172, "name": "fivetran_industry_sub_category_c", "comment": null}, "fivetran_industry_category_c": {"type": "STRING", "index": 173, "name": "fivetran_industry_category_c", "comment": null}, "sales_engineer_c": {"type": "STRING", "index": 174, "name": "sales_engineer_c", "comment": null}, "account_signed_msa_c": {"type": "BOOL", "index": 175, "name": "account_signed_msa_c", "comment": null}, "sbqq_asset_quantities_combined_c": {"type": "BOOL", "index": 176, "name": "sbqq_asset_quantities_combined_c", "comment": null}, "sbqq_co_termed_contracts_combined_c": {"type": "BOOL", "index": 177, "name": "sbqq_co_termed_contracts_combined_c", "comment": null}, "sbqq_co_termination_event_c": {"type": "STRING", "index": 178, "name": "sbqq_co_termination_event_c", "comment": null}, "sbqq_contract_co_termination_c": {"type": "STRING", "index": 179, "name": "sbqq_contract_co_termination_c", "comment": null}, "sbqq_default_opportunity_c": {"type": "STRING", "index": 180, "name": "sbqq_default_opportunity_c", "comment": null}, "sbqq_ignore_parent_contracted_prices_c": {"type": "BOOL", "index": 181, "name": "sbqq_ignore_parent_contracted_prices_c", "comment": null}, "sbqq_preserve_bundle_c": {"type": "BOOL", "index": 182, "name": "sbqq_preserve_bundle_c", "comment": null}, "sbqq_price_hold_end_c": {"type": "TIMESTAMP", "index": 183, "name": "sbqq_price_hold_end_c", "comment": null}, "sbqq_renewal_model_c": {"type": "STRING", "index": 184, "name": "sbqq_renewal_model_c", "comment": null}, "sbqq_renewal_pricing_method_c": {"type": "STRING", "index": 185, "name": "sbqq_renewal_pricing_method_c", "comment": null}, "sbqq_tax_exempt_c": {"type": "STRING", "index": 186, "name": "sbqq_tax_exempt_c", "comment": null}, "funnel_stage_c": {"type": "STRING", "index": 187, "name": "funnel_stage_c", "comment": null}, "funnel_type_c": {"type": "STRING", "index": 188, "name": "funnel_type_c", "comment": null}, "platform_level_c": {"type": "STRING", "index": 189, "name": "platform_level_c", "comment": null}, "subscription_value_c": {"type": "BIGNUMERIC", "index": 190, "name": "subscription_value_c", "comment": null}, "es_app_esalexa_rank_c": {"type": "FLOAT64", "index": 191, "name": "es_app_esalexa_rank_c", "comment": null}, "es_app_esaudience_names_c": {"type": "STRING", "index": 192, "name": "es_app_esaudience_names_c", "comment": null}, "es_app_escity_c": {"type": "STRING", "index": 193, "name": "es_app_escity_c", "comment": null}, "es_app_escompany_phone_c": {"type": "STRING", "index": 194, "name": "es_app_escompany_phone_c", "comment": null}, "es_app_escountry_c": {"type": "STRING", "index": 195, "name": "es_app_escountry_c", "comment": null}, "es_app_escreated_timestamp_c": {"type": "TIMESTAMP", "index": 196, "name": "es_app_escreated_timestamp_c", "comment": null}, "es_app_esecid_c": {"type": "FLOAT64", "index": 197, "name": "es_app_esecid_c", "comment": null}, "es_app_esemployees_c": {"type": "STRING", "index": 198, "name": "es_app_esemployees_c", "comment": null}, "es_app_esenriched_c": {"type": "BOOL", "index": 199, "name": "es_app_esenriched_c", "comment": null}, "es_app_esenriched_timestamp_c": {"type": "TIMESTAMP", "index": 200, "name": "es_app_esenriched_timestamp_c", "comment": null}, "es_app_esfacebook_c": {"type": "STRING", "index": 201, "name": "es_app_esfacebook_c", "comment": null}, "es_app_esindustry_c": {"type": "STRING", "index": 202, "name": "es_app_esindustry_c", "comment": null}, "es_app_esintent_aggregate_score_c": {"type": "FLOAT64", "index": 203, "name": "es_app_esintent_aggregate_score_c", "comment": null}, "es_app_esintent_timestamp_c": {"type": "TIMESTAMP", "index": 204, "name": "es_app_esintent_timestamp_c", "comment": null}, "es_app_esintent_topics_c": {"type": "STRING", "index": 205, "name": "es_app_esintent_topics_c", "comment": null}, "es_app_eskeywords_c": {"type": "STRING", "index": 206, "name": "es_app_eskeywords_c", "comment": null}, "es_app_eslinked_in_c": {"type": "STRING", "index": 207, "name": "es_app_eslinked_in_c", "comment": null}, "es_app_esoverall_fit_score_c": {"type": "FLOAT64", "index": 208, "name": "es_app_esoverall_fit_score_c", "comment": null}, "es_app_esrevenue_c": {"type": "STRING", "index": 209, "name": "es_app_esrevenue_c", "comment": null}, "es_app_essource_c": {"type": "BOOL", "index": 210, "name": "es_app_essource_c", "comment": null}, "es_app_esstate_c": {"type": "STRING", "index": 211, "name": "es_app_esstate_c", "comment": null}, "es_app_esstreet_c": {"type": "STRING", "index": 212, "name": "es_app_esstreet_c", "comment": null}, "es_app_estechnologies_c": {"type": "STRING", "index": 213, "name": "es_app_estechnologies_c", "comment": null}, "es_app_estwitter_c": {"type": "STRING", "index": 214, "name": "es_app_estwitter_c", "comment": null}, "es_app_eszipcode_c": {"type": "STRING", "index": 215, "name": "es_app_eszipcode_c", "comment": null}, "es_general_fit_c": {"type": "FLOAT64", "index": 216, "name": "es_general_fit_c", "comment": null}, "manual_override_country_code_c": {"type": "STRING", "index": 217, "name": "manual_override_country_code_c", "comment": null}, "manual_override_employee_count_c": {"type": "STRING", "index": 218, "name": "manual_override_employee_count_c", "comment": null}, "manual_override_state_c": {"type": "STRING", "index": 219, "name": "manual_override_state_c", "comment": null}, "manual_override_zip_c": {"type": "STRING", "index": 220, "name": "manual_override_zip_c", "comment": null}, "esraw_employee_size_c": {"type": "FLOAT64", "index": 221, "name": "esraw_employee_size_c", "comment": null}, "abm_score_c": {"type": "FLOAT64", "index": 222, "name": "abm_score_c", "comment": null}, "engagement_score_c": {"type": "FLOAT64", "index": 223, "name": "engagement_score_c", "comment": null}, "re_target_date_c": {"type": "TIMESTAMP", "index": 224, "name": "re_target_date_c", "comment": null}, "target_date_c": {"type": "TIMESTAMP", "index": 225, "name": "target_date_c", "comment": null}, "external_id_c": {"type": "STRING", "index": 226, "name": "external_id_c", "comment": null}, "case_study_marketing_use_c": {"type": "STRING", "index": 227, "name": "case_study_marketing_use_c", "comment": null}, "current_fortune_rank_c": {"type": "FLOAT64", "index": 228, "name": "current_fortune_rank_c", "comment": null}, "previouse_fortune_rank_c": {"type": "FLOAT64", "index": 229, "name": "previouse_fortune_rank_c", "comment": null}, "demandbase_country_c": {"type": "STRING", "index": 230, "name": "demandbase_country_c", "comment": null}, "demandbase_number_of_employees_c": {"type": "STRING", "index": 231, "name": "demandbase_number_of_employees_c", "comment": null}, "demandbase_state_c": {"type": "STRING", "index": 232, "name": "demandbase_state_c", "comment": null}, "demandbase_zip_c": {"type": "STRING", "index": 233, "name": "demandbase_zip_c", "comment": null}, "demandbase_general_fit_score_c": {"type": "STRING", "index": 234, "name": "demandbase_general_fit_score_c", "comment": null}, "demandbase_overall_score_c": {"type": "STRING", "index": 235, "name": "demandbase_overall_score_c", "comment": null}, "last_sales_activity_date_time_c": {"type": "TIMESTAMP", "index": 236, "name": "last_sales_activity_date_time_c", "comment": null}, "marketing_process_c": {"type": "STRING", "index": 237, "name": "marketing_process_c", "comment": null}, "automation_tracking_c": {"type": "STRING", "index": 238, "name": "automation_tracking_c", "comment": null}, "country_cc_c": {"type": "STRING", "index": 239, "name": "country_cc_c", "comment": null}, "demandbase_city_c": {"type": "STRING", "index": 240, "name": "demandbase_city_c", "comment": null}, "demandbase_sid_c": {"type": "STRING", "index": 241, "name": "demandbase_sid_c", "comment": null}, "ava_mapper_business_identification_number_c": {"type": "STRING", "index": 242, "name": "ava_mapper_business_identification_number_c", "comment": null}, "ava_mapper_entity_use_code_c": {"type": "STRING", "index": 243, "name": "ava_mapper_entity_use_code_c", "comment": null}, "ava_mapper_exemption_number_c": {"type": "STRING", "index": 244, "name": "ava_mapper_exemption_number_c", "comment": null}, "ava_mapper_is_seller_importer_of_record_c": {"type": "BOOL", "index": 245, "name": "ava_mapper_is_seller_importer_of_record_c", "comment": null}, "roll_out_group_c": {"type": "STRING", "index": 246, "name": "roll_out_group_c", "comment": null}, "is_updated_superset_c": {"type": "BOOL", "index": 247, "name": "is_updated_superset_c", "comment": null}, "assigned_ae_c": {"type": "STRING", "index": 248, "name": "assigned_ae_c", "comment": null}, "assigned_bdr_c": {"type": "STRING", "index": 249, "name": "assigned_bdr_c", "comment": null}, "assigned_se_c": {"type": "STRING", "index": 250, "name": "assigned_se_c", "comment": null}, "rollout_group_override_c": {"type": "STRING", "index": 251, "name": "rollout_group_override_c", "comment": null}, "disctrict_c": {"type": "STRING", "index": 252, "name": "disctrict_c", "comment": null}, "region_terr_c": {"type": "STRING", "index": 253, "name": "region_terr_c", "comment": null}, "territory_c": {"type": "STRING", "index": 254, "name": "territory_c", "comment": null}, "district_c": {"type": "STRING", "index": 255, "name": "district_c", "comment": null}, "territory_country_c": {"type": "STRING", "index": 256, "name": "territory_country_c", "comment": null}, "territory_employee_count_c": {"type": "FLOAT64", "index": 257, "name": "territory_employee_count_c", "comment": null}, "territory_state_c": {"type": "STRING", "index": 258, "name": "territory_state_c", "comment": null}, "territory_zip_c": {"type": "STRING", "index": 259, "name": "territory_zip_c", "comment": null}, "ava_sfcpq_ava_tax_exemption_customer_id_c": {"type": "STRING", "index": 260, "name": "ava_sfcpq_ava_tax_exemption_customer_id_c", "comment": null}, "ava_sfcpq_ava_tax_message_c": {"type": "STRING", "index": 261, "name": "ava_sfcpq_ava_tax_message_c", "comment": null}, "ava_sfcpq_business_identification_number_c": {"type": "STRING", "index": 262, "name": "ava_sfcpq_business_identification_number_c", "comment": null}, "ava_sfcpq_email_c": {"type": "STRING", "index": 263, "name": "ava_sfcpq_email_c", "comment": null}, "ava_sfcpq_exempt_entity_type_c": {"type": "STRING", "index": 264, "name": "ava_sfcpq_exempt_entity_type_c", "comment": null}, "ava_sfcpq_is_seller_importer_of_record_c": {"type": "BOOL", "index": 265, "name": "ava_sfcpq_is_seller_importer_of_record_c", "comment": null}, "ava_sfcpq_tax_exemption_code_c": {"type": "STRING", "index": 266, "name": "ava_sfcpq_tax_exemption_code_c", "comment": null}, "partner_tier_c": {"type": "STRING", "index": 267, "name": "partner_tier_c", "comment": null}, "referral_c": {"type": "STRING", "index": 268, "name": "referral_c", "comment": null}, "source_detail_c": {"type": "STRING", "index": 269, "name": "source_detail_c", "comment": null}, "cloudingo_agent_bar_c": {"type": "STRING", "index": 270, "name": "cloudingo_agent_bar_c", "comment": null}, "cloudingo_agent_bas_c": {"type": "FLOAT64", "index": 271, "name": "cloudingo_agent_bas_c", "comment": null}, "cloudingo_agent_bav_c": {"type": "STRING", "index": 272, "name": "cloudingo_agent_bav_c", "comment": null}, "cloudingo_agent_brdi_c": {"type": "STRING", "index": 273, "name": "cloudingo_agent_brdi_c", "comment": null}, "cloudingo_agent_btz_c": {"type": "STRING", "index": 274, "name": "cloudingo_agent_btz_c", "comment": null}, "cloudingo_agent_sar_c": {"type": "STRING", "index": 275, "name": "cloudingo_agent_sar_c", "comment": null}, "cloudingo_agent_sas_c": {"type": "FLOAT64", "index": 276, "name": "cloudingo_agent_sas_c", "comment": null}, "cloudingo_agent_sav_c": {"type": "STRING", "index": 277, "name": "cloudingo_agent_sav_c", "comment": null}, "cloudingo_agent_srdi_c": {"type": "STRING", "index": 278, "name": "cloudingo_agent_srdi_c", "comment": null}, "cloudingo_agent_stz_c": {"type": "STRING", "index": 279, "name": "cloudingo_agent_stz_c", "comment": null}, "do_not_sync_marketo_c": {"type": "BOOL", "index": 280, "name": "do_not_sync_marketo_c", "comment": null}, "nps_score_c": {"type": "STRING", "index": 281, "name": "nps_score_c", "comment": null}, "marketing_target_account_c": {"type": "BOOL", "index": 282, "name": "marketing_target_account_c", "comment": null}, "fivetran_fit_score_c": {"type": "FLOAT64", "index": 283, "name": "fivetran_fit_score_c", "comment": null}, "automated_communications_suspended_c": {"type": "BOOL", "index": 284, "name": "automated_communications_suspended_c", "comment": null}, "sales_target_account_c": {"type": "BOOL", "index": 285, "name": "sales_target_account_c", "comment": null}, "assigned_am_c": {"type": "STRING", "index": 286, "name": "assigned_am_c", "comment": null}, "account_notes_c": {"type": "STRING", "index": 287, "name": "account_notes_c", "comment": null}, "formula_fields_updated_c": {"type": "BOOL", "index": 288, "name": "formula_fields_updated_c", "comment": null}, "total_credits_bought_c": {"type": "FLOAT64", "index": 289, "name": "total_credits_bought_c", "comment": null}, "end_date_c": {"type": "TIMESTAMP", "index": 290, "name": "end_date_c", "comment": null}, "total_credits_used_c": {"type": "FLOAT64", "index": 291, "name": "total_credits_used_c", "comment": null}, "account_legal_name_c": {"type": "STRING", "index": 292, "name": "account_legal_name_c", "comment": null}, "clearbit_technologies_c": {"type": "STRING", "index": 293, "name": "clearbit_technologies_c", "comment": null}, "clearbit_industry_group_c": {"type": "STRING", "index": 294, "name": "clearbit_industry_group_c", "comment": null}, "employee_range_c": {"type": "STRING", "index": 295, "name": "employee_range_c", "comment": null}, "ft_account_id_s_verified_c": {"type": "BOOL", "index": 296, "name": "ft_account_id_s_verified_c", "comment": null}, "ft_account_verification_needed_c": {"type": "BOOL", "index": 297, "name": "ft_account_verification_needed_c", "comment": null}, "project_based_routing_c": {"type": "BOOL", "index": 298, "name": "project_based_routing_c", "comment": null}, "last_activity_logged_by_c": {"type": "STRING", "index": 299, "name": "last_activity_logged_by_c", "comment": null}, "clawback_trigger_email_alert_c": {"type": "BOOL", "index": 300, "name": "clawback_trigger_email_alert_c", "comment": null}, "start_date_c": {"type": "TIMESTAMP", "index": 301, "name": "start_date_c", "comment": null}, "is_emea_event_routing_c": {"type": "BOOL", "index": 302, "name": "is_emea_event_routing_c", "comment": null}, "csi_code_c": {"type": "FLOAT64", "index": 303, "name": "csi_code_c", "comment": null}, "csi_description_c": {"type": "STRING", "index": 304, "name": "csi_description_c", "comment": null}, "clearbit_alexa_rank_global_c": {"type": "FLOAT64", "index": 305, "name": "clearbit_alexa_rank_global_c", "comment": null}, "clearbit_alexa_rank_us_c": {"type": "FLOAT64", "index": 306, "name": "clearbit_alexa_rank_us_c", "comment": null}, "clearbit_company_type_c": {"type": "STRING", "index": 307, "name": "clearbit_company_type_c", "comment": null}, "clearbit_founded_year_c": {"type": "STRING", "index": 308, "name": "clearbit_founded_year_c", "comment": null}, "clearbit_indexed_at_c": {"type": "TIMESTAMP", "index": 309, "name": "clearbit_indexed_at_c", "comment": null}, "clearbit_industry_c": {"type": "STRING", "index": 310, "name": "clearbit_industry_c", "comment": null}, "clearbit_raised_c": {"type": "BIGNUMERIC", "index": 311, "name": "clearbit_raised_c", "comment": null}, "clearbit_tech_category_c": {"type": "STRING", "index": 312, "name": "clearbit_tech_category_c", "comment": null}, "clearbit_sector_c": {"type": "STRING", "index": 313, "name": "clearbit_sector_c", "comment": null}, "estimated_annual_revenue_c": {"type": "STRING", "index": 314, "name": "estimated_annual_revenue_c", "comment": null}, "clearbit_tags_c": {"type": "STRING", "index": 315, "name": "clearbit_tags_c", "comment": null}, "territory_inbound_c": {"type": "STRING", "index": 316, "name": "territory_inbound_c", "comment": null}, "lead_iq_country_c": {"type": "STRING", "index": 317, "name": "lead_iq_country_c", "comment": null}, "lead_iq_employee_count_c": {"type": "STRING", "index": 318, "name": "lead_iq_employee_count_c", "comment": null}, "lead_iq_employee_range_c": {"type": "STRING", "index": 319, "name": "lead_iq_employee_range_c", "comment": null}, "lead_iq_state_c": {"type": "STRING", "index": 320, "name": "lead_iq_state_c", "comment": null}, "lead_iq_zip_code_c": {"type": "STRING", "index": 321, "name": "lead_iq_zip_code_c", "comment": null}, "zoominfo_country_c": {"type": "STRING", "index": 322, "name": "zoominfo_country_c", "comment": null}, "zoominfo_employee_count_c": {"type": "STRING", "index": 323, "name": "zoominfo_employee_count_c", "comment": null}, "zoominfo_state_c": {"type": "STRING", "index": 324, "name": "zoominfo_state_c", "comment": null}, "zoominfo_technologies_c": {"type": "STRING", "index": 325, "name": "zoominfo_technologies_c", "comment": null}, "zoominfo_zip_code_c": {"type": "STRING", "index": 326, "name": "zoominfo_zip_code_c", "comment": null}, "company_country_c": {"type": "STRING", "index": 327, "name": "company_country_c", "comment": null}, "company_postal_code_c": {"type": "STRING", "index": 328, "name": "company_postal_code_c", "comment": null}, "company_province_c": {"type": "STRING", "index": 329, "name": "company_province_c", "comment": null}, "has_fivetran_connector_c": {"type": "BOOL", "index": 330, "name": "has_fivetran_connector_c", "comment": null}, "user_activity_logged_by_c": {"type": "STRING", "index": 331, "name": "user_activity_logged_by_c", "comment": null}, "segment_c": {"type": "STRING", "index": 332, "name": "segment_c", "comment": null}, "datawarehouse_used_c": {"type": "STRING", "index": 333, "name": "datawarehouse_used_c", "comment": null}, "bdr_priority_c": {"type": "STRING", "index": 334, "name": "bdr_priority_c", "comment": null}, "csi_description_del_c": {"type": "STRING", "index": 335, "name": "csi_description_del_c", "comment": null}, "last_bdr_activity_owner_c": {"type": "STRING", "index": 336, "name": "last_bdr_activity_owner_c", "comment": null}, "last_manual_bdr_activity_date_c": {"type": "TIMESTAMP", "index": 337, "name": "last_manual_bdr_activity_date_c", "comment": null}, "marketing_behavior_score_c": {"type": "FLOAT64", "index": 338, "name": "marketing_behavior_score_c", "comment": null}, "recommended_connector_c": {"type": "STRING", "index": 339, "name": "recommended_connector_c", "comment": null}, "dbt_package_run_c": {"type": "STRING", "index": 340, "name": "dbt_package_run_c", "comment": null}, "user_gems_has_a_user_gem_c": {"type": "BOOL", "index": 341, "name": "user_gems_has_a_user_gem_c", "comment": null}, "user_gems_user_gems_id_c": {"type": "STRING", "index": 342, "name": "user_gems_user_gems_id_c", "comment": null}, "clearbit_parent_company_domain_c": {"type": "STRING", "index": 343, "name": "clearbit_parent_company_domain_c", "comment": null}, "clearbit_ultimate_parent_domain_c": {"type": "STRING", "index": 344, "name": "clearbit_ultimate_parent_domain_c", "comment": null}, "dozisf_zoom_info_first_updated_c": {"type": "TIMESTAMP", "index": 345, "name": "dozisf_zoom_info_first_updated_c", "comment": null}, "dozisf_zoom_info_id_c": {"type": "STRING", "index": 346, "name": "dozisf_zoom_info_id_c", "comment": null}, "dozisf_zoom_info_last_updated_c": {"type": "TIMESTAMP", "index": 347, "name": "dozisf_zoom_info_last_updated_c", "comment": null}, "clearbit_billing_city_c": {"type": "STRING", "index": 348, "name": "clearbit_billing_city_c", "comment": null}, "clearbit_billing_country_c": {"type": "STRING", "index": 349, "name": "clearbit_billing_country_c", "comment": null}, "clearbit_billing_state_province_c": {"type": "STRING", "index": 350, "name": "clearbit_billing_state_province_c", "comment": null}, "clearbit_billing_street_c": {"type": "STRING", "index": 351, "name": "clearbit_billing_street_c", "comment": null}, "clearbit_billing_zip_postal_code_c": {"type": "STRING", "index": 352, "name": "clearbit_billing_zip_postal_code_c", "comment": null}, "date_time_formula_fields_changed_c": {"type": "TIMESTAMP", "index": 353, "name": "date_time_formula_fields_changed_c", "comment": null}, "region_deprecate_c": {"type": "STRING", "index": 354, "name": "region_deprecate_c", "comment": null}, "am_health_score_c": {"type": "FLOAT64", "index": 355, "name": "am_health_score_c", "comment": null}, "business_score_c": {"type": "FLOAT64", "index": 356, "name": "business_score_c", "comment": null}, "champion_relationship_c": {"type": "STRING", "index": 357, "name": "champion_relationship_c", "comment": null}, "customer_health_engagement_score_c": {"type": "FLOAT64", "index": 358, "name": "customer_health_engagement_score_c", "comment": null}, "expansion_score_c": {"type": "FLOAT64", "index": 359, "name": "expansion_score_c", "comment": null}, "friction_score_c": {"type": "FLOAT64", "index": 360, "name": "friction_score_c", "comment": null}, "health_score_c": {"type": "FLOAT64", "index": 361, "name": "health_score_c", "comment": null}, "usage_score_c": {"type": "FLOAT64", "index": 362, "name": "usage_score_c", "comment": null}, "promoter_score_c": {"type": "FLOAT64", "index": 363, "name": "promoter_score_c", "comment": null}, "pbf_account_c": {"type": "BOOL", "index": 364, "name": "pbf_account_c", "comment": null}, "clarus_date_c": {"type": "TIMESTAMP", "index": 365, "name": "clarus_date_c", "comment": null}, "clarus_editor_c": {"type": "STRING", "index": 366, "name": "clarus_editor_c", "comment": null}, "clarus_project_c": {"type": "STRING", "index": 367, "name": "clarus_project_c", "comment": null}, "override_account_type_c": {"type": "BOOL", "index": 368, "name": "override_account_type_c", "comment": null}, "clarus_notes_c": {"type": "STRING", "index": 369, "name": "clarus_notes_c", "comment": null}, "clarus_status_c": {"type": "STRING", "index": 370, "name": "clarus_status_c", "comment": null}, "fivetran_connectors_used_c": {"type": "STRING", "index": 371, "name": "fivetran_connectors_used_c", "comment": null}, "fivetran_data_warehouses_c": {"type": "STRING", "index": 372, "name": "fivetran_data_warehouses_c", "comment": null}, "fivetran_first_sync_date_c": {"type": "TIMESTAMP", "index": 373, "name": "fivetran_first_sync_date_c", "comment": null}, "fivetran_last_sync_date_c": {"type": "TIMESTAMP", "index": 374, "name": "fivetran_last_sync_date_c", "comment": null}, "fivetran_last_updated_date_c": {"type": "TIMESTAMP", "index": 375, "name": "fivetran_last_updated_date_c", "comment": null}, "fivetran_sync_status_c": {"type": "STRING", "index": 376, "name": "fivetran_sync_status_c", "comment": null}, "fivetran_trial_begin_date_c": {"type": "TIMESTAMP", "index": 377, "name": "fivetran_trial_begin_date_c", "comment": null}, "fivetran_trial_end_date_c": {"type": "TIMESTAMP", "index": 378, "name": "fivetran_trial_end_date_c", "comment": null}, "analyst_interview_c": {"type": "STRING", "index": 379, "name": "analyst_interview_c", "comment": null}, "beta_test_c": {"type": "STRING", "index": 380, "name": "beta_test_c", "comment": null}, "case_study_c": {"type": "STRING", "index": 381, "name": "case_study_c", "comment": null}, "customer_advocate_c": {"type": "STRING", "index": 382, "name": "customer_advocate_c", "comment": null}, "customer_advocate_notes_c": {"type": "STRING", "index": 383, "name": "customer_advocate_notes_c", "comment": null}, "event_speaker_c": {"type": "STRING", "index": 384, "name": "event_speaker_c", "comment": null}, "podcast_c": {"type": "STRING", "index": 385, "name": "podcast_c", "comment": null}, "pr_opportunity_c": {"type": "STRING", "index": 386, "name": "pr_opportunity_c", "comment": null}, "product_feedback_c": {"type": "STRING", "index": 387, "name": "product_feedback_c", "comment": null}, "reference_call_c": {"type": "STRING", "index": 388, "name": "reference_call_c", "comment": null}, "video_testimonial_c": {"type": "STRING", "index": 389, "name": "video_testimonial_c", "comment": null}, "webinar_c": {"type": "STRING", "index": 390, "name": "webinar_c", "comment": null}, "assigned_tsm_c": {"type": "STRING", "index": 391, "name": "assigned_tsm_c", "comment": null}, "last_ae_activity_owner_c": {"type": "STRING", "index": 392, "name": "last_ae_activity_owner_c", "comment": null}, "last_manual_ae_activity_date_c": {"type": "TIMESTAMP", "index": 393, "name": "last_manual_ae_activity_date_c", "comment": null}, "account_holdover_c": {"type": "BOOL", "index": 394, "name": "account_holdover_c", "comment": null}, "cpq_migration_complete_c": {"type": "BOOL", "index": 395, "name": "cpq_migration_complete_c", "comment": null}, "blng_bill_to_contact_c": {"type": "STRING", "index": 396, "name": "blng_bill_to_contact_c", "comment": null}, "blng_customer_profile_id_c": {"type": "STRING", "index": 397, "name": "blng_customer_profile_id_c", "comment": null}, "blng_default_payment_type_c": {"type": "STRING", "index": 398, "name": "blng_default_payment_type_c", "comment": null}, "sfbd_collections_agent_c": {"type": "STRING", "index": 399, "name": "sfbd_collections_agent_c", "comment": null}, "sfbd_collections_plan_date_c": {"type": "TIMESTAMP", "index": 400, "name": "sfbd_collections_plan_date_c", "comment": null}, "sfbd_collections_status_c": {"type": "STRING", "index": 401, "name": "sfbd_collections_status_c", "comment": null}, "sfbd_dunning_method_c": {"type": "STRING", "index": 402, "name": "sfbd_dunning_method_c", "comment": null}, "sfbd_sla_c": {"type": "STRING", "index": 403, "name": "sfbd_sla_c", "comment": null}, "sfbd_upsell_opportunity_c": {"type": "STRING", "index": 404, "name": "sfbd_upsell_opportunity_c", "comment": null}, "ava_blng_business_identification_number_c": {"type": "STRING", "index": 405, "name": "ava_blng_business_identification_number_c", "comment": null}, "ava_blng_entity_use_code_c": {"type": "STRING", "index": 406, "name": "ava_blng_entity_use_code_c", "comment": null}, "ava_blng_exemption_number_c": {"type": "STRING", "index": 407, "name": "ava_blng_exemption_number_c", "comment": null}, "ava_blng_is_seller_importer_of_record_c": {"type": "BOOL", "index": 408, "name": "ava_blng_is_seller_importer_of_record_c", "comment": null}, "account_status_c": {"type": "STRING", "index": 409, "name": "account_status_c", "comment": null}, "credit_summary_c": {"type": "STRING", "index": 410, "name": "credit_summary_c", "comment": null}, "current_month_beginning_credit_balance_c": {"type": "FLOAT64", "index": 411, "name": "current_month_beginning_credit_balance_c", "comment": null}, "customer_type_c": {"type": "STRING", "index": 412, "name": "customer_type_c", "comment": null}, "fivetran_customer_account_id_c": {"type": "STRING", "index": 413, "name": "fivetran_customer_account_id_c", "comment": null}, "last_credit_snapshot_date_c": {"type": "TIMESTAMP", "index": 414, "name": "last_credit_snapshot_date_c", "comment": null}, "last_usage_record_c": {"type": "TIMESTAMP", "index": 415, "name": "last_usage_record_c", "comment": null}, "number_of_credits_expired_c": {"type": "FLOAT64", "index": 416, "name": "number_of_credits_expired_c", "comment": null}, "number_of_fivetran_accounts_c": {"type": "FLOAT64", "index": 417, "name": "number_of_fivetran_accounts_c", "comment": null}, "payment_expected_date_c": {"type": "TIMESTAMP", "index": 418, "name": "payment_expected_date_c", "comment": null}, "previous_month_beginning_credit_balance_c": {"type": "FLOAT64", "index": 419, "name": "previous_month_beginning_credit_balance_c", "comment": null}, "previous_month_s_ending_credit_balance_c": {"type": "FLOAT64", "index": 420, "name": "previous_month_s_ending_credit_balance_c", "comment": null}, "previous_month_s_starting_credit_balance_c": {"type": "FLOAT64", "index": 421, "name": "previous_month_s_starting_credit_balance_c", "comment": null}, "trial_start_date_c": {"type": "TIMESTAMP", "index": 422, "name": "trial_start_date_c", "comment": null}, "notes_cs_c": {"type": "STRING", "index": 423, "name": "notes_cs_c", "comment": null}, "usage_ae_c": {"type": "STRING", "index": 424, "name": "usage_ae_c", "comment": null}, "usage_am_c": {"type": "STRING", "index": 425, "name": "usage_am_c", "comment": null}, "first_won_date_c": {"type": "TIMESTAMP", "index": 426, "name": "first_won_date_c", "comment": null}, "land_arr_c": {"type": "BIGNUMERIC", "index": 427, "name": "land_arr_c", "comment": null}, "active_ft_accounts_c": {"type": "FLOAT64", "index": 428, "name": "active_ft_accounts_c", "comment": null}, "usage_csm_c": {"type": "STRING", "index": 429, "name": "usage_csm_c", "comment": null}, "duns_number_c": {"type": "STRING", "index": 430, "name": "duns_number_c", "comment": null}, "land_region_2020_h_2_c": {"type": "STRING", "index": 431, "name": "land_region_2020_h_2_c", "comment": null}, "third_party_payer_c": {"type": "STRING", "index": 432, "name": "third_party_payer_c", "comment": null}, "ae_paired_csm_c": {"type": "STRING", "index": 433, "name": "ae_paired_csm_c", "comment": null}, "month_of_ownership_transfer_hidden_c": {"type": "TIMESTAMP", "index": 434, "name": "month_of_ownership_transfer_hidden_c", "comment": null}, "clearbit_sub_industry_c": {"type": "STRING", "index": 435, "name": "clearbit_sub_industry_c", "comment": null}, "business_intelligence_tool_c": {"type": "STRING", "index": 436, "name": "business_intelligence_tool_c", "comment": null}, "self_service_to_annual_c": {"type": "BOOL", "index": 437, "name": "self_service_to_annual_c", "comment": null}, "suppress_billing_c": {"type": "BOOL", "index": 438, "name": "suppress_billing_c", "comment": null}, "enterprise_target_account_c": {"type": "BOOL", "index": 439, "name": "enterprise_target_account_c", "comment": null}, "pending_to_add_fivetran_account_c": {"type": "BOOL", "index": 440, "name": "pending_to_add_fivetran_account_c", "comment": null}, "revenue_team_c": {"type": "STRING", "index": 441, "name": "revenue_team_c", "comment": null}, "is_non_renewable_c": {"type": "BOOL", "index": 442, "name": "is_non_renewable_c", "comment": null}, "bizible_2_engagement_score_c": {"type": "STRING", "index": 443, "name": "bizible_2_engagement_score_c", "comment": null}, "ad_clicks_rolling_30_c": {"type": "FLOAT64", "index": 444, "name": "ad_clicks_rolling_30_c", "comment": null}, "ad_clicks_rolling_90_c": {"type": "FLOAT64", "index": 445, "name": "ad_clicks_rolling_90_c", "comment": null}, "ad_data_up_to_date_as_of_c": {"type": "TIMESTAMP", "index": 446, "name": "ad_data_up_to_date_as_of_c", "comment": null}, "ad_impressions_rolling_30_c": {"type": "FLOAT64", "index": 447, "name": "ad_impressions_rolling_30_c", "comment": null}, "ad_impressions_rolling_90_c": {"type": "FLOAT64", "index": 448, "name": "ad_impressions_rolling_90_c", "comment": null}, "ad_spend_mt_d_c": {"type": "FLOAT64", "index": 449, "name": "ad_spend_mt_d_c", "comment": null}, "ad_spend_qt_d_c": {"type": "FLOAT64", "index": 450, "name": "ad_spend_qt_d_c", "comment": null}, "associated_terminus_accounts_c": {"type": "STRING", "index": 451, "name": "associated_terminus_accounts_c", "comment": null}, "associated_terminus_accounts_up_to_date_as_of_c": {"type": "TIMESTAMP", "index": 452, "name": "associated_terminus_accounts_up_to_date_as_of_c", "comment": null}, "end_of_surge_c": {"type": "TIMESTAMP", "index": 453, "name": "end_of_surge_c", "comment": null}, "highest_surge_percent_c": {"type": "FLOAT64", "index": 454, "name": "highest_surge_percent_c", "comment": null}, "last_ad_click_date_c": {"type": "TIMESTAMP", "index": 455, "name": "last_ad_click_date_c", "comment": null}, "last_unique_visitors_snapshot_c": {"type": "FLOAT64", "index": 456, "name": "last_unique_visitors_snapshot_c", "comment": null}, "last_visit_moment_c": {"type": "TIMESTAMP", "index": 457, "name": "last_visit_moment_c", "comment": null}, "last_visit_sessions_snapshot_c": {"type": "FLOAT64", "index": 458, "name": "last_visit_sessions_snapshot_c", "comment": null}, "start_of_surge_c": {"type": "TIMESTAMP", "index": 459, "name": "start_of_surge_c", "comment": null}, "surge_data_up_to_date_as_of_c": {"type": "TIMESTAMP", "index": 460, "name": "surge_data_up_to_date_as_of_c", "comment": null}, "surging_awareness_pages_c": {"type": "STRING", "index": 461, "name": "surging_awareness_pages_c", "comment": null}, "surging_high_value_pages_c": {"type": "STRING", "index": 462, "name": "surging_high_value_pages_c", "comment": null}, "surging_models_c": {"type": "STRING", "index": 463, "name": "surging_models_c", "comment": null}, "terminus_account_lists_c": {"type": "STRING", "index": 464, "name": "terminus_account_lists_c", "comment": null}, "terminus_account_lists_updated_moment_utc_c": {"type": "TIMESTAMP", "index": 465, "name": "terminus_account_lists_updated_moment_utc_c", "comment": null}, "unique_web_visitors_rolling_30_c": {"type": "FLOAT64", "index": 466, "name": "unique_web_visitors_rolling_30_c", "comment": null}, "web_visit_data_up_to_date_as_of_c": {"type": "TIMESTAMP", "index": 467, "name": "web_visit_data_up_to_date_as_of_c", "comment": null}, "web_visits_rolling_30_c": {"type": "FLOAT64", "index": 468, "name": "web_visits_rolling_30_c", "comment": null}, "revenue_all_time_c": {"type": "BIGNUMERIC", "index": 469, "name": "revenue_all_time_c", "comment": null}, "revenue_annual_c": {"type": "BIGNUMERIC", "index": 470, "name": "revenue_annual_c", "comment": null}, "total_closed_lost_opportunities_c": {"type": "FLOAT64", "index": 471, "name": "total_closed_lost_opportunities_c", "comment": null}, "total_closed_won_opportunities_c": {"type": "FLOAT64", "index": 472, "name": "total_closed_won_opportunities_c", "comment": null}, "total_opportunities_c": {"type": "FLOAT64", "index": 473, "name": "total_opportunities_c", "comment": null}, "ae_am_ownership_transfer_email_sent_c": {"type": "BOOL", "index": 474, "name": "ae_am_ownership_transfer_email_sent_c", "comment": null}, "comp_credit_quantity_override_c": {"type": "BOOL", "index": 475, "name": "comp_credit_quantity_override_c", "comment": null}, "celigo_sfnsio_account_balance_c": {"type": "BIGNUMERIC", "index": 476, "name": "celigo_sfnsio_account_balance_c", "comment": null}, "celigo_sfnsio_channel_tier_c": {"type": "STRING", "index": 477, "name": "celigo_sfnsio_channel_tier_c", "comment": null}, "celigo_sfnsio_credit_hold_c": {"type": "STRING", "index": 478, "name": "celigo_sfnsio_credit_hold_c", "comment": null}, "celigo_sfnsio_credit_limit_c": {"type": "BIGNUMERIC", "index": 479, "name": "celigo_sfnsio_credit_limit_c", "comment": null}, "celigo_sfnsio_days_overdue_c": {"type": "FLOAT64", "index": 480, "name": "celigo_sfnsio_days_overdue_c", "comment": null}, "celigo_sfnsio_net_suite_id_c": {"type": "STRING", "index": 481, "name": "celigo_sfnsio_net_suite_id_c", "comment": null}, "celigo_sfnsio_net_suite_record_c": {"type": "STRING", "index": 482, "name": "celigo_sfnsio_net_suite_record_c", "comment": null}, "celigo_sfnsio_net_suite_sync_error_c": {"type": "STRING", "index": 483, "name": "celigo_sfnsio_net_suite_sync_error_c", "comment": null}, "celigo_sfnsio_overdue_balance_c": {"type": "BIGNUMERIC", "index": 484, "name": "celigo_sfnsio_overdue_balance_c", "comment": null}, "celigo_sfnsio_skip_export_to_net_suite_c": {"type": "BOOL", "index": 485, "name": "celigo_sfnsio_skip_export_to_net_suite_c", "comment": null}, "celigo_sfnsio_test_mode_record_c": {"type": "BOOL", "index": 486, "name": "celigo_sfnsio_test_mode_record_c", "comment": null}, "celigo_sfnsio_unbilled_orders_c": {"type": "BIGNUMERIC", "index": 487, "name": "celigo_sfnsio_unbilled_orders_c", "comment": null}, "account_owner_notes_c": {"type": "STRING", "index": 488, "name": "account_owner_notes_c", "comment": null}, "ironclad_workflow_c": {"type": "STRING", "index": 489, "name": "ironclad_workflow_c", "comment": null}, "bombora_app_bombora_surge_record_count_c": {"type": "FLOAT64", "index": 490, "name": "bombora_app_bombora_surge_record_count_c", "comment": null}, "bombora_app_bombora_last_date_time_updated_c": {"type": "TIMESTAMP", "index": 491, "name": "bombora_app_bombora_last_date_time_updated_c", "comment": null}, "bombora_app_bombora_total_composite_score_c": {"type": "FLOAT64", "index": 492, "name": "bombora_app_bombora_total_composite_score_c", "comment": null}, "is_test_account_c": {"type": "BOOL", "index": 493, "name": "is_test_account_c", "comment": null}, "_fivetran_deleted": {"type": "BOOL", "index": 494, "name": "_fivetran_deleted", "comment": null}, "expansion_annual_goal_c": {"type": "BIGNUMERIC", "index": 495, "name": "expansion_annual_goal_c", "comment": null}, "volume_post_sales_c": {"type": "BOOL", "index": 496, "name": "volume_post_sales_c", "comment": null}, "baseline_arr_c": {"type": "BIGNUMERIC", "index": 497, "name": "baseline_arr_c", "comment": null}, "use_cases_notes_c": {"type": "STRING", "index": 498, "name": "use_cases_notes_c", "comment": null}, "cs_strategy_notes_c": {"type": "STRING", "index": 499, "name": "cs_strategy_notes_c", "comment": null}, "use_cases_c": {"type": "STRING", "index": 500, "name": "use_cases_c", "comment": null}, "current_champion_c": {"type": "STRING", "index": 501, "name": "current_champion_c", "comment": null}, "cs_strategy_c": {"type": "STRING", "index": 502, "name": "cs_strategy_c", "comment": null}, "assigned_sdr_c": {"type": "STRING", "index": 503, "name": "assigned_sdr_c", "comment": null}, "last_sdr_activity_owner_c": {"type": "STRING", "index": 504, "name": "last_sdr_activity_owner_c", "comment": null}, "last_sdr_activity_date_c": {"type": "TIMESTAMP", "index": 505, "name": "last_sdr_activity_date_c", "comment": null}, "ae_to_csm_ownership_handoff_c": {"type": "BOOL", "index": 506, "name": "ae_to_csm_ownership_handoff_c", "comment": null}, "customer_spend_type_c": {"type": "STRING", "index": 507, "name": "customer_spend_type_c", "comment": null}, "csm_assignment_date_c": {"type": "TIMESTAMP", "index": 508, "name": "csm_assignment_date_c", "comment": null}, "startup_promotion_qualifier_c": {"type": "BOOL", "index": 509, "name": "startup_promotion_qualifier_c", "comment": null}, "pricing_curve_c": {"type": "STRING", "index": 510, "name": "pricing_curve_c", "comment": null}, "committed_credits_verified_c": {"type": "BOOL", "index": 511, "name": "committed_credits_verified_c", "comment": null}, "connector_s_c": {"type": "STRING", "index": 512, "name": "connector_s_c", "comment": null}, "high_water_mark_arr_c": {"type": "BIGNUMERIC", "index": 513, "name": "high_water_mark_arr_c", "comment": null}, "usage_arr_c": {"type": "BIGNUMERIC", "index": 514, "name": "usage_arr_c", "comment": null}, "use_cases_x_c": {"type": "STRING", "index": 515, "name": "use_cases_x_c", "comment": null}, "p_o_number_c": {"type": "STRING", "index": 516, "name": "p_o_number_c", "comment": null}, "annualized_mrrv_previous_month_c": {"type": "BIGNUMERIC", "index": 517, "name": "annualized_mrrv_previous_month_c", "comment": null}, "olp_to_annual_change_date_c": {"type": "TIMESTAMP", "index": 518, "name": "olp_to_annual_change_date_c", "comment": null}, "customer_type_change_detail_c": {"type": "STRING", "index": 519, "name": "customer_type_change_detail_c", "comment": null}, "annual_to_olp_change_date_c": {"type": "TIMESTAMP", "index": 520, "name": "annual_to_olp_change_date_c", "comment": null}, "value_print_last_updated_c": {"type": "TIMESTAMP", "index": 521, "name": "value_print_last_updated_c", "comment": null}, "bookings_arr_c": {"type": "BIGNUMERIC", "index": 522, "name": "bookings_arr_c", "comment": null}, "geoand_cloud_region_c": {"type": "STRING", "index": 523, "name": "geoand_cloud_region_c", "comment": null}, "on_snowflake_business_critical_ed_c": {"type": "BOOL", "index": 524, "name": "on_snowflake_business_critical_ed_c", "comment": null}, "average_monthly_usage_lifetime_c": {"type": "FLOAT64", "index": 525, "name": "average_monthly_usage_lifetime_c", "comment": null}, "average_monthly_usage_4_mos_c": {"type": "FLOAT64", "index": 526, "name": "average_monthly_usage_4_mos_c", "comment": null}, "account_priority_c": {"type": "STRING", "index": 527, "name": "account_priority_c", "comment": null}, "total_credits_bought_override_c": {"type": "FLOAT64", "index": 528, "name": "total_credits_bought_override_c", "comment": null}, "rollover_credits_verified_c": {"type": "BOOL", "index": 529, "name": "rollover_credits_verified_c", "comment": null}, "dnboptimizer_dn_bcompany_record_c": {"type": "STRING", "index": 530, "name": "dnboptimizer_dn_bcompany_record_c", "comment": null}, "dnboptimizer_dnb_d_u_n_s_number_c": {"type": "STRING", "index": 531, "name": "dnboptimizer_dnb_d_u_n_s_number_c", "comment": null}, "i_sell_oskey_id_c": {"type": "STRING", "index": 532, "name": "i_sell_oskey_id_c", "comment": null}, "count_of_credit_summaries_c": {"type": "FLOAT64", "index": 533, "name": "count_of_credit_summaries_c", "comment": null}, "abm_targeting_timeline_c": {"type": "STRING", "index": 534, "name": "abm_targeting_timeline_c", "comment": null}, "abm_enterprise_tier_c": {"type": "STRING", "index": 535, "name": "abm_enterprise_tier_c", "comment": null}, "zoom_info_naics_c": {"type": "STRING", "index": 536, "name": "zoom_info_naics_c", "comment": null}, "dbt_billing_start_date_c": {"type": "TIMESTAMP", "index": 537, "name": "dbt_billing_start_date_c", "comment": null}, "dnb_match_score_confidence_code_c": {"type": "STRING", "index": 538, "name": "dnb_match_score_confidence_code_c", "comment": null}, "dnb_web_address_c": {"type": "STRING", "index": 539, "name": "dnb_web_address_c", "comment": null}, "dnb_primary_address_line_1_c": {"type": "STRING", "index": 540, "name": "dnb_primary_address_line_1_c", "comment": null}, "dnb_out_of_business_indicator_c": {"type": "STRING", "index": 541, "name": "dnb_out_of_business_indicator_c", "comment": null}, "dnb_location_type_c": {"type": "STRING", "index": 542, "name": "dnb_location_type_c", "comment": null}, "dnb_domestic_ultimate_indicator_c": {"type": "STRING", "index": 543, "name": "dnb_domestic_ultimate_indicator_c", "comment": null}, "dnb_naics_code_1_c": {"type": "STRING", "index": 544, "name": "dnb_naics_code_1_c", "comment": null}, "dnb_naics_code_2_c": {"type": "STRING", "index": 545, "name": "dnb_naics_code_2_c", "comment": null}, "dnb_global_ultimate_indicator_c": {"type": "STRING", "index": 546, "name": "dnb_global_ultimate_indicator_c", "comment": null}, "dnb_employee_count_trend_year_c": {"type": "FLOAT64", "index": 547, "name": "dnb_employee_count_trend_year_c", "comment": null}, "dnb_primary_address_country_region_c": {"type": "STRING", "index": 548, "name": "dnb_primary_address_country_region_c", "comment": null}, "dnb_telephone_number_c": {"type": "STRING", "index": 549, "name": "dnb_telephone_number_c", "comment": null}, "dnb_subsidiary_indicator_c": {"type": "STRING", "index": 550, "name": "dnb_subsidiary_indicator_c", "comment": null}, "dnb_parent_business_name_c": {"type": "STRING", "index": 551, "name": "dnb_parent_business_name_c", "comment": null}, "dnb_fiscal_year_end_c": {"type": "STRING", "index": 552, "name": "dnb_fiscal_year_end_c", "comment": null}, "dnb_us_tax_id_c": {"type": "STRING", "index": 553, "name": "dnb_us_tax_id_c", "comment": null}, "dnb_primary_address_state_province_abbre_c": {"type": "STRING", "index": 554, "name": "dnb_primary_address_state_province_abbre_c", "comment": null}, "dnb_match_grade_c": {"type": "STRING", "index": 555, "name": "dnb_match_grade_c", "comment": null}, "dnb_revenue_trend_year_c": {"type": "FLOAT64", "index": 556, "name": "dnb_revenue_trend_year_c", "comment": null}, "dnb_global_ultimate_duns_c": {"type": "STRING", "index": 557, "name": "dnb_global_ultimate_duns_c", "comment": null}, "dnb_sic_4_code_1_c": {"type": "STRING", "index": 558, "name": "dnb_sic_4_code_1_c", "comment": null}, "dnb_duns_number_c": {"type": "STRING", "index": 559, "name": "dnb_duns_number_c", "comment": null}, "dnb_domestic_ultimate_duns_c": {"type": "STRING", "index": 560, "name": "dnb_domestic_ultimate_duns_c", "comment": null}, "dnb_primary_address_state_province_c": {"type": "STRING", "index": 561, "name": "dnb_primary_address_state_province_c", "comment": null}, "dnb_num_family_members_c": {"type": "FLOAT64", "index": 562, "name": "dnb_num_family_members_c", "comment": null}, "dnb_employee_count_total_reliability_code_c": {"type": "STRING", "index": 563, "name": "dnb_employee_count_total_reliability_code_c", "comment": null}, "dnb_domestic_ultimate_business_name_c": {"type": "STRING", "index": 564, "name": "dnb_domestic_ultimate_business_name_c", "comment": null}, "dnb_primary_address_country_region_code_c": {"type": "STRING", "index": 565, "name": "dnb_primary_address_country_region_code_c", "comment": null}, "dnb_business_name_c": {"type": "STRING", "index": 566, "name": "dnb_business_name_c", "comment": null}, "dnb_sic_4_code_3_c": {"type": "STRING", "index": 567, "name": "dnb_sic_4_code_3_c", "comment": null}, "dnb_sic_4_code_2_c": {"type": "STRING", "index": 568, "name": "dnb_sic_4_code_2_c", "comment": null}, "dnb_match_data_profile_c": {"type": "STRING", "index": 569, "name": "dnb_match_data_profile_c", "comment": null}, "dnb_marketability_indicator_c": {"type": "STRING", "index": 570, "name": "dnb_marketability_indicator_c", "comment": null}, "dnb_primary_address_city_c": {"type": "STRING", "index": 571, "name": "dnb_primary_address_city_c", "comment": null}, "dnb_legal_structure_description_c": {"type": "STRING", "index": 572, "name": "dnb_legal_structure_description_c", "comment": null}, "dnb_sales_volume_usd_c": {"type": "FLOAT64", "index": 573, "name": "dnb_sales_volume_usd_c", "comment": null}, "dnb_primary_address_postal_code_c": {"type": "STRING", "index": 574, "name": "dnb_primary_address_postal_code_c", "comment": null}, "dnb_parent_duns_c": {"type": "STRING", "index": 575, "name": "dnb_parent_duns_c", "comment": null}, "dnb_tradestyle_name_1_c": {"type": "STRING", "index": 576, "name": "dnb_tradestyle_name_1_c", "comment": null}, "dnb_primary_c": {"type": "STRING", "index": 577, "name": "dnb_primary_c", "comment": null}, "dnb_employee_count_total_reliability_desc_c": {"type": "STRING", "index": 578, "name": "dnb_employee_count_total_reliability_desc_c", "comment": null}, "dnb_sales_volume_reliability_description_c": {"type": "STRING", "index": 579, "name": "dnb_sales_volume_reliability_description_c", "comment": null}, "dnb_employee_count_total_c": {"type": "FLOAT64", "index": 580, "name": "dnb_employee_count_total_c", "comment": null}, "dnb_business_description_c": {"type": "STRING", "index": 581, "name": "dnb_business_description_c", "comment": null}, "dnb_employee_count_here_c": {"type": "FLOAT64", "index": 582, "name": "dnb_employee_count_here_c", "comment": null}, "dnb_headquarter_business_name_c": {"type": "STRING", "index": 583, "name": "dnb_headquarter_business_name_c", "comment": null}, "dnb_global_ultimate_business_name_c": {"type": "STRING", "index": 584, "name": "dnb_global_ultimate_business_name_c", "comment": null}, "dnb_fortune_1000_rank_c": {"type": "STRING", "index": 585, "name": "dnb_fortune_1000_rank_c", "comment": null}, "end_date_of_services_package_c": {"type": "TIMESTAMP", "index": 586, "name": "end_date_of_services_package_c", "comment": null}, "third_party_data_c": {"type": "STRING", "index": 587, "name": "third_party_data_c", "comment": null}, "pbf_overlay_c": {"type": "STRING", "index": 588, "name": "pbf_overlay_c", "comment": null}, "pbf_churn_c": {"type": "BOOL", "index": 589, "name": "pbf_churn_c", "comment": null}, "last_pbf_sales_activity_c": {"type": "TIMESTAMP", "index": 590, "name": "last_pbf_sales_activity_c", "comment": null}, "pbf_status_c": {"type": "STRING", "index": 591, "name": "pbf_status_c", "comment": null}, "embedded_am_c": {"type": "STRING", "index": 592, "name": "embedded_am_c", "comment": null}, "pbf_expiration_date_c": {"type": "TIMESTAMP", "index": 593, "name": "pbf_expiration_date_c", "comment": null}, "api_created_connectors_c": {"type": "BOOL", "index": 594, "name": "api_created_connectors_c", "comment": null}, "xbeamprod_available_overlaps_c": {"type": "FLOAT64", "index": 595, "name": "xbeamprod_available_overlaps_c", "comment": null}, "cross_sell_account_approved_c": {"type": "BOOL", "index": 596, "name": "cross_sell_account_approved_c", "comment": null}, "why_was_account_flagged_for_cross_sell_c": {"type": "STRING", "index": 597, "name": "why_was_account_flagged_for_cross_sell_c", "comment": null}, "flagging_hvr_xsell_c": {"type": "BOOL", "index": 598, "name": "flagging_hvr_xsell_c", "comment": null}, "engagio_mqadate_c": {"type": "TIMESTAMP", "index": 599, "name": "engagio_mqadate_c", "comment": null}, "engagio_qualification_score_c": {"type": "FLOAT64", "index": 600, "name": "engagio_qualification_score_c", "comment": null}, "engagio_top_urls_c": {"type": "STRING", "index": 601, "name": "engagio_top_urls_c", "comment": null}, "engagio_number_of_people_c": {"type": "FLOAT64", "index": 602, "name": "engagio_number_of_people_c", "comment": null}, "engagio_engagement_minutes_last_7_days_c": {"type": "FLOAT64", "index": 603, "name": "engagio_engagement_minutes_last_7_days_c", "comment": null}, "engagio_first_engagement_date_c": {"type": "TIMESTAMP", "index": 604, "name": "engagio_first_engagement_date_c", "comment": null}, "engagio_web_visits_last_3_months_c": {"type": "FLOAT64", "index": 605, "name": "engagio_web_visits_last_3_months_c", "comment": null}, "engagio_intent_minutes_last_30_days_c": {"type": "FLOAT64", "index": 606, "name": "engagio_intent_minutes_last_30_days_c", "comment": null}, "engagio_pipeline_predict_score_c": {"type": "FLOAT64", "index": 607, "name": "engagio_pipeline_predict_score_c", "comment": null}, "engagio_engagement_minutes_last_3_months_c": {"type": "FLOAT64", "index": 608, "name": "engagio_engagement_minutes_last_3_months_c", "comment": null}, "engagio_status_c": {"type": "STRING", "index": 609, "name": "engagio_status_c", "comment": null}, "engagio_engaged_people_c": {"type": "FLOAT64", "index": 610, "name": "engagio_engaged_people_c", "comment": null}, "engagio_high_intent_keywords_c": {"type": "STRING", "index": 611, "name": "engagio_high_intent_keywords_c", "comment": null}, "force_merge_c": {"type": "BOOL", "index": 612, "name": "force_merge_c", "comment": null}, "strategic_account_c": {"type": "BOOL", "index": 613, "name": "strategic_account_c", "comment": null}, "feature_request_c": {"type": "STRING", "index": 614, "name": "feature_request_c", "comment": null}, "dbt_billing_enablement_date_c": {"type": "TIMESTAMP", "index": 615, "name": "dbt_billing_enablement_date_c", "comment": null}, "rev_ex_territory_review_dec_21_c": {"type": "BOOL", "index": 616, "name": "rev_ex_territory_review_dec_21_c", "comment": null}, "manual_subsidiary_indicator_c": {"type": "BOOL", "index": 617, "name": "manual_subsidiary_indicator_c", "comment": null}, "potential_fivetran_use_case_c": {"type": "STRING", "index": 618, "name": "potential_fivetran_use_case_c", "comment": null}, "fy_23_enterprise_target_c": {"type": "BOOL", "index": 619, "name": "fy_23_enterprise_target_c", "comment": null}, "target_account_hierarchy_member_c": {"type": "BOOL", "index": 620, "name": "target_account_hierarchy_member_c", "comment": null}, "ignore_manual_override_c": {"type": "BOOL", "index": 621, "name": "ignore_manual_override_c", "comment": null}, "ae_solo_target_account_c": {"type": "BOOL", "index": 622, "name": "ae_solo_target_account_c", "comment": null}, "fy_23_ae_target_accounts_c": {"type": "BOOL", "index": 623, "name": "fy_23_ae_target_accounts_c", "comment": null}, "temporary_target_accounts_c": {"type": "BOOL", "index": 624, "name": "temporary_target_accounts_c", "comment": null}, "fy_23_bdr_target_accounts_c": {"type": "BOOL", "index": 625, "name": "fy_23_bdr_target_accounts_c", "comment": null}, "csm_priority_c": {"type": "STRING", "index": 626, "name": "csm_priority_c", "comment": null}, "purchase_summary_c": {"type": "STRING", "index": 627, "name": "purchase_summary_c", "comment": null}, "approved_rollover_value_c": {"type": "BIGNUMERIC", "index": 628, "name": "approved_rollover_value_c", "comment": null}, "account_prospecting_status_c": {"type": "STRING", "index": 629, "name": "account_prospecting_status_c", "comment": null}, "hvr_customer_type_c": {"type": "STRING", "index": 630, "name": "hvr_customer_type_c", "comment": null}, "account_strategist_c": {"type": "STRING", "index": 631, "name": "account_strategist_c", "comment": null}, "ae_opt_to_hold_account_c": {"type": "BOOL", "index": 632, "name": "ae_opt_to_hold_account_c", "comment": null}, "ae_keeper_account_c": {"type": "STRING", "index": 633, "name": "ae_keeper_account_c", "comment": null}, "legacy_hvr_id_c": {"type": "STRING", "index": 634, "name": "legacy_hvr_id_c", "comment": null}, "has_non_frozen_ft_c": {"type": "BOOL", "index": 635, "name": "has_non_frozen_ft_c", "comment": null}, "is_excluded_from_realign": {"type": "BOOL", "index": 636, "name": "is_excluded_from_realign", "comment": null}, "hvr_primary_systems_c": {"type": "STRING", "index": 637, "name": "hvr_primary_systems_c", "comment": null}, "hvr_update_c": {"type": "BOOL", "index": 638, "name": "hvr_update_c", "comment": null}, "first_won_date_rollup_c": {"type": "FLOAT64", "index": 639, "name": "first_won_date_rollup_c", "comment": null}, "hvr_account_class_c": {"type": "STRING", "index": 640, "name": "hvr_account_class_c", "comment": null}, "csm_handoff_date_c": {"type": "TIMESTAMP", "index": 641, "name": "csm_handoff_date_c", "comment": null}, "domain_temp_c": {"type": "STRING", "index": 642, "name": "domain_temp_c", "comment": null}, "hvr_account_status_c": {"type": "STRING", "index": 643, "name": "hvr_account_status_c", "comment": null}, "had_ftcustomer_c": {"type": "BOOL", "index": 644, "name": "had_ftcustomer_c", "comment": null}, "merged_account_ids_c": {"type": "STRING", "index": 645, "name": "merged_account_ids_c", "comment": null}, "ftcustomer_c": {"type": "BOOL", "index": 646, "name": "ftcustomer_c", "comment": null}, "rh_2_test_currency_c": {"type": "BIGNUMERIC", "index": 647, "name": "rh_2_test_currency_c", "comment": null}, "usage_ae_reset_date_c": {"type": "TIMESTAMP", "index": 648, "name": "usage_ae_reset_date_c", "comment": null}, "behavior_score_summary_c": {"type": "FLOAT64", "index": 649, "name": "behavior_score_summary_c", "comment": null}, "lean_data_status_info_c": {"type": "STRING", "index": 650, "name": "lean_data_status_info_c", "comment": null}, "dnb_headquarter_d_u_n_s_number_c": {"type": "STRING", "index": 651, "name": "dnb_headquarter_d_u_n_s_number_c", "comment": null}, "temporary_subsidiary_flag_fy_23_c": {"type": "BOOL", "index": 652, "name": "temporary_subsidiary_flag_fy_23_c", "comment": null}, "rev_ex_fy_23_manual_override_c": {"type": "BOOL", "index": 653, "name": "rev_ex_fy_23_manual_override_c", "comment": null}, "enterprise_territory_exception_c": {"type": "BOOL", "index": 654, "name": "enterprise_territory_exception_c", "comment": null}, "enterprise_strategic_account_c": {"type": "BOOL", "index": 655, "name": "enterprise_strategic_account_c", "comment": null}, "global_ultimate_account_name_c": {"type": "STRING", "index": 656, "name": "global_ultimate_account_name_c", "comment": null}, "global_account_id_18_c": {"type": "STRING", "index": 657, "name": "global_account_id_18_c", "comment": null}, "global_ultimate_account_c": {"type": "STRING", "index": 658, "name": "global_ultimate_account_c", "comment": null}, "us_only_support_c": {"type": "BOOL", "index": 659, "name": "us_only_support_c", "comment": null}, "tcr_approved_date_c": {"type": "TIMESTAMP", "index": 660, "name": "tcr_approved_date_c", "comment": null}, "project_based_routing_expiration_c": {"type": "TIMESTAMP", "index": 661, "name": "project_based_routing_expiration_c", "comment": null}, "keeper_account_approved_c": {"type": "BOOL", "index": 662, "name": "keeper_account_approved_c", "comment": null}, "ae_keeper_account_request_justification_c": {"type": "STRING", "index": 663, "name": "ae_keeper_account_request_justification_c", "comment": null}, "hvr_fully_verified_migrated_c": {"type": "BOOL", "index": 664, "name": "hvr_fully_verified_migrated_c", "comment": null}, "olp_cancelled_c": {"type": "BOOL", "index": 665, "name": "olp_cancelled_c", "comment": null}, "contract_arr_c": {"type": "BIGNUMERIC", "index": 666, "name": "contract_arr_c", "comment": null}, "rollover_value_c": {"type": "BIGNUMERIC", "index": 667, "name": "rollover_value_c", "comment": null}, "manual_zendesk_sync_c": {"type": "BOOL", "index": 668, "name": "manual_zendesk_sync_c", "comment": null}, "active_contract_c": {"type": "STRING", "index": 669, "name": "active_contract_c", "comment": null}, "x_2022_credit_audit_c": {"type": "BOOL", "index": 670, "name": "x_2022_credit_audit_c", "comment": null}, "hvr_contract_arr_c": {"type": "BIGNUMERIC", "index": 671, "name": "hvr_contract_arr_c", "comment": null}, "customer_notes_c": {"type": "STRING", "index": 672, "name": "customer_notes_c", "comment": null}, "new_trial_opp_owner_c": {"type": "STRING", "index": 673, "name": "new_trial_opp_owner_c", "comment": null}, "duplicate_from_domain_unblocking_c": {"type": "BOOL", "index": 674, "name": "duplicate_from_domain_unblocking_c", "comment": null}, "abm_resource_page_c": {"type": "STRING", "index": 675, "name": "abm_resource_page_c", "comment": null}, "abm_account_summary_doc_c": {"type": "STRING", "index": 676, "name": "abm_account_summary_doc_c", "comment": null}, "abm_landing_page_mutiny_c": {"type": "STRING", "index": 677, "name": "abm_landing_page_mutiny_c", "comment": null}, "to_be_deleted_salesloft_backfill_c": {"type": "BOOL", "index": 678, "name": "to_be_deleted_salesloft_backfill_c", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1153934194.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 645925.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.salesforce_source.salesforce.account"}, "source.salesforce_source.salesforce.opportunity_line_item": {"metadata": {"type": "table", "schema": "salesforce", "name": "opportunity_line_item", "database": "fivetran", "comment": null, "owner": null}, "columns": {"product_2_id": {"type": "STRING", "index": 1, "name": "product_2_id", "comment": null}, "quantity": {"type": "FLOAT64", "index": 2, "name": "quantity", "comment": null}, "total_price": {"type": "FLOAT64", "index": 3, "name": "total_price", "comment": null}, "description": {"type": "STRING", "index": 4, "name": "description", "comment": null}, "discount": {"type": "FLOAT64", "index": 5, "name": "discount", "comment": null}, "last_modified_date": {"type": "TIMESTAMP", "index": 6, "name": "last_modified_date", "comment": null}, "list_price": {"type": "FLOAT64", "index": 7, "name": "list_price", "comment": null}, "product_code": {"type": "STRING", "index": 8, "name": "product_code", "comment": null}, "unit_price": {"type": "FLOAT64", "index": 9, "name": "unit_price", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 10, "name": "_fivetran_synced", "comment": null}, "is_deleted": {"type": "BOOL", "index": 11, "name": "is_deleted", "comment": null}, "opportunity_id": {"type": "STRING", "index": 12, "name": "opportunity_id", "comment": null}, "last_modified_by_id": {"type": "STRING", "index": 13, "name": "last_modified_by_id", "comment": null}, "service_date": {"type": "TIMESTAMP", "index": 14, "name": "service_date", "comment": null}, "system_modstamp": {"type": "TIMESTAMP", "index": 15, "name": "system_modstamp", "comment": null}, "name": {"type": "STRING", "index": 16, "name": "name", "comment": null}, "id": {"type": "STRING", "index": 17, "name": "id", "comment": null}, "created_by_id": {"type": "STRING", "index": 18, "name": "created_by_id", "comment": null}, "created_date": {"type": "TIMESTAMP", "index": 19, "name": "created_date", "comment": null}, "sort_order": {"type": "INT64", "index": 20, "name": "sort_order", "comment": null}, "pricebook_entry_id": {"type": "STRING", "index": 21, "name": "pricebook_entry_id", "comment": null}, "one_saas_app_included_c": {"type": "BOOL", "index": 22, "name": "one_saas_app_included_c", "comment": null}, "one_saas_app_quantity_invoiced_c": {"type": "FLOAT64", "index": 23, "name": "one_saas_app_quantity_invoiced_c", "comment": null}, "one_saas_app_quantity_not_invoiced_c": {"type": "FLOAT64", "index": 24, "name": "one_saas_app_quantity_not_invoiced_c", "comment": null}, "has_quantity_schedule": {"type": "BOOL", "index": 25, "name": "has_quantity_schedule", "comment": null}, "has_revenue_schedule": {"type": "BOOL", "index": 26, "name": "has_revenue_schedule", "comment": null}, "has_schedule": {"type": "BOOL", "index": 27, "name": "has_schedule", "comment": null}, "event_volume_c": {"type": "FLOAT64", "index": 28, "name": "event_volume_c", "comment": null}, "roadmap_connections_c": {"type": "FLOAT64", "index": 29, "name": "roadmap_connections_c", "comment": null}, "row_volume_c": {"type": "FLOAT64", "index": 30, "name": "row_volume_c", "comment": null}, "months_c": {"type": "FLOAT64", "index": 31, "name": "months_c", "comment": null}, "netsuite_conn_term_contract_pricing_type_c": {"type": "STRING", "index": 32, "name": "netsuite_conn_term_contract_pricing_type_c", "comment": null}, "netsuite_conn_discount_item_c": {"type": "STRING", "index": 33, "name": "netsuite_conn_discount_item_c", "comment": null}, "netsuite_conn_user_entered_sales_price_c": {"type": "FLOAT64", "index": 34, "name": "netsuite_conn_user_entered_sales_price_c", "comment": null}, "netsuite_conn_item_category_c": {"type": "STRING", "index": 35, "name": "netsuite_conn_item_category_c", "comment": null}, "netsuite_conn_terms_c": {"type": "FLOAT64", "index": 36, "name": "netsuite_conn_terms_c", "comment": null}, "netsuite_conn_net_suite_item_key_id_c": {"type": "STRING", "index": 37, "name": "netsuite_conn_net_suite_item_key_id_c", "comment": null}, "netsuite_conn_pushed_from_net_suite_c": {"type": "BOOL", "index": 38, "name": "netsuite_conn_pushed_from_net_suite_c", "comment": null}, "netsuite_conn_end_date_c": {"type": "TIMESTAMP", "index": 39, "name": "netsuite_conn_end_date_c", "comment": null}, "netsuite_conn_list_rate_c": {"type": "FLOAT64", "index": 40, "name": "netsuite_conn_list_rate_c", "comment": null}, "netsuite_conn_from_contract_item_id_c": {"type": "STRING", "index": 41, "name": "netsuite_conn_from_contract_item_id_c", "comment": null}, "netsuite_conn_start_date_c": {"type": "TIMESTAMP", "index": 42, "name": "netsuite_conn_start_date_c", "comment": null}, "netsuite_conn_net_suite_item_id_import_c": {"type": "STRING", "index": 43, "name": "netsuite_conn_net_suite_item_id_import_c", "comment": null}, "sbqq_parent_id_c": {"type": "STRING", "index": 44, "name": "sbqq_parent_id_c", "comment": null}, "sbqq_quote_line_c": {"type": "STRING", "index": 45, "name": "sbqq_quote_line_c", "comment": null}, "sbqq_subscription_type_c": {"type": "STRING", "index": 46, "name": "sbqq_subscription_type_c", "comment": null}, "product_family_c": {"type": "STRING", "index": 47, "name": "product_family_c", "comment": null}, "last_referenced_date": {"type": "TIMESTAMP", "index": 48, "name": "last_referenced_date", "comment": null}, "last_viewed_date": {"type": "TIMESTAMP", "index": 49, "name": "last_viewed_date", "comment": null}, "celigo_sfnsio_contract_item_id_c": {"type": "STRING", "index": 50, "name": "celigo_sfnsio_contract_item_id_c", "comment": null}, "celigo_sfnsio_contract_term_c": {"type": "FLOAT64", "index": 51, "name": "celigo_sfnsio_contract_term_c", "comment": null}, "celigo_sfnsio_end_date_c": {"type": "TIMESTAMP", "index": 52, "name": "celigo_sfnsio_end_date_c", "comment": null}, "celigo_sfnsio_list_rate_c": {"type": "BIGNUMERIC", "index": 53, "name": "celigo_sfnsio_list_rate_c", "comment": null}, "celigo_sfnsio_net_suite_line_id_c": {"type": "STRING", "index": 54, "name": "celigo_sfnsio_net_suite_line_id_c", "comment": null}, "celigo_sfnsio_start_date_c": {"type": "TIMESTAMP", "index": 55, "name": "celigo_sfnsio_start_date_c", "comment": null}, "product_code_stamped_c": {"type": "STRING", "index": 56, "name": "product_code_stamped_c", "comment": null}, "hvr_use_case_c": {"type": "BOOL", "index": 57, "name": "hvr_use_case_c", "comment": null}, "net_unit_price_stamp_c": {"type": "BIGNUMERIC", "index": 58, "name": "net_unit_price_stamp_c", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 29109475.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 99430.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.salesforce_source.salesforce.opportunity_line_item"}, "source.salesforce_source.salesforce.fivetran_formula": {"metadata": {"type": "table", "schema": "salesforce", "name": "fivetran_formula", "database": "fivetran", "comment": null, "owner": null}, "columns": {"field": {"type": "STRING", "index": 1, "name": "field", "comment": null}, "formula": {"type": "STRING", "index": 2, "name": "formula", "comment": null}, "object": {"type": "STRING", "index": 3, "name": "object", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 4, "name": "_fivetran_synced", "comment": null}, "sql": {"type": "STRING", "index": 5, "name": "sql", "comment": null}, "view_sql": {"type": "STRING", "index": 6, "name": "view_sql", "comment": null}, "reason_null": {"type": "STRING", "index": 7, "name": "reason_null", "comment": null}, "_fivetran_deleted": {"type": "BOOL", "index": 8, "name": "_fivetran_deleted", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 338611.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 1030.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.salesforce_source.salesforce.fivetran_formula"}, "source.salesforce_source.salesforce.opportunity": {"metadata": {"type": "table", "schema": "salesforce", "name": "opportunity", "database": "fivetran", "comment": null, "owner": null}, "columns": {"close_date": {"type": "TIMESTAMP", "index": 1, "name": "close_date", "comment": null}, "secondary_reason_won_c": {"type": "STRING", "index": 2, "name": "secondary_reason_won_c", "comment": null}, "owner_id": {"type": "STRING", "index": 3, "name": "owner_id", "comment": null}, "primary_reason_lost_c": {"type": "STRING", "index": 4, "name": "primary_reason_lost_c", "comment": null}, "subscription_end_date_c": {"type": "TIMESTAMP", "index": 5, "name": "subscription_end_date_c", "comment": null}, "lead_source": {"type": "STRING", "index": 6, "name": "lead_source", "comment": null}, "expected_trial_start_date_c": {"type": "TIMESTAMP", "index": 7, "name": "expected_trial_start_date_c", "comment": null}, "last_modified_date": {"type": "TIMESTAMP", "index": 8, "name": "last_modified_date", "comment": null}, "type": {"type": "STRING", "index": 9, "name": "type", "comment": null}, "trial_end_date_c": {"type": "TIMESTAMP", "index": 10, "name": "trial_end_date_c", "comment": null}, "pricebook_2_id": {"type": "STRING", "index": 11, "name": "pricebook_2_id", "comment": null}, "next_step": {"type": "STRING", "index": 12, "name": "next_step", "comment": null}, "fiscal_year": {"type": "INT64", "index": 13, "name": "fiscal_year", "comment": null}, "last_modified_by_id": {"type": "STRING", "index": 14, "name": "last_modified_by_id", "comment": null}, "system_modstamp": {"type": "TIMESTAMP", "index": 15, "name": "system_modstamp", "comment": null}, "stage_name": {"type": "STRING", "index": 16, "name": "stage_name", "comment": null}, "id": {"type": "STRING", "index": 17, "name": "id", "comment": null}, "campaign_id": {"type": "STRING", "index": 18, "name": "campaign_id", "comment": null}, "is_closed": {"type": "BOOL", "index": 19, "name": "is_closed", "comment": null}, "last_referenced_date": {"type": "TIMESTAMP", "index": 20, "name": "last_referenced_date", "comment": null}, "probability": {"type": "FLOAT64", "index": 21, "name": "probability", "comment": null}, "last_activity_date": {"type": "TIMESTAMP", "index": 22, "name": "last_activity_date", "comment": null}, "secondary_reason_lost_c": {"type": "STRING", "index": 23, "name": "secondary_reason_lost_c", "comment": null}, "synced_quote_id": {"type": "STRING", "index": 24, "name": "synced_quote_id", "comment": null}, "is_won": {"type": "BOOL", "index": 25, "name": "is_won", "comment": null}, "fiscal": {"type": "STRING", "index": 26, "name": "fiscal", "comment": null}, "name": {"type": "STRING", "index": 27, "name": "name", "comment": null}, "lead_source_detail_c": {"type": "STRING", "index": 28, "name": "lead_source_detail_c", "comment": null}, "created_by_id": {"type": "STRING", "index": 29, "name": "created_by_id", "comment": null}, "primary_reason_won_c": {"type": "STRING", "index": 30, "name": "primary_reason_won_c", "comment": null}, "billing_frequency_c": {"type": "STRING", "index": 31, "name": "billing_frequency_c", "comment": null}, "forecast_category": {"type": "STRING", "index": 32, "name": "forecast_category", "comment": null}, "description": {"type": "STRING", "index": 33, "name": "description", "comment": null}, "has_overdue_task": {"type": "BOOL", "index": 34, "name": "has_overdue_task", "comment": null}, "last_viewed_date": {"type": "TIMESTAMP", "index": 35, "name": "last_viewed_date", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 36, "name": "_fivetran_synced", "comment": null}, "pandadoc_tracking_number_c": {"type": "STRING", "index": 37, "name": "pandadoc_tracking_number_c", "comment": null}, "is_deleted": {"type": "BOOL", "index": 38, "name": "is_deleted", "comment": null}, "trial_start_date_c": {"type": "TIMESTAMP", "index": 39, "name": "trial_start_date_c", "comment": null}, "subscription_start_date_c": {"type": "TIMESTAMP", "index": 40, "name": "subscription_start_date_c", "comment": null}, "has_open_activity": {"type": "BOOL", "index": 41, "name": "has_open_activity", "comment": null}, "fiscal_quarter": {"type": "INT64", "index": 42, "name": "fiscal_quarter", "comment": null}, "automatic_renewal_c": {"type": "BOOL", "index": 43, "name": "automatic_renewal_c", "comment": null}, "confidence_c": {"type": "STRING", "index": 44, "name": "confidence_c", "comment": null}, "amount": {"type": "FLOAT64", "index": 45, "name": "amount", "comment": null}, "discount_c": {"type": "FLOAT64", "index": 46, "name": "discount_c", "comment": null}, "integrations_c": {"type": "STRING", "index": 47, "name": "integrations_c", "comment": null}, "has_opportunity_line_item": {"type": "BOOL", "index": 48, "name": "has_opportunity_line_item", "comment": null}, "account_id": {"type": "STRING", "index": 49, "name": "account_id", "comment": null}, "forecast_category_name": {"type": "STRING", "index": 50, "name": "forecast_category_name", "comment": null}, "created_date": {"type": "TIMESTAMP", "index": 51, "name": "created_date", "comment": null}, "gclid_c": {"type": "STRING", "index": 52, "name": "gclid_c", "comment": null}, "next_step_due_date_c": {"type": "TIMESTAMP", "index": 53, "name": "next_step_due_date_c", "comment": null}, "next_step_due_date_del_c": {"type": "TIMESTAMP", "index": 54, "name": "next_step_due_date_del_c", "comment": null}, "competitors_c": {"type": "STRING", "index": 55, "name": "competitors_c", "comment": null}, "connector_products_c": {"type": "STRING", "index": 56, "name": "connector_products_c", "comment": null}, "data_warehouse_products_c": {"type": "STRING", "index": 57, "name": "data_warehouse_products_c", "comment": null}, "notes_c": {"type": "STRING", "index": 58, "name": "notes_c", "comment": null}, "timeframe_c": {"type": "STRING", "index": 59, "name": "timeframe_c", "comment": null}, "website_c": {"type": "STRING", "index": 60, "name": "website_c", "comment": null}, "opportunity_competitors_c": {"type": "STRING", "index": 61, "name": "opportunity_competitors_c", "comment": null}, "opportunity_data_warehouses_c": {"type": "STRING", "index": 62, "name": "opportunity_data_warehouses_c", "comment": null}, "opportunity_products_c": {"type": "STRING", "index": 63, "name": "opportunity_products_c", "comment": null}, "account_all_products_c": {"type": "STRING", "index": 64, "name": "account_all_products_c", "comment": null}, "account_bi_tools_c": {"type": "STRING", "index": 65, "name": "account_bi_tools_c", "comment": null}, "account_data_warehouses_c": {"type": "STRING", "index": 66, "name": "account_data_warehouses_c", "comment": null}, "referral_account_c": {"type": "STRING", "index": 67, "name": "referral_account_c", "comment": null}, "referral_contact_c": {"type": "STRING", "index": 68, "name": "referral_contact_c", "comment": null}, "subscription_active_c": {"type": "BOOL", "index": 69, "name": "subscription_active_c", "comment": null}, "volume_in_millions_c": {"type": "FLOAT64", "index": 70, "name": "volume_in_millions_c", "comment": null}, "feature_requests_c": {"type": "STRING", "index": 71, "name": "feature_requests_c", "comment": null}, "subscription_end_date_greater_than_today_c": {"type": "BOOL", "index": 72, "name": "subscription_end_date_greater_than_today_c", "comment": null}, "bread_winner_total_amount_due_c": {"type": "FLOAT64", "index": 73, "name": "bread_winner_total_amount_due_c", "comment": null}, "bread_winner_total_amount_invoiced_c": {"type": "FLOAT64", "index": 74, "name": "bread_winner_total_amount_invoiced_c", "comment": null}, "bread_winner_total_amount_overdue_c": {"type": "FLOAT64", "index": 75, "name": "bread_winner_total_amount_overdue_c", "comment": null}, "bread_winner_total_amount_paid_c": {"type": "FLOAT64", "index": 76, "name": "bread_winner_total_amount_paid_c", "comment": null}, "bread_winner_total_draft_amount_c": {"type": "FLOAT64", "index": 77, "name": "bread_winner_total_draft_amount_c", "comment": null}, "reason_lost_c": {"type": "STRING", "index": 78, "name": "reason_lost_c", "comment": null}, "reason_won_c": {"type": "STRING", "index": 79, "name": "reason_won_c", "comment": null}, "billing_contact_first_name_c": {"type": "STRING", "index": 80, "name": "billing_contact_first_name_c", "comment": null}, "billing_contact_last_name_c": {"type": "STRING", "index": 81, "name": "billing_contact_last_name_c", "comment": null}, "billing_email_c": {"type": "STRING", "index": 82, "name": "billing_email_c", "comment": null}, "billing_phone_c": {"type": "STRING", "index": 83, "name": "billing_phone_c", "comment": null}, "invoice_payment_terms_net_c": {"type": "STRING", "index": 84, "name": "invoice_payment_terms_net_c", "comment": null}, "subscription_not_started_c": {"type": "BOOL", "index": 85, "name": "subscription_not_started_c", "comment": null}, "invoice_due_date_c": {"type": "TIMESTAMP", "index": 86, "name": "invoice_due_date_c", "comment": null}, "payment_terms_c": {"type": "STRING", "index": 87, "name": "payment_terms_c", "comment": null}, "associated_stripe_charge_id_c": {"type": "STRING", "index": 88, "name": "associated_stripe_charge_id_c", "comment": null}, "record_type_id": {"type": "STRING", "index": 89, "name": "record_type_id", "comment": null}, "contract_type_c": {"type": "STRING", "index": 90, "name": "contract_type_c", "comment": null}, "lost_communication_preference_c": {"type": "STRING", "index": 91, "name": "lost_communication_preference_c", "comment": null}, "lost_primary_reason_c": {"type": "STRING", "index": 92, "name": "lost_primary_reason_c", "comment": null}, "associate_sdr_c": {"type": "STRING", "index": 93, "name": "associate_sdr_c", "comment": null}, "associated_sdr_c": {"type": "STRING", "index": 94, "name": "associated_sdr_c", "comment": null}, "no_show_c": {"type": "BOOL", "index": 95, "name": "no_show_c", "comment": null}, "order_form_c": {"type": "STRING", "index": 96, "name": "order_form_c", "comment": null}, "reason_unqualified_c": {"type": "STRING", "index": 97, "name": "reason_unqualified_c", "comment": null}, "closing_notes_for_ams_c": {"type": "STRING", "index": 98, "name": "closing_notes_for_ams_c", "comment": null}, "sdr_setup_trial_successfully_c": {"type": "BOOL", "index": 99, "name": "sdr_setup_trial_successfully_c", "comment": null}, "number_of_contact_roles_c": {"type": "FLOAT64", "index": 100, "name": "number_of_contact_roles_c", "comment": null}, "utm_campaign_c": {"type": "STRING", "index": 101, "name": "utm_campaign_c", "comment": null}, "utm_content_c": {"type": "STRING", "index": 102, "name": "utm_content_c", "comment": null}, "utm_medium_c": {"type": "STRING", "index": 103, "name": "utm_medium_c", "comment": null}, "utm_source_c": {"type": "STRING", "index": 104, "name": "utm_source_c", "comment": null}, "utm_term_c": {"type": "STRING", "index": 105, "name": "utm_term_c", "comment": null}, "original_opportunity_c": {"type": "STRING", "index": 106, "name": "original_opportunity_c", "comment": null}, "lean_data_reporting_total_marketing_touches_c": {"type": "FLOAT64", "index": 107, "name": "lean_data_reporting_total_marketing_touches_c", "comment": null}, "lean_data_days_in_stage_c": {"type": "FLOAT64", "index": 108, "name": "lean_data_days_in_stage_c", "comment": null}, "lean_data_routing_action_c": {"type": "STRING", "index": 109, "name": "lean_data_routing_action_c", "comment": null}, "lean_data_reporting_won_number_c": {"type": "STRING", "index": 110, "name": "lean_data_reporting_won_number_c", "comment": null}, "lean_data_reporting_opportunity_source_c": {"type": "STRING", "index": 111, "name": "lean_data_reporting_opportunity_source_c", "comment": null}, "lean_data_reporting_last_run_date_c": {"type": "TIMESTAMP", "index": 112, "name": "lean_data_reporting_last_run_date_c", "comment": null}, "lean_data_order_number_c": {"type": "STRING", "index": 113, "name": "lean_data_order_number_c", "comment": null}, "sales_engineer_c": {"type": "STRING", "index": 114, "name": "sales_engineer_c", "comment": null}, "sales_engineer_needed_c": {"type": "BOOL", "index": 115, "name": "sales_engineer_needed_c", "comment": null}, "netsuite_conn_reseller_c": {"type": "STRING", "index": 116, "name": "netsuite_conn_reseller_c", "comment": null}, "netsuite_conn_net_suite_sync_err_c": {"type": "STRING", "index": 117, "name": "netsuite_conn_net_suite_sync_err_c", "comment": null}, "netsuite_conn_from_contract_c": {"type": "STRING", "index": 118, "name": "netsuite_conn_from_contract_c", "comment": null}, "netsuite_conn_celigo_contract_c": {"type": "STRING", "index": 119, "name": "netsuite_conn_celigo_contract_c", "comment": null}, "netsuite_conn_ns_renewal_transaction_internal_id_c": {"type": "STRING", "index": 120, "name": "netsuite_conn_ns_renewal_transaction_internal_id_c", "comment": null}, "netsuite_conn_end_date_c": {"type": "TIMESTAMP", "index": 121, "name": "netsuite_conn_end_date_c", "comment": null}, "netsuite_conn_contract_term_c": {"type": "FLOAT64", "index": 122, "name": "netsuite_conn_contract_term_c", "comment": null}, "netsuite_conn_push_as_net_suite_project_c": {"type": "BOOL", "index": 123, "name": "netsuite_conn_push_as_net_suite_project_c", "comment": null}, "netsuite_conn_net_suite_contract_id_c": {"type": "STRING", "index": 124, "name": "netsuite_conn_net_suite_contract_id_c", "comment": null}, "netsuite_conn_current_opportunity_id_c": {"type": "STRING", "index": 125, "name": "netsuite_conn_current_opportunity_id_c", "comment": null}, "netsuite_conn_distributor_c": {"type": "STRING", "index": 126, "name": "netsuite_conn_distributor_c", "comment": null}, "netsuite_conn_bill_to_tier_c": {"type": "STRING", "index": 127, "name": "netsuite_conn_bill_to_tier_c", "comment": null}, "netsuite_conn_end_user_c": {"type": "STRING", "index": 128, "name": "netsuite_conn_end_user_c", "comment": null}, "netsuite_conn_current_sales_order_id_c": {"type": "STRING", "index": 129, "name": "netsuite_conn_current_sales_order_id_c", "comment": null}, "netsuite_conn_celigo_update_c": {"type": "BOOL", "index": 130, "name": "netsuite_conn_celigo_update_c", "comment": null}, "netsuite_conn_eligible_account_for_channel_sales_c": {"type": "STRING", "index": 131, "name": "netsuite_conn_eligible_account_for_channel_sales_c", "comment": null}, "netsuite_conn_tracking_number_c": {"type": "STRING", "index": 132, "name": "netsuite_conn_tracking_number_c", "comment": null}, "netsuite_conn_originated_from_net_suite_c": {"type": "BOOL", "index": 133, "name": "netsuite_conn_originated_from_net_suite_c", "comment": null}, "netsuite_conn_nsrenewal_opportunity_internal_id_c": {"type": "FLOAT64", "index": 134, "name": "netsuite_conn_nsrenewal_opportunity_internal_id_c", "comment": null}, "netsuite_conn_net_suite_renewal_terms_c": {"type": "FLOAT64", "index": 135, "name": "netsuite_conn_net_suite_renewal_terms_c", "comment": null}, "netsuite_conn_push_as_net_suite_opportunity_c": {"type": "BOOL", "index": 136, "name": "netsuite_conn_push_as_net_suite_opportunity_c", "comment": null}, "netsuite_conn_order_type_c": {"type": "STRING", "index": 137, "name": "netsuite_conn_order_type_c", "comment": null}, "netsuite_conn_sync_in_progress_c": {"type": "BOOL", "index": 138, "name": "netsuite_conn_sync_in_progress_c", "comment": null}, "netsuite_conn_net_suite_sales_order_number_c": {"type": "STRING", "index": 139, "name": "netsuite_conn_net_suite_sales_order_number_c", "comment": null}, "netsuite_conn_push_to_net_suite_c": {"type": "BOOL", "index": 140, "name": "netsuite_conn_push_to_net_suite_c", "comment": null}, "netsuite_conn_net_suite_project_id_c": {"type": "STRING", "index": 141, "name": "netsuite_conn_net_suite_project_id_c", "comment": null}, "netsuite_conn_net_suite_contract_term_c": {"type": "FLOAT64", "index": 142, "name": "netsuite_conn_net_suite_contract_term_c", "comment": null}, "netsuite_conn_start_date_c": {"type": "TIMESTAMP", "index": 143, "name": "netsuite_conn_start_date_c", "comment": null}, "netsuite_conn_ship_to_tier_c": {"type": "STRING", "index": 144, "name": "netsuite_conn_ship_to_tier_c", "comment": null}, "db_competitor_c": {"type": "STRING", "index": 145, "name": "db_competitor_c", "comment": null}, "lid_linked_in_company_id_c": {"type": "STRING", "index": 146, "name": "lid_linked_in_company_id_c", "comment": null}, "lid_is_influenced_c": {"type": "BOOL", "index": 147, "name": "lid_is_influenced_c", "comment": null}, "debooked_date_c": {"type": "TIMESTAMP", "index": 148, "name": "debooked_date_c", "comment": null}, "debooked_amount_c": {"type": "BIGNUMERIC", "index": 149, "name": "debooked_amount_c", "comment": null}, "is_debooked_c": {"type": "BOOL", "index": 150, "name": "is_debooked_c", "comment": null}, "economic_buyer_c": {"type": "STRING", "index": 151, "name": "economic_buyer_c", "comment": null}, "decision_process_c": {"type": "STRING", "index": 152, "name": "decision_process_c", "comment": null}, "decision_criteria_c": {"type": "STRING", "index": 153, "name": "decision_criteria_c", "comment": null}, "champion_c": {"type": "STRING", "index": 154, "name": "champion_c", "comment": null}, "metrics_c": {"type": "STRING", "index": 155, "name": "metrics_c", "comment": null}, "identify_pain_c": {"type": "STRING", "index": 156, "name": "identify_pain_c", "comment": null}, "is_non_renewable_c": {"type": "BOOL", "index": 157, "name": "is_non_renewable_c", "comment": null}, "sales_loft_1_primary_contact_c": {"type": "STRING", "index": 158, "name": "sales_loft_1_primary_contact_c", "comment": null}, "sales_loft_1_most_recent_last_completed_step_c": {"type": "FLOAT64", "index": 159, "name": "sales_loft_1_most_recent_last_completed_step_c", "comment": null}, "sales_loft_1_most_recent_cadence_name_c": {"type": "STRING", "index": 160, "name": "sales_loft_1_most_recent_cadence_name_c", "comment": null}, "is_partner_opp_c": {"type": "BOOL", "index": 161, "name": "is_partner_opp_c", "comment": null}, "territory_2_id": {"type": "STRING", "index": 162, "name": "territory_2_id", "comment": null}, "is_excluded_from_territory_2_filter": {"type": "BOOL", "index": 163, "name": "is_excluded_from_territory_2_filter", "comment": null}, "sbqq_amended_contract_c": {"type": "STRING", "index": 164, "name": "sbqq_amended_contract_c", "comment": null}, "sbqq_contracted_c": {"type": "BOOL", "index": 165, "name": "sbqq_contracted_c", "comment": null}, "sbqq_create_contracted_prices_c": {"type": "BOOL", "index": 166, "name": "sbqq_create_contracted_prices_c", "comment": null}, "sbqq_order_group_id_c": {"type": "STRING", "index": 167, "name": "sbqq_order_group_id_c", "comment": null}, "sbqq_ordered_c": {"type": "BOOL", "index": 168, "name": "sbqq_ordered_c", "comment": null}, "sbqq_primary_quote_c": {"type": "STRING", "index": 169, "name": "sbqq_primary_quote_c", "comment": null}, "sbqq_quote_pricebook_id_c": {"type": "STRING", "index": 170, "name": "sbqq_quote_pricebook_id_c", "comment": null}, "sbqq_renewal_c": {"type": "BOOL", "index": 171, "name": "sbqq_renewal_c", "comment": null}, "sbqq_renewed_contract_c": {"type": "STRING", "index": 172, "name": "sbqq_renewed_contract_c", "comment": null}, "is_non_recurring_c": {"type": "BOOL", "index": 173, "name": "is_non_recurring_c", "comment": null}, "did_a_partner_help_this_sale_c": {"type": "STRING", "index": 174, "name": "did_a_partner_help_this_sale_c", "comment": null}, "did_they_select_a_bi_tool_c": {"type": "STRING", "index": 175, "name": "did_they_select_a_bi_tool_c", "comment": null}, "which_bi_tool_did_they_select_c": {"type": "STRING", "index": 176, "name": "which_bi_tool_did_they_select_c", "comment": null}, "which_partner_was_most_influential_c": {"type": "STRING", "index": 177, "name": "which_partner_was_most_influential_c", "comment": null}, "which_bi_tool_s_are_they_using_c": {"type": "STRING", "index": 178, "name": "which_bi_tool_s_are_they_using_c", "comment": null}, "associated_bdr_c": {"type": "STRING", "index": 179, "name": "associated_bdr_c", "comment": null}, "aws_payment_c": {"type": "BOOL", "index": 180, "name": "aws_payment_c", "comment": null}, "expected_revenue": {"type": "BIGNUMERIC", "index": 181, "name": "expected_revenue", "comment": null}, "competitor_we_lost_to_c": {"type": "STRING", "index": 182, "name": "competitor_we_lost_to_c", "comment": null}, "marketplace_payment_c": {"type": "STRING", "index": 183, "name": "marketplace_payment_c", "comment": null}, "has_competition_c": {"type": "BOOL", "index": 184, "name": "has_competition_c", "comment": null}, "no_known_competition_c": {"type": "BOOL", "index": 185, "name": "no_known_competition_c", "comment": null}, "marketing_process_c": {"type": "STRING", "index": 186, "name": "marketing_process_c", "comment": null}, "automation_tracking_c": {"type": "STRING", "index": 187, "name": "automation_tracking_c", "comment": null}, "user_gems_has_changed_job_c": {"type": "TIMESTAMP", "index": 188, "name": "user_gems_has_changed_job_c", "comment": null}, "manager_forecast_amount_c": {"type": "FLOAT64", "index": 189, "name": "manager_forecast_amount_c", "comment": null}, "manager_forecast_category_c": {"type": "STRING", "index": 190, "name": "manager_forecast_category_c", "comment": null}, "superset_forecast_category_c": {"type": "STRING", "index": 191, "name": "superset_forecast_category_c", "comment": null}, "forecast_amount_c": {"type": "BIGNUMERIC", "index": 192, "name": "forecast_amount_c", "comment": null}, "are_we_co_selling_with_anyone_c": {"type": "STRING", "index": 193, "name": "are_we_co_selling_with_anyone_c", "comment": null}, "has_co_sell_activity_c": {"type": "BOOL", "index": 194, "name": "has_co_sell_activity_c", "comment": null}, "signed_order_c": {"type": "BOOL", "index": 195, "name": "signed_order_c", "comment": null}, "compelling_event_c": {"type": "STRING", "index": 196, "name": "compelling_event_c", "comment": null}, "territory_c": {"type": "STRING", "index": 197, "name": "territory_c", "comment": null}, "validation_override_c": {"type": "BOOL", "index": 198, "name": "validation_override_c", "comment": null}, "map_reviewed_with_ae_c": {"type": "STRING", "index": 199, "name": "map_reviewed_with_ae_c", "comment": null}, "se_manager_notes_c": {"type": "STRING", "index": 200, "name": "se_manager_notes_c", "comment": null}, "se_notes_c": {"type": "STRING", "index": 201, "name": "se_notes_c", "comment": null}, "se_stage_c": {"type": "STRING", "index": 202, "name": "se_stage_c", "comment": null}, "next_steps_date_c": {"type": "TIMESTAMP", "index": 203, "name": "next_steps_date_c", "comment": null}, "pbf_c": {"type": "BOOL", "index": 204, "name": "pbf_c", "comment": null}, "partner_c": {"type": "STRING", "index": 205, "name": "partner_c", "comment": null}, "channel_c": {"type": "STRING", "index": 206, "name": "channel_c", "comment": null}, "primary_contact_fivetran_c": {"type": "STRING", "index": 207, "name": "primary_contact_fivetran_c", "comment": null}, "time_spent_minutes_c": {"type": "FLOAT64", "index": 208, "name": "time_spent_minutes_c", "comment": null}, "date_for_next_update_c": {"type": "TIMESTAMP", "index": 209, "name": "date_for_next_update_c", "comment": null}, "lean_data_trigger_c": {"type": "BOOL", "index": 210, "name": "lean_data_trigger_c", "comment": null}, "workflow_helper_c": {"type": "BOOL", "index": 211, "name": "workflow_helper_c", "comment": null}, "deal_risk_c": {"type": "STRING", "index": 212, "name": "deal_risk_c", "comment": null}, "gcp_approved_c": {"type": "BOOL", "index": 213, "name": "gcp_approved_c", "comment": null}, "next_steps_c": {"type": "STRING", "index": 214, "name": "next_steps_c", "comment": null}, "manger_notes_c": {"type": "STRING", "index": 215, "name": "manger_notes_c", "comment": null}, "manager_notes_c": {"type": "STRING", "index": 216, "name": "manager_notes_c", "comment": null}, "marketplace_offer_accepted_c": {"type": "BOOL", "index": 217, "name": "marketplace_offer_accepted_c", "comment": null}, "stage_0_date_time_c": {"type": "TIMESTAMP", "index": 218, "name": "stage_0_date_time_c", "comment": null}, "stage_1_date_time_c": {"type": "TIMESTAMP", "index": 219, "name": "stage_1_date_time_c", "comment": null}, "round_robin_ae_c": {"type": "STRING", "index": 220, "name": "round_robin_ae_c", "comment": null}, "round_robin_ae_trigger_c": {"type": "BOOL", "index": 221, "name": "round_robin_ae_trigger_c", "comment": null}, "automation_validation_override_c": {"type": "BOOL", "index": 222, "name": "automation_validation_override_c", "comment": null}, "related_renewal_opportunity_c": {"type": "STRING", "index": 223, "name": "related_renewal_opportunity_c", "comment": null}, "sales_rep_to_be_credited_c": {"type": "STRING", "index": 224, "name": "sales_rep_to_be_credited_c", "comment": null}, "trial_self_service_converted_c": {"type": "BOOL", "index": 225, "name": "trial_self_service_converted_c", "comment": null}, "migration_opportunity_c": {"type": "BOOL", "index": 226, "name": "migration_opportunity_c", "comment": null}, "post_close_changes_c": {"type": "BOOL", "index": 227, "name": "post_close_changes_c", "comment": null}, "assigned_tsm_c": {"type": "STRING", "index": 228, "name": "assigned_tsm_c", "comment": null}, "allbound_partner_id_c": {"type": "STRING", "index": 229, "name": "allbound_partner_id_c", "comment": null}, "se_summary_c": {"type": "STRING", "index": 230, "name": "se_summary_c", "comment": null}, "ae_paired_csm_c": {"type": "STRING", "index": 231, "name": "ae_paired_csm_c", "comment": null}, "vh_can_revive_c": {"type": "BOOL", "index": 232, "name": "vh_can_revive_c", "comment": null}, "vh_date_revived_c": {"type": "TIMESTAMP", "index": 233, "name": "vh_date_revived_c", "comment": null}, "vh_deal_breaker_opportunity_gap_score_c": {"type": "STRING", "index": 234, "name": "vh_deal_breaker_opportunity_gap_score_c", "comment": null}, "vh_deal_challenge_opportunity_gap_score_c": {"type": "STRING", "index": 235, "name": "vh_deal_challenge_opportunity_gap_score_c", "comment": null}, "vh_nice_to_have_opportunity_gap_score_c": {"type": "STRING", "index": 236, "name": "vh_nice_to_have_opportunity_gap_score_c", "comment": null}, "vh_opportunity_gap_score_c": {"type": "STRING", "index": 237, "name": "vh_opportunity_gap_score_c", "comment": null}, "vh_opportunity_score_c": {"type": "FLOAT64", "index": 238, "name": "vh_opportunity_score_c", "comment": null}, "vh_presales_concern_c": {"type": "STRING", "index": 239, "name": "vh_presales_concern_c", "comment": null}, "vh_presales_stage_c": {"type": "STRING", "index": 240, "name": "vh_presales_stage_c", "comment": null}, "vh_technical_differentiation_c": {"type": "STRING", "index": 241, "name": "vh_technical_differentiation_c", "comment": null}, "se_manager_summary_c": {"type": "STRING", "index": 242, "name": "se_manager_summary_c", "comment": null}, "bugs_c": {"type": "STRING", "index": 243, "name": "bugs_c", "comment": null}, "approval_required_c": {"type": "BOOL", "index": 244, "name": "approval_required_c", "comment": null}, "push_counter_c": {"type": "FLOAT64", "index": 245, "name": "push_counter_c", "comment": null}, "mar_link_c": {"type": "STRING", "index": 246, "name": "mar_link_c", "comment": null}, "contact_id": {"type": "STRING", "index": 247, "name": "contact_id", "comment": null}, "last_amount_changed_history_id": {"type": "STRING", "index": 248, "name": "last_amount_changed_history_id", "comment": null}, "last_close_date_changed_history_id": {"type": "STRING", "index": 249, "name": "last_close_date_changed_history_id", "comment": null}, "expected_renewal_amount_c": {"type": "NUMERIC", "index": 250, "name": "expected_renewal_amount_c", "comment": null}, "connectors_c": {"type": "STRING", "index": 251, "name": "connectors_c", "comment": null}, "estimated_credit_consumption_per_month_c": {"type": "FLOAT64", "index": 252, "name": "estimated_credit_consumption_per_month_c", "comment": null}, "project_status_c": {"type": "STRING", "index": 253, "name": "project_status_c", "comment": null}, "type_of_churn_c": {"type": "STRING", "index": 254, "name": "type_of_churn_c", "comment": null}, "usage_reason_c": {"type": "STRING", "index": 255, "name": "usage_reason_c", "comment": null}, "use_cases_c": {"type": "STRING", "index": 256, "name": "use_cases_c", "comment": null}, "bizible_2_bizible_opportunity_amount_c": {"type": "BIGNUMERIC", "index": 257, "name": "bizible_2_bizible_opportunity_amount_c", "comment": null}, "active_technical_owner_c": {"type": "STRING", "index": 258, "name": "active_technical_owner_c", "comment": null}, "referral_partner_c": {"type": "STRING", "index": 259, "name": "referral_partner_c", "comment": null}, "celigo_sfnsio_bill_to_tier_c": {"type": "STRING", "index": 260, "name": "celigo_sfnsio_bill_to_tier_c", "comment": null}, "celigo_sfnsio_contract_opportunity_c": {"type": "BOOL", "index": 261, "name": "celigo_sfnsio_contract_opportunity_c", "comment": null}, "celigo_sfnsio_contract_term_c": {"type": "FLOAT64", "index": 262, "name": "celigo_sfnsio_contract_term_c", "comment": null}, "celigo_sfnsio_distributor_c": {"type": "STRING", "index": 263, "name": "celigo_sfnsio_distributor_c", "comment": null}, "celigo_sfnsio_end_date_c": {"type": "TIMESTAMP", "index": 264, "name": "celigo_sfnsio_end_date_c", "comment": null}, "celigo_sfnsio_end_user_c": {"type": "STRING", "index": 265, "name": "celigo_sfnsio_end_user_c", "comment": null}, "celigo_sfnsio_from_contract_c": {"type": "STRING", "index": 266, "name": "celigo_sfnsio_from_contract_c", "comment": null}, "celigo_sfnsio_net_suite_id_c": {"type": "STRING", "index": 267, "name": "celigo_sfnsio_net_suite_id_c", "comment": null}, "celigo_sfnsio_net_suite_opportunity_id_c": {"type": "STRING", "index": 268, "name": "celigo_sfnsio_net_suite_opportunity_id_c", "comment": null}, "celigo_sfnsio_net_suite_opportunity_record_url_c": {"type": "STRING", "index": 269, "name": "celigo_sfnsio_net_suite_opportunity_record_url_c", "comment": null}, "celigo_sfnsio_net_suite_order_number_c": {"type": "STRING", "index": 270, "name": "celigo_sfnsio_net_suite_order_number_c", "comment": null}, "celigo_sfnsio_net_suite_record_c": {"type": "STRING", "index": 271, "name": "celigo_sfnsio_net_suite_record_c", "comment": null}, "celigo_sfnsio_net_suite_sync_error_c": {"type": "STRING", "index": 272, "name": "celigo_sfnsio_net_suite_sync_error_c", "comment": null}, "celigo_sfnsio_ns_originated_order_c": {"type": "BOOL", "index": 273, "name": "celigo_sfnsio_ns_originated_order_c", "comment": null}, "celigo_sfnsio_renewal_term_c": {"type": "FLOAT64", "index": 274, "name": "celigo_sfnsio_renewal_term_c", "comment": null}, "celigo_sfnsio_reseller_c": {"type": "STRING", "index": 275, "name": "celigo_sfnsio_reseller_c", "comment": null}, "celigo_sfnsio_ship_to_tier_c": {"type": "STRING", "index": 276, "name": "celigo_sfnsio_ship_to_tier_c", "comment": null}, "celigo_sfnsio_skip_export_to_net_suite_c": {"type": "BOOL", "index": 277, "name": "celigo_sfnsio_skip_export_to_net_suite_c", "comment": null}, "celigo_sfnsio_start_date_c": {"type": "TIMESTAMP", "index": 278, "name": "celigo_sfnsio_start_date_c", "comment": null}, "celigo_sfnsio_test_mode_record_c": {"type": "BOOL", "index": 279, "name": "celigo_sfnsio_test_mode_record_c", "comment": null}, "initial_meeting_notes_c": {"type": "STRING", "index": 280, "name": "initial_meeting_notes_c", "comment": null}, "initial_meeting_source_c": {"type": "STRING", "index": 281, "name": "initial_meeting_source_c", "comment": null}, "initial_meeting_date_c": {"type": "TIMESTAMP", "index": 282, "name": "initial_meeting_date_c", "comment": null}, "initial_meeting_status_c": {"type": "STRING", "index": 283, "name": "initial_meeting_status_c", "comment": null}, "bdr_sdr_override_c": {"type": "BOOL", "index": 284, "name": "bdr_sdr_override_c", "comment": null}, "tsm_discovered_c": {"type": "BOOL", "index": 285, "name": "tsm_discovered_c", "comment": null}, "for_initial_revenue_ramp_c": {"type": "BOOL", "index": 286, "name": "for_initial_revenue_ramp_c", "comment": null}, "clari_amount_c": {"type": "BIGNUMERIC", "index": 287, "name": "clari_amount_c", "comment": null}, "connector_x_c": {"type": "STRING", "index": 288, "name": "connector_x_c", "comment": null}, "use_cases_deprecate_c": {"type": "STRING", "index": 289, "name": "use_cases_deprecate_c", "comment": null}, "data_stack_c": {"type": "STRING", "index": 290, "name": "data_stack_c", "comment": null}, "projected_ending_4_mos_amount_total_c": {"type": "BIGNUMERIC", "index": 291, "name": "projected_ending_4_mos_amount_total_c", "comment": null}, "p_o_number_c": {"type": "STRING", "index": 292, "name": "p_o_number_c", "comment": null}, "user_gems_user_gems_summary_c": {"type": "STRING", "index": 293, "name": "user_gems_user_gems_summary_c", "comment": null}, "fivetran_map_link_c": {"type": "STRING", "index": 294, "name": "fivetran_map_link_c", "comment": null}, "after_scenario_c": {"type": "STRING", "index": 295, "name": "after_scenario_c", "comment": null}, "top_competition_c": {"type": "STRING", "index": 296, "name": "top_competition_c", "comment": null}, "economic_buyer_lu_c": {"type": "STRING", "index": 297, "name": "economic_buyer_lu_c", "comment": null}, "champion_lu_c": {"type": "STRING", "index": 298, "name": "champion_lu_c", "comment": null}, "paper_process_c": {"type": "STRING", "index": 299, "name": "paper_process_c", "comment": null}, "before_scenario_c": {"type": "STRING", "index": 300, "name": "before_scenario_c", "comment": null}, "defensible_differentiators_c": {"type": "STRING", "index": 301, "name": "defensible_differentiators_c", "comment": null}, "positive_business_outcomes_c": {"type": "STRING", "index": 302, "name": "positive_business_outcomes_c", "comment": null}, "customer_marketplace_pref_c": {"type": "STRING", "index": 303, "name": "customer_marketplace_pref_c", "comment": null}, "using_consultant_si_c": {"type": "STRING", "index": 304, "name": "using_consultant_si_c", "comment": null}, "value_drivers_c": {"type": "STRING", "index": 305, "name": "value_drivers_c", "comment": null}, "is_solution_architect_needed_c": {"type": "BOOL", "index": 306, "name": "is_solution_architect_needed_c", "comment": null}, "contact_opportunity_created_from_c": {"type": "STRING", "index": 307, "name": "contact_opportunity_created_from_c", "comment": null}, "previous_contract_blended_unit_price_c": {"type": "BIGNUMERIC", "index": 308, "name": "previous_contract_blended_unit_price_c", "comment": null}, "previous_contract_total_credits_purchase_c": {"type": "FLOAT64", "index": 309, "name": "previous_contract_total_credits_purchase_c", "comment": null}, "original_price_per_credit_c": {"type": "BIGNUMERIC", "index": 310, "name": "original_price_per_credit_c", "comment": null}, "previous_contract_discount_percentage_c": {"type": "FLOAT64", "index": 311, "name": "previous_contract_discount_percentage_c", "comment": null}, "expected_renewal_amount_override_1_c": {"type": "NUMERIC", "index": 312, "name": "expected_renewal_amount_override_1_c", "comment": null}, "expected_renewal_override_c": {"type": "BIGNUMERIC", "index": 313, "name": "expected_renewal_override_c", "comment": null}, "bookings_arr_2_c": {"type": "BIGNUMERIC", "index": 314, "name": "bookings_arr_2_c", "comment": null}, "baseline_arr_2_c": {"type": "BIGNUMERIC", "index": 315, "name": "baseline_arr_2_c", "comment": null}, "value_of_services_purchased_c": {"type": "BIGNUMERIC", "index": 316, "name": "value_of_services_purchased_c", "comment": null}, "value_of_credits_purchased_c": {"type": "NUMERIC", "index": 317, "name": "value_of_credits_purchased_c", "comment": null}, "renewal_fields_verified_c": {"type": "BOOL", "index": 318, "name": "renewal_fields_verified_c", "comment": null}, "no_co_sell_reason_c": {"type": "STRING", "index": 319, "name": "no_co_sell_reason_c", "comment": null}, "credit_summary_at_creation_c": {"type": "STRING", "index": 320, "name": "credit_summary_at_creation_c", "comment": null}, "renewal_date_on_creation_c": {"type": "TIMESTAMP", "index": 321, "name": "renewal_date_on_creation_c", "comment": null}, "did_you_pitch_quickstart_packages_c": {"type": "STRING", "index": 322, "name": "did_you_pitch_quickstart_packages_c", "comment": null}, "expected_renewal_amount_stamp_c": {"type": "BIGNUMERIC", "index": 323, "name": "expected_renewal_amount_stamp_c", "comment": null}, "platform_level_stamped_c": {"type": "STRING", "index": 324, "name": "platform_level_stamped_c", "comment": null}, "customer_spend_type_c": {"type": "STRING", "index": 325, "name": "customer_spend_type_c", "comment": null}, "self_service_routing_c": {"type": "BOOL", "index": 326, "name": "self_service_routing_c", "comment": null}, "value_of_rollover_credits_quote_stamp_c": {"type": "BIGNUMERIC", "index": 327, "name": "value_of_rollover_credits_quote_stamp_c", "comment": null}, "renewal_manager_notes_c": {"type": "STRING", "index": 328, "name": "renewal_manager_notes_c", "comment": null}, "fivetran_use_case_c": {"type": "STRING", "index": 329, "name": "fivetran_use_case_c", "comment": null}, "did_you_try_to_sell_services_c": {"type": "STRING", "index": 330, "name": "did_you_try_to_sell_services_c", "comment": null}, "routed_from_manual_bdr_ae_activity_c": {"type": "BOOL", "index": 331, "name": "routed_from_manual_bdr_ae_activity_c", "comment": null}, "group_id_c": {"type": "STRING", "index": 332, "name": "group_id_c", "comment": null}, "comma_separated_schema_list_c": {"type": "STRING", "index": 333, "name": "comma_separated_schema_list_c", "comment": null}, "si_referral_count_c": {"type": "FLOAT64", "index": 334, "name": "si_referral_count_c", "comment": null}, "si_referral_partner_chosen_c": {"type": "BOOL", "index": 335, "name": "si_referral_partner_chosen_c", "comment": null}, "partner_relationship_added_c": {"type": "STRING", "index": 336, "name": "partner_relationship_added_c", "comment": null}, "si_with_partner_referral_activity_type_c": {"type": "BOOL", "index": 337, "name": "si_with_partner_referral_activity_type_c", "comment": null}, "late_renewal_subscription_c": {"type": "STRING", "index": 338, "name": "late_renewal_subscription_c", "comment": null}, "rev_ops_created_renewal_c": {"type": "BOOL", "index": 339, "name": "rev_ops_created_renewal_c", "comment": null}, "conversion_opp_type_c": {"type": "STRING", "index": 340, "name": "conversion_opp_type_c", "comment": null}, "projected_mrr_increase_clari_c": {"type": "FLOAT64", "index": 341, "name": "projected_mrr_increase_clari_c", "comment": null}, "amount_rollover_annualized_stamped_c": {"type": "BIGNUMERIC", "index": 342, "name": "amount_rollover_annualized_stamped_c", "comment": null}, "credit_amount_stamped_c": {"type": "BIGNUMERIC", "index": 343, "name": "credit_amount_stamped_c", "comment": null}, "rollover_value_on_close_c": {"type": "BIGNUMERIC", "index": 344, "name": "rollover_value_on_close_c", "comment": null}, "lost_to_a_competitive_solution_c": {"type": "STRING", "index": 345, "name": "lost_to_a_competitive_solution_c", "comment": null}, "lost_primary_reason_detail_c": {"type": "STRING", "index": 346, "name": "lost_primary_reason_detail_c", "comment": null}, "marketing_activity_in_last_30_days_c": {"type": "BOOL", "index": 347, "name": "marketing_activity_in_last_30_days_c", "comment": null}, "disco_meeting_date_c": {"type": "TIMESTAMP", "index": 348, "name": "disco_meeting_date_c", "comment": null}, "disco_meeting_status_c": {"type": "STRING", "index": 349, "name": "disco_meeting_status_c", "comment": null}, "third_party_data_c": {"type": "STRING", "index": 350, "name": "third_party_data_c", "comment": null}, "pbf_overlay_c": {"type": "STRING", "index": 351, "name": "pbf_overlay_c", "comment": null}, "services_stage_2_date_c": {"type": "TIMESTAMP", "index": 352, "name": "services_stage_2_date_c", "comment": null}, "why_did_we_lose_the_services_pitch_c": {"type": "STRING", "index": 353, "name": "why_did_we_lose_the_services_pitch_c", "comment": null}, "partner_relationship_created_automation_c": {"type": "BOOL", "index": 354, "name": "partner_relationship_created_automation_c", "comment": null}, "non_connector_expansion_c": {"type": "BOOL", "index": 355, "name": "non_connector_expansion_c", "comment": null}, "purchase_order_required_c": {"type": "STRING", "index": 356, "name": "purchase_order_required_c", "comment": null}, "push_count": {"type": "INT64", "index": 357, "name": "push_count", "comment": null}, "last_stage_change_date": {"type": "TIMESTAMP", "index": 358, "name": "last_stage_change_date", "comment": null}, "logged_to_partner_portal_c": {"type": "BOOL", "index": 359, "name": "logged_to_partner_portal_c", "comment": null}, "bdr_sdr_cross_sell_disco_call_c": {"type": "BOOL", "index": 360, "name": "bdr_sdr_cross_sell_disco_call_c", "comment": null}, "expected_renewal_expansion_override_c": {"type": "BIGNUMERIC", "index": 361, "name": "expected_renewal_expansion_override_c", "comment": null}, "hvr_contract_end_date_c": {"type": "TIMESTAMP", "index": 362, "name": "hvr_contract_end_date_c", "comment": null}, "hvr_technical_fit_c": {"type": "STRING", "index": 363, "name": "hvr_technical_fit_c", "comment": null}, "hvr_arr_new_c": {"type": "BIGNUMERIC", "index": 364, "name": "hvr_arr_new_c", "comment": null}, "legacy_hvr_id_c": {"type": "STRING", "index": 365, "name": "legacy_hvr_id_c", "comment": null}, "hvr_sales_region_c": {"type": "STRING", "index": 366, "name": "hvr_sales_region_c", "comment": null}, "contract_id": {"type": "STRING", "index": 367, "name": "contract_id", "comment": null}, "hvr_arr_end_c": {"type": "TIMESTAMP", "index": 368, "name": "hvr_arr_end_c", "comment": null}, "hvr_sum_of_forecast_calc_c": {"type": "BIGNUMERIC", "index": 369, "name": "hvr_sum_of_forecast_calc_c", "comment": null}, "hvr_nrr_total_c": {"type": "BIGNUMERIC", "index": 370, "name": "hvr_nrr_total_c", "comment": null}, "hvr_type_summary_c": {"type": "STRING", "index": 371, "name": "hvr_type_summary_c", "comment": null}, "hvr_special_instructions_for_licensing_c": {"type": "STRING", "index": 372, "name": "hvr_special_instructions_for_licensing_c", "comment": null}, "hvr_year_3_amount_c": {"type": "BIGNUMERIC", "index": 373, "name": "hvr_year_3_amount_c", "comment": null}, "hvr_targets_c": {"type": "STRING", "index": 374, "name": "hvr_targets_c", "comment": null}, "hvr_type_adj_c": {"type": "STRING", "index": 375, "name": "hvr_type_adj_c", "comment": null}, "hvr_arr_expansion_c": {"type": "BIGNUMERIC", "index": 376, "name": "hvr_arr_expansion_c", "comment": null}, "negative_consequences_c": {"type": "STRING", "index": 377, "name": "negative_consequences_c", "comment": null}, "hvr_quarterly_forecast_summary_c": {"type": "STRING", "index": 378, "name": "hvr_quarterly_forecast_summary_c", "comment": null}, "hvr_sal_confirmed_with_ae_c": {"type": "BOOL", "index": 379, "name": "hvr_sal_confirmed_with_ae_c", "comment": null}, "hvr_years_2_5_on_quote_c": {"type": "BIGNUMERIC", "index": 380, "name": "hvr_years_2_5_on_quote_c", "comment": null}, "hvr_arr_license_total_c": {"type": "BIGNUMERIC", "index": 381, "name": "hvr_arr_license_total_c", "comment": null}, "hvr_term_months_c": {"type": "FLOAT64", "index": 382, "name": "hvr_term_months_c", "comment": null}, "hvr_upside_value_at_50_c": {"type": "BIGNUMERIC", "index": 383, "name": "hvr_upside_value_at_50_c", "comment": null}, "proof_point_c": {"type": "STRING", "index": 384, "name": "proof_point_c", "comment": null}, "hub_fingerprint_c": {"type": "STRING", "index": 385, "name": "hub_fingerprint_c", "comment": null}, "demo_deep_technical_dive_completed_date_c": {"type": "TIMESTAMP", "index": 386, "name": "demo_deep_technical_dive_completed_date_c", "comment": null}, "hvr_license_type_1_c": {"type": "STRING", "index": 387, "name": "hvr_license_type_1_c", "comment": null}, "hvr_year_2_c": {"type": "STRING", "index": 388, "name": "hvr_year_2_c", "comment": null}, "hvr_currency_code_c": {"type": "STRING", "index": 389, "name": "hvr_currency_code_c", "comment": null}, "hvr_fq_c": {"type": "STRING", "index": 390, "name": "hvr_fq_c", "comment": null}, "hvr_multi_year_total_c": {"type": "BIGNUMERIC", "index": 391, "name": "hvr_multi_year_total_c", "comment": null}, "hvr_annual_support_c": {"type": "BIGNUMERIC", "index": 392, "name": "hvr_annual_support_c", "comment": null}, "hvr_targets_count_c": {"type": "FLOAT64", "index": 393, "name": "hvr_targets_count_c", "comment": null}, "opportunity_channel_confirmed_c": {"type": "BOOL", "index": 394, "name": "opportunity_channel_confirmed_c", "comment": null}, "how_we_do_it_c": {"type": "STRING", "index": 395, "name": "how_we_do_it_c", "comment": null}, "hvr_primary_cloud_preference_c": {"type": "STRING", "index": 396, "name": "hvr_primary_cloud_preference_c", "comment": null}, "hvr_year_4_c": {"type": "STRING", "index": 397, "name": "hvr_year_4_c", "comment": null}, "hvr_sources_c": {"type": "STRING", "index": 398, "name": "hvr_sources_c", "comment": null}, "hvr_arr_start_c": {"type": "TIMESTAMP", "index": 399, "name": "hvr_arr_start_c", "comment": null}, "hvr_fy_c": {"type": "STRING", "index": 400, "name": "hvr_fy_c", "comment": null}, "hvr_year_5_amount_c": {"type": "BIGNUMERIC", "index": 401, "name": "hvr_year_5_amount_c", "comment": null}, "is_private": {"type": "BOOL", "index": 402, "name": "is_private", "comment": null}, "hvr_arr_support_products_c": {"type": "FLOAT64", "index": 403, "name": "hvr_arr_support_products_c", "comment": null}, "license_key_generated_c": {"type": "BOOL", "index": 404, "name": "license_key_generated_c", "comment": null}, "hvr_arr_from_products_c": {"type": "BIGNUMERIC", "index": 405, "name": "hvr_arr_from_products_c", "comment": null}, "total_opportunity_quantity": {"type": "FLOAT64", "index": 406, "name": "total_opportunity_quantity", "comment": null}, "hvr_sapruntimeflag_c": {"type": "BOOL", "index": 407, "name": "hvr_sapruntimeflag_c", "comment": null}, "hvr_arr_from_total_arr_products_added_c": {"type": "BIGNUMERIC", "index": 408, "name": "hvr_arr_from_total_arr_products_added_c", "comment": null}, "hvr_arr_support_total_c": {"type": "BIGNUMERIC", "index": 409, "name": "hvr_arr_support_total_c", "comment": null}, "hvr_year_4_amount_c": {"type": "BIGNUMERIC", "index": 410, "name": "hvr_year_4_amount_c", "comment": null}, "opportunity_sources_and_targets_reviewed_c": {"type": "BOOL", "index": 411, "name": "opportunity_sources_and_targets_reviewed_c", "comment": null}, "hvr_pilot_fees_c": {"type": "BIGNUMERIC", "index": 412, "name": "hvr_pilot_fees_c", "comment": null}, "intacct_customer_id_c": {"type": "STRING", "index": 413, "name": "intacct_customer_id_c", "comment": null}, "hvr_arr_old_c": {"type": "BIGNUMERIC", "index": 414, "name": "hvr_arr_old_c", "comment": null}, "hvr_arr_adjusted_c": {"type": "BIGNUMERIC", "index": 415, "name": "hvr_arr_adjusted_c", "comment": null}, "hvr_churn_date_c": {"type": "TIMESTAMP", "index": 416, "name": "hvr_churn_date_c", "comment": null}, "hvr_arr_total_products_c": {"type": "BIGNUMERIC", "index": 417, "name": "hvr_arr_total_products_c", "comment": null}, "required_capabilities_c": {"type": "STRING", "index": 418, "name": "required_capabilities_c", "comment": null}, "hvr_sources_count_c": {"type": "FLOAT64", "index": 419, "name": "hvr_sources_count_c", "comment": null}, "hvr_secondary_cloud_preference_c": {"type": "STRING", "index": 420, "name": "hvr_secondary_cloud_preference_c", "comment": null}, "hvr_arr_type_2_c": {"type": "STRING", "index": 421, "name": "hvr_arr_type_2_c", "comment": null}, "differentiators_against_c": {"type": "STRING", "index": 422, "name": "differentiators_against_c", "comment": null}, "nrr_total_c": {"type": "BIGNUMERIC", "index": 423, "name": "nrr_total_c", "comment": null}, "hvr_years_25_on_quote_c": {"type": "BIGNUMERIC", "index": 424, "name": "hvr_years_25_on_quote_c", "comment": null}, "hvr_opportunity_targets_c": {"type": "STRING", "index": 425, "name": "hvr_opportunity_targets_c", "comment": null}, "hvr_license_type_2_c": {"type": "STRING", "index": 426, "name": "hvr_license_type_2_c", "comment": null}, "hvr_solution_use_case_sub_category_c": {"type": "STRING", "index": 427, "name": "hvr_solution_use_case_sub_category_c", "comment": null}, "license_key_submission_date_stamp_c": {"type": "TIMESTAMP", "index": 428, "name": "license_key_submission_date_stamp_c", "comment": null}, "hvr_year_2_amount_c": {"type": "BIGNUMERIC", "index": 429, "name": "hvr_year_2_amount_c", "comment": null}, "hvr_new_arr_c": {"type": "BIGNUMERIC", "index": 430, "name": "hvr_new_arr_c", "comment": null}, "support_level_c": {"type": "STRING", "index": 431, "name": "support_level_c", "comment": null}, "hvr_arr_c": {"type": "BIGNUMERIC", "index": 432, "name": "hvr_arr_c", "comment": null}, "hvr_arr_calculated_c": {"type": "BIGNUMERIC", "index": 433, "name": "hvr_arr_calculated_c", "comment": null}, "hvr_amount_arrperpetual_c": {"type": "BIGNUMERIC", "index": 434, "name": "hvr_amount_arrperpetual_c", "comment": null}, "hvr_exchange_rate_c": {"type": "FLOAT64", "index": 435, "name": "hvr_exchange_rate_c", "comment": null}, "hvr_perpetual_amount_c": {"type": "BIGNUMERIC", "index": 436, "name": "hvr_perpetual_amount_c", "comment": null}, "hvr_arr_contraction_c": {"type": "BIGNUMERIC", "index": 437, "name": "hvr_arr_contraction_c", "comment": null}, "hvr_arr_months_c": {"type": "FLOAT64", "index": 438, "name": "hvr_arr_months_c", "comment": null}, "hvr_arr_gold_at_12_of_license_total_c": {"type": "BIGNUMERIC", "index": 439, "name": "hvr_arr_gold_at_12_of_license_total_c", "comment": null}, "hvr_arr_forecast_expected_c": {"type": "BIGNUMERIC", "index": 440, "name": "hvr_arr_forecast_expected_c", "comment": null}, "hvr_year_5_c": {"type": "STRING", "index": 441, "name": "hvr_year_5_c", "comment": null}, "hvr_arr_total_c": {"type": "BIGNUMERIC", "index": 442, "name": "hvr_arr_total_c", "comment": null}, "hvr_type_arrperpetual_c": {"type": "STRING", "index": 443, "name": "hvr_type_arrperpetual_c", "comment": null}, "hvr_tcv_c": {"type": "BIGNUMERIC", "index": 444, "name": "hvr_tcv_c", "comment": null}, "hvr_year_3_c": {"type": "STRING", "index": 445, "name": "hvr_year_3_c", "comment": null}, "hvr_arr_type_c": {"type": "STRING", "index": 446, "name": "hvr_arr_type_c", "comment": null}, "demo_deep_technical_dive_scheduled_date_c": {"type": "TIMESTAMP", "index": 447, "name": "demo_deep_technical_dive_scheduled_date_c", "comment": null}, "hvr_pro_serve_products_c": {"type": "FLOAT64", "index": 448, "name": "hvr_pro_serve_products_c", "comment": null}, "hvr_pro_serve_total_c": {"type": "BIGNUMERIC", "index": 449, "name": "hvr_pro_serve_total_c", "comment": null}, "hvr_total_amount_c": {"type": "BIGNUMERIC", "index": 450, "name": "hvr_total_amount_c", "comment": null}, "lean_data_status_info_c": {"type": "STRING", "index": 451, "name": "lean_data_status_info_c", "comment": null}, "hvr_additional_partners_c": {"type": "STRING", "index": 452, "name": "hvr_additional_partners_c", "comment": null}, "hvr_local_amount_c": {"type": "FLOAT64", "index": 453, "name": "hvr_local_amount_c", "comment": null}, "explain_reason_for_hvr_6_1_sale_c": {"type": "STRING", "index": 454, "name": "explain_reason_for_hvr_6_1_sale_c", "comment": null}, "hvr_6_1_proposed_sale_c": {"type": "BOOL", "index": 455, "name": "hvr_6_1_proposed_sale_c", "comment": null}, "approval_of_hvr_6_1_sale_c": {"type": "BOOL", "index": 456, "name": "approval_of_hvr_6_1_sale_c", "comment": null}, "hvr_6_1_sale_decision_c": {"type": "STRING", "index": 457, "name": "hvr_6_1_sale_decision_c", "comment": null}, "hvr_poc_sources_details_c": {"type": "STRING", "index": 458, "name": "hvr_poc_sources_details_c", "comment": null}, "hvr_poc_targets_c": {"type": "STRING", "index": 459, "name": "hvr_poc_targets_c", "comment": null}, "hvr_check_list_sent_c": {"type": "STRING", "index": 460, "name": "hvr_check_list_sent_c", "comment": null}, "hvr_start_date_actual_c": {"type": "STRING", "index": 461, "name": "hvr_start_date_actual_c", "comment": null}, "hvr_check_list_received_c": {"type": "STRING", "index": 462, "name": "hvr_check_list_received_c", "comment": null}, "hvr_support_location_c": {"type": "STRING", "index": 463, "name": "hvr_support_location_c", "comment": null}, "hvr_stop_date_plan_c": {"type": "STRING", "index": 464, "name": "hvr_stop_date_plan_c", "comment": null}, "hvr_start_date_plan_c": {"type": "STRING", "index": 465, "name": "hvr_start_date_plan_c", "comment": null}, "hvr_what_worked_c": {"type": "STRING", "index": 466, "name": "hvr_what_worked_c", "comment": null}, "hvr_competition_c": {"type": "STRING", "index": 467, "name": "hvr_competition_c", "comment": null}, "hvr_what_didnt_work_c": {"type": "STRING", "index": 468, "name": "hvr_what_didnt_work_c", "comment": null}, "hvr_conducted_by_c": {"type": "STRING", "index": 469, "name": "hvr_conducted_by_c", "comment": null}, "hvr_poc_sources_c": {"type": "STRING", "index": 470, "name": "hvr_poc_sources_c", "comment": null}, "hvr_review_call_date_c": {"type": "STRING", "index": 471, "name": "hvr_review_call_date_c", "comment": null}, "hvr_stop_date_actual_c": {"type": "STRING", "index": 472, "name": "hvr_stop_date_actual_c", "comment": null}, "hvr_will_there_be_a_poc_c": {"type": "STRING", "index": 473, "name": "hvr_will_there_be_a_poc_c", "comment": null}, "hvr_poc_of_days_c": {"type": "STRING", "index": 474, "name": "hvr_poc_of_days_c", "comment": null}, "hvr_poc_targets_details_c": {"type": "STRING", "index": 475, "name": "hvr_poc_targets_details_c", "comment": null}, "hvr_hub_details_c": {"type": "STRING", "index": 476, "name": "hvr_hub_details_c", "comment": null}, "legacy_hvr_channel_c": {"type": "STRING", "index": 477, "name": "legacy_hvr_channel_c", "comment": null}, "account_strategist_stamp_c": {"type": "STRING", "index": 478, "name": "account_strategist_stamp_c", "comment": null}, "hvr_fivetran_conversion_type_c": {"type": "STRING", "index": 479, "name": "hvr_fivetran_conversion_type_c", "comment": null}, "olp_cancellation_override_c": {"type": "BOOL", "index": 480, "name": "olp_cancellation_override_c", "comment": null}, "account_strategist_1_c": {"type": "STRING", "index": 481, "name": "account_strategist_1_c", "comment": null}, "product_being_pitched_c": {"type": "STRING", "index": 482, "name": "product_being_pitched_c", "comment": null}, "estimated_monthly_dollar_consumption_c": {"type": "BIGNUMERIC", "index": 483, "name": "estimated_monthly_dollar_consumption_c", "comment": null}, "platform_level_sso_c": {"type": "STRING", "index": 484, "name": "platform_level_sso_c", "comment": null}, "salesforce_created_c": {"type": "BOOL", "index": 485, "name": "salesforce_created_c", "comment": null}, "route_pbf_overlay_c": {"type": "BOOL", "index": 486, "name": "route_pbf_overlay_c", "comment": null}, "hvr_deal_submitted_c": {"type": "BOOL", "index": 487, "name": "hvr_deal_submitted_c", "comment": null}, "annual_2_olp_conversion_created_c": {"type": "BOOL", "index": 488, "name": "annual_2_olp_conversion_created_c", "comment": null}, "sub_start_date_vp_level_exception_c": {"type": "BOOL", "index": 489, "name": "sub_start_date_vp_level_exception_c", "comment": null}, "closed_won_region_c": {"type": "STRING", "index": 490, "name": "closed_won_region_c", "comment": null}, "closed_won_segment_c": {"type": "STRING", "index": 491, "name": "closed_won_segment_c", "comment": null}, "deal_desk_notes_c": {"type": "STRING", "index": 492, "name": "deal_desk_notes_c", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 141684051.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 121417.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.salesforce_source.salesforce.opportunity"}, "source.salesforce_source.salesforce.user": {"metadata": {"type": "table", "schema": "salesforce", "name": "user", "database": "fivetran", "comment": null, "owner": null}, "columns": {"user_preferences_disable_endorsement_email": {"type": "BOOL", "index": 1, "name": "user_preferences_disable_endorsement_email", "comment": null}, "locale_sid_key": {"type": "STRING", "index": 2, "name": "locale_sid_key", "comment": null}, "receives_info_emails": {"type": "BOOL", "index": 3, "name": "receives_info_emails", "comment": null}, "about_me": {"type": "STRING", "index": 4, "name": "about_me", "comment": null}, "division": {"type": "STRING", "index": 5, "name": "division", "comment": null}, "user_preferences_disable_change_comment_email": {"type": "BOOL", "index": 6, "name": "user_preferences_disable_change_comment_email", "comment": null}, "user_preferences_show_title_to_external_users": {"type": "BOOL", "index": 7, "name": "user_preferences_show_title_to_external_users", "comment": null}, "user_role_id": {"type": "STRING", "index": 8, "name": "user_role_id", "comment": null}, "user_type": {"type": "STRING", "index": 9, "name": "user_type", "comment": null}, "user_preferences_show_city_to_external_users": {"type": "BOOL", "index": 10, "name": "user_preferences_show_city_to_external_users", "comment": null}, "community_nickname": {"type": "STRING", "index": 11, "name": "community_nickname", "comment": null}, "user_preferences_show_postal_code_to_guest_users": {"type": "BOOL", "index": 12, "name": "user_preferences_show_postal_code_to_guest_users", "comment": null}, "id": {"type": "STRING", "index": 13, "name": "id", "comment": null}, "state": {"type": "STRING", "index": 14, "name": "state", "comment": null}, "fax": {"type": "STRING", "index": 15, "name": "fax", "comment": null}, "echosign_dev_1_echo_sign_email_verified_c": {"type": "BOOL", "index": 16, "name": "echosign_dev_1_echo_sign_email_verified_c", "comment": null}, "user_permissions_mobile_user": {"type": "BOOL", "index": 17, "name": "user_permissions_mobile_user", "comment": null}, "last_referenced_date": {"type": "TIMESTAMP", "index": 18, "name": "last_referenced_date", "comment": null}, "badge_text": {"type": "STRING", "index": 19, "name": "badge_text", "comment": null}, "offline_pda_trial_expiration_date": {"type": "TIMESTAMP", "index": 20, "name": "offline_pda_trial_expiration_date", "comment": null}, "offline_trial_expiration_date": {"type": "TIMESTAMP", "index": 21, "name": "offline_trial_expiration_date", "comment": null}, "user_preferences_show_fax_to_guest_users": {"type": "BOOL", "index": 22, "name": "user_preferences_show_fax_to_guest_users", "comment": null}, "user_preferences_show_street_address_to_guest_users": {"type": "BOOL", "index": 23, "name": "user_preferences_show_street_address_to_guest_users", "comment": null}, "user_preferences_show_email_to_guest_users": {"type": "BOOL", "index": 24, "name": "user_preferences_show_email_to_guest_users", "comment": null}, "phone": {"type": "STRING", "index": 25, "name": "phone", "comment": null}, "profile_id": {"type": "STRING", "index": 26, "name": "profile_id", "comment": null}, "company_name": {"type": "STRING", "index": 27, "name": "company_name", "comment": null}, "user_preferences_disable_file_share_notifications_for_api": {"type": "BOOL", "index": 28, "name": "user_preferences_disable_file_share_notifications_for_api", "comment": null}, "employee_number": {"type": "STRING", "index": 29, "name": "employee_number", "comment": null}, "user_preferences_activity_reminders_popup": {"type": "BOOL", "index": 30, "name": "user_preferences_activity_reminders_popup", "comment": null}, "user_preferences_sort_feed_by_comment": {"type": "BOOL", "index": 31, "name": "user_preferences_sort_feed_by_comment", "comment": null}, "user_preferences_disable_profile_post_email": {"type": "BOOL", "index": 32, "name": "user_preferences_disable_profile_post_email", "comment": null}, "user_permissions_offline_user": {"type": "BOOL", "index": 33, "name": "user_permissions_offline_user", "comment": null}, "extension": {"type": "STRING", "index": 34, "name": "extension", "comment": null}, "user_permissions_chatter_answers_user": {"type": "BOOL", "index": 35, "name": "user_permissions_chatter_answers_user", "comment": null}, "user_preferences_show_street_address_to_external_users": {"type": "BOOL", "index": 36, "name": "user_preferences_show_street_address_to_external_users", "comment": null}, "city": {"type": "STRING", "index": 37, "name": "city", "comment": null}, "signature": {"type": "STRING", "index": 38, "name": "signature", "comment": null}, "user_preferences_show_title_to_guest_users": {"type": "BOOL", "index": 39, "name": "user_preferences_show_title_to_guest_users", "comment": null}, "latitude": {"type": "FLOAT64", "index": 40, "name": "latitude", "comment": null}, "user_preferences_show_manager_to_guest_users": {"type": "BOOL", "index": 41, "name": "user_preferences_show_manager_to_guest_users", "comment": null}, "default_group_notification_frequency": {"type": "STRING", "index": 42, "name": "default_group_notification_frequency", "comment": null}, "user_preferences_disable_bookmark_email": {"type": "BOOL", "index": 43, "name": "user_preferences_disable_bookmark_email", "comment": null}, "user_preferences_show_state_to_guest_users": {"type": "BOOL", "index": 44, "name": "user_preferences_show_state_to_guest_users", "comment": null}, "forecast_enabled": {"type": "BOOL", "index": 45, "name": "forecast_enabled", "comment": null}, "user_preferences_disable_later_comment_email": {"type": "BOOL", "index": 46, "name": "user_preferences_disable_later_comment_email", "comment": null}, "user_preferences_show_manager_to_external_users": {"type": "BOOL", "index": 47, "name": "user_preferences_show_manager_to_external_users", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 48, "name": "_fivetran_synced", "comment": null}, "last_viewed_date": {"type": "TIMESTAMP", "index": 49, "name": "last_viewed_date", "comment": null}, "manager_id": {"type": "STRING", "index": 50, "name": "manager_id", "comment": null}, "user_preferences_reminder_sound_off": {"type": "BOOL", "index": 51, "name": "user_preferences_reminder_sound_off", "comment": null}, "full_photo_url": {"type": "STRING", "index": 52, "name": "full_photo_url", "comment": null}, "user_preferences_show_postal_code_to_external_users": {"type": "BOOL", "index": 53, "name": "user_preferences_show_postal_code_to_external_users", "comment": null}, "email": {"type": "STRING", "index": 54, "name": "email", "comment": null}, "user_preferences_show_mobile_phone_to_guest_users": {"type": "BOOL", "index": 55, "name": "user_preferences_show_mobile_phone_to_guest_users", "comment": null}, "stay_in_touch_note": {"type": "STRING", "index": 56, "name": "stay_in_touch_note", "comment": null}, "user_preferences_disable_followers_email": {"type": "BOOL", "index": 57, "name": "user_preferences_disable_followers_email", "comment": null}, "user_preferences_hide_csnget_chatter_mobile_task": {"type": "BOOL", "index": 58, "name": "user_preferences_hide_csnget_chatter_mobile_task", "comment": null}, "is_active": {"type": "BOOL", "index": 59, "name": "is_active", "comment": null}, "echosign_dev_1_echo_sign_allow_delegated_sending_c": {"type": "BOOL", "index": 60, "name": "echosign_dev_1_echo_sign_allow_delegated_sending_c", "comment": null}, "small_photo_url": {"type": "STRING", "index": 61, "name": "small_photo_url", "comment": null}, "user_preferences_show_work_phone_to_external_users": {"type": "BOOL", "index": 62, "name": "user_preferences_show_work_phone_to_external_users", "comment": null}, "user_preferences_hide_csndesktop_task": {"type": "BOOL", "index": 63, "name": "user_preferences_hide_csndesktop_task", "comment": null}, "last_name": {"type": "STRING", "index": 64, "name": "last_name", "comment": null}, "user_preferences_task_reminders_checkbox_default": {"type": "BOOL", "index": 65, "name": "user_preferences_task_reminders_checkbox_default", "comment": null}, "user_preferences_dis_comment_after_like_email": {"type": "BOOL", "index": 66, "name": "user_preferences_dis_comment_after_like_email", "comment": null}, "is_profile_photo_active": {"type": "BOOL", "index": 67, "name": "is_profile_photo_active", "comment": null}, "account_id": {"type": "STRING", "index": 68, "name": "account_id", "comment": null}, "user_preferences_show_profile_pic_to_guest_users": {"type": "BOOL", "index": 69, "name": "user_preferences_show_profile_pic_to_guest_users", "comment": null}, "postal_code": {"type": "STRING", "index": 70, "name": "postal_code", "comment": null}, "user_preferences_show_email_to_external_users": {"type": "BOOL", "index": 71, "name": "user_preferences_show_email_to_external_users", "comment": null}, "user_permissions_marketing_user": {"type": "BOOL", "index": 72, "name": "user_permissions_marketing_user", "comment": null}, "country": {"type": "STRING", "index": 73, "name": "country", "comment": null}, "email_encoding_key": {"type": "STRING", "index": 74, "name": "email_encoding_key", "comment": null}, "user_preferences_show_country_to_guest_users": {"type": "BOOL", "index": 75, "name": "user_preferences_show_country_to_guest_users", "comment": null}, "user_preferences_disable_mentions_post_email": {"type": "BOOL", "index": 76, "name": "user_preferences_disable_mentions_post_email", "comment": null}, "user_preferences_show_country_to_external_users": {"type": "BOOL", "index": 77, "name": "user_preferences_show_country_to_external_users", "comment": null}, "user_preferences_show_work_phone_to_guest_users": {"type": "BOOL", "index": 78, "name": "user_preferences_show_work_phone_to_guest_users", "comment": null}, "last_modified_date": {"type": "TIMESTAMP", "index": 79, "name": "last_modified_date", "comment": null}, "sender_name": {"type": "STRING", "index": 80, "name": "sender_name", "comment": null}, "user_preferences_apex_pages_developer_mode": {"type": "BOOL", "index": 81, "name": "user_preferences_apex_pages_developer_mode", "comment": null}, "user_preferences_hide_chatter_onboarding_splash": {"type": "BOOL", "index": 82, "name": "user_preferences_hide_chatter_onboarding_splash", "comment": null}, "stay_in_touch_signature": {"type": "STRING", "index": 83, "name": "stay_in_touch_signature", "comment": null}, "language_locale_key": {"type": "STRING", "index": 84, "name": "language_locale_key", "comment": null}, "last_modified_by_id": {"type": "STRING", "index": 85, "name": "last_modified_by_id", "comment": null}, "system_modstamp": {"type": "TIMESTAMP", "index": 86, "name": "system_modstamp", "comment": null}, "geocode_accuracy": {"type": "STRING", "index": 87, "name": "geocode_accuracy", "comment": null}, "receives_admin_info_emails": {"type": "BOOL", "index": 88, "name": "receives_admin_info_emails", "comment": null}, "user_preferences_disable_message_email": {"type": "BOOL", "index": 89, "name": "user_preferences_disable_message_email", "comment": null}, "time_zone_sid_key": {"type": "STRING", "index": 90, "name": "time_zone_sid_key", "comment": null}, "user_preferences_hide_second_chatter_onboarding_splash": {"type": "BOOL", "index": 91, "name": "user_preferences_hide_second_chatter_onboarding_splash", "comment": null}, "longitude": {"type": "FLOAT64", "index": 92, "name": "longitude", "comment": null}, "sender_email": {"type": "STRING", "index": 93, "name": "sender_email", "comment": null}, "email_preferences_auto_bcc_stay_in_touch": {"type": "BOOL", "index": 94, "name": "email_preferences_auto_bcc_stay_in_touch", "comment": null}, "email_preferences_auto_bcc": {"type": "BOOL", "index": 95, "name": "email_preferences_auto_bcc", "comment": null}, "last_login_date": {"type": "TIMESTAMP", "index": 96, "name": "last_login_date", "comment": null}, "call_center_id": {"type": "STRING", "index": 97, "name": "call_center_id", "comment": null}, "country_code": {"type": "STRING", "index": 98, "name": "country_code", "comment": null}, "user_preferences_path_assistant_collapsed": {"type": "BOOL", "index": 99, "name": "user_preferences_path_assistant_collapsed", "comment": null}, "banner_photo_url": {"type": "STRING", "index": 100, "name": "banner_photo_url", "comment": null}, "user_preferences_event_reminders_checkbox_default": {"type": "BOOL", "index": 101, "name": "user_preferences_event_reminders_checkbox_default", "comment": null}, "user_preferences_lightning_experience_preferred": {"type": "BOOL", "index": 102, "name": "user_preferences_lightning_experience_preferred", "comment": null}, "delegated_approver_id": {"type": "STRING", "index": 103, "name": "delegated_approver_id", "comment": null}, "user_preferences_disable_share_post_email": {"type": "BOOL", "index": 104, "name": "user_preferences_disable_share_post_email", "comment": null}, "last_password_change_date": {"type": "TIMESTAMP", "index": 105, "name": "last_password_change_date", "comment": null}, "name": {"type": "STRING", "index": 106, "name": "name", "comment": null}, "user_permissions_call_center_auto_login": {"type": "BOOL", "index": 107, "name": "user_permissions_call_center_auto_login", "comment": null}, "created_by_id": {"type": "STRING", "index": 108, "name": "created_by_id", "comment": null}, "user_preferences_dis_mentions_comment_email": {"type": "BOOL", "index": 109, "name": "user_preferences_dis_mentions_comment_email", "comment": null}, "state_code": {"type": "STRING", "index": 110, "name": "state_code", "comment": null}, "email_preferences_stay_in_touch_reminder": {"type": "BOOL", "index": 111, "name": "email_preferences_stay_in_touch_reminder", "comment": null}, "user_preferences_hide_s_1_browser_ui": {"type": "BOOL", "index": 112, "name": "user_preferences_hide_s_1_browser_ui", "comment": null}, "digest_frequency": {"type": "STRING", "index": 113, "name": "digest_frequency", "comment": null}, "contact_id": {"type": "STRING", "index": 114, "name": "contact_id", "comment": null}, "title": {"type": "STRING", "index": 115, "name": "title", "comment": null}, "user_permissions_interaction_user": {"type": "BOOL", "index": 116, "name": "user_permissions_interaction_user", "comment": null}, "user_preferences_enable_auto_sub_for_feeds": {"type": "BOOL", "index": 117, "name": "user_preferences_enable_auto_sub_for_feeds", "comment": null}, "user_permissions_support_user": {"type": "BOOL", "index": 118, "name": "user_permissions_support_user", "comment": null}, "user_preferences_show_fax_to_external_users": {"type": "BOOL", "index": 119, "name": "user_preferences_show_fax_to_external_users", "comment": null}, "mobile_phone": {"type": "STRING", "index": 120, "name": "mobile_phone", "comment": null}, "street": {"type": "STRING", "index": 121, "name": "street", "comment": null}, "user_permissions_avantgo_user": {"type": "BOOL", "index": 122, "name": "user_permissions_avantgo_user", "comment": null}, "user_preferences_disable_all_feeds_email": {"type": "BOOL", "index": 123, "name": "user_preferences_disable_all_feeds_email", "comment": null}, "alias": {"type": "STRING", "index": 124, "name": "alias", "comment": null}, "department": {"type": "STRING", "index": 125, "name": "department", "comment": null}, "first_name": {"type": "STRING", "index": 126, "name": "first_name", "comment": null}, "user_preferences_show_mobile_phone_to_external_users": {"type": "BOOL", "index": 127, "name": "user_preferences_show_mobile_phone_to_external_users", "comment": null}, "user_preferences_show_state_to_external_users": {"type": "BOOL", "index": 128, "name": "user_preferences_show_state_to_external_users", "comment": null}, "user_preferences_cache_diagnostics": {"type": "BOOL", "index": 129, "name": "user_preferences_cache_diagnostics", "comment": null}, "stay_in_touch_subject": {"type": "STRING", "index": 130, "name": "stay_in_touch_subject", "comment": null}, "federation_identifier": {"type": "STRING", "index": 131, "name": "federation_identifier", "comment": null}, "user_permissions_sfcontent_user": {"type": "BOOL", "index": 132, "name": "user_permissions_sfcontent_user", "comment": null}, "user_preferences_show_city_to_guest_users": {"type": "BOOL", "index": 133, "name": "user_preferences_show_city_to_guest_users", "comment": null}, "user_preferences_disable_like_email": {"type": "BOOL", "index": 134, "name": "user_preferences_disable_like_email", "comment": null}, "created_date": {"type": "TIMESTAMP", "index": 135, "name": "created_date", "comment": null}, "user_preferences_dis_prof_post_comment_email": {"type": "BOOL", "index": 136, "name": "user_preferences_dis_prof_post_comment_email", "comment": null}, "username": {"type": "STRING", "index": 137, "name": "username", "comment": null}, "user_permissions_knowledge_user": {"type": "BOOL", "index": 138, "name": "user_permissions_knowledge_user", "comment": null}, "dsfs_dspro_sfmembership_status_c": {"type": "STRING", "index": 139, "name": "dsfs_dspro_sfmembership_status_c", "comment": null}, "dsfs_dspro_sfpassword_c": {"type": "STRING", "index": 140, "name": "dsfs_dspro_sfpassword_c", "comment": null}, "dsfs_dspro_sfusername_c": {"type": "STRING", "index": 141, "name": "dsfs_dspro_sfusername_c", "comment": null}, "calendly_c": {"type": "STRING", "index": 142, "name": "calendly_c", "comment": null}, "user_preferences_enable_voice_pilot": {"type": "BOOL", "index": 143, "name": "user_preferences_enable_voice_pilot", "comment": null}, "is_ext_indicator_visible": {"type": "BOOL", "index": 144, "name": "is_ext_indicator_visible", "comment": null}, "medium_banner_photo_url": {"type": "STRING", "index": 145, "name": "medium_banner_photo_url", "comment": null}, "medium_photo_url": {"type": "STRING", "index": 146, "name": "medium_photo_url", "comment": null}, "out_of_office_message": {"type": "STRING", "index": 147, "name": "out_of_office_message", "comment": null}, "small_banner_photo_url": {"type": "STRING", "index": 148, "name": "small_banner_photo_url", "comment": null}, "user_preferences_create_lexapps_wtshown": {"type": "BOOL", "index": 149, "name": "user_preferences_create_lexapps_wtshown", "comment": null}, "user_preferences_exclude_mail_app_attachments": {"type": "BOOL", "index": 150, "name": "user_preferences_exclude_mail_app_attachments", "comment": null}, "user_preferences_favorites_show_top_favorites": {"type": "BOOL", "index": 151, "name": "user_preferences_favorites_show_top_favorites", "comment": null}, "user_preferences_favorites_wtshown": {"type": "BOOL", "index": 152, "name": "user_preferences_favorites_wtshown", "comment": null}, "user_preferences_global_nav_bar_wtshown": {"type": "BOOL", "index": 153, "name": "user_preferences_global_nav_bar_wtshown", "comment": null}, "user_preferences_global_nav_grid_menu_wtshown": {"type": "BOOL", "index": 154, "name": "user_preferences_global_nav_grid_menu_wtshown", "comment": null}, "user_preferences_hide_bigger_photo_callout": {"type": "BOOL", "index": 155, "name": "user_preferences_hide_bigger_photo_callout", "comment": null}, "user_preferences_hide_end_user_onboarding_assistant_modal": {"type": "BOOL", "index": 156, "name": "user_preferences_hide_end_user_onboarding_assistant_modal", "comment": null}, "user_preferences_hide_lightning_migration_modal": {"type": "BOOL", "index": 157, "name": "user_preferences_hide_lightning_migration_modal", "comment": null}, "user_preferences_hide_sfx_welcome_mat": {"type": "BOOL", "index": 158, "name": "user_preferences_hide_sfx_welcome_mat", "comment": null}, "user_preferences_preview_lightning": {"type": "BOOL", "index": 159, "name": "user_preferences_preview_lightning", "comment": null}, "user_preferences_record_home_reserved_wtshown": {"type": "BOOL", "index": 160, "name": "user_preferences_record_home_reserved_wtshown", "comment": null}, "user_preferences_record_home_section_collapse_wtshown": {"type": "BOOL", "index": 161, "name": "user_preferences_record_home_section_collapse_wtshown", "comment": null}, "pi_can_view_not_assigned_prospects_c": {"type": "BOOL", "index": 162, "name": "pi_can_view_not_assigned_prospects_c", "comment": null}, "pi_pardot_api_key_c": {"type": "STRING", "index": 163, "name": "pi_pardot_api_key_c", "comment": null}, "pi_pardot_api_version_c": {"type": "STRING", "index": 164, "name": "pi_pardot_api_version_c", "comment": null}, "pi_pardot_user_id_c": {"type": "STRING", "index": 165, "name": "pi_pardot_user_id_c", "comment": null}, "pi_pardot_user_key_c": {"type": "STRING", "index": 166, "name": "pi_pardot_user_key_c", "comment": null}, "pi_pardot_user_role_c": {"type": "STRING", "index": 167, "name": "pi_pardot_user_role_c", "comment": null}, "affectlayer_affect_layer_callback_number_label_c": {"type": "STRING", "index": 168, "name": "affectlayer_affect_layer_callback_number_label_c", "comment": null}, "affectlayer_affect_layer_caller_id_label_c": {"type": "STRING", "index": 169, "name": "affectlayer_affect_layer_caller_id_label_c", "comment": null}, "affectlayer_affect_layer_callback_number_c": {"type": "STRING", "index": 170, "name": "affectlayer_affect_layer_callback_number_c", "comment": null}, "affectlayer_affect_layer_caller_id_c": {"type": "STRING", "index": 171, "name": "affectlayer_affect_layer_caller_id_c", "comment": null}, "_fivetran_deleted": {"type": "BOOL", "index": 172, "name": "_fivetran_deleted", "comment": null}, "db_region_c": {"type": "STRING", "index": 173, "name": "db_region_c", "comment": null}, "sbqq_default_product_lookup_tab_c": {"type": "STRING", "index": 174, "name": "sbqq_default_product_lookup_tab_c", "comment": null}, "sbqq_diagnostic_tool_enabled_c": {"type": "BOOL", "index": 175, "name": "sbqq_diagnostic_tool_enabled_c", "comment": null}, "sbqq_output_format_change_allowed_c": {"type": "BOOL", "index": 176, "name": "sbqq_output_format_change_allowed_c", "comment": null}, "sbqq_product_sort_preference_c": {"type": "STRING", "index": 177, "name": "sbqq_product_sort_preference_c", "comment": null}, "sbqq_reset_product_lookup_c": {"type": "BOOL", "index": 178, "name": "sbqq_reset_product_lookup_c", "comment": null}, "sbqq_theme_c": {"type": "STRING", "index": 179, "name": "sbqq_theme_c", "comment": null}, "individual_id": {"type": "STRING", "index": 180, "name": "individual_id", "comment": null}, "user_preferences_has_celebration_badge": {"type": "BOOL", "index": 181, "name": "user_preferences_has_celebration_badge", "comment": null}, "user_preferences_new_lightning_report_run_page_enabled": {"type": "BOOL", "index": 182, "name": "user_preferences_new_lightning_report_run_page_enabled", "comment": null}, "user_preferences_pipeline_view_hide_help_popover": {"type": "BOOL", "index": 183, "name": "user_preferences_pipeline_view_hide_help_popover", "comment": null}, "user_preferences_preview_custom_theme": {"type": "BOOL", "index": 184, "name": "user_preferences_preview_custom_theme", "comment": null}, "user_preferences_suppress_event_sfxreminders": {"type": "BOOL", "index": 185, "name": "user_preferences_suppress_event_sfxreminders", "comment": null}, "user_preferences_suppress_task_sfxreminders": {"type": "BOOL", "index": 186, "name": "user_preferences_suppress_task_sfxreminders", "comment": null}, "user_preferences_user_debug_mode_pref": {"type": "BOOL", "index": 187, "name": "user_preferences_user_debug_mode_pref", "comment": null}, "mkto_si_is_caching_anon_web_activity_list_c": {"type": "BOOL", "index": 188, "name": "mkto_si_is_caching_anon_web_activity_list_c", "comment": null}, "mkto_si_is_caching_best_bets_c": {"type": "BOOL", "index": 189, "name": "mkto_si_is_caching_best_bets_c", "comment": null}, "mkto_si_is_caching_email_activity_list_c": {"type": "BOOL", "index": 190, "name": "mkto_si_is_caching_email_activity_list_c", "comment": null}, "mkto_si_is_caching_grouped_web_activity_list_c": {"type": "BOOL", "index": 191, "name": "mkto_si_is_caching_grouped_web_activity_list_c", "comment": null}, "mkto_si_is_caching_interesting_moments_list_c": {"type": "BOOL", "index": 192, "name": "mkto_si_is_caching_interesting_moments_list_c", "comment": null}, "mkto_si_is_caching_scoring_list_c": {"type": "BOOL", "index": 193, "name": "mkto_si_is_caching_scoring_list_c", "comment": null}, "mkto_si_is_caching_stream_list_c": {"type": "BOOL", "index": 194, "name": "mkto_si_is_caching_stream_list_c", "comment": null}, "mkto_si_is_caching_watch_list_c": {"type": "BOOL", "index": 195, "name": "mkto_si_is_caching_watch_list_c", "comment": null}, "mkto_si_is_caching_web_activity_list_c": {"type": "BOOL", "index": 196, "name": "mkto_si_is_caching_web_activity_list_c", "comment": null}, "mkto_si_sales_insight_counter_c": {"type": "FLOAT64", "index": 197, "name": "mkto_si_sales_insight_counter_c", "comment": null}, "tmd_enable_merge_c": {"type": "BOOL", "index": 198, "name": "tmd_enable_merge_c", "comment": null}, "work_ramp_groups_c": {"type": "STRING", "index": 199, "name": "work_ramp_groups_c", "comment": null}, "new_2_h_role_name_c": {"type": "STRING", "index": 200, "name": "new_2_h_role_name_c", "comment": null}, "vh_customer_success_request_approver_c": {"type": "STRING", "index": 201, "name": "vh_customer_success_request_approver_c", "comment": null}, "vh_customer_support_request_approver_c": {"type": "STRING", "index": 202, "name": "vh_customer_support_request_approver_c", "comment": null}, "vh_engineering_request_approver_c": {"type": "STRING", "index": 203, "name": "vh_engineering_request_approver_c", "comment": null}, "vh_industry_specialist_request_approver_c": {"type": "STRING", "index": 204, "name": "vh_industry_specialist_request_approver_c", "comment": null}, "vh_other_request_approver_c": {"type": "STRING", "index": 205, "name": "vh_other_request_approver_c", "comment": null}, "vh_product_manager_request_approver_c": {"type": "STRING", "index": 206, "name": "vh_product_manager_request_approver_c", "comment": null}, "vh_rfp_specialist_request_approver_c": {"type": "STRING", "index": 207, "name": "vh_rfp_specialist_request_approver_c", "comment": null}, "vh_sales_engineer_request_approver_c": {"type": "STRING", "index": 208, "name": "vh_sales_engineer_request_approver_c", "comment": null}, "vh_sales_support_engineer_request_approver_c": {"type": "STRING", "index": 209, "name": "vh_sales_support_engineer_request_approver_c", "comment": null}, "vh_security_request_approver_c": {"type": "STRING", "index": 210, "name": "vh_security_request_approver_c", "comment": null}, "vh_services_request_approver_c": {"type": "STRING", "index": 211, "name": "vh_services_request_approver_c", "comment": null}, "vh_tech_ops_request_approver_c": {"type": "STRING", "index": 212, "name": "vh_tech_ops_request_approver_c", "comment": null}, "vh_technical_specialist_request_approver_c": {"type": "STRING", "index": 213, "name": "vh_technical_specialist_request_approver_c", "comment": null}, "vh_value_engineer_request_approver_c": {"type": "STRING", "index": 214, "name": "vh_value_engineer_request_approver_c", "comment": null}, "has_been_mapped_to_csm_in_custom_setting_c": {"type": "BOOL", "index": 215, "name": "has_been_mapped_to_csm_in_custom_setting_c", "comment": null}, "number_of_failed_logins": {"type": "INT64", "index": 216, "name": "number_of_failed_logins", "comment": null}, "user_preferences_native_email_client": {"type": "BOOL", "index": 217, "name": "user_preferences_native_email_client", "comment": null}, "user_preferences_receive_no_notifications_as_approver": {"type": "BOOL", "index": 218, "name": "user_preferences_receive_no_notifications_as_approver", "comment": null}, "user_preferences_receive_notifications_as_delegated_approver": {"type": "BOOL", "index": 219, "name": "user_preferences_receive_notifications_as_delegated_approver", "comment": null}, "user_preferences_srhoverride_activities": {"type": "BOOL", "index": 220, "name": "user_preferences_srhoverride_activities", "comment": null}, "sync_to_spiff_c": {"type": "BOOL", "index": 221, "name": "sync_to_spiff_c", "comment": null}, "user_preferences_hide_statements_redirect_confirmation": {"type": "BOOL", "index": 222, "name": "user_preferences_hide_statements_redirect_confirmation", "comment": null}, "user_preferences_hide_invoices_redirect_confirmation": {"type": "BOOL", "index": 223, "name": "user_preferences_hide_invoices_redirect_confirmation", "comment": null}, "user_preferences_hide_browse_product_redirect_confirmation": {"type": "BOOL", "index": 224, "name": "user_preferences_hide_browse_product_redirect_confirmation", "comment": null}, "user_preferences_hide_online_sales_app_welcome_mat": {"type": "BOOL", "index": 225, "name": "user_preferences_hide_online_sales_app_welcome_mat", "comment": null}, "user_preferences_send_list_email_through_external_service": {"type": "BOOL", "index": 226, "name": "user_preferences_send_list_email_through_external_service", "comment": null}, "user_preferences_reverse_open_activities_view": {"type": "BOOL", "index": 227, "name": "user_preferences_reverse_open_activities_view", "comment": null}, "csm_manager_c": {"type": "BOOL", "index": 228, "name": "csm_manager_c", "comment": null}, "legacy_hvr_id_c": {"type": "STRING", "index": 229, "name": "legacy_hvr_id_c", "comment": null}, "installed_package_licenses_auto_applied_c": {"type": "BOOL", "index": 230, "name": "installed_package_licenses_auto_applied_c", "comment": null}, "csm_skip_director_approval_c": {"type": "BOOL", "index": 231, "name": "csm_skip_director_approval_c", "comment": null}, "user_preferences_show_forecasting_change_signals": {"type": "BOOL", "index": 232, "name": "user_preferences_show_forecasting_change_signals", "comment": null}, "user_preferences_has_sent_warning_email": {"type": "BOOL", "index": 233, "name": "user_preferences_has_sent_warning_email", "comment": null}, "vivun_approvers_auto_created_c": {"type": "BOOL", "index": 234, "name": "vivun_approvers_auto_created_c", "comment": null}, "vivun_alert_sent_c": {"type": "BOOL", "index": 235, "name": "vivun_alert_sent_c", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 952650.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 1055.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.salesforce_source.salesforce.user"}, "source.salesforce_source.salesforce.event": {"metadata": {"type": "table", "schema": "salesforce", "name": "event", "database": "fivetran", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 2, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "STRING", "index": 3, "name": "account_id", "comment": null}, "activity_date": {"type": "TIMESTAMP", "index": 4, "name": "activity_date", "comment": null}, "activity_date_time": {"type": "TIMESTAMP", "index": 5, "name": "activity_date_time", "comment": null}, "created_by_id": {"type": "STRING", "index": 6, "name": "created_by_id", "comment": null}, "created_date": {"type": "TIMESTAMP", "index": 7, "name": "created_date", "comment": null}, "description": {"type": "STRING", "index": 8, "name": "description", "comment": null}, "duration_in_minutes": {"type": "INT64", "index": 9, "name": "duration_in_minutes", "comment": null}, "end_date_time": {"type": "TIMESTAMP", "index": 10, "name": "end_date_time", "comment": null}, "event_subtype": {"type": "STRING", "index": 11, "name": "event_subtype", "comment": null}, "group_event_type": {"type": "STRING", "index": 12, "name": "group_event_type", "comment": null}, "invitee_uuid_c": {"type": "STRING", "index": 13, "name": "invitee_uuid_c", "comment": null}, "is_child": {"type": "BOOL", "index": 14, "name": "is_child", "comment": null}, "is_deleted": {"type": "BOOL", "index": 15, "name": "is_deleted", "comment": null}, "is_group_event": {"type": "BOOL", "index": 16, "name": "is_group_event", "comment": null}, "is_private": {"type": "BOOL", "index": 17, "name": "is_private", "comment": null}, "is_recurrence": {"type": "BOOL", "index": 18, "name": "is_recurrence", "comment": null}, "is_reminder_set": {"type": "BOOL", "index": 19, "name": "is_reminder_set", "comment": null}, "last_modified_by_id": {"type": "STRING", "index": 20, "name": "last_modified_by_id", "comment": null}, "last_modified_date": {"type": "TIMESTAMP", "index": 21, "name": "last_modified_date", "comment": null}, "location": {"type": "STRING", "index": 22, "name": "location", "comment": null}, "no_show_c": {"type": "BOOL", "index": 23, "name": "no_show_c", "comment": null}, "owner_id": {"type": "STRING", "index": 24, "name": "owner_id", "comment": null}, "recurrence_activity_id": {"type": "STRING", "index": 25, "name": "recurrence_activity_id", "comment": null}, "recurrence_day_of_month": {"type": "INT64", "index": 26, "name": "recurrence_day_of_month", "comment": null}, "recurrence_day_of_week_mask": {"type": "INT64", "index": 27, "name": "recurrence_day_of_week_mask", "comment": null}, "recurrence_end_date_only": {"type": "TIMESTAMP", "index": 28, "name": "recurrence_end_date_only", "comment": null}, "recurrence_instance": {"type": "STRING", "index": 29, "name": "recurrence_instance", "comment": null}, "recurrence_interval": {"type": "INT64", "index": 30, "name": "recurrence_interval", "comment": null}, "recurrence_month_of_year": {"type": "STRING", "index": 31, "name": "recurrence_month_of_year", "comment": null}, "recurrence_start_date_time": {"type": "TIMESTAMP", "index": 32, "name": "recurrence_start_date_time", "comment": null}, "recurrence_time_zone_sid_key": {"type": "STRING", "index": 33, "name": "recurrence_time_zone_sid_key", "comment": null}, "recurrence_type": {"type": "STRING", "index": 34, "name": "recurrence_type", "comment": null}, "referral_account_c": {"type": "STRING", "index": 35, "name": "referral_account_c", "comment": null}, "referral_contact_c": {"type": "STRING", "index": 36, "name": "referral_contact_c", "comment": null}, "reminder_date_time": {"type": "TIMESTAMP", "index": 37, "name": "reminder_date_time", "comment": null}, "show_as": {"type": "STRING", "index": 38, "name": "show_as", "comment": null}, "start_date_time": {"type": "TIMESTAMP", "index": 39, "name": "start_date_time", "comment": null}, "subject": {"type": "STRING", "index": 40, "name": "subject", "comment": null}, "system_modstamp": {"type": "TIMESTAMP", "index": 41, "name": "system_modstamp", "comment": null}, "type": {"type": "STRING", "index": 42, "name": "type", "comment": null}, "what_count": {"type": "INT64", "index": 43, "name": "what_count", "comment": null}, "what_id": {"type": "STRING", "index": 44, "name": "what_id", "comment": null}, "who_count": {"type": "INT64", "index": 45, "name": "who_count", "comment": null}, "who_id": {"type": "STRING", "index": 46, "name": "who_id", "comment": null}, "first_meeting_held_c": {"type": "BOOL", "index": 47, "name": "first_meeting_held_c", "comment": null}, "associated_sdr_c": {"type": "STRING", "index": 48, "name": "associated_sdr_c", "comment": null}, "first_meeting_c": {"type": "BOOL", "index": 49, "name": "first_meeting_c", "comment": null}, "call_recording_c": {"type": "STRING", "index": 50, "name": "call_recording_c", "comment": null}, "affectlayer_chorus_call_id_c": {"type": "STRING", "index": 51, "name": "affectlayer_chorus_call_id_c", "comment": null}, "affectlayer_affect_layer_call_id_c": {"type": "STRING", "index": 52, "name": "affectlayer_affect_layer_call_id_c", "comment": null}, "last_rep_activity_date_c": {"type": "TIMESTAMP", "index": 53, "name": "last_rep_activity_date_c", "comment": null}, "lid_url_c": {"type": "STRING", "index": 54, "name": "lid_url_c", "comment": null}, "lid_date_sent_c": {"type": "TIMESTAMP", "index": 55, "name": "lid_date_sent_c", "comment": null}, "sales_loft_step_id_c": {"type": "STRING", "index": 56, "name": "sales_loft_step_id_c", "comment": null}, "sales_loft_step_name_c": {"type": "STRING", "index": 57, "name": "sales_loft_step_name_c", "comment": null}, "sales_loft_step_type_c": {"type": "STRING", "index": 58, "name": "sales_loft_step_type_c", "comment": null}, "sales_loft_email_template_id_c": {"type": "STRING", "index": 59, "name": "sales_loft_email_template_id_c", "comment": null}, "sales_loft_external_identifier_c": {"type": "STRING", "index": 60, "name": "sales_loft_external_identifier_c", "comment": null}, "sales_loft_cadence_id_c": {"type": "STRING", "index": 61, "name": "sales_loft_cadence_id_c", "comment": null}, "sales_loft_clicked_count_c": {"type": "FLOAT64", "index": 62, "name": "sales_loft_clicked_count_c", "comment": null}, "sales_loft_cadence_name_c": {"type": "STRING", "index": 63, "name": "sales_loft_cadence_name_c", "comment": null}, "sales_loft_reply_count_c": {"type": "FLOAT64", "index": 64, "name": "sales_loft_reply_count_c", "comment": null}, "call_disposition_c": {"type": "STRING", "index": 65, "name": "call_disposition_c", "comment": null}, "sales_loft_email_template_title_c": {"type": "STRING", "index": 66, "name": "sales_loft_email_template_title_c", "comment": null}, "sales_loft_step_day_new_c": {"type": "FLOAT64", "index": 67, "name": "sales_loft_step_day_new_c", "comment": null}, "call_disposition_2_c": {"type": "STRING", "index": 68, "name": "call_disposition_2_c", "comment": null}, "sales_loft_viewed_count_c": {"type": "FLOAT64", "index": 69, "name": "sales_loft_viewed_count_c", "comment": null}, "sales_loft_1_sales_loft_step_day_c": {"type": "FLOAT64", "index": 70, "name": "sales_loft_1_sales_loft_step_day_c", "comment": null}, "sales_loft_1_sales_loft_clicked_count_c": {"type": "FLOAT64", "index": 71, "name": "sales_loft_1_sales_loft_clicked_count_c", "comment": null}, "sales_loft_1_sales_loft_view_count_c": {"type": "FLOAT64", "index": 72, "name": "sales_loft_1_sales_loft_view_count_c", "comment": null}, "sales_loft_1_call_disposition_c": {"type": "STRING", "index": 73, "name": "sales_loft_1_call_disposition_c", "comment": null}, "sales_loft_1_sales_loft_replies_count_c": {"type": "FLOAT64", "index": 74, "name": "sales_loft_1_sales_loft_replies_count_c", "comment": null}, "sales_loft_1_sales_loft_cadence_name_c": {"type": "STRING", "index": 75, "name": "sales_loft_1_sales_loft_cadence_name_c", "comment": null}, "sales_loft_1_call_sentiment_c": {"type": "STRING", "index": 76, "name": "sales_loft_1_call_sentiment_c", "comment": null}, "sales_loft_1_sales_loft_email_template_title_c": {"type": "STRING", "index": 77, "name": "sales_loft_1_sales_loft_email_template_title_c", "comment": null}, "is_recurrence_2": {"type": "BOOL", "index": 78, "name": "is_recurrence_2", "comment": null}, "is_recurrence_2_exception": {"type": "BOOL", "index": 79, "name": "is_recurrence_2_exception", "comment": null}, "is_recurrence_2_exclusion": {"type": "BOOL", "index": 80, "name": "is_recurrence_2_exclusion", "comment": null}, "recurrence_2_pattern_start_date": {"type": "TIMESTAMP", "index": 81, "name": "recurrence_2_pattern_start_date", "comment": null}, "recurrence_2_pattern_text": {"type": "STRING", "index": 82, "name": "recurrence_2_pattern_text", "comment": null}, "recurrence_2_pattern_time_zone": {"type": "STRING", "index": 83, "name": "recurrence_2_pattern_time_zone", "comment": null}, "recurrence_2_pattern_version": {"type": "STRING", "index": 84, "name": "recurrence_2_pattern_version", "comment": null}, "co_selling_activity_c": {"type": "STRING", "index": 85, "name": "co_selling_activity_c", "comment": null}, "is_a_co_sell_activity_c": {"type": "BOOL", "index": 86, "name": "is_a_co_sell_activity_c", "comment": null}, "partner_contact_c": {"type": "STRING", "index": 87, "name": "partner_contact_c", "comment": null}, "description_c": {"type": "STRING", "index": 88, "name": "description_c", "comment": null}, "campaign_c": {"type": "STRING", "index": 89, "name": "campaign_c", "comment": null}, "event_name_c": {"type": "STRING", "index": 90, "name": "event_name_c", "comment": null}, "partner_account_c": {"type": "STRING", "index": 91, "name": "partner_account_c", "comment": null}, "topic_c": {"type": "STRING", "index": 92, "name": "topic_c", "comment": null}, "attendance_number_c": {"type": "FLOAT64", "index": 93, "name": "attendance_number_c", "comment": null}, "partner_activity_type_c": {"type": "STRING", "index": 94, "name": "partner_activity_type_c", "comment": null}, "how_did_you_bring_value_or_create_trust_c": {"type": "STRING", "index": 95, "name": "how_did_you_bring_value_or_create_trust_c", "comment": null}, "proof_of_referral_c": {"type": "STRING", "index": 96, "name": "proof_of_referral_c", "comment": null}, "how_did_you_bring_value_or_earn_trust_c": {"type": "STRING", "index": 97, "name": "how_did_you_bring_value_or_earn_trust_c", "comment": null}, "duration_in_minutes_c": {"type": "FLOAT64", "index": 98, "name": "duration_in_minutes_c", "comment": null}, "vidyard_c": {"type": "BOOL", "index": 99, "name": "vidyard_c", "comment": null}, "collections_hold_c": {"type": "BOOL", "index": 100, "name": "collections_hold_c", "comment": null}, "execute_collections_plan_activity_c": {"type": "BOOL", "index": 101, "name": "execute_collections_plan_activity_c", "comment": null}, "expected_payment_date_c": {"type": "TIMESTAMP", "index": 102, "name": "expected_payment_date_c", "comment": null}, "end_date": {"type": "TIMESTAMP", "index": 103, "name": "end_date", "comment": null}, "opportunity_c": {"type": "STRING", "index": 104, "name": "opportunity_c", "comment": null}, "meeting_type_c": {"type": "STRING", "index": 105, "name": "meeting_type_c", "comment": null}, "meeting_name_c": {"type": "STRING", "index": 106, "name": "meeting_name_c", "comment": null}, "bizible_2_bizible_id_c": {"type": "STRING", "index": 107, "name": "bizible_2_bizible_id_c", "comment": null}, "bizible_2_bizible_touchpoint_date_c": {"type": "TIMESTAMP", "index": 108, "name": "bizible_2_bizible_touchpoint_date_c", "comment": null}, "assigned_to_role_c": {"type": "STRING", "index": 109, "name": "assigned_to_role_c", "comment": null}, "assigned_to_name_c": {"type": "STRING", "index": 110, "name": "assigned_to_name_c", "comment": null}, "legacy_hvr_id_c": {"type": "STRING", "index": 111, "name": "legacy_hvr_id_c", "comment": null}, "is_archived": {"type": "BOOL", "index": 112, "name": "is_archived", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 32437946.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 106671.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.salesforce_source.salesforce.event"}, "source.salesforce_source.salesforce.product_2": {"metadata": {"type": "table", "schema": "salesforce", "name": "product_2", "database": "fivetran", "comment": null, "owner": null}, "columns": {"last_referenced_date": {"type": "TIMESTAMP", "index": 1, "name": "last_referenced_date", "comment": null}, "is_active": {"type": "BOOL", "index": 2, "name": "is_active", "comment": null}, "description": {"type": "STRING", "index": 3, "name": "description", "comment": null}, "last_modified_date": {"type": "TIMESTAMP", "index": 4, "name": "last_modified_date", "comment": null}, "record_type_id": {"type": "STRING", "index": 5, "name": "record_type_id", "comment": null}, "product_code": {"type": "STRING", "index": 6, "name": "product_code", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 7, "name": "_fivetran_synced", "comment": null}, "last_viewed_date": {"type": "TIMESTAMP", "index": 8, "name": "last_viewed_date", "comment": null}, "is_deleted": {"type": "BOOL", "index": 9, "name": "is_deleted", "comment": null}, "last_modified_by_id": {"type": "STRING", "index": 10, "name": "last_modified_by_id", "comment": null}, "system_modstamp": {"type": "TIMESTAMP", "index": 11, "name": "system_modstamp", "comment": null}, "name": {"type": "STRING", "index": 12, "name": "name", "comment": null}, "id": {"type": "STRING", "index": 13, "name": "id", "comment": null}, "created_by_id": {"type": "STRING", "index": 14, "name": "created_by_id", "comment": null}, "created_date": {"type": "TIMESTAMP", "index": 15, "name": "created_date", "comment": null}, "family": {"type": "STRING", "index": 16, "name": "family", "comment": null}, "max_volume_c": {"type": "FLOAT64", "index": 17, "name": "max_volume_c", "comment": null}, "min_volume_c": {"type": "FLOAT64", "index": 18, "name": "min_volume_c", "comment": null}, "request_name_c": {"type": "STRING", "index": 19, "name": "request_name_c", "comment": null}, "default_quantity_c": {"type": "FLOAT64", "index": 20, "name": "default_quantity_c", "comment": null}, "account_c": {"type": "STRING", "index": 21, "name": "account_c", "comment": null}, "related_product_c": {"type": "STRING", "index": 22, "name": "related_product_c", "comment": null}, "picklist_value_c": {"type": "STRING", "index": 23, "name": "picklist_value_c", "comment": null}, "as_input_c": {"type": "BOOL", "index": 24, "name": "as_input_c", "comment": null}, "as_output_c": {"type": "BOOL", "index": 25, "name": "as_output_c", "comment": null}, "status_c": {"type": "STRING", "index": 26, "name": "status_c", "comment": null}, "number_of_quantity_installments": {"type": "INT64", "index": 27, "name": "number_of_quantity_installments", "comment": null}, "number_of_revenue_installments": {"type": "INT64", "index": 28, "name": "number_of_revenue_installments", "comment": null}, "quantity_installment_period": {"type": "STRING", "index": 29, "name": "quantity_installment_period", "comment": null}, "quantity_schedule_type": {"type": "STRING", "index": 30, "name": "quantity_schedule_type", "comment": null}, "revenue_installment_period": {"type": "STRING", "index": 31, "name": "revenue_installment_period", "comment": null}, "revenue_schedule_type": {"type": "STRING", "index": 32, "name": "revenue_schedule_type", "comment": null}, "connections_c": {"type": "STRING", "index": 33, "name": "connections_c", "comment": null}, "event_volume_c": {"type": "STRING", "index": 34, "name": "event_volume_c", "comment": null}, "roadmap_connections_c": {"type": "FLOAT64", "index": 35, "name": "roadmap_connections_c", "comment": null}, "row_volume_c": {"type": "STRING", "index": 36, "name": "row_volume_c", "comment": null}, "display_url": {"type": "STRING", "index": 37, "name": "display_url", "comment": null}, "external_data_source_id": {"type": "STRING", "index": 38, "name": "external_data_source_id", "comment": null}, "external_id": {"type": "STRING", "index": 39, "name": "external_id", "comment": null}, "quantity_unit_of_measure": {"type": "STRING", "index": 40, "name": "quantity_unit_of_measure", "comment": null}, "stock_keeping_unit": {"type": "STRING", "index": 41, "name": "stock_keeping_unit", "comment": null}, "features_c": {"type": "STRING", "index": 42, "name": "features_c", "comment": null}, "tier_3_price_c": {"type": "FLOAT64", "index": 43, "name": "tier_3_price_c", "comment": null}, "tier_2_price_c": {"type": "FLOAT64", "index": 44, "name": "tier_2_price_c", "comment": null}, "tier_4_price_c": {"type": "FLOAT64", "index": 45, "name": "tier_4_price_c", "comment": null}, "tier_1_price_c": {"type": "FLOAT64", "index": 46, "name": "tier_1_price_c", "comment": null}, "netsuite_conn_sync_in_progress_c": {"type": "BOOL", "index": 47, "name": "netsuite_conn_sync_in_progress_c", "comment": null}, "netsuite_conn_celigo_update_c": {"type": "BOOL", "index": 48, "name": "netsuite_conn_celigo_update_c", "comment": null}, "netsuite_conn_term_contract_pricing_type_c": {"type": "STRING", "index": 49, "name": "netsuite_conn_term_contract_pricing_type_c", "comment": null}, "netsuite_conn_net_suite_id_c": {"type": "STRING", "index": 50, "name": "netsuite_conn_net_suite_id_c", "comment": null}, "netsuite_conn_net_suite_sync_err_c": {"type": "STRING", "index": 51, "name": "netsuite_conn_net_suite_sync_err_c", "comment": null}, "netsuite_conn_push_to_net_suite_c": {"type": "BOOL", "index": 52, "name": "netsuite_conn_push_to_net_suite_c", "comment": null}, "netsuite_conn_item_category_c": {"type": "STRING", "index": 53, "name": "netsuite_conn_item_category_c", "comment": null}, "netsuite_conn_net_suite_item_type_c": {"type": "STRING", "index": 54, "name": "netsuite_conn_net_suite_item_type_c", "comment": null}, "netsuite_conn_sub_type_c": {"type": "STRING", "index": 55, "name": "netsuite_conn_sub_type_c", "comment": null}, "is_new_c": {"type": "BOOL", "index": 56, "name": "is_new_c", "comment": null}, "product_metadata_c": {"type": "STRING", "index": 57, "name": "product_metadata_c", "comment": null}, "product_metadata_del_c": {"type": "STRING", "index": 58, "name": "product_metadata_del_c", "comment": null}, "sbqq_asset_amendment_behavior_c": {"type": "STRING", "index": 59, "name": "sbqq_asset_amendment_behavior_c", "comment": null}, "sbqq_asset_conversion_c": {"type": "STRING", "index": 60, "name": "sbqq_asset_conversion_c", "comment": null}, "sbqq_batch_quantity_c": {"type": "FLOAT64", "index": 61, "name": "sbqq_batch_quantity_c", "comment": null}, "sbqq_billing_frequency_c": {"type": "STRING", "index": 62, "name": "sbqq_billing_frequency_c", "comment": null}, "sbqq_billing_type_c": {"type": "STRING", "index": 63, "name": "sbqq_billing_type_c", "comment": null}, "sbqq_block_pricing_field_c": {"type": "STRING", "index": 64, "name": "sbqq_block_pricing_field_c", "comment": null}, "sbqq_charge_type_c": {"type": "STRING", "index": 65, "name": "sbqq_charge_type_c", "comment": null}, "sbqq_component_c": {"type": "BOOL", "index": 66, "name": "sbqq_component_c", "comment": null}, "sbqq_compound_discount_rate_c": {"type": "FLOAT64", "index": 67, "name": "sbqq_compound_discount_rate_c", "comment": null}, "sbqq_configuration_event_c": {"type": "STRING", "index": 68, "name": "sbqq_configuration_event_c", "comment": null}, "sbqq_configuration_field_set_c": {"type": "STRING", "index": 69, "name": "sbqq_configuration_field_set_c", "comment": null}, "sbqq_configuration_fields_c": {"type": "STRING", "index": 70, "name": "sbqq_configuration_fields_c", "comment": null}, "sbqq_configuration_form_title_c": {"type": "STRING", "index": 71, "name": "sbqq_configuration_form_title_c", "comment": null}, "sbqq_configuration_type_c": {"type": "STRING", "index": 72, "name": "sbqq_configuration_type_c", "comment": null}, "sbqq_configuration_validator_c": {"type": "STRING", "index": 73, "name": "sbqq_configuration_validator_c", "comment": null}, "sbqq_configured_code_pattern_c": {"type": "STRING", "index": 74, "name": "sbqq_configured_code_pattern_c", "comment": null}, "sbqq_configured_description_pattern_c": {"type": "STRING", "index": 75, "name": "sbqq_configured_description_pattern_c", "comment": null}, "sbqq_cost_editable_c": {"type": "BOOL", "index": 76, "name": "sbqq_cost_editable_c", "comment": null}, "sbqq_cost_schedule_c": {"type": "STRING", "index": 77, "name": "sbqq_cost_schedule_c", "comment": null}, "sbqq_custom_configuration_page_c": {"type": "STRING", "index": 78, "name": "sbqq_custom_configuration_page_c", "comment": null}, "sbqq_custom_configuration_required_c": {"type": "BOOL", "index": 79, "name": "sbqq_custom_configuration_required_c", "comment": null}, "sbqq_customer_community_availability_c": {"type": "STRING", "index": 80, "name": "sbqq_customer_community_availability_c", "comment": null}, "sbqq_default_pricing_table_c": {"type": "STRING", "index": 81, "name": "sbqq_default_pricing_table_c", "comment": null}, "sbqq_default_quantity_c": {"type": "FLOAT64", "index": 82, "name": "sbqq_default_quantity_c", "comment": null}, "sbqq_description_locked_c": {"type": "BOOL", "index": 83, "name": "sbqq_description_locked_c", "comment": null}, "sbqq_discount_category_c": {"type": "STRING", "index": 84, "name": "sbqq_discount_category_c", "comment": null}, "sbqq_discount_schedule_c": {"type": "STRING", "index": 85, "name": "sbqq_discount_schedule_c", "comment": null}, "sbqq_dynamic_pricing_constraint_c": {"type": "STRING", "index": 86, "name": "sbqq_dynamic_pricing_constraint_c", "comment": null}, "sbqq_exclude_from_maintenance_c": {"type": "BOOL", "index": 87, "name": "sbqq_exclude_from_maintenance_c", "comment": null}, "sbqq_exclude_from_opportunity_c": {"type": "BOOL", "index": 88, "name": "sbqq_exclude_from_opportunity_c", "comment": null}, "sbqq_externally_configurable_c": {"type": "BOOL", "index": 89, "name": "sbqq_externally_configurable_c", "comment": null}, "sbqq_generate_contracted_price_c": {"type": "STRING", "index": 90, "name": "sbqq_generate_contracted_price_c", "comment": null}, "sbqq_has_configuration_attributes_c": {"type": "BOOL", "index": 91, "name": "sbqq_has_configuration_attributes_c", "comment": null}, "sbqq_has_consumption_schedule_c": {"type": "BOOL", "index": 92, "name": "sbqq_has_consumption_schedule_c", "comment": null}, "sbqq_hidden_c": {"type": "BOOL", "index": 93, "name": "sbqq_hidden_c", "comment": null}, "sbqq_hide_price_in_search_results_c": {"type": "BOOL", "index": 94, "name": "sbqq_hide_price_in_search_results_c", "comment": null}, "sbqq_include_in_maintenance_c": {"type": "BOOL", "index": 95, "name": "sbqq_include_in_maintenance_c", "comment": null}, "sbqq_new_quote_group_c": {"type": "BOOL", "index": 96, "name": "sbqq_new_quote_group_c", "comment": null}, "sbqq_non_discountable_c": {"type": "BOOL", "index": 97, "name": "sbqq_non_discountable_c", "comment": null}, "sbqq_non_partner_discountable_c": {"type": "BOOL", "index": 98, "name": "sbqq_non_partner_discountable_c", "comment": null}, "sbqq_option_layout_c": {"type": "STRING", "index": 99, "name": "sbqq_option_layout_c", "comment": null}, "sbqq_option_selection_method_c": {"type": "STRING", "index": 100, "name": "sbqq_option_selection_method_c", "comment": null}, "sbqq_optional_c": {"type": "BOOL", "index": 101, "name": "sbqq_optional_c", "comment": null}, "sbqq_price_editable_c": {"type": "BOOL", "index": 102, "name": "sbqq_price_editable_c", "comment": null}, "sbqq_pricing_method_c": {"type": "STRING", "index": 103, "name": "sbqq_pricing_method_c", "comment": null}, "sbqq_pricing_method_editable_c": {"type": "BOOL", "index": 104, "name": "sbqq_pricing_method_editable_c", "comment": null}, "sbqq_product_picture_id_c": {"type": "STRING", "index": 105, "name": "sbqq_product_picture_id_c", "comment": null}, "sbqq_quantity_editable_c": {"type": "BOOL", "index": 106, "name": "sbqq_quantity_editable_c", "comment": null}, "sbqq_quantity_scale_c": {"type": "FLOAT64", "index": 107, "name": "sbqq_quantity_scale_c", "comment": null}, "sbqq_reconfiguration_disabled_c": {"type": "BOOL", "index": 108, "name": "sbqq_reconfiguration_disabled_c", "comment": null}, "sbqq_renewal_product_c": {"type": "STRING", "index": 109, "name": "sbqq_renewal_product_c", "comment": null}, "sbqq_sort_order_c": {"type": "FLOAT64", "index": 110, "name": "sbqq_sort_order_c", "comment": null}, "sbqq_specifications_c": {"type": "STRING", "index": 111, "name": "sbqq_specifications_c", "comment": null}, "sbqq_subscription_base_c": {"type": "STRING", "index": 112, "name": "sbqq_subscription_base_c", "comment": null}, "sbqq_subscription_category_c": {"type": "STRING", "index": 113, "name": "sbqq_subscription_category_c", "comment": null}, "sbqq_subscription_percent_c": {"type": "FLOAT64", "index": 114, "name": "sbqq_subscription_percent_c", "comment": null}, "sbqq_subscription_pricing_c": {"type": "STRING", "index": 115, "name": "sbqq_subscription_pricing_c", "comment": null}, "sbqq_subscription_target_c": {"type": "STRING", "index": 116, "name": "sbqq_subscription_target_c", "comment": null}, "sbqq_subscription_term_c": {"type": "FLOAT64", "index": 117, "name": "sbqq_subscription_term_c", "comment": null}, "sbqq_subscription_type_c": {"type": "STRING", "index": 118, "name": "sbqq_subscription_type_c", "comment": null}, "sbqq_tax_code_c": {"type": "STRING", "index": 119, "name": "sbqq_tax_code_c", "comment": null}, "sbqq_taxable_c": {"type": "BOOL", "index": 120, "name": "sbqq_taxable_c", "comment": null}, "sbqq_term_discount_level_c": {"type": "STRING", "index": 121, "name": "sbqq_term_discount_level_c", "comment": null}, "sbqq_term_discount_schedule_c": {"type": "STRING", "index": 122, "name": "sbqq_term_discount_schedule_c", "comment": null}, "sbqq_upgrade_credit_c": {"type": "STRING", "index": 123, "name": "sbqq_upgrade_credit_c", "comment": null}, "sbqq_upgrade_ratio_c": {"type": "FLOAT64", "index": 124, "name": "sbqq_upgrade_ratio_c", "comment": null}, "sbqq_upgrade_source_c": {"type": "STRING", "index": 125, "name": "sbqq_upgrade_source_c", "comment": null}, "sbqq_upgrade_target_c": {"type": "STRING", "index": 126, "name": "sbqq_upgrade_target_c", "comment": null}, "connector_type_c": {"type": "STRING", "index": 127, "name": "connector_type_c", "comment": null}, "pbf_pro_type_discount_c": {"type": "BOOL", "index": 128, "name": "pbf_pro_type_discount_c", "comment": null}, "dimension_c": {"type": "STRING", "index": 129, "name": "dimension_c", "comment": null}, "connector_status_c": {"type": "STRING", "index": 130, "name": "connector_status_c", "comment": null}, "dimension_definition_c": {"type": "STRING", "index": 131, "name": "dimension_definition_c", "comment": null}, "ava_sfcpq_tax_code_c": {"type": "STRING", "index": 132, "name": "ava_sfcpq_tax_code_c", "comment": null}, "paid_consumption_c": {"type": "STRING", "index": 133, "name": "paid_consumption_c", "comment": null}, "is_complimentary_c": {"type": "BOOL", "index": 134, "name": "is_complimentary_c", "comment": null}, "product_external_id_c": {"type": "FLOAT64", "index": 135, "name": "product_external_id_c", "comment": null}, "blng_billing_rule_c": {"type": "STRING", "index": 136, "name": "blng_billing_rule_c", "comment": null}, "blng_revenue_recognition_rule_c": {"type": "STRING", "index": 137, "name": "blng_revenue_recognition_rule_c", "comment": null}, "blng_tax_rule_c": {"type": "STRING", "index": 138, "name": "blng_tax_rule_c", "comment": null}, "deployment_date_c": {"type": "TIMESTAMP", "index": 139, "name": "deployment_date_c", "comment": null}, "do_not_prorate_c": {"type": "BOOL", "index": 140, "name": "do_not_prorate_c", "comment": null}, "celigo_sfnsio_netsuite_id_c": {"type": "STRING", "index": 141, "name": "celigo_sfnsio_netsuite_id_c", "comment": null}, "sbqq_enable_large_configuration_c": {"type": "BOOL", "index": 142, "name": "sbqq_enable_large_configuration_c", "comment": null}, "sbqq_pricing_guidance_c": {"type": "STRING", "index": 143, "name": "sbqq_pricing_guidance_c", "comment": null}, "celigo_sfnsio_item_pricing_type_c": {"type": "STRING", "index": 144, "name": "celigo_sfnsio_item_pricing_type_c", "comment": null}, "celigo_sfnsio_test_mode_record_c": {"type": "BOOL", "index": 145, "name": "celigo_sfnsio_test_mode_record_c", "comment": null}, "celigo_sfnsio_celigo_last_modified_date_c": {"type": "TIMESTAMP", "index": 146, "name": "celigo_sfnsio_celigo_last_modified_date_c", "comment": null}, "celigo_sfnsio_net_suite_record_c": {"type": "STRING", "index": 147, "name": "celigo_sfnsio_net_suite_record_c", "comment": null}, "celigo_sfnsio_skip_export_to_net_suite_c": {"type": "BOOL", "index": 148, "name": "celigo_sfnsio_skip_export_to_net_suite_c", "comment": null}, "celigo_sfnsio_net_suite_item_type_c": {"type": "STRING", "index": 149, "name": "celigo_sfnsio_net_suite_item_type_c", "comment": null}, "celigo_sfnsio_net_suite_id_c": {"type": "STRING", "index": 150, "name": "celigo_sfnsio_net_suite_id_c", "comment": null}, "promo_code_c": {"type": "STRING", "index": 151, "name": "promo_code_c", "comment": null}, "product_category_c": {"type": "STRING", "index": 152, "name": "product_category_c", "comment": null}, "product_source_c": {"type": "STRING", "index": 153, "name": "product_source_c", "comment": null}, "non_recurring_c": {"type": "BOOL", "index": 154, "name": "non_recurring_c", "comment": null}, "is_archived": {"type": "BOOL", "index": 155, "name": "is_archived", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 747748.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 1188.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.salesforce_source.salesforce.product_2"}, "source.salesforce_source.salesforce.contact": {"metadata": {"type": "table", "schema": "salesforce", "name": "contact", "database": "fivetran", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 2, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "STRING", "index": 3, "name": "account_id", "comment": null}, "cbit_clearbit_c": {"type": "STRING", "index": 4, "name": "cbit_clearbit_c", "comment": null}, "cbit_clearbit_ready_c": {"type": "BOOL", "index": 5, "name": "cbit_clearbit_ready_c", "comment": null}, "created_by_id": {"type": "STRING", "index": 6, "name": "created_by_id", "comment": null}, "created_date": {"type": "TIMESTAMP", "index": 7, "name": "created_date", "comment": null}, "department": {"type": "STRING", "index": 8, "name": "department", "comment": null}, "email": {"type": "STRING", "index": 9, "name": "email", "comment": null}, "email_bounced_date": {"type": "TIMESTAMP", "index": 10, "name": "email_bounced_date", "comment": null}, "email_bounced_reason": {"type": "STRING", "index": 11, "name": "email_bounced_reason", "comment": null}, "fax": {"type": "STRING", "index": 12, "name": "fax", "comment": null}, "first_name": {"type": "STRING", "index": 13, "name": "first_name", "comment": null}, "is_deleted": {"type": "BOOL", "index": 14, "name": "is_deleted", "comment": null}, "is_email_bounced": {"type": "BOOL", "index": 15, "name": "is_email_bounced", "comment": null}, "jigsaw_contact_id": {"type": "STRING", "index": 16, "name": "jigsaw_contact_id", "comment": null}, "last_activity_date": {"type": "TIMESTAMP", "index": 17, "name": "last_activity_date", "comment": null}, "last_curequest_date": {"type": "TIMESTAMP", "index": 18, "name": "last_curequest_date", "comment": null}, "last_cuupdate_date": {"type": "TIMESTAMP", "index": 19, "name": "last_cuupdate_date", "comment": null}, "last_modified_by_id": {"type": "STRING", "index": 20, "name": "last_modified_by_id", "comment": null}, "last_modified_date": {"type": "TIMESTAMP", "index": 21, "name": "last_modified_date", "comment": null}, "last_name": {"type": "STRING", "index": 22, "name": "last_name", "comment": null}, "last_referenced_date": {"type": "TIMESTAMP", "index": 23, "name": "last_referenced_date", "comment": null}, "last_viewed_date": {"type": "TIMESTAMP", "index": 24, "name": "last_viewed_date", "comment": null}, "mailing_city": {"type": "STRING", "index": 25, "name": "mailing_city", "comment": null}, "mailing_country": {"type": "STRING", "index": 26, "name": "mailing_country", "comment": null}, "mailing_country_code": {"type": "STRING", "index": 27, "name": "mailing_country_code", "comment": null}, "mailing_geocode_accuracy": {"type": "STRING", "index": 28, "name": "mailing_geocode_accuracy", "comment": null}, "mailing_latitude": {"type": "FLOAT64", "index": 29, "name": "mailing_latitude", "comment": null}, "mailing_longitude": {"type": "FLOAT64", "index": 30, "name": "mailing_longitude", "comment": null}, "mailing_postal_code": {"type": "STRING", "index": 31, "name": "mailing_postal_code", "comment": null}, "mailing_state": {"type": "STRING", "index": 32, "name": "mailing_state", "comment": null}, "mailing_state_code": {"type": "STRING", "index": 33, "name": "mailing_state_code", "comment": null}, "mailing_street": {"type": "STRING", "index": 34, "name": "mailing_street", "comment": null}, "master_record_id": {"type": "STRING", "index": 35, "name": "master_record_id", "comment": null}, "mc_4_sf_mc_subscriber_c": {"type": "STRING", "index": 36, "name": "mc_4_sf_mc_subscriber_c", "comment": null}, "mobile_phone": {"type": "STRING", "index": 37, "name": "mobile_phone", "comment": null}, "name": {"type": "STRING", "index": 38, "name": "name", "comment": null}, "owner_id": {"type": "STRING", "index": 39, "name": "owner_id", "comment": null}, "phone": {"type": "STRING", "index": 40, "name": "phone", "comment": null}, "photo_url": {"type": "STRING", "index": 41, "name": "photo_url", "comment": null}, "reports_to_id": {"type": "STRING", "index": 42, "name": "reports_to_id", "comment": null}, "salutation": {"type": "STRING", "index": 43, "name": "salutation", "comment": null}, "system_modstamp": {"type": "TIMESTAMP", "index": 44, "name": "system_modstamp", "comment": null}, "title": {"type": "STRING", "index": 45, "name": "title", "comment": null}, "email_bounced_c": {"type": "BOOL", "index": 46, "name": "email_bounced_c", "comment": null}, "email_quality_unknown_c": {"type": "BOOL", "index": 47, "name": "email_quality_unknown_c", "comment": null}, "gclid_c": {"type": "STRING", "index": 48, "name": "gclid_c", "comment": null}, "referral_account_c": {"type": "STRING", "index": 49, "name": "referral_account_c", "comment": null}, "referral_contact_c": {"type": "STRING", "index": 50, "name": "referral_contact_c", "comment": null}, "has_opted_out_of_email": {"type": "BOOL", "index": 51, "name": "has_opted_out_of_email", "comment": null}, "act_on_lead_score_c": {"type": "FLOAT64", "index": 52, "name": "act_on_lead_score_c", "comment": null}, "cbit_created_by_clearbit_c": {"type": "BOOL", "index": 53, "name": "cbit_created_by_clearbit_c", "comment": null}, "fivetran_user_id_c": {"type": "STRING", "index": 54, "name": "fivetran_user_id_c", "comment": null}, "no_longer_at_company_c": {"type": "BOOL", "index": 55, "name": "no_longer_at_company_c", "comment": null}, "pi_campaign_c": {"type": "STRING", "index": 56, "name": "pi_campaign_c", "comment": null}, "pi_comments_c": {"type": "STRING", "index": 57, "name": "pi_comments_c", "comment": null}, "pi_conversion_date_c": {"type": "TIMESTAMP", "index": 58, "name": "pi_conversion_date_c", "comment": null}, "pi_conversion_object_name_c": {"type": "STRING", "index": 59, "name": "pi_conversion_object_name_c", "comment": null}, "pi_conversion_object_type_c": {"type": "STRING", "index": 60, "name": "pi_conversion_object_type_c", "comment": null}, "pi_created_date_c": {"type": "TIMESTAMP", "index": 61, "name": "pi_created_date_c", "comment": null}, "pi_first_activity_c": {"type": "TIMESTAMP", "index": 62, "name": "pi_first_activity_c", "comment": null}, "pi_first_search_term_c": {"type": "STRING", "index": 63, "name": "pi_first_search_term_c", "comment": null}, "pi_first_search_type_c": {"type": "STRING", "index": 64, "name": "pi_first_search_type_c", "comment": null}, "pi_first_touch_url_c": {"type": "STRING", "index": 65, "name": "pi_first_touch_url_c", "comment": null}, "pi_grade_c": {"type": "STRING", "index": 66, "name": "pi_grade_c", "comment": null}, "pi_last_activity_c": {"type": "TIMESTAMP", "index": 67, "name": "pi_last_activity_c", "comment": null}, "pi_needs_score_synced_c": {"type": "BOOL", "index": 68, "name": "pi_needs_score_synced_c", "comment": null}, "pi_notes_c": {"type": "STRING", "index": 69, "name": "pi_notes_c", "comment": null}, "pi_pardot_hard_bounced_c": {"type": "BOOL", "index": 70, "name": "pi_pardot_hard_bounced_c", "comment": null}, "pi_pardot_last_scored_at_c": {"type": "TIMESTAMP", "index": 71, "name": "pi_pardot_last_scored_at_c", "comment": null}, "pi_score_c": {"type": "FLOAT64", "index": 72, "name": "pi_score_c", "comment": null}, "pi_url_c": {"type": "STRING", "index": 73, "name": "pi_url_c", "comment": null}, "pi_utm_campaign_c": {"type": "STRING", "index": 74, "name": "pi_utm_campaign_c", "comment": null}, "pi_utm_content_c": {"type": "STRING", "index": 75, "name": "pi_utm_content_c", "comment": null}, "pi_utm_medium_c": {"type": "STRING", "index": 76, "name": "pi_utm_medium_c", "comment": null}, "pi_utm_source_c": {"type": "STRING", "index": 77, "name": "pi_utm_source_c", "comment": null}, "pi_utm_term_c": {"type": "STRING", "index": 78, "name": "pi_utm_term_c", "comment": null}, "lead_source": {"type": "STRING", "index": 79, "name": "lead_source", "comment": null}, "contact_status_c": {"type": "STRING", "index": 80, "name": "contact_status_c", "comment": null}, "region_c": {"type": "STRING", "index": 81, "name": "region_c", "comment": null}, "competitor_c": {"type": "BOOL", "index": 82, "name": "competitor_c", "comment": null}, "bt_stripe_gender_c": {"type": "STRING", "index": 83, "name": "bt_stripe_gender_c", "comment": null}, "bt_stripe_ssn_last_4_encrypted_c": {"type": "STRING", "index": 84, "name": "bt_stripe_ssn_last_4_encrypted_c", "comment": null}, "bt_stripe_personal_id_number_c": {"type": "STRING", "index": 85, "name": "bt_stripe_personal_id_number_c", "comment": null}, "bt_stripe_personal_id_number_encrypted_c": {"type": "STRING", "index": 86, "name": "bt_stripe_personal_id_number_encrypted_c", "comment": null}, "bt_stripe_maiden_name_c": {"type": "STRING", "index": 87, "name": "bt_stripe_maiden_name_c", "comment": null}, "bt_stripe_languages_c": {"type": "STRING", "index": 88, "name": "bt_stripe_languages_c", "comment": null}, "bt_stripe_default_payment_method_c": {"type": "STRING", "index": 89, "name": "bt_stripe_default_payment_method_c", "comment": null}, "bt_stripe_ssn_last_4_c": {"type": "FLOAT64", "index": 90, "name": "bt_stripe_ssn_last_4_c", "comment": null}, "bt_stripe_personal_id_type_c": {"type": "STRING", "index": 91, "name": "bt_stripe_personal_id_type_c", "comment": null}, "bt_stripe_default_payment_gateway_c": {"type": "STRING", "index": 92, "name": "bt_stripe_default_payment_gateway_c", "comment": null}, "bt_stripe_level_c": {"type": "STRING", "index": 93, "name": "bt_stripe_level_c", "comment": null}, "lean_data_routing_action_c": {"type": "STRING", "index": 94, "name": "lean_data_routing_action_c", "comment": null}, "lean_data_matched_buyer_persona_c": {"type": "STRING", "index": 95, "name": "lean_data_matched_buyer_persona_c", "comment": null}, "lean_data_ld_segment_c": {"type": "STRING", "index": 96, "name": "lean_data_ld_segment_c", "comment": null}, "lean_data_tag_c": {"type": "STRING", "index": 97, "name": "lean_data_tag_c", "comment": null}, "lean_data_modified_score_c": {"type": "FLOAT64", "index": 98, "name": "lean_data_modified_score_c", "comment": null}, "do_not_route_lead_c": {"type": "BOOL", "index": 99, "name": "do_not_route_lead_c", "comment": null}, "technical_contact_c": {"type": "BOOL", "index": 100, "name": "technical_contact_c", "comment": null}, "allbound_id_c": {"type": "STRING", "index": 101, "name": "allbound_id_c", "comment": null}, "notes_c": {"type": "STRING", "index": 102, "name": "notes_c", "comment": null}, "netsuite_conn_sync_in_progress_c": {"type": "BOOL", "index": 103, "name": "netsuite_conn_sync_in_progress_c", "comment": null}, "netsuite_conn_celigo_update_c": {"type": "BOOL", "index": 104, "name": "netsuite_conn_celigo_update_c", "comment": null}, "netsuite_conn_net_suite_id_c": {"type": "STRING", "index": 105, "name": "netsuite_conn_net_suite_id_c", "comment": null}, "netsuite_conn_net_suite_sync_err_c": {"type": "STRING", "index": 106, "name": "netsuite_conn_net_suite_sync_err_c", "comment": null}, "netsuite_conn_push_to_net_suite_c": {"type": "BOOL", "index": 107, "name": "netsuite_conn_push_to_net_suite_c", "comment": null}, "netsuite_conn_pushed_from_opportunity_c": {"type": "BOOL", "index": 108, "name": "netsuite_conn_pushed_from_opportunity_c", "comment": null}, "description": {"type": "STRING", "index": 109, "name": "description", "comment": null}, "lid_linked_in_company_id_c": {"type": "STRING", "index": 110, "name": "lid_linked_in_company_id_c", "comment": null}, "lid_linked_in_member_token_c": {"type": "STRING", "index": 111, "name": "lid_linked_in_member_token_c", "comment": null}, "is_eu_resident_c": {"type": "BOOL", "index": 112, "name": "is_eu_resident_c", "comment": null}, "do_not_call": {"type": "BOOL", "index": 113, "name": "do_not_call", "comment": null}, "sales_loft_1_most_recent_cadence_next_step_due_date_c": {"type": "TIMESTAMP", "index": 114, "name": "sales_loft_1_most_recent_cadence_next_step_due_date_c", "comment": null}, "sales_loft_1_most_recent_last_completed_step_c": {"type": "FLOAT64", "index": 115, "name": "sales_loft_1_most_recent_last_completed_step_c", "comment": null}, "sales_loft_1_most_recent_cadence_name_c": {"type": "STRING", "index": 116, "name": "sales_loft_1_most_recent_cadence_name_c", "comment": null}, "source_detail_c": {"type": "STRING", "index": 117, "name": "source_detail_c", "comment": null}, "utm_source_c": {"type": "STRING", "index": 118, "name": "utm_source_c", "comment": null}, "utm_content_c": {"type": "STRING", "index": 119, "name": "utm_content_c", "comment": null}, "utm_term_c": {"type": "STRING", "index": 120, "name": "utm_term_c", "comment": null}, "utm_medium_c": {"type": "STRING", "index": 121, "name": "utm_medium_c", "comment": null}, "utm_campaign_c": {"type": "STRING", "index": 122, "name": "utm_campaign_c", "comment": null}, "network_c": {"type": "STRING", "index": 123, "name": "network_c", "comment": null}, "matchtype_c": {"type": "STRING", "index": 124, "name": "matchtype_c", "comment": null}, "device_c": {"type": "STRING", "index": 125, "name": "device_c", "comment": null}, "creative_c": {"type": "STRING", "index": 126, "name": "creative_c", "comment": null}, "adgroupid_c": {"type": "STRING", "index": 127, "name": "adgroupid_c", "comment": null}, "keyword_c": {"type": "STRING", "index": 128, "name": "keyword_c", "comment": null}, "campaignid_c": {"type": "STRING", "index": 129, "name": "campaignid_c", "comment": null}, "partner_rep_email_c": {"type": "STRING", "index": 130, "name": "partner_rep_email_c", "comment": null}, "partner_rep_name_c": {"type": "STRING", "index": 131, "name": "partner_rep_name_c", "comment": null}, "contact_type_c": {"type": "STRING", "index": 132, "name": "contact_type_c", "comment": null}, "old_lead_source_c": {"type": "STRING", "index": 133, "name": "old_lead_source_c", "comment": null}, "old_lead_source_detail_c": {"type": "STRING", "index": 134, "name": "old_lead_source_detail_c", "comment": null}, "contact_stage_c": {"type": "STRING", "index": 135, "name": "contact_stage_c", "comment": null}, "original_utm_campaign_c": {"type": "STRING", "index": 136, "name": "original_utm_campaign_c", "comment": null}, "original_utm_content_c": {"type": "STRING", "index": 137, "name": "original_utm_content_c", "comment": null}, "original_utm_medium_c": {"type": "STRING", "index": 138, "name": "original_utm_medium_c", "comment": null}, "original_utm_source_c": {"type": "STRING", "index": 139, "name": "original_utm_source_c", "comment": null}, "original_utm_term_c": {"type": "STRING", "index": 140, "name": "original_utm_term_c", "comment": null}, "es_app_escreated_timestamp_c": {"type": "TIMESTAMP", "index": 141, "name": "es_app_escreated_timestamp_c", "comment": null}, "es_app_esecid_c": {"type": "FLOAT64", "index": 142, "name": "es_app_esecid_c", "comment": null}, "es_app_esenriched_c": {"type": "BOOL", "index": 143, "name": "es_app_esenriched_c", "comment": null}, "es_app_esenriched_timestamp_c": {"type": "TIMESTAMP", "index": 144, "name": "es_app_esenriched_timestamp_c", "comment": null}, "es_app_esintent_aggregate_score_c": {"type": "FLOAT64", "index": 145, "name": "es_app_esintent_aggregate_score_c", "comment": null}, "es_app_esintent_timestamp_c": {"type": "TIMESTAMP", "index": 146, "name": "es_app_esintent_timestamp_c", "comment": null}, "es_app_esintent_topics_c": {"type": "STRING", "index": 147, "name": "es_app_esintent_topics_c", "comment": null}, "es_app_esoverall_fit_score_c": {"type": "FLOAT64", "index": 148, "name": "es_app_esoverall_fit_score_c", "comment": null}, "es_app_essource_c": {"type": "BOOL", "index": 149, "name": "es_app_essource_c", "comment": null}, "individual_id": {"type": "STRING", "index": 150, "name": "individual_id", "comment": null}, "marketing_process_c": {"type": "STRING", "index": 151, "name": "marketing_process_c", "comment": null}, "automation_tracking_c": {"type": "STRING", "index": 152, "name": "automation_tracking_c", "comment": null}, "user_gems_has_changed_job_c": {"type": "TIMESTAMP", "index": 153, "name": "user_gems_has_changed_job_c", "comment": null}, "email_opt_in_explicit_c": {"type": "BOOL", "index": 154, "name": "email_opt_in_explicit_c", "comment": null}, "email_opt_in_implicit_c": {"type": "BOOL", "index": 155, "name": "email_opt_in_implicit_c", "comment": null}, "gdpr_opt_in_explicit_c": {"type": "BOOL", "index": 156, "name": "gdpr_opt_in_explicit_c", "comment": null}, "user_gems_is_a_user_gem_c": {"type": "BOOL", "index": 157, "name": "user_gems_is_a_user_gem_c", "comment": null}, "user_gems_past_account_c": {"type": "STRING", "index": 158, "name": "user_gems_past_account_c", "comment": null}, "user_gems_past_company_c": {"type": "STRING", "index": 159, "name": "user_gems_past_company_c", "comment": null}, "user_gems_past_contact_c": {"type": "STRING", "index": 160, "name": "user_gems_past_contact_c", "comment": null}, "user_gems_past_title_c": {"type": "STRING", "index": 161, "name": "user_gems_past_title_c", "comment": null}, "partner_contact_c": {"type": "BOOL", "index": 162, "name": "partner_contact_c", "comment": null}, "promotion_id_c": {"type": "STRING", "index": 163, "name": "promotion_id_c", "comment": null}, "referral_exists_c": {"type": "BOOL", "index": 164, "name": "referral_exists_c", "comment": null}, "referral_first_name_c": {"type": "STRING", "index": 165, "name": "referral_first_name_c", "comment": null}, "referral_last_name_c": {"type": "STRING", "index": 166, "name": "referral_last_name_c", "comment": null}, "mkto_71_contact_acquisition_date_c": {"type": "TIMESTAMP", "index": 167, "name": "mkto_71_contact_acquisition_date_c", "comment": null}, "mkto_71_contact_acquisition_program_c": {"type": "STRING", "index": 168, "name": "mkto_71_contact_acquisition_program_c", "comment": null}, "mkto_71_contact_acquisition_program_id_c": {"type": "FLOAT64", "index": 169, "name": "mkto_71_contact_acquisition_program_id_c", "comment": null}, "mkto_71_contact_inferred_city_c": {"type": "STRING", "index": 170, "name": "mkto_71_contact_inferred_city_c", "comment": null}, "mkto_71_contact_inferred_company_c": {"type": "STRING", "index": 171, "name": "mkto_71_contact_inferred_company_c", "comment": null}, "mkto_71_contact_inferred_country_c": {"type": "STRING", "index": 172, "name": "mkto_71_contact_inferred_country_c", "comment": null}, "mkto_71_contact_inferred_metropolitan_a_c": {"type": "STRING", "index": 173, "name": "mkto_71_contact_inferred_metropolitan_a_c", "comment": null}, "mkto_71_contact_inferred_phone_area_cod_c": {"type": "STRING", "index": 174, "name": "mkto_71_contact_inferred_phone_area_cod_c", "comment": null}, "mkto_71_contact_inferred_postal_code_c": {"type": "STRING", "index": 175, "name": "mkto_71_contact_inferred_postal_code_c", "comment": null}, "mkto_71_contact_inferred_state_region_c": {"type": "STRING", "index": 176, "name": "mkto_71_contact_inferred_state_region_c", "comment": null}, "mkto_71_contact_lead_score_c": {"type": "FLOAT64", "index": 177, "name": "mkto_71_contact_lead_score_c", "comment": null}, "mkto_71_contact_original_referrer_c": {"type": "STRING", "index": 178, "name": "mkto_71_contact_original_referrer_c", "comment": null}, "mkto_71_contact_original_search_engine_c": {"type": "STRING", "index": 179, "name": "mkto_71_contact_original_search_engine_c", "comment": null}, "mkto_71_contact_original_search_phrase_c": {"type": "STRING", "index": 180, "name": "mkto_71_contact_original_search_phrase_c", "comment": null}, "mkto_71_contact_original_source_info_c": {"type": "STRING", "index": 181, "name": "mkto_71_contact_original_source_info_c", "comment": null}, "mkto_71_contact_original_source_type_c": {"type": "STRING", "index": 182, "name": "mkto_71_contact_original_source_type_c", "comment": null}, "mkto_si_hide_date_c": {"type": "TIMESTAMP", "index": 183, "name": "mkto_si_hide_date_c", "comment": null}, "mkto_si_last_interesting_moment_date_c": {"type": "TIMESTAMP", "index": 184, "name": "mkto_si_last_interesting_moment_date_c", "comment": null}, "mkto_si_last_interesting_moment_desc_c": {"type": "STRING", "index": 185, "name": "mkto_si_last_interesting_moment_desc_c", "comment": null}, "mkto_si_last_interesting_moment_source_c": {"type": "STRING", "index": 186, "name": "mkto_si_last_interesting_moment_source_c", "comment": null}, "mkto_si_last_interesting_moment_type_c": {"type": "STRING", "index": 187, "name": "mkto_si_last_interesting_moment_type_c", "comment": null}, "mkto_si_mkto_lead_score_c": {"type": "FLOAT64", "index": 188, "name": "mkto_si_mkto_lead_score_c", "comment": null}, "mkto_si_priority_c": {"type": "FLOAT64", "index": 189, "name": "mkto_si_priority_c", "comment": null}, "mkto_si_relative_score_value_c": {"type": "FLOAT64", "index": 190, "name": "mkto_si_relative_score_value_c", "comment": null}, "mkto_si_urgency_value_c": {"type": "FLOAT64", "index": 191, "name": "mkto_si_urgency_value_c", "comment": null}, "cloudingo_agent_ces_c": {"type": "FLOAT64", "index": 192, "name": "cloudingo_agent_ces_c", "comment": null}, "cloudingo_agent_mar_c": {"type": "STRING", "index": 193, "name": "cloudingo_agent_mar_c", "comment": null}, "cloudingo_agent_mas_c": {"type": "FLOAT64", "index": 194, "name": "cloudingo_agent_mas_c", "comment": null}, "cloudingo_agent_mav_c": {"type": "STRING", "index": 195, "name": "cloudingo_agent_mav_c", "comment": null}, "cloudingo_agent_mrdi_c": {"type": "STRING", "index": 196, "name": "cloudingo_agent_mrdi_c", "comment": null}, "cloudingo_agent_mtz_c": {"type": "STRING", "index": 197, "name": "cloudingo_agent_mtz_c", "comment": null}, "cloudingo_agent_oar_c": {"type": "STRING", "index": 198, "name": "cloudingo_agent_oar_c", "comment": null}, "cloudingo_agent_oas_c": {"type": "FLOAT64", "index": 199, "name": "cloudingo_agent_oas_c", "comment": null}, "cloudingo_agent_oav_c": {"type": "STRING", "index": 200, "name": "cloudingo_agent_oav_c", "comment": null}, "cloudingo_agent_ordi_c": {"type": "STRING", "index": 201, "name": "cloudingo_agent_ordi_c", "comment": null}, "cloudingo_agent_otz_c": {"type": "STRING", "index": 202, "name": "cloudingo_agent_otz_c", "comment": null}, "do_not_sync_marketo_c": {"type": "BOOL", "index": 203, "name": "do_not_sync_marketo_c", "comment": null}, "phone_extension_c": {"type": "STRING", "index": 204, "name": "phone_extension_c", "comment": null}, "job_function_c": {"type": "STRING", "index": 205, "name": "job_function_c", "comment": null}, "job_level_c": {"type": "STRING", "index": 206, "name": "job_level_c", "comment": null}, "direct_office_c": {"type": "STRING", "index": 207, "name": "direct_office_c", "comment": null}, "city_c": {"type": "STRING", "index": 208, "name": "city_c", "comment": null}, "country_c": {"type": "STRING", "index": 209, "name": "country_c", "comment": null}, "state_c": {"type": "STRING", "index": 210, "name": "state_c", "comment": null}, "secondary_email_c": {"type": "STRING", "index": 211, "name": "secondary_email_c", "comment": null}, "es_seniority_c": {"type": "STRING", "index": 212, "name": "es_seniority_c", "comment": null}, "source_last_lead_source_c": {"type": "STRING", "index": 213, "name": "source_last_lead_source_c", "comment": null}, "source_last_lead_source_category_c": {"type": "STRING", "index": 214, "name": "source_last_lead_source_category_c", "comment": null}, "source_last_lead_source_detail_c": {"type": "STRING", "index": 215, "name": "source_last_lead_source_detail_c", "comment": null}, "drift_cql_c": {"type": "FLOAT64", "index": 216, "name": "drift_cql_c", "comment": null}, "hot_contact_c": {"type": "BOOL", "index": 217, "name": "hot_contact_c", "comment": null}, "behavioral_score_c": {"type": "FLOAT64", "index": 218, "name": "behavioral_score_c", "comment": null}, "unique_email_c": {"type": "STRING", "index": 219, "name": "unique_email_c", "comment": null}, "is_emea_event_routing_c": {"type": "BOOL", "index": 220, "name": "is_emea_event_routing_c", "comment": null}, "csi_code_c": {"type": "FLOAT64", "index": 221, "name": "csi_code_c", "comment": null}, "clearbit_role_c": {"type": "STRING", "index": 222, "name": "clearbit_role_c", "comment": null}, "clearbit_seniority_c": {"type": "STRING", "index": 223, "name": "clearbit_seniority_c", "comment": null}, "clearbit_sub_role_c": {"type": "STRING", "index": 224, "name": "clearbit_sub_role_c", "comment": null}, "rh_2_currency_test_c": {"type": "BIGNUMERIC", "index": 225, "name": "rh_2_currency_test_c", "comment": null}, "rh_2_describe_c": {"type": "STRING", "index": 226, "name": "rh_2_describe_c", "comment": null}, "rh_2_integer_test_c": {"type": "FLOAT64", "index": 227, "name": "rh_2_integer_test_c", "comment": null}, "created_by_role_c": {"type": "STRING", "index": 228, "name": "created_by_role_c", "comment": null}, "demographic_score_c": {"type": "FLOAT64", "index": 229, "name": "demographic_score_c", "comment": null}, "country_code_c": {"type": "STRING", "index": 230, "name": "country_code_c", "comment": null}, "state_code_c": {"type": "STRING", "index": 231, "name": "state_code_c", "comment": null}, "attended_event_c": {"type": "BOOL", "index": 232, "name": "attended_event_c", "comment": null}, "zoominfo_technologies_c": {"type": "STRING", "index": 233, "name": "zoominfo_technologies_c", "comment": null}, "mql_date_c": {"type": "TIMESTAMP", "index": 234, "name": "mql_date_c", "comment": null}, "user_gems_user_gems_id_c": {"type": "STRING", "index": 235, "name": "user_gems_user_gems_id_c", "comment": null}, "dozisf_zoom_info_company_id_c": {"type": "STRING", "index": 236, "name": "dozisf_zoom_info_company_id_c", "comment": null}, "dozisf_zoom_info_first_updated_c": {"type": "TIMESTAMP", "index": 237, "name": "dozisf_zoom_info_first_updated_c", "comment": null}, "dozisf_zoom_info_id_c": {"type": "STRING", "index": 238, "name": "dozisf_zoom_info_id_c", "comment": null}, "dozisf_zoom_info_last_updated_c": {"type": "TIMESTAMP", "index": 239, "name": "dozisf_zoom_info_last_updated_c", "comment": null}, "lean_data_manual_route_trigger_c": {"type": "BOOL", "index": 240, "name": "lean_data_manual_route_trigger_c", "comment": null}, "first_mql_date_c": {"type": "TIMESTAMP", "index": 241, "name": "first_mql_date_c", "comment": null}, "active_relationship_c": {"type": "BOOL", "index": 242, "name": "active_relationship_c", "comment": null}, "clarus_date_c": {"type": "TIMESTAMP", "index": 243, "name": "clarus_date_c", "comment": null}, "clarus_editor_c": {"type": "STRING", "index": 244, "name": "clarus_editor_c", "comment": null}, "clarus_notes_c": {"type": "STRING", "index": 245, "name": "clarus_notes_c", "comment": null}, "clarus_project_c": {"type": "STRING", "index": 246, "name": "clarus_project_c", "comment": null}, "clarus_status_c": {"type": "STRING", "index": 247, "name": "clarus_status_c", "comment": null}, "historical_contact_status_c": {"type": "STRING", "index": 248, "name": "historical_contact_status_c", "comment": null}, "fivetran_account_association_date_c": {"type": "TIMESTAMP", "index": 249, "name": "fivetran_account_association_date_c", "comment": null}, "fivetran_account_user_role_s_c": {"type": "STRING", "index": 250, "name": "fivetran_account_user_role_s_c", "comment": null}, "mql_reason_c": {"type": "STRING", "index": 251, "name": "mql_reason_c", "comment": null}, "attempting_contact_date_time_c": {"type": "TIMESTAMP", "index": 252, "name": "attempting_contact_date_time_c", "comment": null}, "linked_in_url_c": {"type": "STRING", "index": 253, "name": "linked_in_url_c", "comment": null}, "trial_contact_start_date_c": {"type": "TIMESTAMP", "index": 254, "name": "trial_contact_start_date_c", "comment": null}, "contact_holdover_c": {"type": "BOOL", "index": 255, "name": "contact_holdover_c", "comment": null}, "bill_to_contact_hidden_c": {"type": "BOOL", "index": 256, "name": "bill_to_contact_hidden_c", "comment": null}, "enrichment_request_c": {"type": "BOOL", "index": 257, "name": "enrichment_request_c", "comment": null}, "meta_data_create_date_c": {"type": "TIMESTAMP", "index": 258, "name": "meta_data_create_date_c", "comment": null}, "primary_se_c": {"type": "STRING", "index": 259, "name": "primary_se_c", "comment": null}, "unqualified_reason_c": {"type": "STRING", "index": 260, "name": "unqualified_reason_c", "comment": null}, "opp_handoff_ae_c": {"type": "STRING", "index": 261, "name": "opp_handoff_ae_c", "comment": null}, "marketing_connector_interest_c": {"type": "STRING", "index": 262, "name": "marketing_connector_interest_c", "comment": null}, "recent_marketing_campaign_status_c": {"type": "STRING", "index": 263, "name": "recent_marketing_campaign_status_c", "comment": null}, "salesloft_cadence_trigger_c": {"type": "STRING", "index": 264, "name": "salesloft_cadence_trigger_c", "comment": null}, "last_ae_activity_owner_c": {"type": "STRING", "index": 265, "name": "last_ae_activity_owner_c", "comment": null}, "last_bdr_activity_owner_c": {"type": "STRING", "index": 266, "name": "last_bdr_activity_owner_c", "comment": null}, "last_manual_ae_activity_date_c": {"type": "TIMESTAMP", "index": 267, "name": "last_manual_ae_activity_date_c", "comment": null}, "last_manual_bdr_activity_date_c": {"type": "TIMESTAMP", "index": 268, "name": "last_manual_bdr_activity_date_c", "comment": null}, "leandata_contact_owner_override_c": {"type": "STRING", "index": 269, "name": "leandata_contact_owner_override_c", "comment": null}, "potential_fivetran_use_case_c": {"type": "STRING", "index": 270, "name": "potential_fivetran_use_case_c", "comment": null}, "lean_data_router_completion_date_time_c": {"type": "TIMESTAMP", "index": 271, "name": "lean_data_router_completion_date_time_c", "comment": null}, "partner_territory_c": {"type": "STRING", "index": 272, "name": "partner_territory_c", "comment": null}, "partner_company_c": {"type": "STRING", "index": 273, "name": "partner_company_c", "comment": null}, "bizible_2_ad_campaign_name_ft_c": {"type": "STRING", "index": 274, "name": "bizible_2_ad_campaign_name_ft_c", "comment": null}, "bizible_2_ad_campaign_name_lc_c": {"type": "STRING", "index": 275, "name": "bizible_2_ad_campaign_name_lc_c", "comment": null}, "bizible_2_bizible_id_c": {"type": "STRING", "index": 276, "name": "bizible_2_bizible_id_c", "comment": null}, "bizible_2_landing_page_ft_c": {"type": "STRING", "index": 277, "name": "bizible_2_landing_page_ft_c", "comment": null}, "bizible_2_landing_page_lc_c": {"type": "STRING", "index": 278, "name": "bizible_2_landing_page_lc_c", "comment": null}, "bizible_2_marketing_channel_ft_c": {"type": "STRING", "index": 279, "name": "bizible_2_marketing_channel_ft_c", "comment": null}, "bizible_2_marketing_channel_lc_c": {"type": "STRING", "index": 280, "name": "bizible_2_marketing_channel_lc_c", "comment": null}, "bizible_2_touchpoint_date_ft_c": {"type": "TIMESTAMP", "index": 281, "name": "bizible_2_touchpoint_date_ft_c", "comment": null}, "bizible_2_touchpoint_date_lc_c": {"type": "TIMESTAMP", "index": 282, "name": "bizible_2_touchpoint_date_lc_c", "comment": null}, "bizible_2_touchpoint_source_ft_c": {"type": "STRING", "index": 283, "name": "bizible_2_touchpoint_source_ft_c", "comment": null}, "bizible_2_touchpoint_source_lc_c": {"type": "STRING", "index": 284, "name": "bizible_2_touchpoint_source_lc_c", "comment": null}, "sales_email_opt_out_c": {"type": "BOOL", "index": 285, "name": "sales_email_opt_out_c", "comment": null}, "sales_email_opt_out_date_time_c": {"type": "TIMESTAMP", "index": 286, "name": "sales_email_opt_out_date_time_c", "comment": null}, "celigo_sfnsio_net_suite_id_c": {"type": "STRING", "index": 287, "name": "celigo_sfnsio_net_suite_id_c", "comment": null}, "celigo_sfnsio_net_suite_record_c": {"type": "STRING", "index": 288, "name": "celigo_sfnsio_net_suite_record_c", "comment": null}, "celigo_sfnsio_net_suite_sync_error_c": {"type": "STRING", "index": 289, "name": "celigo_sfnsio_net_suite_sync_error_c", "comment": null}, "celigo_sfnsio_skip_export_to_net_suite_c": {"type": "BOOL", "index": 290, "name": "celigo_sfnsio_skip_export_to_net_suite_c", "comment": null}, "celigo_sfnsio_test_mode_record_c": {"type": "BOOL", "index": 291, "name": "celigo_sfnsio_test_mode_record_c", "comment": null}, "ironclad_workflow_c": {"type": "STRING", "index": 292, "name": "ironclad_workflow_c", "comment": null}, "last_sales_activity_date_time_c": {"type": "TIMESTAMP", "index": 293, "name": "last_sales_activity_date_time_c", "comment": null}, "user_activity_logged_by_c": {"type": "STRING", "index": 294, "name": "user_activity_logged_by_c", "comment": null}, "first_activity_after_mql_date_c": {"type": "TIMESTAMP", "index": 295, "name": "first_activity_after_mql_date_c", "comment": null}, "last_sdr_activity_owner_c": {"type": "STRING", "index": 296, "name": "last_sdr_activity_owner_c", "comment": null}, "last_sdr_activity_date_c": {"type": "TIMESTAMP", "index": 297, "name": "last_sdr_activity_date_c", "comment": null}, "beta_connector_interest_c": {"type": "STRING", "index": 298, "name": "beta_connector_interest_c", "comment": null}, "first_manual_activity_after_mql_date_c": {"type": "TIMESTAMP", "index": 299, "name": "first_manual_activity_after_mql_date_c", "comment": null}, "user_gems_ug_past_infos_c": {"type": "STRING", "index": 300, "name": "user_gems_ug_past_infos_c", "comment": null}, "user_gems_ug_current_infos_c": {"type": "STRING", "index": 301, "name": "user_gems_ug_current_infos_c", "comment": null}, "user_gems_ug_created_by_ug_c": {"type": "BOOL", "index": 302, "name": "user_gems_ug_created_by_ug_c", "comment": null}, "free_trial_email_confirmed_date_c": {"type": "TIMESTAMP", "index": 303, "name": "free_trial_email_confirmed_date_c", "comment": null}, "routed_from_manual_bdr_ae_activity_c": {"type": "BOOL", "index": 304, "name": "routed_from_manual_bdr_ae_activity_c", "comment": null}, "dnboptimizer_dn_bcontact_record_c": {"type": "STRING", "index": 305, "name": "dnboptimizer_dn_bcontact_record_c", "comment": null}, "i_sell_avention_id_c": {"type": "STRING", "index": 306, "name": "i_sell_avention_id_c", "comment": null}, "persona_c": {"type": "STRING", "index": 307, "name": "persona_c", "comment": null}, "last_marketing_interesting_moment_date_c": {"type": "TIMESTAMP", "index": 308, "name": "last_marketing_interesting_moment_date_c", "comment": null}, "verified_c": {"type": "BOOL", "index": 309, "name": "verified_c", "comment": null}, "salesloft_owner_c": {"type": "STRING", "index": 310, "name": "salesloft_owner_c", "comment": null}, "salesloft_owner_sf_c": {"type": "STRING", "index": 311, "name": "salesloft_owner_sf_c", "comment": null}, "email_opt_out_date_time_c": {"type": "TIMESTAMP", "index": 312, "name": "email_opt_out_date_time_c", "comment": null}, "pbf_startup_primary_role_c": {"type": "STRING", "index": 313, "name": "pbf_startup_primary_role_c", "comment": null}, "pbf_startup_certify_eligibility_c": {"type": "BOOL", "index": 314, "name": "pbf_startup_certify_eligibility_c", "comment": null}, "engagio_intent_minutes_last_30_days_c": {"type": "FLOAT64", "index": 315, "name": "engagio_intent_minutes_last_30_days_c", "comment": null}, "engagio_engagement_minutes_last_3_months_c": {"type": "FLOAT64", "index": 316, "name": "engagio_engagement_minutes_last_3_months_c", "comment": null}, "engagio_engagement_minutes_last_7_days_c": {"type": "FLOAT64", "index": 317, "name": "engagio_engagement_minutes_last_7_days_c", "comment": null}, "engagio_first_engagement_date_c": {"type": "TIMESTAMP", "index": 318, "name": "engagio_first_engagement_date_c", "comment": null}, "engagio_department_c": {"type": "STRING", "index": 319, "name": "engagio_department_c", "comment": null}, "engagio_role_c": {"type": "STRING", "index": 320, "name": "engagio_role_c", "comment": null}, "mql_date_changed_c": {"type": "BOOL", "index": 321, "name": "mql_date_changed_c", "comment": null}, "first_activity_after_mql_changed_c": {"type": "BOOL", "index": 322, "name": "first_activity_after_mql_changed_c", "comment": null}, "birthdate": {"type": "TIMESTAMP", "index": 323, "name": "birthdate", "comment": null}, "legacy_hvr_id_c": {"type": "STRING", "index": 324, "name": "legacy_hvr_id_c", "comment": null}, "has_opted_out_of_fax": {"type": "BOOL", "index": 325, "name": "has_opted_out_of_fax", "comment": null}, "other_latitude": {"type": "FLOAT64", "index": 326, "name": "other_latitude", "comment": null}, "username_c": {"type": "STRING", "index": 327, "name": "username_c", "comment": null}, "assistant_name": {"type": "STRING", "index": 328, "name": "assistant_name", "comment": null}, "created_at_c": {"type": "STRING", "index": 329, "name": "created_at_c", "comment": null}, "partner_contact_deprecate_c": {"type": "BOOL", "index": 330, "name": "partner_contact_deprecate_c", "comment": null}, "other_street": {"type": "STRING", "index": 331, "name": "other_street", "comment": null}, "other_state": {"type": "STRING", "index": 332, "name": "other_state", "comment": null}, "home_phone": {"type": "STRING", "index": 333, "name": "home_phone", "comment": null}, "other_city": {"type": "STRING", "index": 334, "name": "other_city", "comment": null}, "company_c": {"type": "STRING", "index": 335, "name": "company_c", "comment": null}, "opportunity_c": {"type": "STRING", "index": 336, "name": "opportunity_c", "comment": null}, "hvr_update_c": {"type": "BOOL", "index": 337, "name": "hvr_update_c", "comment": null}, "other_phone": {"type": "STRING", "index": 338, "name": "other_phone", "comment": null}, "other_geocode_accuracy": {"type": "STRING", "index": 339, "name": "other_geocode_accuracy", "comment": null}, "other_postal_code": {"type": "STRING", "index": 340, "name": "other_postal_code", "comment": null}, "other_country": {"type": "STRING", "index": 341, "name": "other_country", "comment": null}, "assistant_phone": {"type": "STRING", "index": 342, "name": "assistant_phone", "comment": null}, "jigsaw": {"type": "STRING", "index": 343, "name": "jigsaw", "comment": null}, "avatar_c": {"type": "STRING", "index": 344, "name": "avatar_c", "comment": null}, "other_longitude": {"type": "FLOAT64", "index": 345, "name": "other_longitude", "comment": null}, "lean_data_status_info_c": {"type": "STRING", "index": 346, "name": "lean_data_status_info_c", "comment": null}, "analytics_id_c": {"type": "STRING", "index": 347, "name": "analytics_id_c", "comment": null}, "dnb_primary_address_postal_code_c": {"type": "STRING", "index": 348, "name": "dnb_primary_address_postal_code_c", "comment": null}, "dnb_contact_phone_c": {"type": "STRING", "index": 349, "name": "dnb_contact_phone_c", "comment": null}, "dnb_email_deliverability_score_c": {"type": "FLOAT64", "index": 350, "name": "dnb_email_deliverability_score_c", "comment": null}, "dnb_job_title_c": {"type": "STRING", "index": 351, "name": "dnb_job_title_c", "comment": null}, "dnb_email_c": {"type": "STRING", "index": 352, "name": "dnb_email_c", "comment": null}, "dnb_primary_address_city_c": {"type": "STRING", "index": 353, "name": "dnb_primary_address_city_c", "comment": null}, "dnb_phone_accuracy_score_c": {"type": "FLOAT64", "index": 354, "name": "dnb_phone_accuracy_score_c", "comment": null}, "dnb_primary_address_state_province_c": {"type": "STRING", "index": 355, "name": "dnb_primary_address_state_province_c", "comment": null}, "dnb_primary_address_state_province_abbre_c": {"type": "STRING", "index": 356, "name": "dnb_primary_address_state_province_abbre_c", "comment": null}, "dnb_primary_address_country_region_code_c": {"type": "STRING", "index": 357, "name": "dnb_primary_address_country_region_code_c", "comment": null}, "email_opt_in_double_c": {"type": "BOOL", "index": 358, "name": "email_opt_in_double_c", "comment": null}, "phone_number_catch_all_c": {"type": "STRING", "index": 359, "name": "phone_number_catch_all_c", "comment": null}, "contact_owners_manager_stamped_c": {"type": "STRING", "index": 360, "name": "contact_owners_manager_stamped_c", "comment": null}, "fivetran_account_id_c": {"type": "STRING", "index": 361, "name": "fivetran_account_id_c", "comment": null}, "contacts_domain_exists_c": {"type": "BOOL", "index": 362, "name": "contacts_domain_exists_c", "comment": null}, "utm_id_c": {"type": "STRING", "index": 363, "name": "utm_id_c", "comment": null}, "self_service_routing_c": {"type": "BOOL", "index": 364, "name": "self_service_routing_c", "comment": null}, "no_geo_data_c": {"type": "BOOL", "index": 365, "name": "no_geo_data_c", "comment": null}, "to_be_deleted_salesloft_backfill_c": {"type": "BOOL", "index": 366, "name": "to_be_deleted_salesloft_backfill_c", "comment": null}, "do_not_sync_reason_marketo_c": {"type": "STRING", "index": 367, "name": "do_not_sync_reason_marketo_c", "comment": null}, "linked_to_contract_c": {"type": "BOOL", "index": 368, "name": "linked_to_contract_c", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 933267431.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 1310965.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.salesforce_source.salesforce.contact"}}, "errors": null} \ No newline at end of file diff --git a/docs/index.html b/docs/index.html index db3f6b2..fa8b08b 100644 --- a/docs/index.html +++ b/docs/index.html @@ -24,7 +24,7 @@
icons
- diff --git a/docs/manifest.json b/docs/manifest.json index e19002d..69f4ea1 100644 --- a/docs/manifest.json +++ b/docs/manifest.json @@ -1 +1 @@ -{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/manifest/v2.json", "dbt_version": "0.20.0", "generated_at": "2021-08-05T22:00:47.322133Z", "invocation_id": "bf32e716-f8ec-4901-b5fd-4c158e73903f", "env": {}, "project_id": "263106cda4237bb52d7987f1581d49bb", "user_id": "57178664-37b2-4047-9572-68ec8b488cd7", "send_anonymous_usage_stats": true, "adapter_type": "bigquery"}, "nodes": {"seed.salesforce_source_integration_tests.user_role_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "vars": {}, "quoting": {}, "column_types": {"_fivetran_synced": "timestamp"}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "hubspot_integration_tests", "fqn": ["salesforce_source_integration_tests", "user_role_data"], "unique_id": "seed.salesforce_source_integration_tests.user_role_data", "package_name": "salesforce_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests", "path": "user_role_data.csv", "original_file_path": "data/user_role_data.csv", "name": "user_role_data", "alias": "user_role_data", "checksum": {"name": "sha256", "checksum": "2f3861fe3fccbbfb3056beab2f7b6b159910bcf898cade04789a6be752bbf996"}, "tags": [], "refs": [], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp"}}, "created_at": 1628200848, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_integration_tests`.`user_role_data`"}, "seed.salesforce_source_integration_tests.account_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "vars": {}, "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "last_activity_date": "timestamp", "last_referenced_date": "timestamp", "last_viewed_date": "timestamp", "annual_revenue": "float", "billing_latitude": "float", "billing_longitude": "float", "shipping_latitude": "float", "shipping_longitude": "float"}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "hubspot_integration_tests", "fqn": ["salesforce_source_integration_tests", "account_data"], "unique_id": "seed.salesforce_source_integration_tests.account_data", "package_name": "salesforce_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests", "path": "account_data.csv", "original_file_path": "data/account_data.csv", "name": "account_data", "alias": "account_data", "checksum": {"name": "sha256", "checksum": "f0f7db334aa9b4e3ae243b201b89183eed8a0728b50e3fc35d002846132361b2"}, "tags": [], "refs": [], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"last_activity_date": "timestamp", "last_referenced_date": "timestamp", "last_viewed_date": "timestamp", "annual_revenue": "float", "billing_latitude": "float", "billing_longitude": "float", "shipping_latitude": "float", "shipping_longitude": "float"}}, "created_at": 1628200848, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_integration_tests`.`account_data`"}, "seed.salesforce_source_integration_tests.opportunity_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "vars": {}, "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "close_date": "timestamp", "created_date": "timestamp", "last_activity_date": "timestamp", "last_referenced_date": "timestamp", "last_viewed_date": "timestamp", "amount": "float", "probability": "float"}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "hubspot_integration_tests", "fqn": ["salesforce_source_integration_tests", "opportunity_data"], "unique_id": "seed.salesforce_source_integration_tests.opportunity_data", "package_name": "salesforce_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests", "path": "opportunity_data.csv", "original_file_path": "data/opportunity_data.csv", "name": "opportunity_data", "alias": "opportunity_data", "checksum": {"name": "sha256", "checksum": "547dbbf6d087215d61655a2965d33c14590231738c1a5905f4aeaca729f0ad14"}, "tags": [], "refs": [], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"close_date": "timestamp", "created_date": "timestamp", "last_activity_date": "timestamp", "last_referenced_date": "timestamp", "last_viewed_date": "timestamp", "amount": "float", "probability": "float"}}, "created_at": 1628200848, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_integration_tests`.`opportunity_data`"}, "seed.salesforce_source_integration_tests.user_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "vars": {}, "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "last_login_date": "timestamp", "last_referenced_date": "timestamp", "last_viewed_date": "timestamp", "offline_trial_expiration_date": "timestamp", "latitude": "float", "longitude": "float"}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "hubspot_integration_tests", "fqn": ["salesforce_source_integration_tests", "user_data"], "unique_id": "seed.salesforce_source_integration_tests.user_data", "package_name": "salesforce_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests", "path": "user_data.csv", "original_file_path": "data/user_data.csv", "name": "user_data", "alias": "user_data", "checksum": {"name": "sha256", "checksum": "b0a85331a7b2f0d5b336a10792389be379ce77d3f9cde3164e3d64df73a0ba49"}, "tags": [], "refs": [], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"last_login_date": "timestamp", "last_referenced_date": "timestamp", "last_viewed_date": "timestamp", "offline_trial_expiration_date": "timestamp", "latitude": "float", "longitude": "float"}}, "created_at": 1628200848, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_integration_tests`.`user_data`"}, "model.salesforce_source.stg_salesforce__opportunity": {"raw_sql": "with source as (\n\n select *\n from {{ ref('stg_salesforce__opportunity_tmp') }}\n\n), macro as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_salesforce__opportunity_tmp')),\n staging_columns=get_opportunity_columns()\n )\n }}\n\n --The below script allows for pass through columns.\n\n {% if var('opportunity_pass_through_columns') %}\n ,\n {{ var('opportunity_pass_through_columns') | join (\", \")}}\n\n {% endif %}\n\n from source\n\n), renamed as (\n \n select \n\n _fivetran_synced,\n account_id,\n amount,\n campaign_id,\n close_date,\n created_date,\n description,\n expected_revenue,\n fiscal,\n fiscal_quarter,\n fiscal_year,\n forecast_category,\n forecast_category_name,\n has_open_activity,\n has_opportunity_line_item,\n has_overdue_task,\n id as opportunity_id,\n is_closed,\n is_deleted,\n is_won,\n last_activity_date,\n last_referenced_date,\n last_viewed_date,\n lead_source,\n name as opportunity_name,\n next_step,\n owner_id,\n probability,\n record_type_id,\n stage_name,\n synced_quote_id,\n type\n\n --The below script allows for pass through columns.\n\n {% if var('opportunity_pass_through_columns') %}\n ,\n {{ var('opportunity_pass_through_columns') | join (\", \")}}\n\n {% endif %}\n\n from macro\n\n), calculated as (\n \n select \n *,\n created_date >= {{ dbt_utils.date_trunc('month', dbt_utils.current_timestamp()) }} as is_created_this_month,\n created_date >= {{ dbt_utils.date_trunc('quarter', dbt_utils.current_timestamp()) }} as is_created_this_quarter,\n {{ dbt_utils.datediff(dbt_utils.current_timestamp(), 'created_date', 'day') }} as days_since_created,\n {{ dbt_utils.datediff('close_date', 'created_date', 'day') }} as days_to_close,\n {{ dbt_utils.date_trunc('month', 'close_date') }} = {{ dbt_utils.date_trunc('month', dbt_utils.current_timestamp()) }} as is_closed_this_month,\n {{ dbt_utils.date_trunc('quarter', 'close_date') }} = {{ dbt_utils.date_trunc('quarter', dbt_utils.current_timestamp()) }} as is_closed_this_quarter\n\n from renamed\n\n)\n\nselect * \nfrom calculated\nwhere not coalesce(is_deleted, false)", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.salesforce_source.get_opportunity_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.current_timestamp", "macro.dbt_utils.date_trunc", "macro.dbt_utils.datediff"], "nodes": ["model.salesforce_source.stg_salesforce__opportunity_tmp", "model.salesforce_source.stg_salesforce__opportunity_tmp"]}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "hubspot_integration_tests", "fqn": ["salesforce_source", "stg_salesforce__opportunity"], "unique_id": "model.salesforce_source.stg_salesforce__opportunity", "package_name": "salesforce_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/salesforce_source", "path": "stg_salesforce__opportunity.sql", "original_file_path": "models/stg_salesforce__opportunity.sql", "name": "stg_salesforce__opportunity", "alias": "stg_salesforce__opportunity", "checksum": {"name": "sha256", "checksum": "4b2bc7c4c7e963e0486b9bf3db23fc8dc5d5fb6e58b7f586d77b692128194a03"}, "tags": [], "refs": [["stg_salesforce__opportunity_tmp"], ["stg_salesforce__opportunity_tmp"]], "sources": [], "description": "Represents an opportunity, which is a sale or pending deal.", "columns": {"opportunity_id": {"name": "opportunity_id", "description": "The unique, system-generated ID assigned during creation.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time at which fivetran last synced this record", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "ID of the account associated with this opportunity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Estimated total sale amount. For opportunities with products, the amount is the sum of the related products.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "ID of a related Campaign. This field is defined only for those organizations that have the campaign feature Campaigns enabled.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "close_date": {"name": "close_date", "description": "Required. Date when the opportunity is expected to close.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_date": {"name": "created_date", "description": "Date when the opportunity is was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Text description of the opportunity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "expected_revenue": {"name": "expected_revenue", "description": "Read-only field that is equal to the product of the opportunity Amount field and the Probability.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fiscal": {"name": "fiscal", "description": "If fiscal years are not enabled, the name of the fiscal quarter or period in which the opportunity CloseDate falls.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fiscal_quarter": {"name": "fiscal_quarter", "description": "Represents the fiscal quarter. Valid values are 1, 2, 3, or 4.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fiscal_year": {"name": "fiscal_year", "description": "Represents the fiscal year, for example, 2006.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "forecast_category": {"name": "forecast_category", "description": "Restricted picklist field.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "forecast_category_name": {"name": "forecast_category_name", "description": "The name of the forecast category.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "has_open_activity": {"name": "has_open_activity", "description": "Indicates whether an opportunity has an open event or task (true) or not (false).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "has_opportunity_line_item": {"name": "has_opportunity_line_item", "description": "Read-only field that indicates whether the opportunity has associated line items. A value of true means that Opportunity line items have been created for the opportunity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "has_overdue_task": {"name": "has_overdue_task", "description": "Indicates whether an opportunity has an overdue task (true) or not (false).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_closed": {"name": "is_closed", "description": "True, if Stage Name Label is Closed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_deleted": {"name": "is_deleted", "description": "Indicates whether the object has been moved to the Recycle Bin (true) or not (false).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_excluded_from_territory_2_filter": {"name": "is_excluded_from_territory_2_filter", "description": "Used for Filter-Based Opportunity Territory Assignment. Indicates whether the opportunity is excluded (True) or included (False) each time the APEX filter is executed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_won": {"name": "is_won", "description": "True, if Stage Name Label is Won.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_activity_date": {"name": "last_activity_date", "description": "Value is one of the following, whichever is the most recent:Due date of the most recent event logged against the record or Due date of the most recently closed task associated with the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_referenced_date": {"name": "last_referenced_date", "description": "The timestamp when the current user last accessed this record, a record related to this record, or a list view.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_viewed_date": {"name": "last_viewed_date", "description": "The timestamp when the current user last viewed this record or list view. If this value is null, the user might have only accessed this record or list view (LastReferencedDate) but not viewed it.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "lead_source": {"name": "lead_source", "description": "Source of this opportunity, such as Advertisement or Trade Show.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "opportunity_name": {"name": "opportunity_name", "description": "Required. A name for this opportunity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "next_step": {"name": "next_step", "description": "Description of next task in closing opportunity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "owner_id": {"name": "owner_id", "description": "ID of the User who has been assigned to work this opportunity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "Pricebook2Id": {"name": "Pricebook2Id", "description": "ID of a related Pricebook2 object. The Pricebook2Id field indicates which Pricebook2 applies to this opportunity. The Pricebook2Id field is defined only for those organizations that have products enabled as a feature. You can specify values for only one field (Pricebook2Id or PricebookId)\u2014not both fields. For this reason, both fields are declared nillable.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "pricebook_2_id": {"name": "pricebook_2_id", "description": "Unavailable as of version 3.0. As of version 8.0, the Pricebook object is no longer available. Use the Pricebook2Id field instead, specifying the ID of the Pricebook2 record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "probability": {"name": "probability", "description": "Percentage of estimated confidence in closing the opportunity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "record_type_id": {"name": "record_type_id", "description": "ID of the record type assigned to this object.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "stage_name": {"name": "stage_name", "description": "Required. Current stage of this record. The StageName field controls several other fields on an opportunity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "synced_quote_id": {"name": "synced_quote_id", "description": "The ID of the Quote that syncs with the opportunity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "territory_2_id": {"name": "territory_2_id", "description": "The ID of the territory that is assigned to the opportunity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "type": {"name": "type", "description": "Type of opportunity. For example, Existing Business or New Business.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_created_this_month": {"name": "is_created_this_month", "description": "Yes, if the opportunity created date is in the current month.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_created_this_quarter": {"name": "is_created_this_quarter", "description": "Yes, if the opportunity created date is in the current quarter.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "days_since_created": {"name": "days_since_created", "description": "The difference, in days, between the opportunity created date and the current timestamp.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "days_to_close": {"name": "days_to_close", "description": "The difference, in days, between the opportunity created date and the opportunity close date.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_closed_this_month": {"name": "is_closed_this_month", "description": "Yes, if the opportunity close date is in the current month.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_closed_this_quarter": {"name": "is_closed_this_quarter", "description": "Yes, if the opportunity close date is in the current quarter.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "salesforce_source://models/stg_tables.yml", "compiled_path": "target/compiled/salesforce_source/models/stg_salesforce__opportunity.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table"}, "created_at": 1628200848, "compiled_sql": "with source as (\n\n select *\n from `dbt-package-testing`.`hubspot_integration_tests`.`stg_salesforce__opportunity_tmp`\n\n), macro as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n \n cast(null as \n timestamp\n) as \n \n _fivetran_synced\n \n , \n cast(null as \n string\n) as \n \n account_id\n \n , \n cast(null as \n float64\n) as \n \n amount\n \n , \n cast(null as \n string\n) as \n \n campaign_id\n \n , \n cast(null as \n timestamp\n) as \n \n close_date\n \n , \n cast(null as \n timestamp\n) as \n \n created_date\n \n , \n cast(null as \n string\n) as \n \n description\n \n , \n cast(null as \n numeric\n) as \n \n expected_revenue\n \n , \n cast(null as \n string\n) as \n \n fiscal\n \n , \n cast(null as \n int64\n) as \n \n fiscal_quarter\n \n , \n cast(null as \n int64\n) as \n \n fiscal_year\n \n , \n cast(null as \n string\n) as \n \n forecast_category\n \n , \n cast(null as \n string\n) as \n \n forecast_category_name\n \n , \n cast(null as boolean) as \n \n has_open_activity\n \n , \n cast(null as boolean) as \n \n has_opportunity_line_item\n \n , \n cast(null as boolean) as \n \n has_overdue_task\n \n , \n cast(null as \n string\n) as \n \n id\n \n , \n cast(null as boolean) as \n \n is_closed\n \n , \n cast(null as boolean) as \n \n is_deleted\n \n , \n cast(null as boolean) as \n \n is_won\n \n , \n cast(null as \n timestamp\n) as \n \n last_activity_date\n \n , \n cast(null as \n timestamp\n) as \n \n last_referenced_date\n \n , \n cast(null as \n timestamp\n) as \n \n last_viewed_date\n \n , \n cast(null as \n string\n) as \n \n lead_source\n \n , \n cast(null as \n string\n) as \n \n name\n \n , \n cast(null as \n string\n) as \n \n next_step\n \n , \n cast(null as \n string\n) as \n \n owner_id\n \n , \n cast(null as \n float64\n) as \n \n probability\n \n , \n cast(null as \n string\n) as \n \n record_type_id\n \n , \n cast(null as \n string\n) as \n \n stage_name\n \n , \n cast(null as \n string\n) as \n \n synced_quote_id\n \n , \n cast(null as \n string\n) as \n \n type\n \n \n\n\n\n --The below script allows for pass through columns.\n\n \n\n from source\n\n), renamed as (\n \n select \n\n _fivetran_synced,\n account_id,\n amount,\n campaign_id,\n close_date,\n created_date,\n description,\n expected_revenue,\n fiscal,\n fiscal_quarter,\n fiscal_year,\n forecast_category,\n forecast_category_name,\n has_open_activity,\n has_opportunity_line_item,\n has_overdue_task,\n id as opportunity_id,\n is_closed,\n is_deleted,\n is_won,\n last_activity_date,\n last_referenced_date,\n last_viewed_date,\n lead_source,\n name as opportunity_name,\n next_step,\n owner_id,\n probability,\n record_type_id,\n stage_name,\n synced_quote_id,\n type\n\n --The below script allows for pass through columns.\n\n \n\n from macro\n\n), calculated as (\n \n select \n *,\n created_date >= \n timestamp_trunc(\n cast(\n current_timestamp\n as timestamp),\n month\n )\n\n as is_created_this_month,\n created_date >= \n timestamp_trunc(\n cast(\n current_timestamp\n as timestamp),\n quarter\n )\n\n as is_created_this_quarter,\n \n\n datetime_diff(\n cast(created_date as datetime),\n cast(\n current_timestamp\n as datetime),\n day\n )\n\n as days_since_created,\n \n\n datetime_diff(\n cast(created_date as datetime),\n cast(close_date as datetime),\n day\n )\n\n as days_to_close,\n \n timestamp_trunc(\n cast(close_date as timestamp),\n month\n )\n\n = \n timestamp_trunc(\n cast(\n current_timestamp\n as timestamp),\n month\n )\n\n as is_closed_this_month,\n \n timestamp_trunc(\n cast(close_date as timestamp),\n quarter\n )\n\n = \n timestamp_trunc(\n cast(\n current_timestamp\n as timestamp),\n quarter\n )\n\n as is_closed_this_quarter\n\n from renamed\n\n)\n\nselect * \nfrom calculated\nwhere not coalesce(is_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_integration_tests`.`stg_salesforce__opportunity`"}, "model.salesforce_source.stg_salesforce__user_role": {"raw_sql": "with source as (\n\n select *\n from {{ ref('stg_salesforce__user_role_tmp') }}\n\n), macro as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_salesforce__user_role_tmp')),\n staging_columns=get_user_role_columns()\n )\n }}\n\n from source\n\n), renamed as (\n\n select\n _fivetran_deleted,\n _fivetran_synced,\n developer_name,\n id as user_role_id,\n name as user_role_name,\n opportunity_access_for_account_owner,\n parent_role_id,\n rollup_description\n from macro\n\n)\n\nselect *\nfrom renamed\nwhere not coalesce(_fivetran_deleted, false)", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.salesforce_source.get_user_role_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.salesforce_source.stg_salesforce__user_role_tmp", "model.salesforce_source.stg_salesforce__user_role_tmp"]}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "hubspot_integration_tests", "fqn": ["salesforce_source", "stg_salesforce__user_role"], "unique_id": "model.salesforce_source.stg_salesforce__user_role", "package_name": "salesforce_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/salesforce_source", "path": "stg_salesforce__user_role.sql", "original_file_path": "models/stg_salesforce__user_role.sql", "name": "stg_salesforce__user_role", "alias": "stg_salesforce__user_role", "checksum": {"name": "sha256", "checksum": "81579462384f0be9e94ed286104e3c8ce7345b8e17a6ee82551edb5d760df565"}, "tags": [], "refs": [["stg_salesforce__user_role_tmp"], ["stg_salesforce__user_role_tmp"]], "sources": [], "description": "Represents a user role in your organization.", "columns": {"user_role_id": {"name": "user_role_id", "description": "The unique, system-generated ID assigned during creation", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time at which fivetran last synced this record", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "True, if this field has been deleted", "meta": {}, "data_type": null, "quote": null, "tags": []}, "case_access_for_account_owner": {"name": "case_access_for_account_owner", "description": "The case access level for the account owner.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "contact_access_for_account_owner": {"name": "contact_access_for_account_owner", "description": "The contact access level for the account owner.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "developer_name": {"name": "developer_name", "description": "The unique name of the object in the API.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "forecast_user_id": {"name": "forecast_user_id", "description": "The ID of the forecast manager associated with this role.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "may_forecast_manager_share": {"name": "may_forecast_manager_share", "description": "Indicates whether the forecast manager can manually share their own forecast.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "user_role_name": {"name": "user_role_name", "description": "Required. Name of the role. Corresponds to Label on the user interface.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "opportunity_access_for_account_owner": {"name": "opportunity_access_for_account_owner", "description": "Required. The opportunity access level for the account owner.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_role_id": {"name": "parent_role_id", "description": "The ID of the parent role.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "portal_type": {"name": "portal_type", "description": "This value indicates the type of portal for the role", "meta": {}, "data_type": null, "quote": null, "tags": []}, "rollup_description": {"name": "rollup_description", "description": "Description of the forecast rollup.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "salesforce_source://models/stg_tables.yml", "compiled_path": "target/compiled/salesforce_source/models/stg_salesforce__user_role.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table"}, "created_at": 1628200848, "compiled_sql": "with source as (\n\n select *\n from `dbt-package-testing`.`hubspot_integration_tests`.`stg_salesforce__user_role_tmp`\n\n), macro as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n \n cast(null as boolean) as \n \n _fivetran_deleted\n \n , \n cast(null as \n timestamp\n) as \n \n _fivetran_synced\n \n , \n cast(null as \n string\n) as \n \n developer_name\n \n , \n cast(null as \n string\n) as \n \n id\n \n , \n cast(null as \n string\n) as \n \n name\n \n , \n cast(null as \n string\n) as \n \n opportunity_access_for_account_owner\n \n , \n cast(null as \n string\n) as \n \n parent_role_id\n \n , \n cast(null as \n string\n) as \n \n rollup_description\n \n \n\n\n\n from source\n\n), renamed as (\n\n select\n _fivetran_deleted,\n _fivetran_synced,\n developer_name,\n id as user_role_id,\n name as user_role_name,\n opportunity_access_for_account_owner,\n parent_role_id,\n rollup_description\n from macro\n\n)\n\nselect *\nfrom renamed\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_integration_tests`.`stg_salesforce__user_role`"}, "model.salesforce_source.stg_salesforce__account": {"raw_sql": "with source as (\n\n select \n *\n from {{ ref('stg_salesforce__account_tmp') }}\n\n), macro as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_salesforce__account_tmp')),\n staging_columns=get_account_columns()\n )\n }}\n\n --The below script allows for pass through columns.\n {% if var('account_pass_through_columns') %}\n ,\n {{ var('account_pass_through_columns') | join (\", \")}}\n\n {% endif %}\n \n from source\n\n), renamed as (\n\n select \n _fivetran_synced,\n account_number,\n account_source,\n annual_revenue,\n billing_city,\n billing_country,\n billing_postal_code,\n billing_state,\n billing_state_code,\n billing_street,\n description,\n id as account_id,\n industry,\n is_deleted,\n last_activity_date,\n last_referenced_date,\n last_viewed_date,\n master_record_id,\n name as account_name,\n number_of_employees,\n owner_id,\n ownership,\n parent_id,\n rating,\n record_type_id,\n shipping_city,\n shipping_country,\n shipping_country_code,\n shipping_postal_code,\n shipping_state,\n shipping_state_code,\n shipping_street,\n type,\n website\n\n --The below script allows for pass through columns.\n {% if var('account_pass_through_columns') %}\n ,\n {{ var('account_pass_through_columns') | join (\", \")}}\n\n {% endif %}\n \n from macro\n)\n\nselect *\nfrom renamed\nwhere not coalesce(is_deleted, false)", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.salesforce_source.get_account_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.salesforce_source.stg_salesforce__account_tmp", "model.salesforce_source.stg_salesforce__account_tmp"]}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "hubspot_integration_tests", "fqn": ["salesforce_source", "stg_salesforce__account"], "unique_id": "model.salesforce_source.stg_salesforce__account", "package_name": "salesforce_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/salesforce_source", "path": "stg_salesforce__account.sql", "original_file_path": "models/stg_salesforce__account.sql", "name": "stg_salesforce__account", "alias": "stg_salesforce__account", "checksum": {"name": "sha256", "checksum": "88e62c674254975eb49c4bb52f7f2d876622c4268228f588dde81e5edc8a46ce"}, "tags": [], "refs": [["stg_salesforce__account_tmp"], ["stg_salesforce__account_tmp"]], "sources": [], "description": "Represents an individual account, which is an organization or person involved with your business (such as customers, competitors, and partners).", "columns": {"account_id": {"name": "account_id", "description": "The unique, system-generated ID assigned during creation", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time at which fivetran last synced this record", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_number": {"name": "account_number", "description": "Account number assigned to this account (not the unique, system-generated ID assigned during creation).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_source": {"name": "account_source", "description": "The source of the account record. For example, Advertisement, Data.com, or Trade Show.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "annual_revenue": {"name": "annual_revenue", "description": "Estimated annual revenue of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billing_city": {"name": "billing_city", "description": "Details for the billing address of this account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billing_country": {"name": "billing_country", "description": "Details for the billing address of this account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billing_country_code": {"name": "billing_country_code", "description": "The ISO country code for the account\u2019s billing address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billing_geocode_accuracy": {"name": "billing_geocode_accuracy", "description": "Accuracy level of the geocode for the billing address. See Compound Field Considerations and Limitations for details on geolocation compound fields.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billing_latitude": {"name": "billing_latitude", "description": "Used with BillingLongitude to specify the precise geolocation of a billing address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billing_longitude": {"name": "billing_longitude", "description": "Used with BillingLatitude to specify the precise geolocation of a billing address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billing_postal_code": {"name": "billing_postal_code", "description": "Details for the billing address of this account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billing_state": {"name": "billing_state", "description": "Details for the billing address of this account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billing_state_code": {"name": "billing_state_code", "description": "The ISO state code for the account\u2019s billing address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billing_street": {"name": "billing_street", "description": "Street address for the billing address of this account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Text description of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fax": {"name": "fax", "description": "Fax number for the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "industry": {"name": "industry", "description": "An industry associated with this account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_deleted": {"name": "is_deleted", "description": "Indicates whether the object has been moved to the Recycle Bin (true) or not (false).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "jigsaw_company_id": {"name": "jigsaw_company_id", "description": "References the ID of a company in Data.com. If an account has a value in this field, it means that the account was imported from Data.com.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_activity_date": {"name": "last_activity_date", "description": "Value is one of the following, whichever is the most recent", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_referenced_date": {"name": "last_referenced_date", "description": "The timestamp when the current user last accessed this record, a record related to this record, or a list view.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_viewed_date": {"name": "last_viewed_date", "description": "The timestamp when the current user last viewed this record or list view. If this value is null, the user might have only accessed this record or list view (LastReferencedDate) but not viewed it.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "master_record_id": {"name": "master_record_id", "description": "If this object was deleted as the result of a merge, this field contains the ID of the record that was kept. If this object was deleted for any other reason, or has not been deleted, the value is null.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "Required. Name of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "number_of_employees": {"name": "number_of_employees", "description": "Number of employees working at the company represented by this account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "owner_id": {"name": "owner_id", "description": "The ID of the user who currently owns this account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ownership": {"name": "ownership", "description": "Ownership type for the account, for example Private, Public, or Subsidiary.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_id": {"name": "parent_id", "description": "ID of the parent object, if any.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "phone": {"name": "phone", "description": "Phone number for this account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "photo_url": {"name": "photo_url", "description": "Path to be combined with the URL of a Salesforce instance (for example, https://yourInstance.salesforce.com/) to generate a URL to request the social network profile image associated with the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "rating": {"name": "rating", "description": "The account\u2019s prospect rating, for example Hot, Warm, or Cold.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "record_type_id": {"name": "record_type_id", "description": "ID of the record type assigned to this object.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "shipping_city": {"name": "shipping_city", "description": "Details of the shipping address for this account", "meta": {}, "data_type": null, "quote": null, "tags": []}, "shipping_country": {"name": "shipping_country", "description": "Details of the shipping address for this account. Country", "meta": {}, "data_type": null, "quote": null, "tags": []}, "shipping_country_code": {"name": "shipping_country_code", "description": "The ISO country code for the account\u2019s shipping address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "shipping_geocode_accuracy": {"name": "shipping_geocode_accuracy", "description": "Accuracy level of the geocode for the shipping address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "shipping_latitude": {"name": "shipping_latitude", "description": "Used with ShippingLongitude to specify the precise geolocation of a shipping address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "shipping_longitude": {"name": "shipping_longitude", "description": "Used with ShippingLatitude to specify the precise geolocation of an address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "shipping_postal_code": {"name": "shipping_postal_code", "description": "Details of the shipping address for this account. Postal code", "meta": {}, "data_type": null, "quote": null, "tags": []}, "shipping_state": {"name": "shipping_state", "description": "Details of the shipping address for this account. State", "meta": {}, "data_type": null, "quote": null, "tags": []}, "shipping_state_code": {"name": "shipping_state_code", "description": "The ISO state code for the account\u2019s shipping address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "shipping_street": {"name": "shipping_street", "description": "The street address of the shipping address for this account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sic": {"name": "sic", "description": "Standard Industrial Classification code of the company\u2019s main business categorization, for example, 57340 for Electronics.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sic_desc": {"name": "sic_desc", "description": "A brief description of an organization\u2019s line of business, based on its SIC code.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "site": {"name": "site", "description": "Name of the account\u2019s location, for example Headquarters or London.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ticker_symbol": {"name": "ticker_symbol", "description": "The stock market symbol for this account. This field is available on business accounts, not person accounts.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "type": {"name": "type", "description": "Type of account, for example, Customer, Competitor, or Partner.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "website": {"name": "website", "description": "The website of this account.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "salesforce_source://models/stg_tables.yml", "compiled_path": "target/compiled/salesforce_source/models/stg_salesforce__account.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table"}, "created_at": 1628200848, "compiled_sql": "with source as (\n\n select \n *\n from `dbt-package-testing`.`hubspot_integration_tests`.`stg_salesforce__account_tmp`\n\n), macro as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n \n cast(null as \n timestamp\n) as \n \n _fivetran_synced\n \n , \n cast(null as \n string\n) as \n \n account_number\n \n , \n cast(null as \n string\n) as \n \n account_source\n \n , \n cast(null as \n float64\n) as \n \n annual_revenue\n \n , \n cast(null as \n string\n) as \n \n billing_city\n \n , \n cast(null as \n string\n) as \n \n billing_country\n \n , \n cast(null as \n string\n) as \n \n billing_postal_code\n \n , \n cast(null as \n string\n) as \n \n billing_state\n \n , \n cast(null as \n string\n) as \n \n billing_state_code\n \n , \n cast(null as \n string\n) as \n \n billing_street\n \n , \n cast(null as \n string\n) as \n \n description\n \n , \n cast(null as \n string\n) as \n \n id\n \n , \n cast(null as \n string\n) as \n \n industry\n \n , \n cast(null as boolean) as \n \n is_deleted\n \n , \n cast(null as \n timestamp\n) as \n \n last_activity_date\n \n , \n cast(null as \n timestamp\n) as \n \n last_referenced_date\n \n , \n cast(null as \n timestamp\n) as \n \n last_viewed_date\n \n , \n cast(null as \n string\n) as \n \n master_record_id\n \n , \n cast(null as \n string\n) as \n \n name\n \n , \n cast(null as \n int64\n) as \n \n number_of_employees\n \n , \n cast(null as \n string\n) as \n \n owner_id\n \n , \n cast(null as \n string\n) as \n \n ownership\n \n , \n cast(null as \n string\n) as \n \n parent_id\n \n , \n cast(null as \n string\n) as \n \n rating\n \n , \n cast(null as \n string\n) as \n \n record_type_id\n \n , \n cast(null as \n string\n) as \n \n shipping_city\n \n , \n cast(null as \n string\n) as \n \n shipping_country\n \n , \n cast(null as \n string\n) as \n \n shipping_country_code\n \n , \n cast(null as \n string\n) as \n \n shipping_postal_code\n \n , \n cast(null as \n string\n) as \n \n shipping_state\n \n , \n cast(null as \n string\n) as \n \n shipping_state_code\n \n , \n cast(null as \n string\n) as \n \n shipping_street\n \n , \n cast(null as \n string\n) as \n \n type\n \n , \n cast(null as \n string\n) as \n \n website\n \n \n\n\n\n --The below script allows for pass through columns.\n \n \n from source\n\n), renamed as (\n\n select \n _fivetran_synced,\n account_number,\n account_source,\n annual_revenue,\n billing_city,\n billing_country,\n billing_postal_code,\n billing_state,\n billing_state_code,\n billing_street,\n description,\n id as account_id,\n industry,\n is_deleted,\n last_activity_date,\n last_referenced_date,\n last_viewed_date,\n master_record_id,\n name as account_name,\n number_of_employees,\n owner_id,\n ownership,\n parent_id,\n rating,\n record_type_id,\n shipping_city,\n shipping_country,\n shipping_country_code,\n shipping_postal_code,\n shipping_state,\n shipping_state_code,\n shipping_street,\n type,\n website\n\n --The below script allows for pass through columns.\n \n \n from macro\n)\n\nselect *\nfrom renamed\nwhere not coalesce(is_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_integration_tests`.`stg_salesforce__account`"}, "model.salesforce_source.stg_salesforce__user": {"raw_sql": "with source as (\n\n select *\n from {{ ref('stg_salesforce__user_tmp') }}\n\n), macro as (\n\n select\n \n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_salesforce__user_tmp')),\n staging_columns=get_user_columns()\n )\n }}\n\n --The below script allows for pass through columns.\n\n {% if var('user_pass_through_columns') %}\n ,\n {{ var('user_pass_through_columns') | join (\", \")}}\n\n {% endif %}\n\n from source\n\n), renamed as (\n \n select \n\n _fivetran_deleted,\n _fivetran_synced,\n account_id,\n alias,\n city,\n company_name,\n contact_id,\n country,\n country_code,\n department,\n email,\n first_name,\n id as user_id,\n individual_id,\n is_active,\n last_login_date,\n last_name,\n last_referenced_date,\n last_viewed_date,\n manager_id,\n name as user_name,\n postal_code,\n profile_id,\n state,\n state_code,\n street,\n title,\n user_role_id,\n user_type,\n username \n --The below script allows for pass through columns.\n\n {% if var('user_pass_through_columns') %}\n ,\n {{ var('user_pass_through_columns') | join (\", \")}}\n\n {% endif %}\n \n from macro\n\n)\n\nselect * \nfrom renamed\nwhere not coalesce(_fivetran_deleted, false)", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.salesforce_source.get_user_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.salesforce_source.stg_salesforce__user_tmp", "model.salesforce_source.stg_salesforce__user_tmp"]}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "hubspot_integration_tests", "fqn": ["salesforce_source", "stg_salesforce__user"], "unique_id": "model.salesforce_source.stg_salesforce__user", "package_name": "salesforce_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/salesforce_source", "path": "stg_salesforce__user.sql", "original_file_path": "models/stg_salesforce__user.sql", "name": "stg_salesforce__user", "alias": "stg_salesforce__user", "checksum": {"name": "sha256", "checksum": "6ca78582b531aef59390cb964d7206187c9786402a0df86bc383816720908a6f"}, "tags": [], "refs": [["stg_salesforce__user_tmp"], ["stg_salesforce__user_tmp"]], "sources": [], "description": "Represents a user in your organization.", "columns": {"user_id": {"name": "user_id", "description": "The unique, system-generated ID assigned during creation.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time at which fivetran last synced this record", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "True, if this field has been deleted", "meta": {}, "data_type": null, "quote": null, "tags": []}, "about_me": {"name": "about_me", "description": "Information about the user, such as areas of interest or skills.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "ID of the Account associated with a Customer Portal user. This field is null for Salesforce users.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "alias": {"name": "alias", "description": "Required. The user\u2019s alias. For example, jsmith.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "badge_text": {"name": "badge_text", "description": "The community role, displayed on the user profile page just below the user name.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "banner_photo_url": {"name": "banner_photo_url", "description": "The URL for the user's banner photo.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "call_center_id": {"name": "call_center_id", "description": "If Salesforce CRM Call Center is enabled, represents the call center to which this user is assigned.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "city": {"name": "city", "description": "The city associated with the user. Up to 40 characters allowed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "community_nickname": {"name": "community_nickname", "description": "Name used to identify this user in the Community application, which includes the ideas and answers features.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "company_name": {"name": "company_name", "description": "The name of the user\u2019s company.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "contact_id": {"name": "contact_id", "description": "ID of the Contact associated with this account. The contact must have a value in the AccountId field or an error occurs.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "country": {"name": "country", "description": "The country associated with the user.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "country_code": {"name": "country_code", "description": "The ISO country code associated with the user.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "default_group_notification_frequency": {"name": "default_group_notification_frequency", "description": "The default frequency for sending the user's Chatter group email notifications when the user joins groups.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "delegated_approver_id": {"name": "delegated_approver_id", "description": "Id of the user who is a delegated approver for this user.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department": {"name": "department", "description": "The company department associated with the user.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "digest_frequency": {"name": "digest_frequency", "description": "The frequency at which the system sends the user\u2019s Chatter personal email digest.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "division": {"name": "division", "description": "The division associated with this user, similar to Department and unrelated to DefaultDivision.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "email": {"name": "email", "description": "Required. The user\u2019s email address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "email_encoding_key": {"name": "email_encoding_key", "description": "Required. The email encoding for the user, such as ISO-8859-1 or UTF-8.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "email_preferences_auto_bcc": {"name": "email_preferences_auto_bcc", "description": "Determines whether the user receives copies of sent emails. This option applies only if compliance BCC emails are not enabled.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "employee_number": {"name": "employee_number", "description": "The user\u2019s employee number.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "extension": {"name": "extension", "description": "The user\u2019s phone extension number.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fax": {"name": "fax", "description": "The user\u2019s fax number.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "federation_identifier": {"name": "federation_identifier", "description": "Indicates the value that must be listed in the Subject element of a Security Assertion Markup Language (SAML) IDP certificate to authenticate the user for a client application using single sign-on.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "first_name": {"name": "first_name", "description": "The user\u2019s first name.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "forecast_enabled": {"name": "forecast_enabled", "description": "Indicates whether the user is enabled as a forecast manager (true) or not (false).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "full_photo_url": {"name": "full_photo_url", "description": "The URL for the user's profile photo.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "geocode_accuracy": {"name": "geocode_accuracy", "description": "The level of accuracy of a location\u2019s geographical coordinates compared with its physical address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "individual_id": {"name": "individual_id", "description": "ID of the data privacy record associated with this user. This field is available if Data Protection and Privacy is enabled.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_active": {"name": "is_active", "description": "Indicates whether the user has access to log in (true) or not (false).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_profile_photo_active": {"name": "is_profile_photo_active", "description": "Indicates whether a user has a profile photo (true) or not (false).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "language_locale_key": {"name": "language_locale_key", "description": "Required. The user\u2019s language, such as \u201cFrench\u201d or \u201cChinese (Traditional).\u201d", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_login_date": {"name": "last_login_date", "description": "The date and time when the user last successfully logged in. This value is updated if 60 seconds have elapsed since the user\u2019s last login.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_name": {"name": "last_name", "description": "Required. The user\u2019s last name.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_referenced_date": {"name": "last_referenced_date", "description": "The timestamp for when the current user last viewed a record related to this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_viewed_date": {"name": "last_viewed_date", "description": "The timestamp for when the current user last viewed this record. If this value is null, this record might only have been referenced (LastReferencedDate) and not viewed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "latitude": {"name": "latitude", "description": "Used with Longitude to specify the precise geolocation of an address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "locale_sid_key": {"name": "locale_sid_key", "description": "Required. This field is a restricted picklist field. The value of the field affects formatting and parsing of values, especially numeric values, in the user interface.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "longitude": {"name": "longitude", "description": "Used with Latitude to specify the precise geolocation of an address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "manager_id": {"name": "manager_id", "description": "The Id of the user who manages this user.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "medium_banner_photo_url": {"name": "medium_banner_photo_url", "description": "The URL for the medium-sized user profile banner photo.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "mobile_phone": {"name": "mobile_phone", "description": "The user\u2019s mobile or cellular phone number.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "user_name": {"name": "user_name", "description": "Concatenation of FirstName and LastName.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "offline_trial_expiration_date": {"name": "offline_trial_expiration_date", "description": "The date and time when the user\u2019s Connect Offline trial expires.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "phone": {"name": "phone", "description": "The user\u2019s phone number.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "postal_code": {"name": "postal_code", "description": "The user\u2019s postal or ZIP code.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "profile_id": {"name": "profile_id", "description": "Required. ID of the user\u2019s Profile. Use this value to cache metadata based on profile. In earlier releases, this was RoleId.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "receives_admin_info_emails": {"name": "receives_admin_info_emails", "description": "Indicates whether the user receives email for administrators from Salesforce (true) or not (false).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "receives_info_emails": {"name": "receives_info_emails", "description": "Indicates whether the user receives informational email from Salesforce (true) or not (false).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sender_email": {"name": "sender_email", "description": "The email address used as the From address when the user sends emails. This address is the same value shown in Setup on the My Email Settings page.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sender_name": {"name": "sender_name", "description": "The name used as the email sender when the user sends emails. This name is the same value shown in Setup on the My Email Settings page.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "signature": {"name": "signature", "description": "The signature text added to emails.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "small_banner_photo_url": {"name": "small_banner_photo_url", "description": "The URL for the small user profile banner photo.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "small_photo_url": {"name": "small_photo_url", "description": "The URL for a thumbnail of the user's profile photo.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "state": {"name": "state", "description": "The state associated with the User.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "state_code": {"name": "state_code", "description": "The ISO state code associated with the user.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "street": {"name": "street", "description": "The street address associated with the User.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "time_zone_sid_key": {"name": "time_zone_sid_key", "description": "Required. This field is a restricted picklist field. A User time zone affects the offset used when displaying or entering times in the user interface.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "title": {"name": "title", "description": "The user\u2019s business title, such as \u201cVice President.\u201d", "meta": {}, "data_type": null, "quote": null, "tags": []}, "username": {"name": "username", "description": "Contains the name that a user enters to log in. The value for this field must be in the form of an email address, using all lowercase characters. It must also be unique across all organizations.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "user_role_id": {"name": "user_role_id", "description": "ID of the user\u2019s UserRole.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "user_type": {"name": "user_type", "description": "The category of user license.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "salesforce_source://models/stg_tables.yml", "compiled_path": "target/compiled/salesforce_source/models/stg_salesforce__user.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table"}, "created_at": 1628200848, "compiled_sql": "with source as (\n\n select *\n from `dbt-package-testing`.`hubspot_integration_tests`.`stg_salesforce__user_tmp`\n\n), macro as (\n\n select\n \n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n cast(null as boolean) as \n \n _fivetran_deleted\n \n , \n cast(null as \n timestamp\n) as \n \n _fivetran_synced\n \n , \n cast(null as \n string\n) as \n \n account_id\n \n , \n cast(null as \n string\n) as \n \n alias\n \n , \n cast(null as \n string\n) as \n \n city\n \n , \n cast(null as \n string\n) as \n \n company_name\n \n , \n cast(null as \n string\n) as \n \n contact_id\n \n , \n cast(null as \n string\n) as \n \n country\n \n , \n cast(null as \n string\n) as \n \n country_code\n \n , \n cast(null as \n string\n) as \n \n department\n \n , \n cast(null as \n string\n) as \n \n email\n \n , \n cast(null as \n string\n) as \n \n first_name\n \n , \n cast(null as \n string\n) as \n \n id\n \n , \n cast(null as \n string\n) as \n \n individual_id\n \n , \n cast(null as boolean) as \n \n is_active\n \n , \n cast(null as \n timestamp\n) as \n \n last_login_date\n \n , \n cast(null as \n string\n) as \n \n last_name\n \n , \n cast(null as \n timestamp\n) as \n \n last_referenced_date\n \n , \n cast(null as \n timestamp\n) as \n \n last_viewed_date\n \n , \n cast(null as \n string\n) as \n \n manager_id\n \n , \n cast(null as \n string\n) as \n \n name\n \n , \n cast(null as \n string\n) as \n \n postal_code\n \n , \n cast(null as \n string\n) as \n \n profile_id\n \n , \n cast(null as \n string\n) as \n \n state\n \n , \n cast(null as \n string\n) as \n \n state_code\n \n , \n cast(null as \n string\n) as \n \n street\n \n , \n cast(null as \n string\n) as \n \n title\n \n , \n cast(null as \n string\n) as \n \n user_role_id\n \n , \n cast(null as \n string\n) as \n \n user_type\n \n , \n cast(null as \n string\n) as \n \n username\n \n \n\n\n\n --The below script allows for pass through columns.\n\n \n\n from source\n\n), renamed as (\n \n select \n\n _fivetran_deleted,\n _fivetran_synced,\n account_id,\n alias,\n city,\n company_name,\n contact_id,\n country,\n country_code,\n department,\n email,\n first_name,\n id as user_id,\n individual_id,\n is_active,\n last_login_date,\n last_name,\n last_referenced_date,\n last_viewed_date,\n manager_id,\n name as user_name,\n postal_code,\n profile_id,\n state,\n state_code,\n street,\n title,\n user_role_id,\n user_type,\n username \n --The below script allows for pass through columns.\n\n \n \n from macro\n\n)\n\nselect * \nfrom renamed\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_integration_tests`.`stg_salesforce__user`"}, "model.salesforce_source.stg_salesforce__user_tmp": {"raw_sql": "select *\nfrom {{ var('user') }}\n{%- if var('salesforce__using_history_mode', false) -%}\nwhere _fivetran_active\n{%- endif -%}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["seed.salesforce_source_integration_tests.user_data"]}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "hubspot_integration_tests", "fqn": ["salesforce_source", "tmp", "stg_salesforce__user_tmp"], "unique_id": "model.salesforce_source.stg_salesforce__user_tmp", "package_name": "salesforce_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/salesforce_source", "path": "tmp/stg_salesforce__user_tmp.sql", "original_file_path": "models/tmp/stg_salesforce__user_tmp.sql", "name": "stg_salesforce__user_tmp", "alias": "stg_salesforce__user_tmp", "checksum": {"name": "sha256", "checksum": "813c6853ec8d1f564b797e7020409a7b4f444326c3dd5cccdf3eba93fba1a540"}, "tags": [], "refs": [["user_data"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/salesforce_source/models/tmp/stg_salesforce__user_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view"}, "created_at": 1628200848, "compiled_sql": "select *\nfrom `dbt-package-testing`.`hubspot_integration_tests`.`user_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_integration_tests`.`stg_salesforce__user_tmp`"}, "model.salesforce_source.stg_salesforce__opportunity_tmp": {"raw_sql": "select *\nfrom {{ var('opportunity') }}\n{%- if var('salesforce__using_history_mode', false) -%}\nwhere _fivetran_active\n{%- endif -%}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["seed.salesforce_source_integration_tests.opportunity_data"]}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "hubspot_integration_tests", "fqn": ["salesforce_source", "tmp", "stg_salesforce__opportunity_tmp"], "unique_id": "model.salesforce_source.stg_salesforce__opportunity_tmp", "package_name": "salesforce_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/salesforce_source", "path": "tmp/stg_salesforce__opportunity_tmp.sql", "original_file_path": "models/tmp/stg_salesforce__opportunity_tmp.sql", "name": "stg_salesforce__opportunity_tmp", "alias": "stg_salesforce__opportunity_tmp", "checksum": {"name": "sha256", "checksum": "def9481a9595649d747dafca5458ad982773fe55ac04b015c749d24314df4cda"}, "tags": [], "refs": [["opportunity_data"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/salesforce_source/models/tmp/stg_salesforce__opportunity_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view"}, "created_at": 1628200848, "compiled_sql": "select *\nfrom `dbt-package-testing`.`hubspot_integration_tests`.`opportunity_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_integration_tests`.`stg_salesforce__opportunity_tmp`"}, "model.salesforce_source.stg_salesforce__account_tmp": {"raw_sql": "select *\nfrom {{ var('account') }}\n{%- if var('salesforce__using_history_mode', false) -%}\nwhere _fivetran_active\n{%- endif -%}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["seed.salesforce_source_integration_tests.account_data"]}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "hubspot_integration_tests", "fqn": ["salesforce_source", "tmp", "stg_salesforce__account_tmp"], "unique_id": "model.salesforce_source.stg_salesforce__account_tmp", "package_name": "salesforce_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/salesforce_source", "path": "tmp/stg_salesforce__account_tmp.sql", "original_file_path": "models/tmp/stg_salesforce__account_tmp.sql", "name": "stg_salesforce__account_tmp", "alias": "stg_salesforce__account_tmp", "checksum": {"name": "sha256", "checksum": "44df5ef297a5bd2d864d921e2a95e83bf7cdd25f2ab0ca1728f9321feaffd80b"}, "tags": [], "refs": [["account_data"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/salesforce_source/models/tmp/stg_salesforce__account_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view"}, "created_at": 1628200848, "compiled_sql": "select *\nfrom `dbt-package-testing`.`hubspot_integration_tests`.`account_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_integration_tests`.`stg_salesforce__account_tmp`"}, "model.salesforce_source.stg_salesforce__user_role_tmp": {"raw_sql": "select *\nfrom {{ var('user_role') }}\n{%- if var('salesforce__using_history_mode', false) -%}\nwhere _fivetran_active\n{%- endif -%}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["seed.salesforce_source_integration_tests.user_role_data"]}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "hubspot_integration_tests", "fqn": ["salesforce_source", "tmp", "stg_salesforce__user_role_tmp"], "unique_id": "model.salesforce_source.stg_salesforce__user_role_tmp", "package_name": "salesforce_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/salesforce_source", "path": "tmp/stg_salesforce__user_role_tmp.sql", "original_file_path": "models/tmp/stg_salesforce__user_role_tmp.sql", "name": "stg_salesforce__user_role_tmp", "alias": "stg_salesforce__user_role_tmp", "checksum": {"name": "sha256", "checksum": "37985a1d3c845d6eb22778aaaed0447e2cc1811dbc02a24aeef7f779b67691a9"}, "tags": [], "refs": [["user_role_data"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/salesforce_source/models/tmp/stg_salesforce__user_role_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view"}, "created_at": 1628200848, "compiled_sql": "select *\nfrom `dbt-package-testing`.`hubspot_integration_tests`.`user_role_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_integration_tests`.`stg_salesforce__user_role_tmp`"}, "test.salesforce_source.not_null_stg_salesforce__account_account_id.318c3c43de": {"raw_sql": "{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "account_id", "model": "{% if config.get('where') %}(select * from {{ ref('stg_salesforce__account') }} where {{config.get('where')}}) stg_salesforce__account{% else %}{{ ref('stg_salesforce__account') }}{% endif %}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.salesforce_source.stg_salesforce__account"]}, "config": {"enabled": true, "materialized": "test", "persist_docs": {}, "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0", "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "hubspot_integration_tests_dbt_test__audit", "fqn": ["salesforce_source", "schema_test", "not_null_stg_salesforce__account_account_id"], "unique_id": "test.salesforce_source.not_null_stg_salesforce__account_account_id.318c3c43de", "package_name": "salesforce_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/salesforce_source", "path": "schema_test/not_null_stg_salesforce__account_account_id.sql", "original_file_path": "models/stg_tables.yml", "name": "not_null_stg_salesforce__account_account_id", "alias": "not_null_stg_salesforce__account_account_id", "checksum": {"name": "none", "checksum": ""}, "tags": ["schema"], "refs": [["stg_salesforce__account"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/salesforce_source/models/stg_tables.yml/schema_test/not_null_stg_salesforce__account_account_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1628200848, "compiled_sql": "\n \n \n\nselect *\nfrom `dbt-package-testing`.`hubspot_integration_tests`.`stg_salesforce__account`\nwhere account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "account_id"}, "test.salesforce_source.unique_stg_salesforce__account_account_id.9cc8cf6f0c": {"raw_sql": "{{ test_unique(**_dbt_schema_test_kwargs) }}", "test_metadata": {"name": "unique", "kwargs": {"column_name": "account_id", "model": "{% if config.get('where') %}(select * from {{ ref('stg_salesforce__account') }} where {{config.get('where')}}) stg_salesforce__account{% else %}{{ ref('stg_salesforce__account') }}{% endif %}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique"], "nodes": ["model.salesforce_source.stg_salesforce__account"]}, "config": {"enabled": true, "materialized": "test", "persist_docs": {}, "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0", "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "hubspot_integration_tests_dbt_test__audit", "fqn": ["salesforce_source", "schema_test", "unique_stg_salesforce__account_account_id"], "unique_id": "test.salesforce_source.unique_stg_salesforce__account_account_id.9cc8cf6f0c", "package_name": "salesforce_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/salesforce_source", "path": "schema_test/unique_stg_salesforce__account_account_id.sql", "original_file_path": "models/stg_tables.yml", "name": "unique_stg_salesforce__account_account_id", "alias": "unique_stg_salesforce__account_account_id", "checksum": {"name": "none", "checksum": ""}, "tags": ["schema"], "refs": [["stg_salesforce__account"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/salesforce_source/models/stg_tables.yml/schema_test/unique_stg_salesforce__account_account_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1628200848, "compiled_sql": "\n \n \n\nselect\n account_id,\n count(*) as n_records\n\nfrom `dbt-package-testing`.`hubspot_integration_tests`.`stg_salesforce__account`\nwhere account_id is not null\ngroup by account_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "account_id"}, "test.salesforce_source.not_null_stg_salesforce__opportunity_opportunity_id.221d465e3f": {"raw_sql": "{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "opportunity_id", "model": "{% if config.get('where') %}(select * from {{ ref('stg_salesforce__opportunity') }} where {{config.get('where')}}) stg_salesforce__opportunity{% else %}{{ ref('stg_salesforce__opportunity') }}{% endif %}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.salesforce_source.stg_salesforce__opportunity"]}, "config": {"enabled": true, "materialized": "test", "persist_docs": {}, "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0", "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "hubspot_integration_tests_dbt_test__audit", "fqn": ["salesforce_source", "schema_test", "not_null_stg_salesforce__opportunity_opportunity_id"], "unique_id": "test.salesforce_source.not_null_stg_salesforce__opportunity_opportunity_id.221d465e3f", "package_name": "salesforce_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/salesforce_source", "path": "schema_test/not_null_stg_salesforce__opportunity_opportunity_id.sql", "original_file_path": "models/stg_tables.yml", "name": "not_null_stg_salesforce__opportunity_opportunity_id", "alias": "not_null_stg_salesforce__opportunity_opportunity_id", "checksum": {"name": "none", "checksum": ""}, "tags": ["schema"], "refs": [["stg_salesforce__opportunity"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/salesforce_source/models/stg_tables.yml/schema_test/not_null_stg_salesforce__opportunity_opportunity_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1628200848, "compiled_sql": "\n \n \n\nselect *\nfrom `dbt-package-testing`.`hubspot_integration_tests`.`stg_salesforce__opportunity`\nwhere opportunity_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "opportunity_id"}, "test.salesforce_source.unique_stg_salesforce__opportunity_opportunity_id.16d671bdcd": {"raw_sql": "{{ test_unique(**_dbt_schema_test_kwargs) }}", "test_metadata": {"name": "unique", "kwargs": {"column_name": "opportunity_id", "model": "{% if config.get('where') %}(select * from {{ ref('stg_salesforce__opportunity') }} where {{config.get('where')}}) stg_salesforce__opportunity{% else %}{{ ref('stg_salesforce__opportunity') }}{% endif %}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique"], "nodes": ["model.salesforce_source.stg_salesforce__opportunity"]}, "config": {"enabled": true, "materialized": "test", "persist_docs": {}, "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0", "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "hubspot_integration_tests_dbt_test__audit", "fqn": ["salesforce_source", "schema_test", "unique_stg_salesforce__opportunity_opportunity_id"], "unique_id": "test.salesforce_source.unique_stg_salesforce__opportunity_opportunity_id.16d671bdcd", "package_name": "salesforce_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/salesforce_source", "path": "schema_test/unique_stg_salesforce__opportunity_opportunity_id.sql", "original_file_path": "models/stg_tables.yml", "name": "unique_stg_salesforce__opportunity_opportunity_id", "alias": "unique_stg_salesforce__opportunity_opportunity_id", "checksum": {"name": "none", "checksum": ""}, "tags": ["schema"], "refs": [["stg_salesforce__opportunity"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/salesforce_source/models/stg_tables.yml/schema_test/unique_stg_salesforce__opportunity_opportunity_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1628200848, "compiled_sql": "\n \n \n\nselect\n opportunity_id,\n count(*) as n_records\n\nfrom `dbt-package-testing`.`hubspot_integration_tests`.`stg_salesforce__opportunity`\nwhere opportunity_id is not null\ngroup by opportunity_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "opportunity_id"}, "test.salesforce_source.not_null_stg_salesforce__user_user_id.d79e41e4fa": {"raw_sql": "{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "user_id", "model": "{% if config.get('where') %}(select * from {{ ref('stg_salesforce__user') }} where {{config.get('where')}}) stg_salesforce__user{% else %}{{ ref('stg_salesforce__user') }}{% endif %}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.salesforce_source.stg_salesforce__user"]}, "config": {"enabled": true, "materialized": "test", "persist_docs": {}, "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0", "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "hubspot_integration_tests_dbt_test__audit", "fqn": ["salesforce_source", "schema_test", "not_null_stg_salesforce__user_user_id"], "unique_id": "test.salesforce_source.not_null_stg_salesforce__user_user_id.d79e41e4fa", "package_name": "salesforce_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/salesforce_source", "path": "schema_test/not_null_stg_salesforce__user_user_id.sql", "original_file_path": "models/stg_tables.yml", "name": "not_null_stg_salesforce__user_user_id", "alias": "not_null_stg_salesforce__user_user_id", "checksum": {"name": "none", "checksum": ""}, "tags": ["schema"], "refs": [["stg_salesforce__user"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/salesforce_source/models/stg_tables.yml/schema_test/not_null_stg_salesforce__user_user_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1628200848, "compiled_sql": "\n \n \n\nselect *\nfrom `dbt-package-testing`.`hubspot_integration_tests`.`stg_salesforce__user`\nwhere user_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "user_id"}, "test.salesforce_source.unique_stg_salesforce__user_user_id.a9ff648ec8": {"raw_sql": "{{ test_unique(**_dbt_schema_test_kwargs) }}", "test_metadata": {"name": "unique", "kwargs": {"column_name": "user_id", "model": "{% if config.get('where') %}(select * from {{ ref('stg_salesforce__user') }} where {{config.get('where')}}) stg_salesforce__user{% else %}{{ ref('stg_salesforce__user') }}{% endif %}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique"], "nodes": ["model.salesforce_source.stg_salesforce__user"]}, "config": {"enabled": true, "materialized": "test", "persist_docs": {}, "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0", "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "hubspot_integration_tests_dbt_test__audit", "fqn": ["salesforce_source", "schema_test", "unique_stg_salesforce__user_user_id"], "unique_id": "test.salesforce_source.unique_stg_salesforce__user_user_id.a9ff648ec8", "package_name": "salesforce_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/salesforce_source", "path": "schema_test/unique_stg_salesforce__user_user_id.sql", "original_file_path": "models/stg_tables.yml", "name": "unique_stg_salesforce__user_user_id", "alias": "unique_stg_salesforce__user_user_id", "checksum": {"name": "none", "checksum": ""}, "tags": ["schema"], "refs": [["stg_salesforce__user"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/salesforce_source/models/stg_tables.yml/schema_test/unique_stg_salesforce__user_user_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1628200848, "compiled_sql": "\n \n \n\nselect\n user_id,\n count(*) as n_records\n\nfrom `dbt-package-testing`.`hubspot_integration_tests`.`stg_salesforce__user`\nwhere user_id is not null\ngroup by user_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "user_id"}, "test.salesforce_source.not_null_stg_salesforce__user_role_user_role_id.d64248cb03": {"raw_sql": "{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "user_role_id", "model": "{% if config.get('where') %}(select * from {{ ref('stg_salesforce__user_role') }} where {{config.get('where')}}) stg_salesforce__user_role{% else %}{{ ref('stg_salesforce__user_role') }}{% endif %}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.salesforce_source.stg_salesforce__user_role"]}, "config": {"enabled": true, "materialized": "test", "persist_docs": {}, "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0", "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "hubspot_integration_tests_dbt_test__audit", "fqn": ["salesforce_source", "schema_test", "not_null_stg_salesforce__user_role_user_role_id"], "unique_id": "test.salesforce_source.not_null_stg_salesforce__user_role_user_role_id.d64248cb03", "package_name": "salesforce_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/salesforce_source", "path": "schema_test/not_null_stg_salesforce__user_role_user_role_id.sql", "original_file_path": "models/stg_tables.yml", "name": "not_null_stg_salesforce__user_role_user_role_id", "alias": "not_null_stg_salesforce__user_role_user_role_id", "checksum": {"name": "none", "checksum": ""}, "tags": ["schema"], "refs": [["stg_salesforce__user_role"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/salesforce_source/models/stg_tables.yml/schema_test/not_null_stg_salesforce__user_role_user_role_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1628200848, "compiled_sql": "\n \n \n\nselect *\nfrom `dbt-package-testing`.`hubspot_integration_tests`.`stg_salesforce__user_role`\nwhere user_role_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "user_role_id"}, "test.salesforce_source.unique_stg_salesforce__user_role_user_role_id.75675c5628": {"raw_sql": "{{ test_unique(**_dbt_schema_test_kwargs) }}", "test_metadata": {"name": "unique", "kwargs": {"column_name": "user_role_id", "model": "{% if config.get('where') %}(select * from {{ ref('stg_salesforce__user_role') }} where {{config.get('where')}}) stg_salesforce__user_role{% else %}{{ ref('stg_salesforce__user_role') }}{% endif %}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique"], "nodes": ["model.salesforce_source.stg_salesforce__user_role"]}, "config": {"enabled": true, "materialized": "test", "persist_docs": {}, "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0", "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "hubspot_integration_tests_dbt_test__audit", "fqn": ["salesforce_source", "schema_test", "unique_stg_salesforce__user_role_user_role_id"], "unique_id": "test.salesforce_source.unique_stg_salesforce__user_role_user_role_id.75675c5628", "package_name": "salesforce_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/salesforce_source", "path": "schema_test/unique_stg_salesforce__user_role_user_role_id.sql", "original_file_path": "models/stg_tables.yml", "name": "unique_stg_salesforce__user_role_user_role_id", "alias": "unique_stg_salesforce__user_role_user_role_id", "checksum": {"name": "none", "checksum": ""}, "tags": ["schema"], "refs": [["stg_salesforce__user_role"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/salesforce_source/models/stg_tables.yml/schema_test/unique_stg_salesforce__user_role_user_role_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1628200848, "compiled_sql": "\n \n \n\nselect\n user_role_id,\n count(*) as n_records\n\nfrom `dbt-package-testing`.`hubspot_integration_tests`.`stg_salesforce__user_role`\nwhere user_role_id is not null\ngroup by user_role_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "user_role_id"}}, "sources": {"source.salesforce_source.salesforce.account": {"fqn": ["salesforce_source", "salesforce", "account"], "database": "dbt-package-testing", "schema": "salesforce_source_integration_tests", "unique_id": "source.salesforce_source.salesforce.account", "package_name": "salesforce_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/salesforce_source", "path": "models/src_salesforce.yml", "original_file_path": "models/src_salesforce.yml", "name": "account", "source_name": "salesforce", "source_description": "", "loader": "fivetran", "identifier": "account", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "Represents an individual account, which is an organization or person involved with your business (such as customers, competitors, and partners).", "columns": {"id": {"name": "id", "description": "The unique, system-generated ID assigned during creation", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time at which fivetran last synced this record", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_number": {"name": "account_number", "description": "Account number assigned to this account (not the unique, system-generated ID assigned during creation).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_source": {"name": "account_source", "description": "The source of the account record. For example, Advertisement, Data.com, or Trade Show.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "annual_revenue": {"name": "annual_revenue", "description": "Estimated annual revenue of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billing_city": {"name": "billing_city", "description": "Details for the billing address of this account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billing_country": {"name": "billing_country", "description": "Details for the billing address of this account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billing_country_code": {"name": "billing_country_code", "description": "The ISO country code for the account\u2019s billing address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billing_geocode_accuracy": {"name": "billing_geocode_accuracy", "description": "Accuracy level of the geocode for the billing address. See Compound Field Considerations and Limitations for details on geolocation compound fields.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billing_latitude": {"name": "billing_latitude", "description": "Used with BillingLongitude to specify the precise geolocation of a billing address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billing_longitude": {"name": "billing_longitude", "description": "Used with BillingLatitude to specify the precise geolocation of a billing address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billing_postal_code": {"name": "billing_postal_code", "description": "Details for the billing address of this account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billing_state": {"name": "billing_state", "description": "Details for the billing address of this account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billing_state_code": {"name": "billing_state_code", "description": "The ISO state code for the account\u2019s billing address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billing_street": {"name": "billing_street", "description": "Street address for the billing address of this account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Text description of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fax": {"name": "fax", "description": "Fax number for the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "industry": {"name": "industry", "description": "An industry associated with this account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_deleted": {"name": "is_deleted", "description": "Indicates whether the object has been moved to the Recycle Bin (true) or not (false).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "jigsaw_company_id": {"name": "jigsaw_company_id", "description": "References the ID of a company in Data.com. If an account has a value in this field, it means that the account was imported from Data.com.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_activity_date": {"name": "last_activity_date", "description": "Value is one of the following, whichever is the most recent", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_referenced_date": {"name": "last_referenced_date", "description": "The timestamp when the current user last accessed this record, a record related to this record, or a list view.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_viewed_date": {"name": "last_viewed_date", "description": "The timestamp when the current user last viewed this record or list view. If this value is null, the user might have only accessed this record or list view (LastReferencedDate) but not viewed it.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "master_record_id": {"name": "master_record_id", "description": "If this object was deleted as the result of a merge, this field contains the ID of the record that was kept. If this object was deleted for any other reason, or has not been deleted, the value is null.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Required. Name of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "number_of_employees": {"name": "number_of_employees", "description": "Number of employees working at the company represented by this account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "owner_id": {"name": "owner_id", "description": "The ID of the user who currently owns this account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ownership": {"name": "ownership", "description": "Ownership type for the account, for example Private, Public, or Subsidiary.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_id": {"name": "parent_id", "description": "ID of the parent object, if any.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "phone": {"name": "phone", "description": "Phone number for this account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "photo_url": {"name": "photo_url", "description": "Path to be combined with the URL of a Salesforce instance (for example, https://yourInstance.salesforce.com/) to generate a URL to request the social network profile image associated with the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "rating": {"name": "rating", "description": "The account\u2019s prospect rating, for example Hot, Warm, or Cold.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "record_type_id": {"name": "record_type_id", "description": "ID of the record type assigned to this object.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "shipping_city": {"name": "shipping_city", "description": "Details of the shipping address for this account", "meta": {}, "data_type": null, "quote": null, "tags": []}, "shipping_country": {"name": "shipping_country", "description": "Details of the shipping address for this account. Country", "meta": {}, "data_type": null, "quote": null, "tags": []}, "shipping_country_code": {"name": "shipping_country_code", "description": "The ISO country code for the account\u2019s shipping address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "shipping_geocode_accuracy": {"name": "shipping_geocode_accuracy", "description": "Accuracy level of the geocode for the shipping address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "shipping_latitude": {"name": "shipping_latitude", "description": "Used with ShippingLongitude to specify the precise geolocation of a shipping address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "shipping_longitude": {"name": "shipping_longitude", "description": "Used with ShippingLatitude to specify the precise geolocation of an address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "shipping_postal_code": {"name": "shipping_postal_code", "description": "Details of the shipping address for this account. Postal code", "meta": {}, "data_type": null, "quote": null, "tags": []}, "shipping_state": {"name": "shipping_state", "description": "Details of the shipping address for this account. State", "meta": {}, "data_type": null, "quote": null, "tags": []}, "shipping_state_code": {"name": "shipping_state_code", "description": "The ISO state code for the account\u2019s shipping address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "shipping_street": {"name": "shipping_street", "description": "The street address of the shipping address for this account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sic": {"name": "sic", "description": "Standard Industrial Classification code of the company\u2019s main business categorization, for example, 57340 for Electronics.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sic_desc": {"name": "sic_desc", "description": "A brief description of an organization\u2019s line of business, based on its SIC code.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "site": {"name": "site", "description": "Name of the account\u2019s location, for example Headquarters or London.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ticker_symbol": {"name": "ticker_symbol", "description": "The stock market symbol for this account. This field is available on business accounts, not person accounts.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "type": {"name": "type", "description": "Type of account, for example, Customer, Competitor, or Partner.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "website": {"name": "website", "description": "The website of this account.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`salesforce_source_integration_tests`.`account`", "created_at": 1628200848}, "source.salesforce_source.salesforce.opportunity": {"fqn": ["salesforce_source", "salesforce", "opportunity"], "database": "dbt-package-testing", "schema": "salesforce_source_integration_tests", "unique_id": "source.salesforce_source.salesforce.opportunity", "package_name": "salesforce_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/salesforce_source", "path": "models/src_salesforce.yml", "original_file_path": "models/src_salesforce.yml", "name": "opportunity", "source_name": "salesforce", "source_description": "", "loader": "fivetran", "identifier": "opportunity", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "Represents an opportunity, which is a sale or pending deal.", "columns": {"id": {"name": "id", "description": "The unique, system-generated ID assigned during creation.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time at which fivetran last synced this record", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "ID of the account associated with this opportunity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Estimated total sale amount. For opportunities with products, the amount is the sum of the related products.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "ID of a related Campaign. This field is defined only for those organizations that have the campaign feature Campaigns enabled.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "close_date": {"name": "close_date", "description": "Required. Date when the opportunity is expected to close.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_date": {"name": "created_date", "description": "Date when the opportunity is was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Text description of the opportunity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "expected_revenue": {"name": "expected_revenue", "description": "Read-only field that is equal to the product of the opportunity Amount field and the Probability.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fiscal": {"name": "fiscal", "description": "If fiscal years are not enabled, the name of the fiscal quarter or period in which the opportunity CloseDate falls.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fiscal_quarter": {"name": "fiscal_quarter", "description": "Represents the fiscal quarter. Valid values are 1, 2, 3, or 4.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fiscal_year": {"name": "fiscal_year", "description": "Represents the fiscal year, for example, 2006.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "forecast_category": {"name": "forecast_category", "description": "Restricted picklist field.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "forecast_category_name": {"name": "forecast_category_name", "description": "The name of the forecast category.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "has_open_activity": {"name": "has_open_activity", "description": "Indicates whether an opportunity has an open event or task (true) or not (false).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "has_opportunity_line_item": {"name": "has_opportunity_line_item", "description": "Read-only field that indicates whether the opportunity has associated line items. A value of true means that Opportunity line items have been created for the opportunity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "has_overdue_task": {"name": "has_overdue_task", "description": "Indicates whether an opportunity has an overdue task (true) or not (false).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_closed": {"name": "is_closed", "description": "True, if Stage Name Label is Closed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_deleted": {"name": "is_deleted", "description": "Indicates whether the object has been moved to the Recycle Bin (true) or not (false).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_excluded_from_territory_2_filter": {"name": "is_excluded_from_territory_2_filter", "description": "Used for Filter-Based Opportunity Territory Assignment. Indicates whether the opportunity is excluded (True) or included (False) each time the APEX filter is executed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_won": {"name": "is_won", "description": "True, if Stage Name Label is Won.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_activity_date": {"name": "last_activity_date", "description": "Value is one of the following, whichever is the most recent:Due date of the most recent event logged against the record or Due date of the most recently closed task associated with the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_referenced_date": {"name": "last_referenced_date", "description": "The timestamp when the current user last accessed this record, a record related to this record, or a list view.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_viewed_date": {"name": "last_viewed_date", "description": "The timestamp when the current user last viewed this record or list view. If this value is null, the user might have only accessed this record or list view (LastReferencedDate) but not viewed it.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "lead_source": {"name": "lead_source", "description": "Source of this opportunity, such as Advertisement or Trade Show.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Required. A name for this opportunity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "next_step": {"name": "next_step", "description": "Description of next task in closing opportunity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "owner_id": {"name": "owner_id", "description": "ID of the User who has been assigned to work this opportunity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "Pricebook2Id": {"name": "Pricebook2Id", "description": "ID of a related Pricebook2 object. The Pricebook2Id field indicates which Pricebook2 applies to this opportunity. The Pricebook2Id field is defined only for those organizations that have products enabled as a feature. You can specify values for only one field (Pricebook2Id or PricebookId)\u2014not both fields. For this reason, both fields are declared nillable.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "pricebook_2_id": {"name": "pricebook_2_id", "description": "Unavailable as of version 3.0. As of version 8.0, the Pricebook object is no longer available. Use the Pricebook2Id field instead, specifying the ID of the Pricebook2 record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "probability": {"name": "probability", "description": "Percentage of estimated confidence in closing the opportunity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "record_type_id": {"name": "record_type_id", "description": "ID of the record type assigned to this object.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "stage_name": {"name": "stage_name", "description": "Required. Current stage of this record. The StageName field controls several other fields on an opportunity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "synced_quote_id": {"name": "synced_quote_id", "description": "The ID of the Quote that syncs with the opportunity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "territory_2_id": {"name": "territory_2_id", "description": "The ID of the territory that is assigned to the opportunity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "type": {"name": "type", "description": "Type of opportunity. For example, Existing Business or New Business.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`salesforce_source_integration_tests`.`opportunity`", "created_at": 1628200848}, "source.salesforce_source.salesforce.user": {"fqn": ["salesforce_source", "salesforce", "user"], "database": "dbt-package-testing", "schema": "salesforce_source_integration_tests", "unique_id": "source.salesforce_source.salesforce.user", "package_name": "salesforce_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/salesforce_source", "path": "models/src_salesforce.yml", "original_file_path": "models/src_salesforce.yml", "name": "user", "source_name": "salesforce", "source_description": "", "loader": "fivetran", "identifier": "user", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": null, "external": null, "description": "Represents a user in your organization.", "columns": {"id": {"name": "id", "description": "The unique, system-generated ID assigned during creation.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time at which fivetran last synced this record", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "True, if this field has been deleted", "meta": {}, "data_type": null, "quote": null, "tags": []}, "about_me": {"name": "about_me", "description": "Information about the user, such as areas of interest or skills.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "ID of the Account associated with a Customer Portal user. This field is null for Salesforce users.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "alias": {"name": "alias", "description": "Required. The user\u2019s alias. For example, jsmith.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "badge_text": {"name": "badge_text", "description": "The community role, displayed on the user profile page just below the user name.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "banner_photo_url": {"name": "banner_photo_url", "description": "The URL for the user's banner photo.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "call_center_id": {"name": "call_center_id", "description": "If Salesforce CRM Call Center is enabled, represents the call center to which this user is assigned.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "city": {"name": "city", "description": "The city associated with the user. Up to 40 characters allowed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "community_nickname": {"name": "community_nickname", "description": "Name used to identify this user in the Community application, which includes the ideas and answers features.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "company_name": {"name": "company_name", "description": "The name of the user\u2019s company.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "contact_id": {"name": "contact_id", "description": "ID of the Contact associated with this account. The contact must have a value in the AccountId field or an error occurs.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "country": {"name": "country", "description": "The country associated with the user.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "country_code": {"name": "country_code", "description": "The ISO country code associated with the user.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "default_group_notification_frequency": {"name": "default_group_notification_frequency", "description": "The default frequency for sending the user's Chatter group email notifications when the user joins groups.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "delegated_approver_id": {"name": "delegated_approver_id", "description": "Id of the user who is a delegated approver for this user.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department": {"name": "department", "description": "The company department associated with the user.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "digest_frequency": {"name": "digest_frequency", "description": "The frequency at which the system sends the user\u2019s Chatter personal email digest.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "division": {"name": "division", "description": "The division associated with this user, similar to Department and unrelated to DefaultDivision.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "email": {"name": "email", "description": "Required. The user\u2019s email address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "email_encoding_key": {"name": "email_encoding_key", "description": "Required. The email encoding for the user, such as ISO-8859-1 or UTF-8.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "email_preferences_auto_bcc": {"name": "email_preferences_auto_bcc", "description": "Determines whether the user receives copies of sent emails. This option applies only if compliance BCC emails are not enabled.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "employee_number": {"name": "employee_number", "description": "The user\u2019s employee number.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "extension": {"name": "extension", "description": "The user\u2019s phone extension number.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fax": {"name": "fax", "description": "The user\u2019s fax number.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "federation_identifier": {"name": "federation_identifier", "description": "Indicates the value that must be listed in the Subject element of a Security Assertion Markup Language (SAML) IDP certificate to authenticate the user for a client application using single sign-on.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "first_name": {"name": "first_name", "description": "The user\u2019s first name.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "forecast_enabled": {"name": "forecast_enabled", "description": "Indicates whether the user is enabled as a forecast manager (true) or not (false).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "full_photo_url": {"name": "full_photo_url", "description": "The URL for the user's profile photo.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "geocode_accuracy": {"name": "geocode_accuracy", "description": "The level of accuracy of a location\u2019s geographical coordinates compared with its physical address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "individual_id": {"name": "individual_id", "description": "ID of the data privacy record associated with this user. This field is available if Data Protection and Privacy is enabled.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_active": {"name": "is_active", "description": "Indicates whether the user has access to log in (true) or not (false).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_profile_photo_active": {"name": "is_profile_photo_active", "description": "Indicates whether a user has a profile photo (true) or not (false).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "language_locale_key": {"name": "language_locale_key", "description": "Required. The user\u2019s language, such as \u201cFrench\u201d or \u201cChinese (Traditional).\u201d", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_login_date": {"name": "last_login_date", "description": "The date and time when the user last successfully logged in. This value is updated if 60 seconds have elapsed since the user\u2019s last login.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_name": {"name": "last_name", "description": "Required. The user\u2019s last name.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_referenced_date": {"name": "last_referenced_date", "description": "The timestamp for when the current user last viewed a record related to this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_viewed_date": {"name": "last_viewed_date", "description": "The timestamp for when the current user last viewed this record. If this value is null, this record might only have been referenced (LastReferencedDate) and not viewed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "latitude": {"name": "latitude", "description": "Used with Longitude to specify the precise geolocation of an address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "locale_sid_key": {"name": "locale_sid_key", "description": "Required. This field is a restricted picklist field. The value of the field affects formatting and parsing of values, especially numeric values, in the user interface.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "longitude": {"name": "longitude", "description": "Used with Latitude to specify the precise geolocation of an address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "manager_id": {"name": "manager_id", "description": "The Id of the user who manages this user.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "medium_banner_photo_url": {"name": "medium_banner_photo_url", "description": "The URL for the medium-sized user profile banner photo.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "mobile_phone": {"name": "mobile_phone", "description": "The user\u2019s mobile or cellular phone number.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Concatenation of FirstName and LastName.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "offline_trial_expiration_date": {"name": "offline_trial_expiration_date", "description": "The date and time when the user\u2019s Connect Offline trial expires.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "phone": {"name": "phone", "description": "The user\u2019s phone number.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "postal_code": {"name": "postal_code", "description": "The user\u2019s postal or ZIP code.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "profile_id": {"name": "profile_id", "description": "Required. ID of the user\u2019s Profile. Use this value to cache metadata based on profile. In earlier releases, this was RoleId.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "receives_admin_info_emails": {"name": "receives_admin_info_emails", "description": "Indicates whether the user receives email for administrators from Salesforce (true) or not (false).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "receives_info_emails": {"name": "receives_info_emails", "description": "Indicates whether the user receives informational email from Salesforce (true) or not (false).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sender_email": {"name": "sender_email", "description": "The email address used as the From address when the user sends emails. This address is the same value shown in Setup on the My Email Settings page.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sender_name": {"name": "sender_name", "description": "The name used as the email sender when the user sends emails. This name is the same value shown in Setup on the My Email Settings page.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "signature": {"name": "signature", "description": "The signature text added to emails.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "small_banner_photo_url": {"name": "small_banner_photo_url", "description": "The URL for the small user profile banner photo.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "small_photo_url": {"name": "small_photo_url", "description": "The URL for a thumbnail of the user's profile photo.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "state": {"name": "state", "description": "The state associated with the User.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "state_code": {"name": "state_code", "description": "The ISO state code associated with the user.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "street": {"name": "street", "description": "The street address associated with the User.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "time_zone_sid_key": {"name": "time_zone_sid_key", "description": "Required. This field is a restricted picklist field. A User time zone affects the offset used when displaying or entering times in the user interface.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "title": {"name": "title", "description": "The user\u2019s business title, such as \u201cVice President.\u201d", "meta": {}, "data_type": null, "quote": null, "tags": []}, "username": {"name": "username", "description": "Contains the name that a user enters to log in. The value for this field must be in the form of an email address, using all lowercase characters. It must also be unique across all organizations.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "user_role_id": {"name": "user_role_id", "description": "ID of the user\u2019s UserRole.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "user_type": {"name": "user_type", "description": "The category of user license.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`salesforce_source_integration_tests`.`user`", "created_at": 1628200848}, "source.salesforce_source.salesforce.user_role": {"fqn": ["salesforce_source", "salesforce", "user_role"], "database": "dbt-package-testing", "schema": "salesforce_source_integration_tests", "unique_id": "source.salesforce_source.salesforce.user_role", "package_name": "salesforce_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/salesforce_source", "path": "models/src_salesforce.yml", "original_file_path": "models/src_salesforce.yml", "name": "user_role", "source_name": "salesforce", "source_description": "", "loader": "fivetran", "identifier": "user_role", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": null, "external": null, "description": "Represents a user role in your organization.", "columns": {"id": {"name": "id", "description": "The unique, system-generated ID assigned during creation", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time at which fivetran last synced this record", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "True, if this field has been deleted", "meta": {}, "data_type": null, "quote": null, "tags": []}, "case_access_for_account_owner": {"name": "case_access_for_account_owner", "description": "The case access level for the account owner.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "contact_access_for_account_owner": {"name": "contact_access_for_account_owner", "description": "The contact access level for the account owner.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "developer_name": {"name": "developer_name", "description": "The unique name of the object in the API.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "forecast_user_id": {"name": "forecast_user_id", "description": "The ID of the forecast manager associated with this role.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "may_forecast_manager_share": {"name": "may_forecast_manager_share", "description": "Indicates whether the forecast manager can manually share their own forecast.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Required. Name of the role. Corresponds to Label on the user interface.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "opportunity_access_for_account_owner": {"name": "opportunity_access_for_account_owner", "description": "Required. The opportunity access level for the account owner.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_role_id": {"name": "parent_role_id", "description": "The ID of the parent role.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "portal_type": {"name": "portal_type", "description": "This value indicates the type of portal for the role", "meta": {}, "data_type": null, "quote": null, "tags": []}, "rollup_description": {"name": "rollup_description", "description": "Description of the forecast rollup.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`salesforce_source_integration_tests`.`user_role`", "created_at": 1628200848}}, "macros": {"macro.dbt_bigquery.date_sharded_table": {"unique_id": "macro.dbt_bigquery.date_sharded_table", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/etc.sql", "original_file_path": "macros/etc.sql", "name": "date_sharded_table", "macro_sql": "{% macro date_sharded_table(base_name) %}\n {{ return(base_name ~ \"[DBT__PARTITION_DATE]\") }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_bigquery.grant_access_to": {"unique_id": "macro.dbt_bigquery.grant_access_to", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/etc.sql", "original_file_path": "macros/etc.sql", "name": "grant_access_to", "macro_sql": "{% macro grant_access_to(entity, entity_type, role, grant_target_dict) -%}\n {% do adapter.grant_access_to(entity, entity_type, role, grant_target_dict) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_bigquery.get_partitions_metadata": {"unique_id": "macro.dbt_bigquery.get_partitions_metadata", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/etc.sql", "original_file_path": "macros/etc.sql", "name": "get_partitions_metadata", "macro_sql": "\n\n{%- macro get_partitions_metadata(table) -%}\n {%- if execute -%}\n {%- set res = adapter.get_partitions_metadata(table) -%}\n {{- return(res) -}}\n {%- endif -%}\n {{- return(None) -}}\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_bigquery.bigquery__get_catalog": {"unique_id": "macro.dbt_bigquery.bigquery__get_catalog", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/catalog.sql", "original_file_path": "macros/catalog.sql", "name": "bigquery__get_catalog", "macro_sql": "{% macro bigquery__get_catalog(information_schema, schemas) -%}\n\n {%- if (schemas | length) == 0 -%}\n {# Hopefully nothing cares about the columns we return when there are no rows #}\n {%- set query = \"select 1 as id limit 0\" -%}\n {%- else -%}\n\n {%- set query -%}\n with tables as (\n select\n project_id as table_database,\n dataset_id as table_schema,\n table_id as original_table_name,\n\n concat(project_id, '.', dataset_id, '.', table_id) as relation_id,\n\n row_count,\n size_bytes as size_bytes,\n case\n when type = 1 then 'table'\n when type = 2 then 'view'\n else 'external'\n end as table_type,\n\n REGEXP_CONTAINS(table_id, '^.+[0-9]{8}$') and coalesce(type, 0) = 1 as is_date_shard,\n REGEXP_EXTRACT(table_id, '^(.+)[0-9]{8}$') as shard_base_name,\n REGEXP_EXTRACT(table_id, '^.+([0-9]{8})$') as shard_name\n\n from {{ information_schema.replace(information_schema_view='__TABLES__') }}\n where (\n {%- for schema in schemas -%}\n upper(dataset_id) = upper('{{ schema }}'){%- if not loop.last %} or {% endif -%}\n {%- endfor -%}\n )\n ),\n\n extracted as (\n\n select *,\n case\n when is_date_shard then shard_base_name\n else original_table_name\n end as table_name\n\n from tables\n\n ),\n\n unsharded_tables as (\n\n select\n table_database,\n table_schema,\n table_name,\n coalesce(table_type, 'external') as table_type,\n is_date_shard,\n\n struct(\n min(shard_name) as shard_min,\n max(shard_name) as shard_max,\n count(*) as shard_count\n ) as table_shards,\n\n sum(size_bytes) as size_bytes,\n sum(row_count) as row_count,\n\n max(relation_id) as relation_id\n\n from extracted\n group by 1,2,3,4,5\n\n ),\n\n info_schema_columns as (\n\n select\n concat(table_catalog, '.', table_schema, '.', table_name) as relation_id,\n table_catalog as table_database,\n table_schema,\n table_name,\n\n -- use the \"real\" column name from the paths query below\n column_name as base_column_name,\n ordinal_position as column_index,\n\n is_partitioning_column,\n clustering_ordinal_position\n\n from {{ information_schema.replace(information_schema_view='COLUMNS') }}\n where ordinal_position is not null\n\n ),\n\n info_schema_column_paths as (\n\n select\n concat(table_catalog, '.', table_schema, '.', table_name) as relation_id,\n field_path as column_name,\n data_type as column_type,\n column_name as base_column_name,\n description as column_comment\n\n from {{ information_schema.replace(information_schema_view='COLUMN_FIELD_PATHS') }}\n\n ),\n\n columns as (\n\n select * except (base_column_name)\n from info_schema_columns\n join info_schema_column_paths using (relation_id, base_column_name)\n\n ),\n\n column_stats as (\n\n select\n table_database,\n table_schema,\n table_name,\n max(relation_id) as relation_id,\n max(case when is_partitioning_column = 'YES' then 1 else 0 end) = 1 as is_partitioned,\n max(case when is_partitioning_column = 'YES' then column_name else null end) as partition_column,\n max(case when clustering_ordinal_position is not null then 1 else 0 end) = 1 as is_clustered,\n array_to_string(\n array_agg(\n case\n when clustering_ordinal_position is not null then column_name\n else null\n end ignore nulls\n order by clustering_ordinal_position\n ), ', '\n ) as clustering_columns\n\n from columns\n group by 1,2,3\n\n )\n\n select\n unsharded_tables.table_database,\n unsharded_tables.table_schema,\n case\n when is_date_shard then concat(unsharded_tables.table_name, '*')\n else unsharded_tables.table_name\n end as table_name,\n unsharded_tables.table_type,\n\n -- coalesce name and type for External tables - these columns are not\n -- present in the COLUMN_FIELD_PATHS resultset\n coalesce(columns.column_name, '') as column_name,\n -- invent a row number to account for nested fields -- BQ does\n -- not treat these nested properties as independent fields\n row_number() over (\n partition by relation_id\n order by columns.column_index, columns.column_name\n ) as column_index,\n coalesce(columns.column_type, '') as column_type,\n columns.column_comment,\n\n 'Shard count' as `stats__date_shards__label`,\n table_shards.shard_count as `stats__date_shards__value`,\n 'The number of date shards in this table' as `stats__date_shards__description`,\n is_date_shard as `stats__date_shards__include`,\n\n 'Shard (min)' as `stats__date_shard_min__label`,\n table_shards.shard_min as `stats__date_shard_min__value`,\n 'The first date shard in this table' as `stats__date_shard_min__description`,\n is_date_shard as `stats__date_shard_min__include`,\n\n 'Shard (max)' as `stats__date_shard_max__label`,\n table_shards.shard_max as `stats__date_shard_max__value`,\n 'The last date shard in this table' as `stats__date_shard_max__description`,\n is_date_shard as `stats__date_shard_max__include`,\n\n '# Rows' as `stats__num_rows__label`,\n row_count as `stats__num_rows__value`,\n 'Approximate count of rows in this table' as `stats__num_rows__description`,\n (unsharded_tables.table_type = 'table') as `stats__num_rows__include`,\n\n 'Approximate Size' as `stats__num_bytes__label`,\n size_bytes as `stats__num_bytes__value`,\n 'Approximate size of table as reported by BigQuery' as `stats__num_bytes__description`,\n (unsharded_tables.table_type = 'table') as `stats__num_bytes__include`,\n\n 'Partitioned By' as `stats__partitioning_type__label`,\n partition_column as `stats__partitioning_type__value`,\n 'The partitioning column for this table' as `stats__partitioning_type__description`,\n is_partitioned as `stats__partitioning_type__include`,\n\n 'Clustered By' as `stats__clustering_fields__label`,\n clustering_columns as `stats__clustering_fields__value`,\n 'The clustering columns for this table' as `stats__clustering_fields__description`,\n is_clustered as `stats__clustering_fields__include`\n\n -- join using relation_id (an actual relation, not a shard prefix) to make\n -- sure that column metadata is picked up through the join. This will only\n -- return the column information for the \"max\" table in a date-sharded table set\n from unsharded_tables\n left join columns using (relation_id)\n left join column_stats using (relation_id)\n {%- endset -%}\n\n {%- endif -%}\n\n {{ return(run_query(query)) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.replace", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_bigquery.partition_by": {"unique_id": "macro.dbt_bigquery.partition_by", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "partition_by", "macro_sql": "{% macro partition_by(partition_config) -%}\n {%- if partition_config is none -%}\n {% do return('') %}\n {%- elif partition_config.data_type | lower in ('date','timestamp','datetime') -%}\n partition by {{ partition_config.render() }}\n {%- elif partition_config.data_type | lower in ('int64') -%}\n {%- set range = partition_config.range -%}\n partition by range_bucket(\n {{ partition_config.field }},\n generate_array({{ range.start}}, {{ range.end }}, {{ range.interval }})\n )\n {%- endif -%}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_bigquery.cluster_by": {"unique_id": "macro.dbt_bigquery.cluster_by", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "cluster_by", "macro_sql": "{% macro cluster_by(raw_cluster_by) %}\n {%- if raw_cluster_by is not none -%}\n cluster by {% if raw_cluster_by is string -%}\n {% set raw_cluster_by = [raw_cluster_by] %}\n {%- endif -%}\n {%- for cluster in raw_cluster_by -%}\n {{ cluster }}\n {%- if not loop.last -%}, {% endif -%}\n {%- endfor -%}\n\n {% endif %}\n\n{%- endmacro -%}\n\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_bigquery.bigquery_table_options": {"unique_id": "macro.dbt_bigquery.bigquery_table_options", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery_table_options", "macro_sql": "{% macro bigquery_table_options(config, node, temporary) %}\n {% set opts = adapter.get_table_options(config, node, temporary) %}\n\n {% set options -%}\n OPTIONS({% for opt_key, opt_val in opts.items() %}\n {{ opt_key }}={{ opt_val }}{{ \",\" if not loop.last }}\n {% endfor %})\n {%- endset %}\n {%- do return(options) -%}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_bigquery.bigquery__create_table_as": {"unique_id": "macro.dbt_bigquery.bigquery__create_table_as", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery__create_table_as", "macro_sql": "{% macro bigquery__create_table_as(temporary, relation, sql) -%}\n {%- set raw_partition_by = config.get('partition_by', none) -%}\n {%- set raw_cluster_by = config.get('cluster_by', none) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {%- set partition_config = adapter.parse_partition_by(raw_partition_by) -%}\n\n {{ sql_header if sql_header is not none }}\n\n create or replace table {{ relation }}\n {{ partition_by(partition_config) }}\n {{ cluster_by(raw_cluster_by) }}\n {{ bigquery_table_options(config, model, temporary) }}\n as (\n {{ sql }}\n );\n\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.partition_by", "macro.dbt_bigquery.cluster_by", "macro.dbt_bigquery.bigquery_table_options"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_bigquery.bigquery__create_view_as": {"unique_id": "macro.dbt_bigquery.bigquery__create_view_as", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery__create_view_as", "macro_sql": "{% macro bigquery__create_view_as(relation, sql) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n\n create or replace view {{ relation }}\n {{ bigquery_table_options(config, model, temporary=false) }}\n as {{ sql }};\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery_table_options"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_bigquery.bigquery__create_schema": {"unique_id": "macro.dbt_bigquery.bigquery__create_schema", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery__create_schema", "macro_sql": "{% macro bigquery__create_schema(relation) -%}\n {{ adapter.create_schema(relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_bigquery.bigquery__drop_schema": {"unique_id": "macro.dbt_bigquery.bigquery__drop_schema", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery__drop_schema", "macro_sql": "{% macro bigquery__drop_schema(relation) -%}\n {{ adapter.drop_schema(relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_bigquery.bigquery__drop_relation": {"unique_id": "macro.dbt_bigquery.bigquery__drop_relation", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery__drop_relation", "macro_sql": "{% macro bigquery__drop_relation(relation) -%}\n {% call statement('drop_relation') -%}\n drop {{ relation.type }} if exists {{ relation }}\n {%- endcall %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_bigquery.bigquery__get_columns_in_relation": {"unique_id": "macro.dbt_bigquery.bigquery__get_columns_in_relation", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery__get_columns_in_relation", "macro_sql": "{% macro bigquery__get_columns_in_relation(relation) -%}\n {{ return(adapter.get_columns_in_relation(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_bigquery.bigquery__list_relations_without_caching": {"unique_id": "macro.dbt_bigquery.bigquery__list_relations_without_caching", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery__list_relations_without_caching", "macro_sql": "{% macro bigquery__list_relations_without_caching(schema_relation) -%}\n {{ return(adapter.list_relations_without_caching(schema_relation)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_bigquery.bigquery__current_timestamp": {"unique_id": "macro.dbt_bigquery.bigquery__current_timestamp", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery__current_timestamp", "macro_sql": "{% macro bigquery__current_timestamp() -%}\n CURRENT_TIMESTAMP()\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_bigquery.bigquery__snapshot_string_as_time": {"unique_id": "macro.dbt_bigquery.bigquery__snapshot_string_as_time", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery__snapshot_string_as_time", "macro_sql": "{% macro bigquery__snapshot_string_as_time(timestamp) -%}\n {%- set result = 'TIMESTAMP(\"' ~ timestamp ~ '\")' -%}\n {{ return(result) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_bigquery.bigquery__list_schemas": {"unique_id": "macro.dbt_bigquery.bigquery__list_schemas", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery__list_schemas", "macro_sql": "{% macro bigquery__list_schemas(database) -%}\n {{ return(adapter.list_schemas(database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_bigquery.bigquery__check_schema_exists": {"unique_id": "macro.dbt_bigquery.bigquery__check_schema_exists", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery__check_schema_exists", "macro_sql": "{% macro bigquery__check_schema_exists(information_schema, schema) %}\n {{ return(adapter.check_schema_exists(information_schema.database, schema)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_bigquery.bigquery__persist_docs": {"unique_id": "macro.dbt_bigquery.bigquery__persist_docs", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery__persist_docs", "macro_sql": "{% macro bigquery__persist_docs(relation, model, for_relation, for_columns) -%}\n {% if for_columns and config.persist_column_docs() and model.columns %}\n {% do alter_column_comment(relation, model.columns) %}\n {% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.alter_column_comment"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_bigquery.bigquery__alter_column_comment": {"unique_id": "macro.dbt_bigquery.bigquery__alter_column_comment", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery__alter_column_comment", "macro_sql": "{% macro bigquery__alter_column_comment(relation, column_dict) -%}\n {% do adapter.update_columns(relation, column_dict) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_bigquery.bigquery__rename_relation": {"unique_id": "macro.dbt_bigquery.bigquery__rename_relation", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery__rename_relation", "macro_sql": "{% macro bigquery__rename_relation(from_relation, to_relation) -%}\n {% do adapter.rename_relation(from_relation, to_relation) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_bigquery.bigquery__alter_column_type": {"unique_id": "macro.dbt_bigquery.bigquery__alter_column_type", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery__alter_column_type", "macro_sql": "{% macro bigquery__alter_column_type(relation, column_name, new_column_type) -%}\n {#\n Changing a column's data type using a query requires you to scan the entire table.\n The query charges can be significant if the table is very large.\n\n https://cloud.google.com/bigquery/docs/manually-changing-schemas#changing_a_columns_data_type\n #}\n {% set relation_columns = get_columns_in_relation(relation) %}\n\n {% set sql %}\n select\n {%- for col in relation_columns -%}\n {% if col.column == column_name %}\n CAST({{ col.quoted }} AS {{ new_column_type }}) AS {{ col.quoted }}\n {%- else %}\n {{ col.quoted }}\n {%- endif %}\n {%- if not loop.last %},{% endif -%}\n {%- endfor %}\n from {{ relation }}\n {% endset %}\n\n {% call statement('alter_column_type') %}\n {{ create_table_as(False, relation, sql)}}\n {%- endcall %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_columns_in_relation", "macro.dbt.statement", "macro.dbt.create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_bigquery.bigquery__create_csv_table": {"unique_id": "macro.dbt_bigquery.bigquery__create_csv_table", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/materializations/seed.sql", "original_file_path": "macros/materializations/seed.sql", "name": "bigquery__create_csv_table", "macro_sql": "{% macro bigquery__create_csv_table(model, agate_table) %}\n -- no-op\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_bigquery.bigquery__reset_csv_table": {"unique_id": "macro.dbt_bigquery.bigquery__reset_csv_table", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/materializations/seed.sql", "original_file_path": "macros/materializations/seed.sql", "name": "bigquery__reset_csv_table", "macro_sql": "{% macro bigquery__reset_csv_table(model, full_refresh, old_relation, agate_table) %}\n {{ adapter.drop_relation(old_relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_bigquery.bigquery__load_csv_rows": {"unique_id": "macro.dbt_bigquery.bigquery__load_csv_rows", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/materializations/seed.sql", "original_file_path": "macros/materializations/seed.sql", "name": "bigquery__load_csv_rows", "macro_sql": "{% macro bigquery__load_csv_rows(model, agate_table) %}\n\n {%- set column_override = model['config'].get('column_types', {}) -%}\n {{ adapter.load_dataframe(model['database'], model['schema'], model['alias'],\n \t\t\t\t\t\t\tagate_table, column_override) }}\n {% if config.persist_relation_docs() and 'description' in model %}\n\n \t{{ adapter.update_table_description(model['database'], model['schema'], model['alias'], model['description']) }}\n {% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_bigquery.bigquery__handle_existing_table": {"unique_id": "macro.dbt_bigquery.bigquery__handle_existing_table", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/materializations/view.sql", "original_file_path": "macros/materializations/view.sql", "name": "bigquery__handle_existing_table", "macro_sql": "{% macro bigquery__handle_existing_table(full_refresh, old_relation) %}\n {%- if full_refresh -%}\n {{ adapter.drop_relation(old_relation) }}\n {%- else -%}\n {{ exceptions.relation_wrong_type(old_relation, 'view') }}\n {%- endif -%}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_bigquery.materialization_view_bigquery": {"unique_id": "macro.dbt_bigquery.materialization_view_bigquery", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/materializations/view.sql", "original_file_path": "macros/materializations/view.sql", "name": "materialization_view_bigquery", "macro_sql": "{% materialization view, adapter='bigquery' -%}\n {% set to_return = create_or_replace_view(run_outside_transaction_hooks=False) %}\n\n {% set target_relation = this.incorporate(type='view') %}\n {% do persist_docs(target_relation, model) %}\n\n {% if config.get('grant_access_to') %}\n {% for grant_target_dict in config.get('grant_access_to') %}\n {% do adapter.grant_access_to(this, 'view', None, grant_target_dict) %}\n {% endfor %}\n {% endif %}\n\n {% do return(to_return) %}\n\n{%- endmaterialization %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.create_or_replace_view", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_bigquery.make_date_partitioned_table": {"unique_id": "macro.dbt_bigquery.make_date_partitioned_table", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/materializations/table.sql", "original_file_path": "macros/materializations/table.sql", "name": "make_date_partitioned_table", "macro_sql": "{% macro make_date_partitioned_table(model, relation, dates, should_create, verbose=False) %}\n\n {% if should_create %}\n {{ adapter.make_date_partitioned_table(relation) }}\n {% endif %}\n\n {% for date in dates %}\n {% set date = (date | string) %}\n {% if verbose %}\n {% set table_start_time = modules.datetime.datetime.now().strftime(\"%H:%M:%S\") %}\n {{ log(table_start_time ~ ' | -> Running for day ' ~ date, info=True) }}\n {% endif %}\n\n {% set fixed_sql = model['compiled_sql'] | replace('[DBT__PARTITION_DATE]', date) %}\n {% set _ = adapter.execute_model(model, 'table', fixed_sql, decorator=date) %}\n {% endfor %}\n\n {% set num_days = dates | length %}\n {% if num_days == 1 %}\n {% set result_str = 'CREATED 1 PARTITION' %}\n {% else %}\n {% set result_str = 'CREATED ' ~ num_days ~ ' PARTITIONS' %}\n {% endif %}\n\n {{ store_result('main', response=result_str) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_bigquery.materialization_table_bigquery": {"unique_id": "macro.dbt_bigquery.materialization_table_bigquery", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/materializations/table.sql", "original_file_path": "macros/materializations/table.sql", "name": "materialization_table_bigquery", "macro_sql": "{% materialization table, adapter='bigquery' -%}\n\n {%- set identifier = model['alias'] -%}\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n {%- set exists_not_as_table = (old_relation is not none and not old_relation.is_table) -%}\n {%- set target_relation = api.Relation.create(database=database, schema=schema, identifier=identifier, type='table') -%}\n {%- set verbose = config.get('verbose', False) -%}\n\n {# partitions: iterate over each partition, running a separate query in a for-loop #}\n {%- set partitions = config.get('partitions') -%}\n\n {% if partitions %}\n {% if partitions is number or partitions is string %}\n {% set partitions = [(partitions | string)] %}\n {% endif %}\n\n {% if partitions is not iterable %}\n {{ exceptions.raise_compiler_error(\"Provided `partitions` configuration is not a list. Got: \" ~ partitions, model) }}\n {% endif %}\n {% endif %}\n\n {{ run_hooks(pre_hooks) }}\n\n {#\n Since dbt uses WRITE_TRUNCATE mode for tables, we only need to drop this thing\n if it is not a table. If it _is_ already a table, then we can overwrite it without downtime\n #}\n {%- if exists_not_as_table -%}\n {{ adapter.drop_relation(old_relation) }}\n {%- endif -%}\n\n -- build model\n {% if partitions %}\n {# Create the dp-table if 1. it does not exist or 2. it existed, but we just dropped it #}\n {%- set should_create = (old_relation is none or exists_not_as_table) -%}\n {{ make_date_partitioned_table(model, target_relation, partitions, should_create, verbose) }}\n {% else %}\n {%- set raw_partition_by = config.get('partition_by', none) -%}\n {%- set partition_by = adapter.parse_partition_by(raw_partition_by) -%}\n {%- set cluster_by = config.get('cluster_by', none) -%}\n {% if not adapter.is_replaceable(old_relation, partition_by, cluster_by) %}\n {% do log(\"Hard refreshing \" ~ old_relation ~ \" because it is not replaceable\") %}\n {% do adapter.drop_relation(old_relation) %}\n {% endif %}\n {% call statement('main') -%}\n {{ create_table_as(False, target_relation, sql) }}\n {% endcall -%}\n {% endif %}\n\n {{ run_hooks(post_hooks) }}\n\n {% do persist_docs(target_relation, model) %}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_hooks", "macro.dbt_bigquery.make_date_partitioned_table", "macro.dbt.statement", "macro.dbt.create_table_as", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_bigquery.materialization_copy_bigquery": {"unique_id": "macro.dbt_bigquery.materialization_copy_bigquery", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/materializations/copy.sql", "original_file_path": "macros/materializations/copy.sql", "name": "materialization_copy_bigquery", "macro_sql": "{% materialization copy, adapter='bigquery' -%}\n\n {# Setup #}\n {{ run_hooks(pre_hooks) }}\n\n {# there should be exactly one ref or exactly one source #}\n {% set destination = this.incorporate(type='table') %}\n\n {% set dependency_type = none %}\n {% if (model.refs | length) == 1 and (model.sources | length) == 0 %}\n {% set dependency_type = 'ref' %}\n {% elif (model.refs | length) == 0 and (model.sources | length) == 1 %}\n {% set dependency_type = 'source' %}\n {% else %}\n {% set msg %}\n Expected exactly one ref or exactly one source, instead got {{ model.refs | length }} models and {{ model.sources | length }} sources.\n {% endset %}\n {% do exceptions.raise_compiler_error(msg) %}\n {% endif %}\n\n {% if dependency_type == 'ref' %}\n {% set src = ref(*model.refs[0]) %}\n {% else %}\n {% set src = source(*model.sources[0]) %}\n {% endif %}\n\n {%- set result_str = adapter.copy_table(\n src,\n destination,\n config.get('copy_materialization', 'table')) -%}\n\n {{ store_result('main', response=result_str) }}\n\n {# Clean up #}\n {{ run_hooks(post_hooks) }}\n {{ adapter.commit() }}\n\n {{ return({'relations': [destination]}) }}\n{%- endmaterialization %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_hooks"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_bigquery.dbt_bigquery_validate_get_incremental_strategy": {"unique_id": "macro.dbt_bigquery.dbt_bigquery_validate_get_incremental_strategy", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/materializations/incremental.sql", "original_file_path": "macros/materializations/incremental.sql", "name": "dbt_bigquery_validate_get_incremental_strategy", "macro_sql": "{% macro dbt_bigquery_validate_get_incremental_strategy(config) %}\n {#-- Find and validate the incremental strategy #}\n {%- set strategy = config.get(\"incremental_strategy\", default=\"merge\") -%}\n\n {% set invalid_strategy_msg -%}\n Invalid incremental strategy provided: {{ strategy }}\n Expected one of: 'merge', 'insert_overwrite'\n {%- endset %}\n {% if strategy not in ['merge', 'insert_overwrite'] %}\n {% do exceptions.raise_compiler_error(invalid_strategy_msg) %}\n {% endif %}\n\n {% do return(strategy) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_bigquery.bq_insert_overwrite": {"unique_id": "macro.dbt_bigquery.bq_insert_overwrite", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/materializations/incremental.sql", "original_file_path": "macros/materializations/incremental.sql", "name": "bq_insert_overwrite", "macro_sql": "{% macro bq_insert_overwrite(tmp_relation, target_relation, sql, unique_key, partition_by, partitions, dest_columns) %}\n\n {% if partitions is not none and partitions != [] %} {# static #}\n\n {% set predicate -%}\n {{ partition_by.render(alias='DBT_INTERNAL_DEST') }} in (\n {{ partitions | join (', ') }}\n )\n {%- endset %}\n\n {%- set source_sql -%}\n (\n {{sql}}\n )\n {%- endset -%}\n\n {{ get_insert_overwrite_merge_sql(target_relation, source_sql, dest_columns, [predicate], include_sql_header=true) }}\n\n {% else %} {# dynamic #}\n\n {% set predicate -%}\n {{ partition_by.render(alias='DBT_INTERNAL_DEST') }} in unnest(dbt_partitions_for_replacement)\n {%- endset %}\n\n {%- set source_sql -%}\n (\n select * from {{ tmp_relation }}\n )\n {%- endset -%}\n\n -- generated script to merge partitions into {{ target_relation }}\n declare dbt_partitions_for_replacement array<{{ partition_by.data_type }}>;\n declare _dbt_max_partition {{ partition_by.data_type }} default (\n select max({{ partition_by.field }}) from {{ this }}\n where {{ partition_by.field }} is not null\n );\n\n -- 1. create a temp table\n {{ create_table_as(True, tmp_relation, sql) }}\n\n -- 2. define partitions to update\n set (dbt_partitions_for_replacement) = (\n select as struct\n array_agg(distinct {{ partition_by.render() }})\n from {{ tmp_relation }}\n );\n\n {#\n TODO: include_sql_header is a hack; consider a better approach that includes\n the sql_header at the materialization-level instead\n #}\n -- 3. run the merge statement\n {{ get_insert_overwrite_merge_sql(target_relation, source_sql, dest_columns, [predicate], include_sql_header=false) }};\n\n -- 4. clean up the temp table\n drop table if exists {{ tmp_relation }}\n\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_insert_overwrite_merge_sql", "macro.dbt.create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_bigquery.materialization_incremental_bigquery": {"unique_id": "macro.dbt_bigquery.materialization_incremental_bigquery", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/materializations/incremental.sql", "original_file_path": "macros/materializations/incremental.sql", "name": "materialization_incremental_bigquery", "macro_sql": "{% materialization incremental, adapter='bigquery' -%}\n\n {%- set unique_key = config.get('unique_key') -%}\n {%- set full_refresh_mode = (should_full_refresh()) -%}\n\n {%- set target_relation = this %}\n {%- set existing_relation = load_relation(this) %}\n {%- set tmp_relation = make_temp_relation(this) %}\n\n {#-- Validate early so we don't run SQL if the strategy is invalid --#}\n {% set strategy = dbt_bigquery_validate_get_incremental_strategy(config) -%}\n\n {%- set raw_partition_by = config.get('partition_by', none) -%}\n {%- set partition_by = adapter.parse_partition_by(raw_partition_by) -%}\n {%- set partitions = config.get('partitions', none) -%}\n {%- set cluster_by = config.get('cluster_by', none) -%}\n\n {{ run_hooks(pre_hooks) }}\n\n {% if existing_relation is none %}\n {% set build_sql = create_table_as(False, target_relation, sql) %}\n {% elif existing_relation.is_view %}\n {#-- There's no way to atomically replace a view with a table on BQ --#}\n {{ adapter.drop_relation(existing_relation) }}\n {% set build_sql = create_table_as(False, target_relation, sql) %}\n {% elif full_refresh_mode %}\n {#-- If the partition/cluster config has changed, then we must drop and recreate --#}\n {% if not adapter.is_replaceable(existing_relation, partition_by, cluster_by) %}\n {% do log(\"Hard refreshing \" ~ existing_relation ~ \" because it is not replaceable\") %}\n {{ adapter.drop_relation(existing_relation) }}\n {% endif %}\n {% set build_sql = create_table_as(False, target_relation, sql) %}\n {% else %}\n {% set dest_columns = adapter.get_columns_in_relation(existing_relation) %}\n\n {#-- if partitioned, use BQ scripting to get the range of partition values to be updated --#}\n {% if strategy == 'insert_overwrite' %}\n\n {% set missing_partition_msg -%}\n The 'insert_overwrite' strategy requires the `partition_by` config.\n {%- endset %}\n {% if partition_by is none %}\n {% do exceptions.raise_compiler_error(missing_partition_msg) %}\n {% endif %}\n\n {% set build_sql = bq_insert_overwrite(\n tmp_relation,\n target_relation,\n sql,\n unique_key,\n partition_by,\n partitions,\n dest_columns) %}\n\n {% else %}\n {#-- wrap sql in parens to make it a subquery --#}\n {%- set source_sql -%}\n (\n {{sql}}\n )\n {%- endset -%}\n\n {% set build_sql = get_merge_sql(target_relation, source_sql, unique_key, dest_columns) %}\n\n {% endif %}\n\n {% endif %}\n\n {%- call statement('main') -%}\n {{ build_sql }}\n {% endcall %}\n\n {{ run_hooks(post_hooks) }}\n\n {% set target_relation = this.incorporate(type='table') %}\n\n {% do persist_docs(target_relation, model) %}\n\n {{ return({'relations': [target_relation]}) }}\n\n{%- endmaterialization %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.should_full_refresh", "macro.dbt.load_relation", "macro.dbt.make_temp_relation", "macro.dbt_bigquery.dbt_bigquery_validate_get_incremental_strategy", "macro.dbt.run_hooks", "macro.dbt.create_table_as", "macro.dbt_bigquery.bq_insert_overwrite", "macro.dbt.get_merge_sql", "macro.dbt.statement", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_bigquery.bigquery__snapshot_hash_arguments": {"unique_id": "macro.dbt_bigquery.bigquery__snapshot_hash_arguments", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/materializations/snapshot.sql", "original_file_path": "macros/materializations/snapshot.sql", "name": "bigquery__snapshot_hash_arguments", "macro_sql": "{% macro bigquery__snapshot_hash_arguments(args) -%}\n to_hex(md5(concat({%- for arg in args -%}\n coalesce(cast({{ arg }} as string), ''){% if not loop.last %}, '|',{% endif -%}\n {%- endfor -%}\n )))\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_bigquery.bigquery__create_columns": {"unique_id": "macro.dbt_bigquery.bigquery__create_columns", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/materializations/snapshot.sql", "original_file_path": "macros/materializations/snapshot.sql", "name": "bigquery__create_columns", "macro_sql": "{% macro bigquery__create_columns(relation, columns) %}\n {{ adapter.alter_table_add_columns(relation, columns) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_bigquery.bigquery__post_snapshot": {"unique_id": "macro.dbt_bigquery.bigquery__post_snapshot", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/materializations/snapshot.sql", "original_file_path": "macros/materializations/snapshot.sql", "name": "bigquery__post_snapshot", "macro_sql": "{% macro bigquery__post_snapshot(staging_relation) %}\n -- Clean up the snapshot temp table\n {% do drop_relation(staging_relation) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.drop_relation"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.statement": {"unique_id": "macro.dbt.statement", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/core.sql", "original_file_path": "macros/core.sql", "name": "statement", "macro_sql": "{% macro statement(name=None, fetch_result=False, auto_begin=True) -%}\n {%- if execute: -%}\n {%- set sql = caller() -%}\n\n {%- if name == 'main' -%}\n {{ log('Writing runtime SQL for node \"{}\"'.format(model['unique_id'])) }}\n {{ write(sql) }}\n {%- endif -%}\n\n {%- set res, table = adapter.execute(sql, auto_begin=auto_begin, fetch=fetch_result) -%}\n {%- if name is not none -%}\n {{ store_result(name, response=res, agate_table=table) }}\n {%- endif -%}\n\n {%- endif -%}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.noop_statement": {"unique_id": "macro.dbt.noop_statement", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/core.sql", "original_file_path": "macros/core.sql", "name": "noop_statement", "macro_sql": "{% macro noop_statement(name=None, message=None, code=None, rows_affected=None, res=None) -%}\n {%- set sql = caller() -%}\n\n {%- if name == 'main' -%}\n {{ log('Writing runtime SQL for node \"{}\"'.format(model['unique_id'])) }}\n {{ write(sql) }}\n {%- endif -%}\n\n {%- if name is not none -%}\n {{ store_raw_result(name, message=message, code=code, rows_affected=rows_affected, agate_table=res) }}\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.get_test_sql": {"unique_id": "macro.dbt.get_test_sql", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/test.sql", "original_file_path": "macros/materializations/test.sql", "name": "get_test_sql", "macro_sql": "{% macro get_test_sql(main_sql, fail_calc, warn_if, error_if, limit) -%}\n {{ adapter.dispatch('get_test_sql')(main_sql, fail_calc, warn_if, error_if, limit) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_test_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.default__get_test_sql": {"unique_id": "macro.dbt.default__get_test_sql", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/test.sql", "original_file_path": "macros/materializations/test.sql", "name": "default__get_test_sql", "macro_sql": "{% macro default__get_test_sql(main_sql, fail_calc, warn_if, error_if, limit) -%}\n select\n {{ fail_calc }} as failures,\n {{ fail_calc }} {{ warn_if }} as should_warn,\n {{ fail_calc }} {{ error_if }} as should_error\n from (\n {{ main_sql }}\n {{ \"limit \" ~ limit if limit != none }}\n ) dbt_internal_test\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.materialization_test_default": {"unique_id": "macro.dbt.materialization_test_default", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/test.sql", "original_file_path": "macros/materializations/test.sql", "name": "materialization_test_default", "macro_sql": "\n\n{%- materialization test, default -%}\n\n {% set relations = [] %}\n\n {% if should_store_failures() %}\n\n {% set identifier = model['alias'] %}\n {% set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) %}\n {% set target_relation = api.Relation.create(\n identifier=identifier, schema=schema, database=database, type='table') -%} %}\n \n {% if old_relation %}\n {% do adapter.drop_relation(old_relation) %}\n {% endif %}\n \n {% call statement(auto_begin=True) %}\n {{ create_table_as(False, target_relation, sql) }}\n {% endcall %}\n \n {% do relations.append(target_relation) %}\n \n {% set main_sql %}\n select *\n from {{ target_relation }}\n {% endset %}\n \n {{ adapter.commit() }}\n \n {% else %}\n\n {% set main_sql = sql %}\n \n {% endif %}\n\n {% set limit = config.get('limit') %}\n {% set fail_calc = config.get('fail_calc') %}\n {% set warn_if = config.get('warn_if') %}\n {% set error_if = config.get('error_if') %}\n\n {% call statement('main', fetch_result=True) -%}\n\n {{ get_test_sql(main_sql, fail_calc, warn_if, error_if, limit)}}\n\n {%- endcall %}\n \n {{ return({'relations': relations}) }}\n\n{%- endmaterialization -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.should_store_failures", "macro.dbt.statement", "macro.dbt.create_table_as", "macro.dbt.get_test_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.run_hooks": {"unique_id": "macro.dbt.run_hooks", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/helpers.sql", "original_file_path": "macros/materializations/helpers.sql", "name": "run_hooks", "macro_sql": "{% macro run_hooks(hooks, inside_transaction=True) %}\n {% for hook in hooks | selectattr('transaction', 'equalto', inside_transaction) %}\n {% if not inside_transaction and loop.first %}\n {% call statement(auto_begin=inside_transaction) %}\n commit;\n {% endcall %}\n {% endif %}\n {% set rendered = render(hook.get('sql')) | trim %}\n {% if (rendered | length) > 0 %}\n {% call statement(auto_begin=inside_transaction) %}\n {{ rendered }}\n {% endcall %}\n {% endif %}\n {% endfor %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.column_list": {"unique_id": "macro.dbt.column_list", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/helpers.sql", "original_file_path": "macros/materializations/helpers.sql", "name": "column_list", "macro_sql": "{% macro column_list(columns) %}\n {%- for col in columns %}\n {{ col.name }} {% if not loop.last %},{% endif %}\n {% endfor -%}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.column_list_for_create_table": {"unique_id": "macro.dbt.column_list_for_create_table", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/helpers.sql", "original_file_path": "macros/materializations/helpers.sql", "name": "column_list_for_create_table", "macro_sql": "{% macro column_list_for_create_table(columns) %}\n {%- for col in columns %}\n {{ col.name }} {{ col.data_type }} {%- if not loop.last %},{% endif %}\n {% endfor -%}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.make_hook_config": {"unique_id": "macro.dbt.make_hook_config", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/helpers.sql", "original_file_path": "macros/materializations/helpers.sql", "name": "make_hook_config", "macro_sql": "{% macro make_hook_config(sql, inside_transaction) %}\n {{ tojson({\"sql\": sql, \"transaction\": inside_transaction}) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.before_begin": {"unique_id": "macro.dbt.before_begin", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/helpers.sql", "original_file_path": "macros/materializations/helpers.sql", "name": "before_begin", "macro_sql": "{% macro before_begin(sql) %}\n {{ make_hook_config(sql, inside_transaction=False) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.in_transaction": {"unique_id": "macro.dbt.in_transaction", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/helpers.sql", "original_file_path": "macros/materializations/helpers.sql", "name": "in_transaction", "macro_sql": "{% macro in_transaction(sql) %}\n {{ make_hook_config(sql, inside_transaction=True) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.after_commit": {"unique_id": "macro.dbt.after_commit", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/helpers.sql", "original_file_path": "macros/materializations/helpers.sql", "name": "after_commit", "macro_sql": "{% macro after_commit(sql) %}\n {{ make_hook_config(sql, inside_transaction=False) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.drop_relation_if_exists": {"unique_id": "macro.dbt.drop_relation_if_exists", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/helpers.sql", "original_file_path": "macros/materializations/helpers.sql", "name": "drop_relation_if_exists", "macro_sql": "{% macro drop_relation_if_exists(relation) %}\n {% if relation is not none %}\n {{ adapter.drop_relation(relation) }}\n {% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.load_relation": {"unique_id": "macro.dbt.load_relation", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/helpers.sql", "original_file_path": "macros/materializations/helpers.sql", "name": "load_relation", "macro_sql": "{% macro load_relation(relation) %}\n {% do return(adapter.get_relation(\n database=relation.database,\n schema=relation.schema,\n identifier=relation.identifier\n )) -%}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.should_full_refresh": {"unique_id": "macro.dbt.should_full_refresh", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/helpers.sql", "original_file_path": "macros/materializations/helpers.sql", "name": "should_full_refresh", "macro_sql": "{% macro should_full_refresh() %}\n {% set config_full_refresh = config.get('full_refresh') %}\n {% if config_full_refresh is none %}\n {% set config_full_refresh = flags.FULL_REFRESH %}\n {% endif %}\n {% do return(config_full_refresh) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.should_store_failures": {"unique_id": "macro.dbt.should_store_failures", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/helpers.sql", "original_file_path": "macros/materializations/helpers.sql", "name": "should_store_failures", "macro_sql": "{% macro should_store_failures() %}\n {% set config_store_failures = config.get('store_failures') %}\n {% if config_store_failures is none %}\n {% set config_store_failures = flags.STORE_FAILURES %}\n {% endif %}\n {% do return(config_store_failures) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.snapshot_merge_sql": {"unique_id": "macro.dbt.snapshot_merge_sql", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshot/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshot/snapshot_merge.sql", "name": "snapshot_merge_sql", "macro_sql": "{% macro snapshot_merge_sql(target, source, insert_cols) -%}\n {{ adapter.dispatch('snapshot_merge_sql')(target, source, insert_cols) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__snapshot_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.default__snapshot_merge_sql": {"unique_id": "macro.dbt.default__snapshot_merge_sql", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshot/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshot/snapshot_merge.sql", "name": "default__snapshot_merge_sql", "macro_sql": "{% macro default__snapshot_merge_sql(target, source, insert_cols) -%}\n {%- set insert_cols_csv = insert_cols | join(', ') -%}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on DBT_INTERNAL_SOURCE.dbt_scd_id = DBT_INTERNAL_DEST.dbt_scd_id\n\n when matched\n and DBT_INTERNAL_DEST.dbt_valid_to is null\n and DBT_INTERNAL_SOURCE.dbt_change_type in ('update', 'delete')\n then update\n set dbt_valid_to = DBT_INTERNAL_SOURCE.dbt_valid_to\n\n when not matched\n and DBT_INTERNAL_SOURCE.dbt_change_type = 'insert'\n then insert ({{ insert_cols_csv }})\n values ({{ insert_cols_csv }})\n ;\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.strategy_dispatch": {"unique_id": "macro.dbt.strategy_dispatch", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshot/strategies.sql", "original_file_path": "macros/materializations/snapshot/strategies.sql", "name": "strategy_dispatch", "macro_sql": "{% macro strategy_dispatch(name) -%}\n{% set original_name = name %}\n {% if '.' in name %}\n {% set package_name, name = name.split(\".\", 1) %}\n {% else %}\n {% set package_name = none %}\n {% endif %}\n\n {% if package_name is none %}\n {% set package_context = context %}\n {% elif package_name in context %}\n {% set package_context = context[package_name] %}\n {% else %}\n {% set error_msg %}\n Could not find package '{{package_name}}', called with '{{original_name}}'\n {% endset %}\n {{ exceptions.raise_compiler_error(error_msg | trim) }}\n {% endif %}\n\n {%- set search_name = 'snapshot_' ~ name ~ '_strategy' -%}\n\n {% if search_name not in package_context %}\n {% set error_msg %}\n The specified strategy macro '{{name}}' was not found in package '{{ package_name }}'\n {% endset %}\n {{ exceptions.raise_compiler_error(error_msg | trim) }}\n {% endif %}\n {{ return(package_context[search_name]) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.snapshot_hash_arguments": {"unique_id": "macro.dbt.snapshot_hash_arguments", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshot/strategies.sql", "original_file_path": "macros/materializations/snapshot/strategies.sql", "name": "snapshot_hash_arguments", "macro_sql": "{% macro snapshot_hash_arguments(args) -%}\n {{ adapter.dispatch('snapshot_hash_arguments')(args) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.default__snapshot_hash_arguments": {"unique_id": "macro.dbt.default__snapshot_hash_arguments", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshot/strategies.sql", "original_file_path": "macros/materializations/snapshot/strategies.sql", "name": "default__snapshot_hash_arguments", "macro_sql": "{% macro default__snapshot_hash_arguments(args) -%}\n md5({%- for arg in args -%}\n coalesce(cast({{ arg }} as varchar ), '')\n {% if not loop.last %} || '|' || {% endif %}\n {%- endfor -%})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.snapshot_get_time": {"unique_id": "macro.dbt.snapshot_get_time", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshot/strategies.sql", "original_file_path": "macros/materializations/snapshot/strategies.sql", "name": "snapshot_get_time", "macro_sql": "{% macro snapshot_get_time() -%}\n {{ adapter.dispatch('snapshot_get_time')() }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__snapshot_get_time"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.default__snapshot_get_time": {"unique_id": "macro.dbt.default__snapshot_get_time", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshot/strategies.sql", "original_file_path": "macros/materializations/snapshot/strategies.sql", "name": "default__snapshot_get_time", "macro_sql": "{% macro default__snapshot_get_time() -%}\n {{ current_timestamp() }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.snapshot_timestamp_strategy": {"unique_id": "macro.dbt.snapshot_timestamp_strategy", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshot/strategies.sql", "original_file_path": "macros/materializations/snapshot/strategies.sql", "name": "snapshot_timestamp_strategy", "macro_sql": "{% macro snapshot_timestamp_strategy(node, snapshotted_rel, current_rel, config, target_exists) %}\n {% set primary_key = config['unique_key'] %}\n {% set updated_at = config['updated_at'] %}\n {% set invalidate_hard_deletes = config.get('invalidate_hard_deletes', false) %}\n\n {#/*\n The snapshot relation might not have an {{ updated_at }} value if the\n snapshot strategy is changed from `check` to `timestamp`. We\n should use a dbt-created column for the comparison in the snapshot\n table instead of assuming that the user-supplied {{ updated_at }}\n will be present in the historical data.\n\n See https://github.com/fishtown-analytics/dbt/issues/2350\n */ #}\n {% set row_changed_expr -%}\n ({{ snapshotted_rel }}.dbt_valid_from < {{ current_rel }}.{{ updated_at }})\n {%- endset %}\n\n {% set scd_id_expr = snapshot_hash_arguments([primary_key, updated_at]) %}\n\n {% do return({\n \"unique_key\": primary_key,\n \"updated_at\": updated_at,\n \"row_changed\": row_changed_expr,\n \"scd_id\": scd_id_expr,\n \"invalidate_hard_deletes\": invalidate_hard_deletes\n }) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.snapshot_string_as_time": {"unique_id": "macro.dbt.snapshot_string_as_time", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshot/strategies.sql", "original_file_path": "macros/materializations/snapshot/strategies.sql", "name": "snapshot_string_as_time", "macro_sql": "{% macro snapshot_string_as_time(timestamp) -%}\n {{ adapter.dispatch('snapshot_string_as_time')(timestamp) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__snapshot_string_as_time"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.default__snapshot_string_as_time": {"unique_id": "macro.dbt.default__snapshot_string_as_time", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshot/strategies.sql", "original_file_path": "macros/materializations/snapshot/strategies.sql", "name": "default__snapshot_string_as_time", "macro_sql": "{% macro default__snapshot_string_as_time(timestamp) %}\n {% do exceptions.raise_not_implemented(\n 'snapshot_string_as_time macro not implemented for adapter '+adapter.type()\n ) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.snapshot_check_all_get_existing_columns": {"unique_id": "macro.dbt.snapshot_check_all_get_existing_columns", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshot/strategies.sql", "original_file_path": "macros/materializations/snapshot/strategies.sql", "name": "snapshot_check_all_get_existing_columns", "macro_sql": "{% macro snapshot_check_all_get_existing_columns(node, target_exists) -%}\n {%- set query_columns = get_columns_in_query(node['compiled_sql']) -%}\n {%- if not target_exists -%}\n {# no table yet -> return whatever the query does #}\n {{ return([false, query_columns]) }}\n {%- endif -%}\n {# handle any schema changes #}\n {%- set target_table = node.get('alias', node.get('name')) -%}\n {%- set target_relation = adapter.get_relation(database=node.database, schema=node.schema, identifier=target_table) -%}\n {%- set existing_cols = get_columns_in_query('select * from ' ~ target_relation) -%}\n {%- set ns = namespace() -%} {# handle for-loop scoping with a namespace #}\n {%- set ns.column_added = false -%}\n\n {%- set intersection = [] -%}\n {%- for col in query_columns -%}\n {%- if col in existing_cols -%}\n {%- do intersection.append(col) -%}\n {%- else -%}\n {% set ns.column_added = true %}\n {%- endif -%}\n {%- endfor -%}\n {{ return([ns.column_added, intersection]) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_columns_in_query"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.snapshot_check_strategy": {"unique_id": "macro.dbt.snapshot_check_strategy", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshot/strategies.sql", "original_file_path": "macros/materializations/snapshot/strategies.sql", "name": "snapshot_check_strategy", "macro_sql": "{% macro snapshot_check_strategy(node, snapshotted_rel, current_rel, config, target_exists) %}\n {% set check_cols_config = config['check_cols'] %}\n {% set primary_key = config['unique_key'] %}\n {% set invalidate_hard_deletes = config.get('invalidate_hard_deletes', false) %}\n \n {% set select_current_time -%}\n select {{ snapshot_get_time() }} as snapshot_start\n {%- endset %}\n\n {#-- don't access the column by name, to avoid dealing with casing issues on snowflake #}\n {%- set now = run_query(select_current_time)[0][0] -%}\n {% if now is none or now is undefined -%}\n {%- do exceptions.raise_compiler_error('Could not get a snapshot start time from the database') -%}\n {%- endif %}\n {% set updated_at = config.get('updated_at', snapshot_string_as_time(now)) %}\n\n {% set column_added = false %}\n\n {% if check_cols_config == 'all' %}\n {% set column_added, check_cols = snapshot_check_all_get_existing_columns(node, target_exists) %}\n {% elif check_cols_config is iterable and (check_cols_config | length) > 0 %}\n {% set check_cols = check_cols_config %}\n {% else %}\n {% do exceptions.raise_compiler_error(\"Invalid value for 'check_cols': \" ~ check_cols_config) %}\n {% endif %}\n\n {%- set row_changed_expr -%}\n (\n {%- if column_added -%}\n TRUE\n {%- else -%}\n {%- for col in check_cols -%}\n {{ snapshotted_rel }}.{{ col }} != {{ current_rel }}.{{ col }}\n or\n (\n (({{ snapshotted_rel }}.{{ col }} is null) and not ({{ current_rel }}.{{ col }} is null))\n or\n ((not {{ snapshotted_rel }}.{{ col }} is null) and ({{ current_rel }}.{{ col }} is null))\n )\n {%- if not loop.last %} or {% endif -%}\n {%- endfor -%}\n {%- endif -%}\n )\n {%- endset %}\n\n {% set scd_id_expr = snapshot_hash_arguments([primary_key, updated_at]) %}\n\n {% do return({\n \"unique_key\": primary_key,\n \"updated_at\": updated_at,\n \"row_changed\": row_changed_expr,\n \"scd_id\": scd_id_expr,\n \"invalidate_hard_deletes\": invalidate_hard_deletes\n }) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.snapshot_get_time", "macro.dbt.run_query", "macro.dbt.snapshot_string_as_time", "macro.dbt.snapshot_check_all_get_existing_columns", "macro.dbt.snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.create_columns": {"unique_id": "macro.dbt.create_columns", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshot/snapshot.sql", "original_file_path": "macros/materializations/snapshot/snapshot.sql", "name": "create_columns", "macro_sql": "{% macro create_columns(relation, columns) %}\n {{ adapter.dispatch('create_columns')(relation, columns) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__create_columns"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.default__create_columns": {"unique_id": "macro.dbt.default__create_columns", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshot/snapshot.sql", "original_file_path": "macros/materializations/snapshot/snapshot.sql", "name": "default__create_columns", "macro_sql": "{% macro default__create_columns(relation, columns) %}\n {% for column in columns %}\n {% call statement() %}\n alter table {{ relation }} add column \"{{ column.name }}\" {{ column.data_type }};\n {% endcall %}\n {% endfor %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.post_snapshot": {"unique_id": "macro.dbt.post_snapshot", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshot/snapshot.sql", "original_file_path": "macros/materializations/snapshot/snapshot.sql", "name": "post_snapshot", "macro_sql": "{% macro post_snapshot(staging_relation) %}\n {{ adapter.dispatch('post_snapshot')(staging_relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__post_snapshot"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.default__post_snapshot": {"unique_id": "macro.dbt.default__post_snapshot", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshot/snapshot.sql", "original_file_path": "macros/materializations/snapshot/snapshot.sql", "name": "default__post_snapshot", "macro_sql": "{% macro default__post_snapshot(staging_relation) %}\n {# no-op #}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.snapshot_staging_table": {"unique_id": "macro.dbt.snapshot_staging_table", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshot/snapshot.sql", "original_file_path": "macros/materializations/snapshot/snapshot.sql", "name": "snapshot_staging_table", "macro_sql": "{% macro snapshot_staging_table(strategy, source_sql, target_relation) -%}\n\n with snapshot_query as (\n\n {{ source_sql }}\n\n ),\n\n snapshotted_data as (\n\n select *,\n {{ strategy.unique_key }} as dbt_unique_key\n\n from {{ target_relation }}\n where dbt_valid_to is null\n\n ),\n\n insertions_source_data as (\n\n select\n *,\n {{ strategy.unique_key }} as dbt_unique_key,\n {{ strategy.updated_at }} as dbt_updated_at,\n {{ strategy.updated_at }} as dbt_valid_from,\n nullif({{ strategy.updated_at }}, {{ strategy.updated_at }}) as dbt_valid_to,\n {{ strategy.scd_id }} as dbt_scd_id\n\n from snapshot_query\n ),\n\n updates_source_data as (\n\n select\n *,\n {{ strategy.unique_key }} as dbt_unique_key,\n {{ strategy.updated_at }} as dbt_updated_at,\n {{ strategy.updated_at }} as dbt_valid_from,\n {{ strategy.updated_at }} as dbt_valid_to\n\n from snapshot_query\n ),\n\n {%- if strategy.invalidate_hard_deletes %}\n\n deletes_source_data as (\n\n select \n *,\n {{ strategy.unique_key }} as dbt_unique_key\n from snapshot_query\n ),\n {% endif %}\n\n insertions as (\n\n select\n 'insert' as dbt_change_type,\n source_data.*\n\n from insertions_source_data as source_data\n left outer join snapshotted_data on snapshotted_data.dbt_unique_key = source_data.dbt_unique_key\n where snapshotted_data.dbt_unique_key is null\n or (\n snapshotted_data.dbt_unique_key is not null\n and (\n {{ strategy.row_changed }}\n )\n )\n\n ),\n\n updates as (\n\n select\n 'update' as dbt_change_type,\n source_data.*,\n snapshotted_data.dbt_scd_id\n\n from updates_source_data as source_data\n join snapshotted_data on snapshotted_data.dbt_unique_key = source_data.dbt_unique_key\n where (\n {{ strategy.row_changed }}\n )\n )\n\n {%- if strategy.invalidate_hard_deletes -%}\n ,\n\n deletes as (\n \n select\n 'delete' as dbt_change_type,\n source_data.*,\n {{ snapshot_get_time() }} as dbt_valid_from,\n {{ snapshot_get_time() }} as dbt_updated_at,\n {{ snapshot_get_time() }} as dbt_valid_to,\n snapshotted_data.dbt_scd_id\n \n from snapshotted_data\n left join deletes_source_data as source_data on snapshotted_data.dbt_unique_key = source_data.dbt_unique_key\n where source_data.dbt_unique_key is null\n )\n {%- endif %}\n\n select * from insertions\n union all\n select * from updates\n {%- if strategy.invalidate_hard_deletes %}\n union all\n select * from deletes\n {%- endif %}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.snapshot_get_time"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.build_snapshot_table": {"unique_id": "macro.dbt.build_snapshot_table", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshot/snapshot.sql", "original_file_path": "macros/materializations/snapshot/snapshot.sql", "name": "build_snapshot_table", "macro_sql": "{% macro build_snapshot_table(strategy, sql) %}\n\n select *,\n {{ strategy.scd_id }} as dbt_scd_id,\n {{ strategy.updated_at }} as dbt_updated_at,\n {{ strategy.updated_at }} as dbt_valid_from,\n nullif({{ strategy.updated_at }}, {{ strategy.updated_at }}) as dbt_valid_to\n from (\n {{ sql }}\n ) sbq\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.get_or_create_relation": {"unique_id": "macro.dbt.get_or_create_relation", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshot/snapshot.sql", "original_file_path": "macros/materializations/snapshot/snapshot.sql", "name": "get_or_create_relation", "macro_sql": "{% macro get_or_create_relation(database, schema, identifier, type) %}\n {%- set target_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) %}\n\n {% if target_relation %}\n {% do return([true, target_relation]) %}\n {% endif %}\n\n {%- set new_relation = api.Relation.create(\n database=database,\n schema=schema,\n identifier=identifier,\n type=type\n ) -%}\n {% do return([false, new_relation]) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.build_snapshot_staging_table": {"unique_id": "macro.dbt.build_snapshot_staging_table", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshot/snapshot.sql", "original_file_path": "macros/materializations/snapshot/snapshot.sql", "name": "build_snapshot_staging_table", "macro_sql": "{% macro build_snapshot_staging_table(strategy, sql, target_relation) %}\n {% set tmp_relation = make_temp_relation(target_relation) %}\n\n {% set select = snapshot_staging_table(strategy, sql, target_relation) %}\n\n {% call statement('build_snapshot_staging_relation') %}\n {{ create_table_as(True, tmp_relation, select) }}\n {% endcall %}\n\n {% do return(tmp_relation) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.make_temp_relation", "macro.dbt.snapshot_staging_table", "macro.dbt.statement", "macro.dbt.create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.materialization_snapshot_default": {"unique_id": "macro.dbt.materialization_snapshot_default", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshot/snapshot.sql", "original_file_path": "macros/materializations/snapshot/snapshot.sql", "name": "materialization_snapshot_default", "macro_sql": "{% materialization snapshot, default %}\n {%- set config = model['config'] -%}\n\n {%- set target_table = model.get('alias', model.get('name')) -%}\n\n {%- set strategy_name = config.get('strategy') -%}\n {%- set unique_key = config.get('unique_key') %}\n\n {% if not adapter.check_schema_exists(model.database, model.schema) %}\n {% do create_schema(model.database, model.schema) %}\n {% endif %}\n\n {% set target_relation_exists, target_relation = get_or_create_relation(\n database=model.database,\n schema=model.schema,\n identifier=target_table,\n type='table') -%}\n\n {%- if not target_relation.is_table -%}\n {% do exceptions.relation_wrong_type(target_relation, 'table') %}\n {%- endif -%}\n\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n {% set strategy_macro = strategy_dispatch(strategy_name) %}\n {% set strategy = strategy_macro(model, \"snapshotted_data\", \"source_data\", config, target_relation_exists) %}\n\n {% if not target_relation_exists %}\n\n {% set build_sql = build_snapshot_table(strategy, model['compiled_sql']) %}\n {% set final_sql = create_table_as(False, target_relation, build_sql) %}\n\n {% else %}\n\n {{ adapter.valid_snapshot_target(target_relation) }}\n\n {% set staging_table = build_snapshot_staging_table(strategy, sql, target_relation) %}\n\n -- this may no-op if the database does not require column expansion\n {% do adapter.expand_target_column_types(from_relation=staging_table,\n to_relation=target_relation) %}\n\n {% set missing_columns = adapter.get_missing_columns(staging_table, target_relation)\n | rejectattr('name', 'equalto', 'dbt_change_type')\n | rejectattr('name', 'equalto', 'DBT_CHANGE_TYPE')\n | rejectattr('name', 'equalto', 'dbt_unique_key')\n | rejectattr('name', 'equalto', 'DBT_UNIQUE_KEY')\n | list %}\n\n {% do create_columns(target_relation, missing_columns) %}\n\n {% set source_columns = adapter.get_columns_in_relation(staging_table)\n | rejectattr('name', 'equalto', 'dbt_change_type')\n | rejectattr('name', 'equalto', 'DBT_CHANGE_TYPE')\n | rejectattr('name', 'equalto', 'dbt_unique_key')\n | rejectattr('name', 'equalto', 'DBT_UNIQUE_KEY')\n | list %}\n\n {% set quoted_source_columns = [] %}\n {% for column in source_columns %}\n {% do quoted_source_columns.append(adapter.quote(column.name)) %}\n {% endfor %}\n\n {% set final_sql = snapshot_merge_sql(\n target = target_relation,\n source = staging_table,\n insert_cols = quoted_source_columns\n )\n %}\n\n {% endif %}\n\n {% call statement('main') %}\n {{ final_sql }}\n {% endcall %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if not target_relation_exists %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {{ adapter.commit() }}\n\n {% if staging_table is defined %}\n {% do post_snapshot(staging_table) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.create_schema", "macro.dbt.get_or_create_relation", "macro.dbt.run_hooks", "macro.dbt.strategy_dispatch", "macro.dbt.build_snapshot_table", "macro.dbt.create_table_as", "macro.dbt.build_snapshot_staging_table", "macro.dbt.create_columns", "macro.dbt.snapshot_merge_sql", "macro.dbt.statement", "macro.dbt.persist_docs", "macro.dbt.create_indexes", "macro.dbt.post_snapshot"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.create_csv_table": {"unique_id": "macro.dbt.create_csv_table", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/seed/seed.sql", "original_file_path": "macros/materializations/seed/seed.sql", "name": "create_csv_table", "macro_sql": "{% macro create_csv_table(model, agate_table) -%}\n {{ adapter.dispatch('create_csv_table')(model, agate_table) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__create_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.reset_csv_table": {"unique_id": "macro.dbt.reset_csv_table", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/seed/seed.sql", "original_file_path": "macros/materializations/seed/seed.sql", "name": "reset_csv_table", "macro_sql": "{% macro reset_csv_table(model, full_refresh, old_relation, agate_table) -%}\n {{ adapter.dispatch('reset_csv_table')(model, full_refresh, old_relation, agate_table) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__reset_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.load_csv_rows": {"unique_id": "macro.dbt.load_csv_rows", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/seed/seed.sql", "original_file_path": "macros/materializations/seed/seed.sql", "name": "load_csv_rows", "macro_sql": "{% macro load_csv_rows(model, agate_table) -%}\n {{ adapter.dispatch('load_csv_rows')(model, agate_table) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__load_csv_rows"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.default__create_csv_table": {"unique_id": "macro.dbt.default__create_csv_table", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/seed/seed.sql", "original_file_path": "macros/materializations/seed/seed.sql", "name": "default__create_csv_table", "macro_sql": "{% macro default__create_csv_table(model, agate_table) %}\n {%- set column_override = model['config'].get('column_types', {}) -%}\n {%- set quote_seed_column = model['config'].get('quote_columns', None) -%}\n\n {% set sql %}\n create table {{ this.render() }} (\n {%- for col_name in agate_table.column_names -%}\n {%- set inferred_type = adapter.convert_type(agate_table, loop.index0) -%}\n {%- set type = column_override.get(col_name, inferred_type) -%}\n {%- set column_name = (col_name | string) -%}\n {{ adapter.quote_seed_column(column_name, quote_seed_column) }} {{ type }} {%- if not loop.last -%}, {%- endif -%}\n {%- endfor -%}\n )\n {% endset %}\n\n {% call statement('_') -%}\n {{ sql }}\n {%- endcall %}\n\n {{ return(sql) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.default__reset_csv_table": {"unique_id": "macro.dbt.default__reset_csv_table", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/seed/seed.sql", "original_file_path": "macros/materializations/seed/seed.sql", "name": "default__reset_csv_table", "macro_sql": "{% macro default__reset_csv_table(model, full_refresh, old_relation, agate_table) %}\n {% set sql = \"\" %}\n {% if full_refresh %}\n {{ adapter.drop_relation(old_relation) }}\n {% set sql = create_csv_table(model, agate_table) %}\n {% else %}\n {{ adapter.truncate_relation(old_relation) }}\n {% set sql = \"truncate table \" ~ old_relation %}\n {% endif %}\n\n {{ return(sql) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.create_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.get_seed_column_quoted_csv": {"unique_id": "macro.dbt.get_seed_column_quoted_csv", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/seed/seed.sql", "original_file_path": "macros/materializations/seed/seed.sql", "name": "get_seed_column_quoted_csv", "macro_sql": "{% macro get_seed_column_quoted_csv(model, column_names) %}\n {%- set quote_seed_column = model['config'].get('quote_columns', None) -%}\n {% set quoted = [] %}\n {% for col in column_names -%}\n {%- do quoted.append(adapter.quote_seed_column(col, quote_seed_column)) -%}\n {%- endfor %}\n\n {%- set dest_cols_csv = quoted | join(', ') -%}\n {{ return(dest_cols_csv) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.basic_load_csv_rows": {"unique_id": "macro.dbt.basic_load_csv_rows", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/seed/seed.sql", "original_file_path": "macros/materializations/seed/seed.sql", "name": "basic_load_csv_rows", "macro_sql": "{% macro basic_load_csv_rows(model, batch_size, agate_table) %}\n {% set cols_sql = get_seed_column_quoted_csv(model, agate_table.column_names) %}\n {% set bindings = [] %}\n\n {% set statements = [] %}\n\n {% for chunk in agate_table.rows | batch(batch_size) %}\n {% set bindings = [] %}\n\n {% for row in chunk %}\n {% do bindings.extend(row) %}\n {% endfor %}\n\n {% set sql %}\n insert into {{ this.render() }} ({{ cols_sql }}) values\n {% for row in chunk -%}\n ({%- for column in agate_table.column_names -%}\n %s\n {%- if not loop.last%},{%- endif %}\n {%- endfor -%})\n {%- if not loop.last%},{%- endif %}\n {%- endfor %}\n {% endset %}\n\n {% do adapter.add_query(sql, bindings=bindings, abridge_sql_log=True) %}\n\n {% if loop.index0 == 0 %}\n {% do statements.append(sql) %}\n {% endif %}\n {% endfor %}\n\n {# Return SQL so we can render it out into the compiled files #}\n {{ return(statements[0]) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_seed_column_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.default__load_csv_rows": {"unique_id": "macro.dbt.default__load_csv_rows", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/seed/seed.sql", "original_file_path": "macros/materializations/seed/seed.sql", "name": "default__load_csv_rows", "macro_sql": "{% macro default__load_csv_rows(model, agate_table) %}\n {{ return(basic_load_csv_rows(model, 10000, agate_table) )}}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.basic_load_csv_rows"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.materialization_seed_default": {"unique_id": "macro.dbt.materialization_seed_default", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/seed/seed.sql", "original_file_path": "macros/materializations/seed/seed.sql", "name": "materialization_seed_default", "macro_sql": "{% materialization seed, default %}\n\n {%- set identifier = model['alias'] -%}\n {%- set full_refresh_mode = (should_full_refresh()) -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n\n {%- set exists_as_table = (old_relation is not none and old_relation.is_table) -%}\n {%- set exists_as_view = (old_relation is not none and old_relation.is_view) -%}\n\n {%- set agate_table = load_agate_table() -%}\n {%- do store_result('agate_table', response='OK', agate_table=agate_table) -%}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% set create_table_sql = \"\" %}\n {% if exists_as_view %}\n {{ exceptions.raise_compiler_error(\"Cannot seed to '{}', it is a view\".format(old_relation)) }}\n {% elif exists_as_table %}\n {% set create_table_sql = reset_csv_table(model, full_refresh_mode, old_relation, agate_table) %}\n {% else %}\n {% set create_table_sql = create_csv_table(model, agate_table) %}\n {% endif %}\n\n {% set code = 'CREATE' if full_refresh_mode else 'INSERT' %}\n {% set rows_affected = (agate_table.rows | length) %}\n {% set sql = load_csv_rows(model, agate_table) %}\n\n {% call noop_statement('main', code ~ ' ' ~ rows_affected, code, rows_affected) %}\n {{ create_table_sql }};\n -- dbt seed --\n {{ sql }}\n {% endcall %}\n\n {% set target_relation = this.incorporate(type='table') %}\n {% do persist_docs(target_relation, model) %}\n\n {% if full_refresh_mode or not exists_as_table %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n -- `COMMIT` happens here\n {{ adapter.commit() }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.should_full_refresh", "macro.dbt.run_hooks", "macro.dbt.reset_csv_table", "macro.dbt.create_csv_table", "macro.dbt.load_csv_rows", "macro.dbt.noop_statement", "macro.dbt.persist_docs", "macro.dbt.create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.incremental_upsert": {"unique_id": "macro.dbt.incremental_upsert", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/incremental/helpers.sql", "original_file_path": "macros/materializations/incremental/helpers.sql", "name": "incremental_upsert", "macro_sql": "{% macro incremental_upsert(tmp_relation, target_relation, unique_key=none, statement_name=\"main\") %}\n {%- set dest_columns = adapter.get_columns_in_relation(target_relation) -%}\n {%- set dest_cols_csv = dest_columns | map(attribute='quoted') | join(', ') -%}\n\n {%- if unique_key is not none -%}\n delete\n from {{ target_relation }}\n where ({{ unique_key }}) in (\n select ({{ unique_key }})\n from {{ tmp_relation }}\n );\n {%- endif %}\n\n insert into {{ target_relation }} ({{ dest_cols_csv }})\n (\n select {{ dest_cols_csv }}\n from {{ tmp_relation }}\n );\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.materialization_incremental_default": {"unique_id": "macro.dbt.materialization_incremental_default", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/incremental/incremental.sql", "original_file_path": "macros/materializations/incremental/incremental.sql", "name": "materialization_incremental_default", "macro_sql": "{% materialization incremental, default -%}\n\n {% set unique_key = config.get('unique_key') %}\n\n {% set target_relation = this.incorporate(type='table') %}\n {% set existing_relation = load_relation(this) %}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n {% set to_drop = [] %}\n {% if existing_relation is none %}\n {% set build_sql = create_table_as(False, target_relation, sql) %}\n {% elif existing_relation.is_view or should_full_refresh() %}\n {#-- Make sure the backup doesn't exist so we don't encounter issues with the rename below #}\n {% set tmp_identifier = model['name'] + '__dbt_tmp' %}\n {% set backup_identifier = model['name'] + \"__dbt_backup\" %}\n\n {% set intermediate_relation = existing_relation.incorporate(path={\"identifier\": tmp_identifier}) %}\n {% set backup_relation = existing_relation.incorporate(path={\"identifier\": backup_identifier}) %}\n\n {% do adapter.drop_relation(intermediate_relation) %}\n {% do adapter.drop_relation(backup_relation) %}\n\n {% set build_sql = create_table_as(False, intermediate_relation, sql) %}\n {% set need_swap = true %}\n {% do to_drop.append(backup_relation) %}\n {% else %}\n {% set tmp_relation = make_temp_relation(target_relation) %}\n {% do run_query(create_table_as(True, tmp_relation, sql)) %}\n {% do adapter.expand_target_column_types(\n from_relation=tmp_relation,\n to_relation=target_relation) %}\n {% set build_sql = incremental_upsert(tmp_relation, target_relation, unique_key=unique_key) %}\n {% endif %}\n\n {% call statement(\"main\") %}\n {{ build_sql }}\n {% endcall %}\n\n {% if need_swap %} \n {% do adapter.rename_relation(target_relation, backup_relation) %} \n {% do adapter.rename_relation(intermediate_relation, target_relation) %} \n {% endif %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if existing_relation is none or existing_relation.is_view or should_full_refresh() %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n -- `COMMIT` happens here\n {% do adapter.commit() %}\n\n {% for rel in to_drop %}\n {% do adapter.drop_relation(rel) %}\n {% endfor %}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{%- endmaterialization %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.load_relation", "macro.dbt.run_hooks", "macro.dbt.create_table_as", "macro.dbt.should_full_refresh", "macro.dbt.make_temp_relation", "macro.dbt.run_query", "macro.dbt.incremental_upsert", "macro.dbt.statement", "macro.dbt.persist_docs", "macro.dbt.create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.get_merge_sql": {"unique_id": "macro.dbt.get_merge_sql", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/common/merge.sql", "original_file_path": "macros/materializations/common/merge.sql", "name": "get_merge_sql", "macro_sql": "{% macro get_merge_sql(target, source, unique_key, dest_columns, predicates=none) -%}\n {{ adapter.dispatch('get_merge_sql')(target, source, unique_key, dest_columns, predicates) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.get_delete_insert_merge_sql": {"unique_id": "macro.dbt.get_delete_insert_merge_sql", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/common/merge.sql", "original_file_path": "macros/materializations/common/merge.sql", "name": "get_delete_insert_merge_sql", "macro_sql": "{% macro get_delete_insert_merge_sql(target, source, unique_key, dest_columns) -%}\n {{ adapter.dispatch('get_delete_insert_merge_sql')(target, source, unique_key, dest_columns) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_delete_insert_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.get_insert_overwrite_merge_sql": {"unique_id": "macro.dbt.get_insert_overwrite_merge_sql", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/common/merge.sql", "original_file_path": "macros/materializations/common/merge.sql", "name": "get_insert_overwrite_merge_sql", "macro_sql": "{% macro get_insert_overwrite_merge_sql(target, source, dest_columns, predicates, include_sql_header=false) -%}\n {{ adapter.dispatch('get_insert_overwrite_merge_sql')(target, source, dest_columns, predicates, include_sql_header) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_insert_overwrite_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.default__get_merge_sql": {"unique_id": "macro.dbt.default__get_merge_sql", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/common/merge.sql", "original_file_path": "macros/materializations/common/merge.sql", "name": "default__get_merge_sql", "macro_sql": "{% macro default__get_merge_sql(target, source, unique_key, dest_columns, predicates) -%}\n {%- set predicates = [] if predicates is none else [] + predicates -%}\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n {%- set update_columns = config.get('merge_update_columns', default = dest_columns | map(attribute=\"quoted\") | list) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {% if unique_key %}\n {% set unique_key_match %}\n DBT_INTERNAL_SOURCE.{{ unique_key }} = DBT_INTERNAL_DEST.{{ unique_key }}\n {% endset %}\n {% do predicates.append(unique_key_match) %}\n {% else %}\n {% do predicates.append('FALSE') %}\n {% endif %}\n\n {{ sql_header if sql_header is not none }}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on {{ predicates | join(' and ') }}\n\n {% if unique_key %}\n when matched then update set\n {% for column_name in update_columns -%}\n {{ column_name }} = DBT_INTERNAL_SOURCE.{{ column_name }}\n {%- if not loop.last %}, {%- endif %}\n {%- endfor %}\n {% endif %}\n\n when not matched then insert\n ({{ dest_cols_csv }})\n values\n ({{ dest_cols_csv }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.get_quoted_csv": {"unique_id": "macro.dbt.get_quoted_csv", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/common/merge.sql", "original_file_path": "macros/materializations/common/merge.sql", "name": "get_quoted_csv", "macro_sql": "{% macro get_quoted_csv(column_names) %}\n {% set quoted = [] %}\n {% for col in column_names -%}\n {%- do quoted.append(adapter.quote(col)) -%}\n {%- endfor %}\n\n {%- set dest_cols_csv = quoted | join(', ') -%}\n {{ return(dest_cols_csv) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.common_get_delete_insert_merge_sql": {"unique_id": "macro.dbt.common_get_delete_insert_merge_sql", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/common/merge.sql", "original_file_path": "macros/materializations/common/merge.sql", "name": "common_get_delete_insert_merge_sql", "macro_sql": "{% macro common_get_delete_insert_merge_sql(target, source, unique_key, dest_columns) -%}\n\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n\n {% if unique_key is not none %}\n delete from {{ target }}\n where ({{ unique_key }}) in (\n select ({{ unique_key }})\n from {{ source }}\n );\n {% endif %}\n\n insert into {{ target }} ({{ dest_cols_csv }})\n (\n select {{ dest_cols_csv }}\n from {{ source }}\n );\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.default__get_delete_insert_merge_sql": {"unique_id": "macro.dbt.default__get_delete_insert_merge_sql", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/common/merge.sql", "original_file_path": "macros/materializations/common/merge.sql", "name": "default__get_delete_insert_merge_sql", "macro_sql": "{% macro default__get_delete_insert_merge_sql(target, source, unique_key, dest_columns) -%}\n {{ common_get_delete_insert_merge_sql(target, source, unique_key, dest_columns) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.common_get_delete_insert_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.default__get_insert_overwrite_merge_sql": {"unique_id": "macro.dbt.default__get_insert_overwrite_merge_sql", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/common/merge.sql", "original_file_path": "macros/materializations/common/merge.sql", "name": "default__get_insert_overwrite_merge_sql", "macro_sql": "{% macro default__get_insert_overwrite_merge_sql(target, source, dest_columns, predicates, include_sql_header) -%}\n {%- set predicates = [] if predicates is none else [] + predicates -%}\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none and include_sql_header }}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on FALSE\n\n when not matched by source\n {% if predicates %} and {{ predicates | join(' and ') }} {% endif %}\n then delete\n\n when not matched then insert\n ({{ dest_cols_csv }})\n values\n ({{ dest_cols_csv }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.materialization_table_default": {"unique_id": "macro.dbt.materialization_table_default", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/table/table.sql", "original_file_path": "macros/materializations/table/table.sql", "name": "materialization_table_default", "macro_sql": "{% materialization table, default %}\n {%- set identifier = model['alias'] -%}\n {%- set tmp_identifier = model['name'] + '__dbt_tmp' -%}\n {%- set backup_identifier = model['name'] + '__dbt_backup' -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n {%- set target_relation = api.Relation.create(identifier=identifier,\n schema=schema,\n database=database,\n type='table') -%}\n {%- set intermediate_relation = api.Relation.create(identifier=tmp_identifier,\n schema=schema,\n database=database,\n type='table') -%}\n\n /*\n See ../view/view.sql for more information about this relation.\n */\n {%- set backup_relation_type = 'table' if old_relation is none else old_relation.type -%}\n {%- set backup_relation = api.Relation.create(identifier=backup_identifier,\n schema=schema,\n database=database,\n type=backup_relation_type) -%}\n\n {%- set exists_as_table = (old_relation is not none and old_relation.is_table) -%}\n {%- set exists_as_view = (old_relation is not none and old_relation.is_view) -%}\n\n\n -- drop the temp relations if they exists for some reason\n {{ adapter.drop_relation(intermediate_relation) }}\n {{ adapter.drop_relation(backup_relation) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% call statement('main') -%}\n {{ create_table_as(False, intermediate_relation, sql) }}\n {%- endcall %}\n\n -- cleanup\n {% if old_relation is not none %}\n {{ adapter.rename_relation(target_relation, backup_relation) }}\n {% endif %}\n\n {{ adapter.rename_relation(intermediate_relation, target_relation) }}\n\n {% do create_indexes(target_relation) %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {% do persist_docs(target_relation, model) %}\n\n -- `COMMIT` happens here\n {{ adapter.commit() }}\n\n -- finally, drop the existing/backup relation after the commit\n {{ drop_relation_if_exists(backup_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n{% endmaterialization %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_hooks", "macro.dbt.statement", "macro.dbt.create_table_as", "macro.dbt.create_indexes", "macro.dbt.persist_docs", "macro.dbt.drop_relation_if_exists"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.materialization_view_default": {"unique_id": "macro.dbt.materialization_view_default", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/view/view.sql", "original_file_path": "macros/materializations/view/view.sql", "name": "materialization_view_default", "macro_sql": "{%- materialization view, default -%}\n\n {%- set identifier = model['alias'] -%}\n {%- set tmp_identifier = model['name'] + '__dbt_tmp' -%}\n {%- set backup_identifier = model['name'] + '__dbt_backup' -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n {%- set target_relation = api.Relation.create(identifier=identifier, schema=schema, database=database,\n type='view') -%}\n {%- set intermediate_relation = api.Relation.create(identifier=tmp_identifier,\n schema=schema, database=database, type='view') -%}\n\n /*\n This relation (probably) doesn't exist yet. If it does exist, it's a leftover from\n a previous run, and we're going to try to drop it immediately. At the end of this\n materialization, we're going to rename the \"old_relation\" to this identifier,\n and then we're going to drop it. In order to make sure we run the correct one of:\n - drop view ...\n - drop table ...\n\n We need to set the type of this relation to be the type of the old_relation, if it exists,\n or else \"view\" as a sane default if it does not. Note that if the old_relation does not\n exist, then there is nothing to move out of the way and subsequentally drop. In that case,\n this relation will be effectively unused.\n */\n {%- set backup_relation_type = 'view' if old_relation is none else old_relation.type -%}\n {%- set backup_relation = api.Relation.create(identifier=backup_identifier,\n schema=schema, database=database,\n type=backup_relation_type) -%}\n\n {%- set exists_as_view = (old_relation is not none and old_relation.is_view) -%}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- drop the temp relations if they exists for some reason\n {{ adapter.drop_relation(intermediate_relation) }}\n {{ adapter.drop_relation(backup_relation) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% call statement('main') -%}\n {{ create_view_as(intermediate_relation, sql) }}\n {%- endcall %}\n\n -- cleanup\n -- move the existing view out of the way\n {% if old_relation is not none %}\n {{ adapter.rename_relation(target_relation, backup_relation) }}\n {% endif %}\n {{ adapter.rename_relation(intermediate_relation, target_relation) }}\n\n {% do persist_docs(target_relation, model) %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {{ adapter.commit() }}\n\n {{ drop_relation_if_exists(backup_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{%- endmaterialization -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_hooks", "macro.dbt.statement", "macro.dbt.create_view_as", "macro.dbt.persist_docs", "macro.dbt.drop_relation_if_exists"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.handle_existing_table": {"unique_id": "macro.dbt.handle_existing_table", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/view/create_or_replace_view.sql", "original_file_path": "macros/materializations/view/create_or_replace_view.sql", "name": "handle_existing_table", "macro_sql": "{% macro handle_existing_table(full_refresh, old_relation) %}\n {{ adapter.dispatch('handle_existing_table', macro_namespace = 'dbt')(full_refresh, old_relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__handle_existing_table"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.default__handle_existing_table": {"unique_id": "macro.dbt.default__handle_existing_table", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/view/create_or_replace_view.sql", "original_file_path": "macros/materializations/view/create_or_replace_view.sql", "name": "default__handle_existing_table", "macro_sql": "{% macro default__handle_existing_table(full_refresh, old_relation) %}\n {{ adapter.drop_relation(old_relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.create_or_replace_view": {"unique_id": "macro.dbt.create_or_replace_view", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/view/create_or_replace_view.sql", "original_file_path": "macros/materializations/view/create_or_replace_view.sql", "name": "create_or_replace_view", "macro_sql": "{% macro create_or_replace_view(run_outside_transaction_hooks=True) %}\n {%- set identifier = model['alias'] -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n\n {%- set exists_as_view = (old_relation is not none and old_relation.is_view) -%}\n\n {%- set target_relation = api.Relation.create(\n identifier=identifier, schema=schema, database=database,\n type='view') -%}\n\n {% if run_outside_transaction_hooks %}\n -- no transactions on BigQuery\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n {% endif %}\n\n -- `BEGIN` happens here on Snowflake\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- If there's a table with the same name and we weren't told to full refresh,\n -- that's an error. If we were told to full refresh, drop it. This behavior differs\n -- for Snowflake and BigQuery, so multiple dispatch is used.\n {%- if old_relation is not none and old_relation.is_table -%}\n {{ handle_existing_table(should_full_refresh(), old_relation) }}\n {%- endif -%}\n\n -- build model\n {% call statement('main') -%}\n {{ create_view_as(target_relation, sql) }}\n {%- endcall %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {{ adapter.commit() }}\n\n {% if run_outside_transaction_hooks %}\n -- No transactions on BigQuery\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n {% endif %}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_hooks", "macro.dbt.handle_existing_table", "macro.dbt.should_full_refresh", "macro.dbt.statement", "macro.dbt.create_view_as"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.generate_alias_name": {"unique_id": "macro.dbt.generate_alias_name", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/etc/get_custom_alias.sql", "original_file_path": "macros/etc/get_custom_alias.sql", "name": "generate_alias_name", "macro_sql": "{% macro generate_alias_name(custom_alias_name=none, node=none) -%}\n\n {%- if custom_alias_name is none -%}\n\n {{ node.name }}\n\n {%- else -%}\n\n {{ custom_alias_name | trim }}\n\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.run_query": {"unique_id": "macro.dbt.run_query", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/etc/query.sql", "original_file_path": "macros/etc/query.sql", "name": "run_query", "macro_sql": "{% macro run_query(sql) %}\n {% call statement(\"run_query_statement\", fetch_result=true, auto_begin=false) %}\n {{ sql }}\n {% endcall %}\n\n {% do return(load_result(\"run_query_statement\").table) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.is_incremental": {"unique_id": "macro.dbt.is_incremental", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/etc/is_incremental.sql", "original_file_path": "macros/etc/is_incremental.sql", "name": "is_incremental", "macro_sql": "{% macro is_incremental() %}\n {#-- do not run introspective queries in parsing #}\n {% if not execute %}\n {{ return(False) }}\n {% else %}\n {% set relation = adapter.get_relation(this.database, this.schema, this.table) %}\n {{ return(relation is not none\n and relation.type == 'table'\n and model.config.materialized == 'incremental'\n and not should_full_refresh()) }}\n {% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.should_full_refresh"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.convert_datetime": {"unique_id": "macro.dbt.convert_datetime", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "name": "convert_datetime", "macro_sql": "{% macro convert_datetime(date_str, date_fmt) %}\n\n {% set error_msg -%}\n The provided partition date '{{ date_str }}' does not match the expected format '{{ date_fmt }}'\n {%- endset %}\n\n {% set res = try_or_compiler_error(error_msg, modules.datetime.datetime.strptime, date_str.strip(), date_fmt) %}\n {{ return(res) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.dates_in_range": {"unique_id": "macro.dbt.dates_in_range", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "name": "dates_in_range", "macro_sql": "{% macro dates_in_range(start_date_str, end_date_str=none, in_fmt=\"%Y%m%d\", out_fmt=\"%Y%m%d\") %}\n {% set end_date_str = start_date_str if end_date_str is none else end_date_str %}\n\n {% set start_date = convert_datetime(start_date_str, in_fmt) %}\n {% set end_date = convert_datetime(end_date_str, in_fmt) %}\n\n {% set day_count = (end_date - start_date).days %}\n {% if day_count < 0 %}\n {% set msg -%}\n Partiton start date is after the end date ({{ start_date }}, {{ end_date }})\n {%- endset %}\n\n {{ exceptions.raise_compiler_error(msg, model) }}\n {% endif %}\n\n {% set date_list = [] %}\n {% for i in range(0, day_count + 1) %}\n {% set the_date = (modules.datetime.timedelta(days=i) + start_date) %}\n {% if not out_fmt %}\n {% set _ = date_list.append(the_date) %}\n {% else %}\n {% set _ = date_list.append(the_date.strftime(out_fmt)) %}\n {% endif %}\n {% endfor %}\n\n {{ return(date_list) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.convert_datetime"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.partition_range": {"unique_id": "macro.dbt.partition_range", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "name": "partition_range", "macro_sql": "{% macro partition_range(raw_partition_date, date_fmt='%Y%m%d') %}\n {% set partition_range = (raw_partition_date | string).split(\",\") %}\n\n {% if (partition_range | length) == 1 %}\n {% set start_date = partition_range[0] %}\n {% set end_date = none %}\n {% elif (partition_range | length) == 2 %}\n {% set start_date = partition_range[0] %}\n {% set end_date = partition_range[1] %}\n {% else %}\n {{ exceptions.raise_compiler_error(\"Invalid partition time. Expected format: {Start Date}[,{End Date}]. Got: \" ~ raw_partition_date) }}\n {% endif %}\n\n {{ return(dates_in_range(start_date, end_date, in_fmt=date_fmt)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.dates_in_range"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.py_current_timestring": {"unique_id": "macro.dbt.py_current_timestring", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "name": "py_current_timestring", "macro_sql": "{% macro py_current_timestring() %}\n {% set dt = modules.datetime.datetime.now() %}\n {% do return(dt.strftime(\"%Y%m%d%H%M%S%f\")) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.generate_schema_name": {"unique_id": "macro.dbt.generate_schema_name", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/etc/get_custom_schema.sql", "original_file_path": "macros/etc/get_custom_schema.sql", "name": "generate_schema_name", "macro_sql": "{% macro generate_schema_name(custom_schema_name, node) -%}\n\n {%- set default_schema = target.schema -%}\n {%- if custom_schema_name is none -%}\n\n {{ default_schema }}\n\n {%- else -%}\n\n {{ default_schema }}_{{ custom_schema_name | trim }}\n\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.generate_schema_name_for_env": {"unique_id": "macro.dbt.generate_schema_name_for_env", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/etc/get_custom_schema.sql", "original_file_path": "macros/etc/get_custom_schema.sql", "name": "generate_schema_name_for_env", "macro_sql": "{% macro generate_schema_name_for_env(custom_schema_name, node) -%}\n\n {%- set default_schema = target.schema -%}\n {%- if target.name == 'prod' and custom_schema_name is not none -%}\n\n {{ custom_schema_name | trim }}\n\n {%- else -%}\n\n {{ default_schema }}\n\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.generate_database_name": {"unique_id": "macro.dbt.generate_database_name", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/etc/get_custom_database.sql", "original_file_path": "macros/etc/get_custom_database.sql", "name": "generate_database_name", "macro_sql": "{% macro generate_database_name(custom_database_name=none, node=none) -%}\n {% do return(adapter.dispatch('generate_database_name')(custom_database_name, node)) %}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__generate_database_name"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.default__generate_database_name": {"unique_id": "macro.dbt.default__generate_database_name", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/etc/get_custom_database.sql", "original_file_path": "macros/etc/get_custom_database.sql", "name": "default__generate_database_name", "macro_sql": "{% macro default__generate_database_name(custom_database_name=none, node=none) -%}\n {%- set default_database = target.database -%}\n {%- if custom_database_name is none -%}\n\n {{ default_database }}\n\n {%- else -%}\n\n {{ custom_database_name }}\n\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.get_columns_in_query": {"unique_id": "macro.dbt.get_columns_in_query", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "get_columns_in_query", "macro_sql": "{% macro get_columns_in_query(select_sql) -%}\n {{ return(adapter.dispatch('get_columns_in_query')(select_sql)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_columns_in_query"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.default__get_columns_in_query": {"unique_id": "macro.dbt.default__get_columns_in_query", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "default__get_columns_in_query", "macro_sql": "{% macro default__get_columns_in_query(select_sql) %}\n {% call statement('get_columns_in_query', fetch_result=True, auto_begin=False) -%}\n select * from (\n {{ select_sql }}\n ) as __dbt_sbq\n where false\n limit 0\n {% endcall %}\n\n {{ return(load_result('get_columns_in_query').table.columns | map(attribute='name') | list) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.create_schema": {"unique_id": "macro.dbt.create_schema", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "create_schema", "macro_sql": "{% macro create_schema(relation) -%}\n {{ adapter.dispatch('create_schema')(relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__create_schema"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.default__create_schema": {"unique_id": "macro.dbt.default__create_schema", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "default__create_schema", "macro_sql": "{% macro default__create_schema(relation) -%}\n {%- call statement('create_schema') -%}\n create schema if not exists {{ relation.without_identifier() }}\n {% endcall %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.drop_schema": {"unique_id": "macro.dbt.drop_schema", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "drop_schema", "macro_sql": "{% macro drop_schema(relation) -%}\n {{ adapter.dispatch('drop_schema')(relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__drop_schema"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.default__drop_schema": {"unique_id": "macro.dbt.default__drop_schema", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "default__drop_schema", "macro_sql": "{% macro default__drop_schema(relation) -%}\n {%- call statement('drop_schema') -%}\n drop schema if exists {{ relation.without_identifier() }} cascade\n {% endcall %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.create_table_as": {"unique_id": "macro.dbt.create_table_as", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "create_table_as", "macro_sql": "{% macro create_table_as(temporary, relation, sql) -%}\n {{ adapter.dispatch('create_table_as')(temporary, relation, sql) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.default__create_table_as": {"unique_id": "macro.dbt.default__create_table_as", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "default__create_table_as", "macro_sql": "{% macro default__create_table_as(temporary, relation, sql) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n\n create {% if temporary: -%}temporary{%- endif %} table\n {{ relation.include(database=(not temporary), schema=(not temporary)) }}\n as (\n {{ sql }}\n );\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.get_create_index_sql": {"unique_id": "macro.dbt.get_create_index_sql", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "get_create_index_sql", "macro_sql": "{% macro get_create_index_sql(relation, index_dict) -%}\n {{ return(adapter.dispatch('get_create_index_sql')(relation, index_dict)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_create_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.default__get_create_index_sql": {"unique_id": "macro.dbt.default__get_create_index_sql", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "default__get_create_index_sql", "macro_sql": "{% macro default__get_create_index_sql(relation, index_dict) -%}\n {% do return(None) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.create_indexes": {"unique_id": "macro.dbt.create_indexes", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "create_indexes", "macro_sql": "{% macro create_indexes(relation) -%}\n {{ adapter.dispatch('create_indexes')(relation) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.default__create_indexes": {"unique_id": "macro.dbt.default__create_indexes", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "default__create_indexes", "macro_sql": "{% macro default__create_indexes(relation) -%}\n {%- set _indexes = config.get('indexes', default=[]) -%}\n\n {% for _index_dict in _indexes %}\n {% set create_index_sql = get_create_index_sql(relation, _index_dict) %}\n {% if create_index_sql %}\n {% do run_query(create_index_sql) %}\n {% endif %}\n {% endfor %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_create_index_sql", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.create_view_as": {"unique_id": "macro.dbt.create_view_as", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "create_view_as", "macro_sql": "{% macro create_view_as(relation, sql) -%}\n {{ adapter.dispatch('create_view_as')(relation, sql) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__create_view_as"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.default__create_view_as": {"unique_id": "macro.dbt.default__create_view_as", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "default__create_view_as", "macro_sql": "{% macro default__create_view_as(relation, sql) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n create view {{ relation }} as (\n {{ sql }}\n );\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.get_catalog": {"unique_id": "macro.dbt.get_catalog", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "get_catalog", "macro_sql": "{% macro get_catalog(information_schema, schemas) -%}\n {{ return(adapter.dispatch('get_catalog')(information_schema, schemas)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__get_catalog"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.default__get_catalog": {"unique_id": "macro.dbt.default__get_catalog", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "default__get_catalog", "macro_sql": "{% macro default__get_catalog(information_schema, schemas) -%}\n\n {% set typename = adapter.type() %}\n {% set msg -%}\n get_catalog not implemented for {{ typename }}\n {%- endset %}\n\n {{ exceptions.raise_compiler_error(msg) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.get_columns_in_relation": {"unique_id": "macro.dbt.get_columns_in_relation", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "get_columns_in_relation", "macro_sql": "{% macro get_columns_in_relation(relation) -%}\n {{ return(adapter.dispatch('get_columns_in_relation')(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__get_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.sql_convert_columns_in_relation": {"unique_id": "macro.dbt.sql_convert_columns_in_relation", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "sql_convert_columns_in_relation", "macro_sql": "{% macro sql_convert_columns_in_relation(table) -%}\n {% set columns = [] %}\n {% for row in table %}\n {% do columns.append(api.Column(*row)) %}\n {% endfor %}\n {{ return(columns) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.default__get_columns_in_relation": {"unique_id": "macro.dbt.default__get_columns_in_relation", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "default__get_columns_in_relation", "macro_sql": "{% macro default__get_columns_in_relation(relation) -%}\n {{ exceptions.raise_not_implemented(\n 'get_columns_in_relation macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.alter_column_type": {"unique_id": "macro.dbt.alter_column_type", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "alter_column_type", "macro_sql": "{% macro alter_column_type(relation, column_name, new_column_type) -%}\n {{ return(adapter.dispatch('alter_column_type')(relation, column_name, new_column_type)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__alter_column_type"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.alter_column_comment": {"unique_id": "macro.dbt.alter_column_comment", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "alter_column_comment", "macro_sql": "{% macro alter_column_comment(relation, column_dict) -%}\n {{ return(adapter.dispatch('alter_column_comment')(relation, column_dict)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__alter_column_comment"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.default__alter_column_comment": {"unique_id": "macro.dbt.default__alter_column_comment", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "default__alter_column_comment", "macro_sql": "{% macro default__alter_column_comment(relation, column_dict) -%}\n {{ exceptions.raise_not_implemented(\n 'alter_column_comment macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.alter_relation_comment": {"unique_id": "macro.dbt.alter_relation_comment", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "alter_relation_comment", "macro_sql": "{% macro alter_relation_comment(relation, relation_comment) -%}\n {{ return(adapter.dispatch('alter_relation_comment')(relation, relation_comment)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__alter_relation_comment"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.default__alter_relation_comment": {"unique_id": "macro.dbt.default__alter_relation_comment", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "default__alter_relation_comment", "macro_sql": "{% macro default__alter_relation_comment(relation, relation_comment) -%}\n {{ exceptions.raise_not_implemented(\n 'alter_relation_comment macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.persist_docs": {"unique_id": "macro.dbt.persist_docs", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "persist_docs", "macro_sql": "{% macro persist_docs(relation, model, for_relation=true, for_columns=true) -%}\n {{ return(adapter.dispatch('persist_docs')(relation, model, for_relation, for_columns)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.default__persist_docs": {"unique_id": "macro.dbt.default__persist_docs", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "default__persist_docs", "macro_sql": "{% macro default__persist_docs(relation, model, for_relation, for_columns) -%}\n {% if for_relation and config.persist_relation_docs() and model.description %}\n {% do run_query(alter_relation_comment(relation, model.description)) %}\n {% endif %}\n\n {% if for_columns and config.persist_column_docs() and model.columns %}\n {% do run_query(alter_column_comment(relation, model.columns)) %}\n {% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt.alter_relation_comment", "macro.dbt.alter_column_comment"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.default__alter_column_type": {"unique_id": "macro.dbt.default__alter_column_type", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "default__alter_column_type", "macro_sql": "{% macro default__alter_column_type(relation, column_name, new_column_type) -%}\n {#\n 1. Create a new column (w/ temp name and correct type)\n 2. Copy data over to it\n 3. Drop the existing column (cascade!)\n 4. Rename the new column to existing column\n #}\n {%- set tmp_column = column_name + \"__dbt_alter\" -%}\n\n {% call statement('alter_column_type') %}\n alter table {{ relation }} add column {{ adapter.quote(tmp_column) }} {{ new_column_type }};\n update {{ relation }} set {{ adapter.quote(tmp_column) }} = {{ adapter.quote(column_name) }};\n alter table {{ relation }} drop column {{ adapter.quote(column_name) }} cascade;\n alter table {{ relation }} rename column {{ adapter.quote(tmp_column) }} to {{ adapter.quote(column_name) }}\n {% endcall %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.drop_relation": {"unique_id": "macro.dbt.drop_relation", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "drop_relation", "macro_sql": "{% macro drop_relation(relation) -%}\n {{ return(adapter.dispatch('drop_relation')(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__drop_relation"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.default__drop_relation": {"unique_id": "macro.dbt.default__drop_relation", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "default__drop_relation", "macro_sql": "{% macro default__drop_relation(relation) -%}\n {% call statement('drop_relation', auto_begin=False) -%}\n drop {{ relation.type }} if exists {{ relation }} cascade\n {%- endcall %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.truncate_relation": {"unique_id": "macro.dbt.truncate_relation", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "truncate_relation", "macro_sql": "{% macro truncate_relation(relation) -%}\n {{ return(adapter.dispatch('truncate_relation')(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__truncate_relation"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.default__truncate_relation": {"unique_id": "macro.dbt.default__truncate_relation", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "default__truncate_relation", "macro_sql": "{% macro default__truncate_relation(relation) -%}\n {% call statement('truncate_relation') -%}\n truncate table {{ relation }}\n {%- endcall %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.rename_relation": {"unique_id": "macro.dbt.rename_relation", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "rename_relation", "macro_sql": "{% macro rename_relation(from_relation, to_relation) -%}\n {{ return(adapter.dispatch('rename_relation')(from_relation, to_relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__rename_relation"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.default__rename_relation": {"unique_id": "macro.dbt.default__rename_relation", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "default__rename_relation", "macro_sql": "{% macro default__rename_relation(from_relation, to_relation) -%}\n {% set target_name = adapter.quote_as_configured(to_relation.identifier, 'identifier') %}\n {% call statement('rename_relation') -%}\n alter table {{ from_relation }} rename to {{ target_name }}\n {%- endcall %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.information_schema_name": {"unique_id": "macro.dbt.information_schema_name", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "information_schema_name", "macro_sql": "{% macro information_schema_name(database) %}\n {{ return(adapter.dispatch('information_schema_name')(database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__information_schema_name"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.default__information_schema_name": {"unique_id": "macro.dbt.default__information_schema_name", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "default__information_schema_name", "macro_sql": "{% macro default__information_schema_name(database) -%}\n {%- if database -%}\n {{ database }}.INFORMATION_SCHEMA\n {%- else -%}\n INFORMATION_SCHEMA\n {%- endif -%}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.list_schemas": {"unique_id": "macro.dbt.list_schemas", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "list_schemas", "macro_sql": "{% macro list_schemas(database) -%}\n {{ return(adapter.dispatch('list_schemas')(database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__list_schemas"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.default__list_schemas": {"unique_id": "macro.dbt.default__list_schemas", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "default__list_schemas", "macro_sql": "{% macro default__list_schemas(database) -%}\n {% set sql %}\n select distinct schema_name\n from {{ information_schema_name(database) }}.SCHEMATA\n where catalog_name ilike '{{ database }}'\n {% endset %}\n {{ return(run_query(sql)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.information_schema_name", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.check_schema_exists": {"unique_id": "macro.dbt.check_schema_exists", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "check_schema_exists", "macro_sql": "{% macro check_schema_exists(information_schema, schema) -%}\n {{ return(adapter.dispatch('check_schema_exists')(information_schema, schema)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__check_schema_exists"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.default__check_schema_exists": {"unique_id": "macro.dbt.default__check_schema_exists", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "default__check_schema_exists", "macro_sql": "{% macro default__check_schema_exists(information_schema, schema) -%}\n {% set sql -%}\n select count(*)\n from {{ information_schema.replace(information_schema_view='SCHEMATA') }}\n where catalog_name='{{ information_schema.database }}'\n and schema_name='{{ schema }}'\n {%- endset %}\n {{ return(run_query(sql)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.replace", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.list_relations_without_caching": {"unique_id": "macro.dbt.list_relations_without_caching", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "list_relations_without_caching", "macro_sql": "{% macro list_relations_without_caching(schema_relation) %}\n {{ return(adapter.dispatch('list_relations_without_caching')(schema_relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__list_relations_without_caching"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.default__list_relations_without_caching": {"unique_id": "macro.dbt.default__list_relations_without_caching", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "default__list_relations_without_caching", "macro_sql": "{% macro default__list_relations_without_caching(schema_relation) %}\n {{ exceptions.raise_not_implemented(\n 'list_relations_without_caching macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.current_timestamp": {"unique_id": "macro.dbt.current_timestamp", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "current_timestamp", "macro_sql": "{% macro current_timestamp() -%}\n {{ adapter.dispatch('current_timestamp')() }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.bigquery__current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.default__current_timestamp": {"unique_id": "macro.dbt.default__current_timestamp", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "default__current_timestamp", "macro_sql": "{% macro default__current_timestamp() -%}\n {{ exceptions.raise_not_implemented(\n 'current_timestamp macro not implemented for adapter '+adapter.type()) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.collect_freshness": {"unique_id": "macro.dbt.collect_freshness", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "collect_freshness", "macro_sql": "{% macro collect_freshness(source, loaded_at_field, filter) %}\n {{ return(adapter.dispatch('collect_freshness')(source, loaded_at_field, filter))}}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__collect_freshness"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.default__collect_freshness": {"unique_id": "macro.dbt.default__collect_freshness", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "default__collect_freshness", "macro_sql": "{% macro default__collect_freshness(source, loaded_at_field, filter) %}\n {% call statement('collect_freshness', fetch_result=True, auto_begin=False) -%}\n select\n max({{ loaded_at_field }}) as max_loaded_at,\n {{ current_timestamp() }} as snapshotted_at\n from {{ source }}\n {% if filter %}\n where {{ filter }}\n {% endif %}\n {% endcall %}\n {{ return(load_result('collect_freshness').table) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_utils.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.make_temp_relation": {"unique_id": "macro.dbt.make_temp_relation", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "make_temp_relation", "macro_sql": "{% macro make_temp_relation(base_relation, suffix='__dbt_tmp') %}\n {{ return(adapter.dispatch('make_temp_relation')(base_relation, suffix))}}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__make_temp_relation"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.default__make_temp_relation": {"unique_id": "macro.dbt.default__make_temp_relation", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "default__make_temp_relation", "macro_sql": "{% macro default__make_temp_relation(base_relation, suffix) %}\n {% set tmp_identifier = base_relation.identifier ~ suffix %}\n {% set tmp_relation = base_relation.incorporate(\n path={\"identifier\": tmp_identifier}) -%}\n\n {% do return(tmp_relation) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.set_sql_header": {"unique_id": "macro.dbt.set_sql_header", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "set_sql_header", "macro_sql": "{% macro set_sql_header(config) -%}\n {{ config.set('sql_header', caller()) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.default__test_relationships": {"unique_id": "macro.dbt.default__test_relationships", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/schema_tests/relationships.sql", "original_file_path": "macros/schema_tests/relationships.sql", "name": "default__test_relationships", "macro_sql": "{% macro default__test_relationships(model, column_name, to, field) %}\n\nselect\n child.{{ column_name }}\n\nfrom {{ model }} as child\n\nleft join {{ to }} as parent\n on child.{{ column_name }} = parent.{{ field }}\n\nwhere child.{{ column_name }} is not null\n and parent.{{ field }} is null\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.test_relationships": {"unique_id": "macro.dbt.test_relationships", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/schema_tests/relationships.sql", "original_file_path": "macros/schema_tests/relationships.sql", "name": "test_relationships", "macro_sql": "{% test relationships(model, column_name, to, field) %}\n {% set macro = adapter.dispatch('test_relationships') %}\n {{ macro(model, column_name, to, field) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__test_relationships"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.default__test_not_null": {"unique_id": "macro.dbt.default__test_not_null", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/schema_tests/not_null.sql", "original_file_path": "macros/schema_tests/not_null.sql", "name": "default__test_not_null", "macro_sql": "{% macro default__test_not_null(model, column_name) %}\n\nselect *\nfrom {{ model }}\nwhere {{ column_name }} is null\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.test_not_null": {"unique_id": "macro.dbt.test_not_null", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/schema_tests/not_null.sql", "original_file_path": "macros/schema_tests/not_null.sql", "name": "test_not_null", "macro_sql": "{% test not_null(model, column_name) %}\n {% set macro = adapter.dispatch('test_not_null') %}\n {{ macro(model, column_name) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__test_not_null"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.default__test_unique": {"unique_id": "macro.dbt.default__test_unique", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/schema_tests/unique.sql", "original_file_path": "macros/schema_tests/unique.sql", "name": "default__test_unique", "macro_sql": "{% macro default__test_unique(model, column_name) %}\n\nselect\n {{ column_name }},\n count(*) as n_records\n\nfrom {{ model }}\nwhere {{ column_name }} is not null\ngroup by {{ column_name }}\nhaving count(*) > 1\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.test_unique": {"unique_id": "macro.dbt.test_unique", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/schema_tests/unique.sql", "original_file_path": "macros/schema_tests/unique.sql", "name": "test_unique", "macro_sql": "{% test unique(model, column_name) %}\n {% set macro = adapter.dispatch('test_unique') %}\n {{ macro(model, column_name) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__test_unique"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.default__test_accepted_values": {"unique_id": "macro.dbt.default__test_accepted_values", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/schema_tests/accepted_values.sql", "original_file_path": "macros/schema_tests/accepted_values.sql", "name": "default__test_accepted_values", "macro_sql": "{% macro default__test_accepted_values(model, column_name, values, quote=True) %}\n\nwith all_values as (\n\n select\n {{ column_name }} as value_field,\n count(*) as n_records\n\n from {{ model }}\n group by 1\n\n)\n\nselect *\nfrom all_values\nwhere value_field not in (\n {% for value in values -%}\n {% if quote -%}\n '{{ value }}'\n {%- else -%}\n {{ value }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {%- endfor %}\n)\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt.test_accepted_values": {"unique_id": "macro.dbt.test_accepted_values", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/schema_tests/accepted_values.sql", "original_file_path": "macros/schema_tests/accepted_values.sql", "name": "test_accepted_values", "macro_sql": "{% test accepted_values(model, column_name, values, quote=True) %}\n {% set macro = adapter.dispatch('test_accepted_values') %}\n {{ macro(model, column_name, values, quote) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__test_accepted_values"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.except": {"unique_id": "macro.dbt_utils.except", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/except.sql", "original_file_path": "macros/cross_db_utils/except.sql", "name": "except", "macro_sql": "{% macro except() %}\n {{ return(adapter.dispatch('except', 'dbt_utils')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.bigquery__except"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.default__except": {"unique_id": "macro.dbt_utils.default__except", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/except.sql", "original_file_path": "macros/cross_db_utils/except.sql", "name": "default__except", "macro_sql": "{% macro default__except() %}\n\n except\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.bigquery__except": {"unique_id": "macro.dbt_utils.bigquery__except", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/except.sql", "original_file_path": "macros/cross_db_utils/except.sql", "name": "bigquery__except", "macro_sql": "{% macro bigquery__except() %}\n\n except distinct\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.replace": {"unique_id": "macro.dbt_utils.replace", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/replace.sql", "original_file_path": "macros/cross_db_utils/replace.sql", "name": "replace", "macro_sql": "{% macro replace(field, old_chars, new_chars) -%}\n {{ return(adapter.dispatch('replace', 'dbt_utils') (field, old_chars, new_chars)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__replace"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.default__replace": {"unique_id": "macro.dbt_utils.default__replace", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/replace.sql", "original_file_path": "macros/cross_db_utils/replace.sql", "name": "default__replace", "macro_sql": "{% macro default__replace(field, old_chars, new_chars) %}\n\n replace(\n {{ field }},\n {{ old_chars }},\n {{ new_chars }}\n )\n \n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.concat": {"unique_id": "macro.dbt_utils.concat", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/concat.sql", "original_file_path": "macros/cross_db_utils/concat.sql", "name": "concat", "macro_sql": "{% macro concat(fields) -%}\n {{ return(adapter.dispatch('concat', 'dbt_utils')(fields)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__concat"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.default__concat": {"unique_id": "macro.dbt_utils.default__concat", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/concat.sql", "original_file_path": "macros/cross_db_utils/concat.sql", "name": "default__concat", "macro_sql": "{% macro default__concat(fields) -%}\n {{ fields|join(' || ') }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.type_string": {"unique_id": "macro.dbt_utils.type_string", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "type_string", "macro_sql": "\n\n{%- macro type_string() -%}\n {{ return(adapter.dispatch('type_string', 'dbt_utils')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.default__type_string": {"unique_id": "macro.dbt_utils.default__type_string", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "default__type_string", "macro_sql": "{% macro default__type_string() %}\n string\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.redshift__type_string": {"unique_id": "macro.dbt_utils.redshift__type_string", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "redshift__type_string", "macro_sql": "\n\n{%- macro redshift__type_string() -%}\n varchar\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.postgres__type_string": {"unique_id": "macro.dbt_utils.postgres__type_string", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "postgres__type_string", "macro_sql": "{% macro postgres__type_string() %}\n varchar\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.snowflake__type_string": {"unique_id": "macro.dbt_utils.snowflake__type_string", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "snowflake__type_string", "macro_sql": "{% macro snowflake__type_string() %}\n varchar\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.type_timestamp": {"unique_id": "macro.dbt_utils.type_timestamp", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "type_timestamp", "macro_sql": "\n\n{%- macro type_timestamp() -%}\n {{ return(adapter.dispatch('type_timestamp', 'dbt_utils')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.default__type_timestamp": {"unique_id": "macro.dbt_utils.default__type_timestamp", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "default__type_timestamp", "macro_sql": "{% macro default__type_timestamp() %}\n timestamp\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.snowflake__type_timestamp": {"unique_id": "macro.dbt_utils.snowflake__type_timestamp", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "snowflake__type_timestamp", "macro_sql": "{% macro snowflake__type_timestamp() %}\n timestamp_ntz\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.type_float": {"unique_id": "macro.dbt_utils.type_float", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "type_float", "macro_sql": "\n\n{%- macro type_float() -%}\n {{ return(adapter.dispatch('type_float', 'dbt_utils')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.bigquery__type_float"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.default__type_float": {"unique_id": "macro.dbt_utils.default__type_float", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "default__type_float", "macro_sql": "{% macro default__type_float() %}\n float\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.bigquery__type_float": {"unique_id": "macro.dbt_utils.bigquery__type_float", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "bigquery__type_float", "macro_sql": "{% macro bigquery__type_float() %}\n float64\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.type_numeric": {"unique_id": "macro.dbt_utils.type_numeric", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "type_numeric", "macro_sql": "\n\n{%- macro type_numeric() -%}\n {{ return(adapter.dispatch('type_numeric', 'dbt_utils')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.bigquery__type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.default__type_numeric": {"unique_id": "macro.dbt_utils.default__type_numeric", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "default__type_numeric", "macro_sql": "{% macro default__type_numeric() %}\n numeric(28, 6)\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.bigquery__type_numeric": {"unique_id": "macro.dbt_utils.bigquery__type_numeric", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "bigquery__type_numeric", "macro_sql": "{% macro bigquery__type_numeric() %}\n numeric\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.type_bigint": {"unique_id": "macro.dbt_utils.type_bigint", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "type_bigint", "macro_sql": "\n\n{%- macro type_bigint() -%}\n {{ return(adapter.dispatch('type_bigint', 'dbt_utils')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.bigquery__type_bigint"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.default__type_bigint": {"unique_id": "macro.dbt_utils.default__type_bigint", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "default__type_bigint", "macro_sql": "{% macro default__type_bigint() %}\n bigint\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.bigquery__type_bigint": {"unique_id": "macro.dbt_utils.bigquery__type_bigint", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "bigquery__type_bigint", "macro_sql": "{% macro bigquery__type_bigint() %}\n int64\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.type_int": {"unique_id": "macro.dbt_utils.type_int", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "type_int", "macro_sql": "\n\n{%- macro type_int() -%}\n {{ return(adapter.dispatch('type_int', 'dbt_utils')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.bigquery__type_int"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.default__type_int": {"unique_id": "macro.dbt_utils.default__type_int", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "default__type_int", "macro_sql": "{% macro default__type_int() %}\n int\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.bigquery__type_int": {"unique_id": "macro.dbt_utils.bigquery__type_int", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "bigquery__type_int", "macro_sql": "{% macro bigquery__type_int() %}\n int64\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils._is_relation": {"unique_id": "macro.dbt_utils._is_relation", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/_is_relation.sql", "original_file_path": "macros/cross_db_utils/_is_relation.sql", "name": "_is_relation", "macro_sql": "{% macro _is_relation(obj, macro) %}\n {%- if not (obj is mapping and obj.get('metadata', {}).get('type', '').endswith('Relation')) -%}\n {%- do exceptions.raise_compiler_error(\"Macro \" ~ macro ~ \" expected a Relation but received the value: \" ~ obj) -%}\n {%- endif -%}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.length": {"unique_id": "macro.dbt_utils.length", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/length.sql", "original_file_path": "macros/cross_db_utils/length.sql", "name": "length", "macro_sql": "{% macro length(expression) -%}\n {{ return(adapter.dispatch('length', 'dbt_utils') (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__length"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.default__length": {"unique_id": "macro.dbt_utils.default__length", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/length.sql", "original_file_path": "macros/cross_db_utils/length.sql", "name": "default__length", "macro_sql": "{% macro default__length(expression) %}\n \n length(\n {{ expression }}\n )\n \n{%- endmacro -%}\n\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.redshift__length": {"unique_id": "macro.dbt_utils.redshift__length", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/length.sql", "original_file_path": "macros/cross_db_utils/length.sql", "name": "redshift__length", "macro_sql": "{% macro redshift__length(expression) %}\n\n len(\n {{ expression }}\n )\n \n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.dateadd": {"unique_id": "macro.dbt_utils.dateadd", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/dateadd.sql", "original_file_path": "macros/cross_db_utils/dateadd.sql", "name": "dateadd", "macro_sql": "{% macro dateadd(datepart, interval, from_date_or_timestamp) %}\n {{ return(adapter.dispatch('dateadd', 'dbt_utils')(datepart, interval, from_date_or_timestamp)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.bigquery__dateadd"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.default__dateadd": {"unique_id": "macro.dbt_utils.default__dateadd", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/dateadd.sql", "original_file_path": "macros/cross_db_utils/dateadd.sql", "name": "default__dateadd", "macro_sql": "{% macro default__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n dateadd(\n {{ datepart }},\n {{ interval }},\n {{ from_date_or_timestamp }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.bigquery__dateadd": {"unique_id": "macro.dbt_utils.bigquery__dateadd", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/dateadd.sql", "original_file_path": "macros/cross_db_utils/dateadd.sql", "name": "bigquery__dateadd", "macro_sql": "{% macro bigquery__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n datetime_add(\n cast( {{ from_date_or_timestamp }} as datetime),\n interval {{ interval }} {{ datepart }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.postgres__dateadd": {"unique_id": "macro.dbt_utils.postgres__dateadd", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/dateadd.sql", "original_file_path": "macros/cross_db_utils/dateadd.sql", "name": "postgres__dateadd", "macro_sql": "{% macro postgres__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n {{ from_date_or_timestamp }} + ((interval '1 {{ datepart }}') * ({{ interval }}))\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.redshift__dateadd": {"unique_id": "macro.dbt_utils.redshift__dateadd", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/dateadd.sql", "original_file_path": "macros/cross_db_utils/dateadd.sql", "name": "redshift__dateadd", "macro_sql": "{% macro redshift__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n {{ return(dbt_utils.default__dateadd(datepart, interval, from_date_or_timestamp)) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__dateadd"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.intersect": {"unique_id": "macro.dbt_utils.intersect", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/intersect.sql", "original_file_path": "macros/cross_db_utils/intersect.sql", "name": "intersect", "macro_sql": "{% macro intersect() %}\n {{ return(adapter.dispatch('intersect', 'dbt_utils')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.bigquery__intersect"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.default__intersect": {"unique_id": "macro.dbt_utils.default__intersect", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/intersect.sql", "original_file_path": "macros/cross_db_utils/intersect.sql", "name": "default__intersect", "macro_sql": "{% macro default__intersect() %}\n\n intersect\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.bigquery__intersect": {"unique_id": "macro.dbt_utils.bigquery__intersect", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/intersect.sql", "original_file_path": "macros/cross_db_utils/intersect.sql", "name": "bigquery__intersect", "macro_sql": "{% macro bigquery__intersect() %}\n\n intersect distinct\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.right": {"unique_id": "macro.dbt_utils.right", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/right.sql", "original_file_path": "macros/cross_db_utils/right.sql", "name": "right", "macro_sql": "{% macro right(string_text, length_expression) -%}\n {{ return(adapter.dispatch('right', 'dbt_utils') (string_text, length_expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.bigquery__right"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.default__right": {"unique_id": "macro.dbt_utils.default__right", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/right.sql", "original_file_path": "macros/cross_db_utils/right.sql", "name": "default__right", "macro_sql": "{% macro default__right(string_text, length_expression) %}\n\n right(\n {{ string_text }},\n {{ length_expression }}\n )\n \n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.bigquery__right": {"unique_id": "macro.dbt_utils.bigquery__right", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/right.sql", "original_file_path": "macros/cross_db_utils/right.sql", "name": "bigquery__right", "macro_sql": "{% macro bigquery__right(string_text, length_expression) %}\n\n case when {{ length_expression }} = 0 \n then ''\n else \n substr(\n {{ string_text }},\n -1 * ({{ length_expression }})\n )\n end\n\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.snowflake__right": {"unique_id": "macro.dbt_utils.snowflake__right", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/right.sql", "original_file_path": "macros/cross_db_utils/right.sql", "name": "snowflake__right", "macro_sql": "{% macro snowflake__right(string_text, length_expression) %}\n\n case when {{ length_expression }} = 0 \n then ''\n else \n right(\n {{ string_text }},\n {{ length_expression }}\n )\n end\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.datediff": {"unique_id": "macro.dbt_utils.datediff", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/datediff.sql", "original_file_path": "macros/cross_db_utils/datediff.sql", "name": "datediff", "macro_sql": "{% macro datediff(first_date, second_date, datepart) %}\n {{ return(adapter.dispatch('datediff', 'dbt_utils')(first_date, second_date, datepart)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.bigquery__datediff"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.default__datediff": {"unique_id": "macro.dbt_utils.default__datediff", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/datediff.sql", "original_file_path": "macros/cross_db_utils/datediff.sql", "name": "default__datediff", "macro_sql": "{% macro default__datediff(first_date, second_date, datepart) %}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.bigquery__datediff": {"unique_id": "macro.dbt_utils.bigquery__datediff", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/datediff.sql", "original_file_path": "macros/cross_db_utils/datediff.sql", "name": "bigquery__datediff", "macro_sql": "{% macro bigquery__datediff(first_date, second_date, datepart) %}\n\n datetime_diff(\n cast({{second_date}} as datetime),\n cast({{first_date}} as datetime),\n {{datepart}}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.postgres__datediff": {"unique_id": "macro.dbt_utils.postgres__datediff", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/datediff.sql", "original_file_path": "macros/cross_db_utils/datediff.sql", "name": "postgres__datediff", "macro_sql": "{% macro postgres__datediff(first_date, second_date, datepart) %}\n\n {% if datepart == 'year' %}\n (date_part('year', ({{second_date}})::date) - date_part('year', ({{first_date}})::date))\n {% elif datepart == 'quarter' %}\n ({{ dbt_utils.datediff(first_date, second_date, 'year') }} * 4 + date_part('quarter', ({{second_date}})::date) - date_part('quarter', ({{first_date}})::date))\n {% elif datepart == 'month' %}\n ({{ dbt_utils.datediff(first_date, second_date, 'year') }} * 12 + date_part('month', ({{second_date}})::date) - date_part('month', ({{first_date}})::date))\n {% elif datepart == 'day' %}\n (({{second_date}})::date - ({{first_date}})::date)\n {% elif datepart == 'week' %}\n ({{ dbt_utils.datediff(first_date, second_date, 'day') }} / 7 + case\n when date_part('dow', ({{first_date}})::timestamp) <= date_part('dow', ({{second_date}})::timestamp) then\n case when {{first_date}} <= {{second_date}} then 0 else -1 end\n else\n case when {{first_date}} <= {{second_date}} then 1 else 0 end\n end)\n {% elif datepart == 'hour' %}\n ({{ dbt_utils.datediff(first_date, second_date, 'day') }} * 24 + date_part('hour', ({{second_date}})::timestamp) - date_part('hour', ({{first_date}})::timestamp))\n {% elif datepart == 'minute' %}\n ({{ dbt_utils.datediff(first_date, second_date, 'hour') }} * 60 + date_part('minute', ({{second_date}})::timestamp) - date_part('minute', ({{first_date}})::timestamp))\n {% elif datepart == 'second' %}\n ({{ dbt_utils.datediff(first_date, second_date, 'minute') }} * 60 + floor(date_part('second', ({{second_date}})::timestamp)) - floor(date_part('second', ({{first_date}})::timestamp)))\n {% elif datepart == 'millisecond' %}\n ({{ dbt_utils.datediff(first_date, second_date, 'minute') }} * 60000 + floor(date_part('millisecond', ({{second_date}})::timestamp)) - floor(date_part('millisecond', ({{first_date}})::timestamp)))\n {% elif datepart == 'microsecond' %}\n ({{ dbt_utils.datediff(first_date, second_date, 'minute') }} * 60000000 + floor(date_part('microsecond', ({{second_date}})::timestamp)) - floor(date_part('microsecond', ({{first_date}})::timestamp)))\n {% else %}\n {{ exceptions.raise_compiler_error(\"Unsupported datepart for macro datediff in postgres: {!r}\".format(datepart)) }}\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.datediff"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.redshift__datediff": {"unique_id": "macro.dbt_utils.redshift__datediff", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/datediff.sql", "original_file_path": "macros/cross_db_utils/datediff.sql", "name": "redshift__datediff", "macro_sql": "{% macro redshift__datediff(first_date, second_date, datepart) %}\n\n {{ return(dbt_utils.default__datediff(first_date, second_date, datepart)) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__datediff"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.safe_cast": {"unique_id": "macro.dbt_utils.safe_cast", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/safe_cast.sql", "original_file_path": "macros/cross_db_utils/safe_cast.sql", "name": "safe_cast", "macro_sql": "{% macro safe_cast(field, type) %}\n {{ return(adapter.dispatch('safe_cast', 'dbt_utils') (field, type)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.bigquery__safe_cast"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.default__safe_cast": {"unique_id": "macro.dbt_utils.default__safe_cast", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/safe_cast.sql", "original_file_path": "macros/cross_db_utils/safe_cast.sql", "name": "default__safe_cast", "macro_sql": "{% macro default__safe_cast(field, type) %}\n {# most databases don't support this function yet\n so we just need to use cast #}\n cast({{field}} as {{type}})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.snowflake__safe_cast": {"unique_id": "macro.dbt_utils.snowflake__safe_cast", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/safe_cast.sql", "original_file_path": "macros/cross_db_utils/safe_cast.sql", "name": "snowflake__safe_cast", "macro_sql": "{% macro snowflake__safe_cast(field, type) %}\n try_cast({{field}} as {{type}})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.bigquery__safe_cast": {"unique_id": "macro.dbt_utils.bigquery__safe_cast", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/safe_cast.sql", "original_file_path": "macros/cross_db_utils/safe_cast.sql", "name": "bigquery__safe_cast", "macro_sql": "{% macro bigquery__safe_cast(field, type) %}\n safe_cast({{field}} as {{type}})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.hash": {"unique_id": "macro.dbt_utils.hash", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/hash.sql", "original_file_path": "macros/cross_db_utils/hash.sql", "name": "hash", "macro_sql": "{% macro hash(field) -%}\n {{ return(adapter.dispatch('hash', 'dbt_utils') (field)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.bigquery__hash"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.default__hash": {"unique_id": "macro.dbt_utils.default__hash", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/hash.sql", "original_file_path": "macros/cross_db_utils/hash.sql", "name": "default__hash", "macro_sql": "{% macro default__hash(field) -%}\n md5(cast({{field}} as {{dbt_utils.type_string()}}))\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.bigquery__hash": {"unique_id": "macro.dbt_utils.bigquery__hash", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/hash.sql", "original_file_path": "macros/cross_db_utils/hash.sql", "name": "bigquery__hash", "macro_sql": "{% macro bigquery__hash(field) -%}\n to_hex({{dbt_utils.default__hash(field)}})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__hash"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.cast_bool_to_text": {"unique_id": "macro.dbt_utils.cast_bool_to_text", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/cast_bool_to_text.sql", "original_file_path": "macros/cross_db_utils/cast_bool_to_text.sql", "name": "cast_bool_to_text", "macro_sql": "{% macro cast_bool_to_text(field) %}\n {{ adapter.dispatch('cast_bool_to_text', 'dbt_utils') (field) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__cast_bool_to_text"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.default__cast_bool_to_text": {"unique_id": "macro.dbt_utils.default__cast_bool_to_text", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/cast_bool_to_text.sql", "original_file_path": "macros/cross_db_utils/cast_bool_to_text.sql", "name": "default__cast_bool_to_text", "macro_sql": "{% macro default__cast_bool_to_text(field) %}\n cast({{ field }} as {{ dbt_utils.type_string() }})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.redshift__cast_bool_to_text": {"unique_id": "macro.dbt_utils.redshift__cast_bool_to_text", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/cast_bool_to_text.sql", "original_file_path": "macros/cross_db_utils/cast_bool_to_text.sql", "name": "redshift__cast_bool_to_text", "macro_sql": "{% macro redshift__cast_bool_to_text(field) %}\n case\n when {{ field }} is true then 'true'\n when {{ field }} is false then 'false'\n end::text\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.identifier": {"unique_id": "macro.dbt_utils.identifier", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/identifier.sql", "original_file_path": "macros/cross_db_utils/identifier.sql", "name": "identifier", "macro_sql": "{% macro identifier(value) %}\t\n {%- set error_message = '\n Warning: the `identifier` macro is no longer supported and will be deprecated in a future release of dbt-utils. \\\n Use `adapter.quote` instead. The {}.{} model triggered this warning. \\\n '.format(model.package_name, model.name) -%}\n {%- do exceptions.warn(error_message) -%}\n {{ return(adapter.dispatch('identifier', 'dbt_utils') (value)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.bigquery__identifier"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.default__identifier": {"unique_id": "macro.dbt_utils.default__identifier", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/identifier.sql", "original_file_path": "macros/cross_db_utils/identifier.sql", "name": "default__identifier", "macro_sql": "{% macro default__identifier(value) -%}\t\n \"{{ value }}\"\t\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.bigquery__identifier": {"unique_id": "macro.dbt_utils.bigquery__identifier", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/identifier.sql", "original_file_path": "macros/cross_db_utils/identifier.sql", "name": "bigquery__identifier", "macro_sql": "{% macro bigquery__identifier(value) -%}\t\n `{{ value }}`\t\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.position": {"unique_id": "macro.dbt_utils.position", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/position.sql", "original_file_path": "macros/cross_db_utils/position.sql", "name": "position", "macro_sql": "{% macro position(substring_text, string_text) -%}\n {{ return(adapter.dispatch('position', 'dbt_utils') (substring_text, string_text)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.bigquery__position"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.default__position": {"unique_id": "macro.dbt_utils.default__position", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/position.sql", "original_file_path": "macros/cross_db_utils/position.sql", "name": "default__position", "macro_sql": "{% macro default__position(substring_text, string_text) %}\n\n position(\n {{ substring_text }} in {{ string_text }}\n )\n \n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.bigquery__position": {"unique_id": "macro.dbt_utils.bigquery__position", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/position.sql", "original_file_path": "macros/cross_db_utils/position.sql", "name": "bigquery__position", "macro_sql": "{% macro bigquery__position(substring_text, string_text) %}\n\n strpos(\n {{ string_text }},\n {{ substring_text }}\n \n )\n \n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.string_literal": {"unique_id": "macro.dbt_utils.string_literal", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/literal.sql", "original_file_path": "macros/cross_db_utils/literal.sql", "name": "string_literal", "macro_sql": "{%- macro string_literal(value) -%}\n {{ return(adapter.dispatch('string_literal', 'dbt_utils') (value)) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__string_literal"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.default__string_literal": {"unique_id": "macro.dbt_utils.default__string_literal", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/literal.sql", "original_file_path": "macros/cross_db_utils/literal.sql", "name": "default__string_literal", "macro_sql": "{% macro default__string_literal(value) -%}\n '{{ value }}'\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.current_timestamp": {"unique_id": "macro.dbt_utils.current_timestamp", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/cross_db_utils/current_timestamp.sql", "name": "current_timestamp", "macro_sql": "{% macro current_timestamp() -%}\n {{ return(adapter.dispatch('current_timestamp', 'dbt_utils')()) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.bigquery__current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.default__current_timestamp": {"unique_id": "macro.dbt_utils.default__current_timestamp", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/cross_db_utils/current_timestamp.sql", "name": "default__current_timestamp", "macro_sql": "{% macro default__current_timestamp() %}\n current_timestamp::{{dbt_utils.type_timestamp()}}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.redshift__current_timestamp": {"unique_id": "macro.dbt_utils.redshift__current_timestamp", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/cross_db_utils/current_timestamp.sql", "name": "redshift__current_timestamp", "macro_sql": "{% macro redshift__current_timestamp() %}\n getdate()\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.bigquery__current_timestamp": {"unique_id": "macro.dbt_utils.bigquery__current_timestamp", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/cross_db_utils/current_timestamp.sql", "name": "bigquery__current_timestamp", "macro_sql": "{% macro bigquery__current_timestamp() %}\n current_timestamp\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.current_timestamp_in_utc": {"unique_id": "macro.dbt_utils.current_timestamp_in_utc", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/cross_db_utils/current_timestamp.sql", "name": "current_timestamp_in_utc", "macro_sql": "{% macro current_timestamp_in_utc() -%}\n {{ return(adapter.dispatch('current_timestamp_in_utc', 'dbt_utils')()) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__current_timestamp_in_utc"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.default__current_timestamp_in_utc": {"unique_id": "macro.dbt_utils.default__current_timestamp_in_utc", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/cross_db_utils/current_timestamp.sql", "name": "default__current_timestamp_in_utc", "macro_sql": "{% macro default__current_timestamp_in_utc() %}\n {{dbt_utils.current_timestamp()}}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.snowflake__current_timestamp_in_utc": {"unique_id": "macro.dbt_utils.snowflake__current_timestamp_in_utc", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/cross_db_utils/current_timestamp.sql", "name": "snowflake__current_timestamp_in_utc", "macro_sql": "{% macro snowflake__current_timestamp_in_utc() %}\n convert_timezone('UTC', {{dbt_utils.current_timestamp()}})::{{dbt_utils.type_timestamp()}}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.current_timestamp", "macro.dbt_utils.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.postgres__current_timestamp_in_utc": {"unique_id": "macro.dbt_utils.postgres__current_timestamp_in_utc", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/cross_db_utils/current_timestamp.sql", "name": "postgres__current_timestamp_in_utc", "macro_sql": "{% macro postgres__current_timestamp_in_utc() %}\n (current_timestamp at time zone 'utc')::{{dbt_utils.type_timestamp()}}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.redshift__current_timestamp_in_utc": {"unique_id": "macro.dbt_utils.redshift__current_timestamp_in_utc", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/cross_db_utils/current_timestamp.sql", "name": "redshift__current_timestamp_in_utc", "macro_sql": "{% macro redshift__current_timestamp_in_utc() %}\n {{ return(dbt_utils.default__current_timestamp_in_utc()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__current_timestamp_in_utc"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.width_bucket": {"unique_id": "macro.dbt_utils.width_bucket", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/width_bucket.sql", "original_file_path": "macros/cross_db_utils/width_bucket.sql", "name": "width_bucket", "macro_sql": "{% macro width_bucket(expr, min_value, max_value, num_buckets) %}\n {{ return(adapter.dispatch('width_bucket', 'dbt_utils') (expr, min_value, max_value, num_buckets)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__width_bucket"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.default__width_bucket": {"unique_id": "macro.dbt_utils.default__width_bucket", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/width_bucket.sql", "original_file_path": "macros/cross_db_utils/width_bucket.sql", "name": "default__width_bucket", "macro_sql": "{% macro default__width_bucket(expr, min_value, max_value, num_buckets) -%}\n\n {% set bin_size -%}\n (( {{ max_value }} - {{ min_value }} ) / {{ num_buckets }} )\n {%- endset %}\n (\n -- to break ties when the amount is eaxtly at the bucket egde\n case\n when\n mod(\n {{ dbt_utils.safe_cast(expr, dbt_utils.type_numeric() ) }},\n {{ dbt_utils.safe_cast(bin_size, dbt_utils.type_numeric() ) }}\n ) = 0\n then 1\n else 0\n end\n ) +\n -- Anything over max_value goes the N+1 bucket\n least(\n ceil(\n ({{ expr }} - {{ min_value }})/{{ bin_size }}\n ),\n {{ num_buckets }} + 1\n )\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.safe_cast", "macro.dbt_utils.type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.redshift__width_bucket": {"unique_id": "macro.dbt_utils.redshift__width_bucket", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/width_bucket.sql", "original_file_path": "macros/cross_db_utils/width_bucket.sql", "name": "redshift__width_bucket", "macro_sql": "{% macro redshift__width_bucket(expr, min_value, max_value, num_buckets) -%}\n\n {% set bin_size -%}\n (( {{ max_value }} - {{ min_value }} ) / {{ num_buckets }} )\n {%- endset %}\n (\n -- to break ties when the amount is exactly at the bucket edge\n case\n when\n {{ dbt_utils.safe_cast(expr, dbt_utils.type_numeric() ) }} %\n {{ dbt_utils.safe_cast(bin_size, dbt_utils.type_numeric() ) }}\n = 0\n then 1\n else 0\n end\n ) +\n -- Anything over max_value goes the N+1 bucket\n least(\n ceil(\n ({{ expr }} - {{ min_value }})/{{ bin_size }}\n ),\n {{ num_buckets }} + 1\n )\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.safe_cast", "macro.dbt_utils.type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.snowflake__width_bucket": {"unique_id": "macro.dbt_utils.snowflake__width_bucket", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/width_bucket.sql", "original_file_path": "macros/cross_db_utils/width_bucket.sql", "name": "snowflake__width_bucket", "macro_sql": "{% macro snowflake__width_bucket(expr, min_value, max_value, num_buckets) %}\n width_bucket({{ expr }}, {{ min_value }}, {{ max_value }}, {{ num_buckets }} )\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.last_day": {"unique_id": "macro.dbt_utils.last_day", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/last_day.sql", "original_file_path": "macros/cross_db_utils/last_day.sql", "name": "last_day", "macro_sql": "{% macro last_day(date, datepart) %}\n {{ return(adapter.dispatch('last_day', 'dbt_utils') (date, datepart)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__last_day"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.default_last_day": {"unique_id": "macro.dbt_utils.default_last_day", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/last_day.sql", "original_file_path": "macros/cross_db_utils/last_day.sql", "name": "default_last_day", "macro_sql": "\n\n\n{%- macro default_last_day(date, datepart) -%}\n cast(\n {{dbt_utils.dateadd('day', '-1',\n dbt_utils.dateadd(datepart, '1', dbt_utils.date_trunc(datepart, date))\n )}}\n as date)\n{%- endmacro -%}\n\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.dateadd", "macro.dbt_utils.date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.default__last_day": {"unique_id": "macro.dbt_utils.default__last_day", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/last_day.sql", "original_file_path": "macros/cross_db_utils/last_day.sql", "name": "default__last_day", "macro_sql": "{% macro default__last_day(date, datepart) -%}\n {{dbt_utils.default_last_day(date, datepart)}}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default_last_day"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.postgres__last_day": {"unique_id": "macro.dbt_utils.postgres__last_day", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/last_day.sql", "original_file_path": "macros/cross_db_utils/last_day.sql", "name": "postgres__last_day", "macro_sql": "{% macro postgres__last_day(date, datepart) -%}\n\n {%- if datepart == 'quarter' -%}\n -- postgres dateadd does not support quarter interval.\n cast(\n {{dbt_utils.dateadd('day', '-1',\n dbt_utils.dateadd('month', '3', dbt_utils.date_trunc(datepart, date))\n )}}\n as date)\n {%- else -%}\n {{dbt_utils.default_last_day(date, datepart)}}\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.dateadd", "macro.dbt_utils.date_trunc", "macro.dbt_utils.default_last_day"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.redshift__last_day": {"unique_id": "macro.dbt_utils.redshift__last_day", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/last_day.sql", "original_file_path": "macros/cross_db_utils/last_day.sql", "name": "redshift__last_day", "macro_sql": "{% macro redshift__last_day(date, datepart) %}\n\n {{ return(dbt_utils.default__last_day(date, datepart)) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__last_day"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.split_part": {"unique_id": "macro.dbt_utils.split_part", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/split_part.sql", "original_file_path": "macros/cross_db_utils/split_part.sql", "name": "split_part", "macro_sql": "{% macro split_part(string_text, delimiter_text, part_number) %}\n {{ return(adapter.dispatch('split_part', 'dbt_utils') (string_text, delimiter_text, part_number)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.bigquery__split_part"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.default__split_part": {"unique_id": "macro.dbt_utils.default__split_part", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/split_part.sql", "original_file_path": "macros/cross_db_utils/split_part.sql", "name": "default__split_part", "macro_sql": "{% macro default__split_part(string_text, delimiter_text, part_number) %}\n\n split_part(\n {{ string_text }},\n {{ delimiter_text }},\n {{ part_number }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.bigquery__split_part": {"unique_id": "macro.dbt_utils.bigquery__split_part", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/split_part.sql", "original_file_path": "macros/cross_db_utils/split_part.sql", "name": "bigquery__split_part", "macro_sql": "{% macro bigquery__split_part(string_text, delimiter_text, part_number) %}\n\n split(\n {{ string_text }},\n {{ delimiter_text }}\n )[safe_offset({{ part_number - 1 }})]\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.date_trunc": {"unique_id": "macro.dbt_utils.date_trunc", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/date_trunc.sql", "original_file_path": "macros/cross_db_utils/date_trunc.sql", "name": "date_trunc", "macro_sql": "{% macro date_trunc(datepart, date) -%}\n {{ return(adapter.dispatch('date_trunc', 'dbt_utils') (datepart, date)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.bigquery__date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.default__date_trunc": {"unique_id": "macro.dbt_utils.default__date_trunc", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/date_trunc.sql", "original_file_path": "macros/cross_db_utils/date_trunc.sql", "name": "default__date_trunc", "macro_sql": "{% macro default__date_trunc(datepart, date) %}\n date_trunc('{{datepart}}', {{date}})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.bigquery__date_trunc": {"unique_id": "macro.dbt_utils.bigquery__date_trunc", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/date_trunc.sql", "original_file_path": "macros/cross_db_utils/date_trunc.sql", "name": "bigquery__date_trunc", "macro_sql": "{% macro bigquery__date_trunc(datepart, date) %}\n timestamp_trunc(\n cast({{date}} as timestamp),\n {{datepart}}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils._is_ephemeral": {"unique_id": "macro.dbt_utils._is_ephemeral", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/_is_ephemeral.sql", "original_file_path": "macros/cross_db_utils/_is_ephemeral.sql", "name": "_is_ephemeral", "macro_sql": "{% macro _is_ephemeral(obj, macro) %}\n {%- if obj.is_cte -%}\n {% set ephemeral_prefix = api.Relation.add_ephemeral_prefix('') %}\n {% if obj.name.startswith(ephemeral_prefix) %}\n {% set model_name = obj.name[(ephemeral_prefix|length):] %}\n {% else %}\n {% set model_name = obj.name %}\n {%- endif -%}\n {% set error_message %}\nThe `{{ macro }}` macro cannot be used with ephemeral models, as it relies on the information schema.\n\n`{{ model_name }}` is an ephemeral model. Consider making it a view or table instead.\n {% endset %}\n {%- do exceptions.raise_compiler_error(error_message) -%}\n {%- endif -%}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.get_period_boundaries": {"unique_id": "macro.dbt_utils.get_period_boundaries", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/materializations/insert_by_period_materialization.sql", "original_file_path": "macros/materializations/insert_by_period_materialization.sql", "name": "get_period_boundaries", "macro_sql": "{% macro get_period_boundaries(target_schema, target_table, timestamp_field, start_date, stop_date, period) -%}\n {{ return(adapter.dispatch('get_period_boundaries', 'dbt_utils')(target_schema, target_table, timestamp_field, start_date, stop_date, period)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_period_boundaries"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.default__get_period_boundaries": {"unique_id": "macro.dbt_utils.default__get_period_boundaries", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/materializations/insert_by_period_materialization.sql", "original_file_path": "macros/materializations/insert_by_period_materialization.sql", "name": "default__get_period_boundaries", "macro_sql": "{% macro default__get_period_boundaries(target_schema, target_table, timestamp_field, start_date, stop_date, period) -%}\n\n {% call statement('period_boundaries', fetch_result=True) -%}\n with data as (\n select\n coalesce(max(\"{{timestamp_field}}\"), '{{start_date}}')::timestamp as start_timestamp,\n coalesce(\n {{dbt_utils.dateadd('millisecond',\n -1,\n \"nullif('\" ~ stop_date ~ \"','')::timestamp\")}},\n {{dbt_utils.current_timestamp()}}\n ) as stop_timestamp\n from \"{{target_schema}}\".\"{{target_table}}\"\n )\n\n select\n start_timestamp,\n stop_timestamp,\n {{dbt_utils.datediff('start_timestamp',\n 'stop_timestamp',\n period)}} + 1 as num_periods\n from data\n {%- endcall %}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_utils.dateadd", "macro.dbt_utils.current_timestamp", "macro.dbt_utils.datediff"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.get_period_sql": {"unique_id": "macro.dbt_utils.get_period_sql", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/materializations/insert_by_period_materialization.sql", "original_file_path": "macros/materializations/insert_by_period_materialization.sql", "name": "get_period_sql", "macro_sql": "{% macro get_period_sql(target_cols_csv, sql, timestamp_field, period, start_timestamp, stop_timestamp, offset) -%}\n {{ return(adapter.dispatch('get_period_sql', 'dbt_utils')(target_cols_csv, sql, timestamp_field, period, start_timestamp, stop_timestamp, offset)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_period_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.default__get_period_sql": {"unique_id": "macro.dbt_utils.default__get_period_sql", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/materializations/insert_by_period_materialization.sql", "original_file_path": "macros/materializations/insert_by_period_materialization.sql", "name": "default__get_period_sql", "macro_sql": "{% macro default__get_period_sql(target_cols_csv, sql, timestamp_field, period, start_timestamp, stop_timestamp, offset) -%}\n\n {%- set period_filter -%}\n (\"{{timestamp_field}}\" > '{{start_timestamp}}'::timestamp + interval '{{offset}} {{period}}' and\n \"{{timestamp_field}}\" <= '{{start_timestamp}}'::timestamp + interval '{{offset}} {{period}}' + interval '1 {{period}}' and\n \"{{timestamp_field}}\" < '{{stop_timestamp}}'::timestamp)\n {%- endset -%}\n\n {%- set filtered_sql = sql | replace(\"__PERIOD_FILTER__\", period_filter) -%}\n\n select\n {{target_cols_csv}}\n from (\n {{filtered_sql}}\n )\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.materialization_insert_by_period_default": {"unique_id": "macro.dbt_utils.materialization_insert_by_period_default", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/materializations/insert_by_period_materialization.sql", "original_file_path": "macros/materializations/insert_by_period_materialization.sql", "name": "materialization_insert_by_period_default", "macro_sql": "{% materialization insert_by_period, default -%}\n {%- set timestamp_field = config.require('timestamp_field') -%}\n {%- set start_date = config.require('start_date') -%}\n {%- set stop_date = config.get('stop_date') or '' -%}}\n {%- set period = config.get('period') or 'week' -%}\n\n {%- if sql.find('__PERIOD_FILTER__') == -1 -%}\n {%- set error_message -%}\n Model '{{ model.unique_id }}' does not include the required string '__PERIOD_FILTER__' in its sql\n {%- endset -%}\n {{ exceptions.raise_compiler_error(error_message) }}\n {%- endif -%}\n\n {%- set identifier = model['name'] -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n {%- set target_relation = api.Relation.create(identifier=identifier, schema=schema, type='table') -%}\n\n {%- set non_destructive_mode = (flags.NON_DESTRUCTIVE == True) -%}\n {%- set full_refresh_mode = (flags.FULL_REFRESH == True) -%}\n\n {%- set exists_as_table = (old_relation is not none and old_relation.is_table) -%}\n {%- set exists_not_as_table = (old_relation is not none and not old_relation.is_table) -%}\n\n {%- set should_truncate = (non_destructive_mode and full_refresh_mode and exists_as_table) -%}\n {%- set should_drop = (not should_truncate and (full_refresh_mode or exists_not_as_table)) -%}\n {%- set force_create = (flags.FULL_REFRESH and not flags.NON_DESTRUCTIVE) -%}\n\n -- setup\n {% if old_relation is none -%}\n -- noop\n {%- elif should_truncate -%}\n {{adapter.truncate_relation(old_relation)}}\n {%- elif should_drop -%}\n {{adapter.drop_relation(old_relation)}}\n {%- set old_relation = none -%}\n {%- endif %}\n\n {{run_hooks(pre_hooks, inside_transaction=False)}}\n\n -- `begin` happens here, so `commit` after it to finish the transaction\n {{run_hooks(pre_hooks, inside_transaction=True)}}\n {% call statement() -%}\n begin; -- make extra sure we've closed out the transaction\n commit;\n {%- endcall %}\n\n -- build model\n {% if force_create or old_relation is none -%}\n {# Create an empty target table -#}\n {% call statement('main') -%}\n {%- set empty_sql = sql | replace(\"__PERIOD_FILTER__\", 'false') -%}\n {{create_table_as(False, target_relation, empty_sql)}};\n {%- endcall %}\n {%- endif %}\n\n {% set _ = dbt_utils.get_period_boundaries(schema,\n identifier,\n timestamp_field,\n start_date,\n stop_date,\n period) %}\n {%- set start_timestamp = load_result('period_boundaries')['data'][0][0] | string -%}\n {%- set stop_timestamp = load_result('period_boundaries')['data'][0][1] | string -%}\n {%- set num_periods = load_result('period_boundaries')['data'][0][2] | int -%}\n\n {% set target_columns = adapter.get_columns_in_relation(target_relation) %}\n {%- set target_cols_csv = target_columns | map(attribute='quoted') | join(', ') -%}\n {%- set loop_vars = {'sum_rows_inserted': 0} -%}\n\n -- commit each period as a separate transaction\n {% for i in range(num_periods) -%}\n {%- set msg = \"Running for \" ~ period ~ \" \" ~ (i + 1) ~ \" of \" ~ (num_periods) -%}\n {{ dbt_utils.log_info(msg) }}\n\n {%- set tmp_identifier = model['name'] ~ '__dbt_incremental_period' ~ i ~ '_tmp' -%}\n {%- set tmp_relation = api.Relation.create(identifier=tmp_identifier,\n schema=schema, type='table') -%}\n {% call statement() -%}\n {% set tmp_table_sql = dbt_utils.get_period_sql(target_cols_csv,\n sql,\n timestamp_field,\n period,\n start_timestamp,\n stop_timestamp,\n i) %}\n {{dbt.create_table_as(True, tmp_relation, tmp_table_sql)}}\n {%- endcall %}\n\n {{adapter.expand_target_column_types(from_relation=tmp_relation,\n to_relation=target_relation)}}\n {%- set name = 'main-' ~ i -%}\n {% call statement(name, fetch_result=True) -%}\n insert into {{target_relation}} ({{target_cols_csv}})\n (\n select\n {{target_cols_csv}}\n from {{tmp_relation.include(schema=False)}}\n );\n {%- endcall %}\n {% set result = load_result('main-' ~ i) %}\n {% if 'response' in result.keys() %} {# added in v0.19.0 #}\n {% set rows_inserted = result['response']['rows_affected'] %}\n {% else %} {# older versions #}\n {% set rows_inserted = result['status'].split(\" \")[2] | int %}\n {% endif %}\n \n {%- set sum_rows_inserted = loop_vars['sum_rows_inserted'] + rows_inserted -%}\n {%- if loop_vars.update({'sum_rows_inserted': sum_rows_inserted}) %} {% endif -%}\n\n {%- set msg = \"Ran for \" ~ period ~ \" \" ~ (i + 1) ~ \" of \" ~ (num_periods) ~ \"; \" ~ rows_inserted ~ \" records inserted\" -%}\n {{ dbt_utils.log_info(msg) }}\n\n {%- endfor %}\n\n {% call statement() -%}\n begin;\n {%- endcall %}\n\n {{run_hooks(post_hooks, inside_transaction=True)}}\n\n {% call statement() -%}\n commit;\n {%- endcall %}\n\n {{run_hooks(post_hooks, inside_transaction=False)}}\n\n {%- set status_string = \"INSERT \" ~ loop_vars['sum_rows_inserted'] -%}\n\n {% call noop_statement('main', status_string) -%}\n -- no-op\n {%- endcall %}\n\n -- Return the relations created in this materialization\n {{ return({'relations': [target_relation]}) }} \n\n{%- endmaterialization %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_hooks", "macro.dbt.statement", "macro.dbt.create_table_as", "macro.dbt_utils.get_period_boundaries", "macro.dbt_utils.log_info", "macro.dbt_utils.get_period_sql", "macro.dbt.noop_statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.get_url_host": {"unique_id": "macro.dbt_utils.get_url_host", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/web/get_url_host.sql", "original_file_path": "macros/web/get_url_host.sql", "name": "get_url_host", "macro_sql": "{% macro get_url_host(field) -%}\n {{ return(adapter.dispatch('get_url_host', 'dbt_utils')(field)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_url_host"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.default__get_url_host": {"unique_id": "macro.dbt_utils.default__get_url_host", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/web/get_url_host.sql", "original_file_path": "macros/web/get_url_host.sql", "name": "default__get_url_host", "macro_sql": "{% macro default__get_url_host(field) -%}\n\n{%- set parsed = \n dbt_utils.split_part(\n dbt_utils.split_part(\n dbt_utils.replace(\n dbt_utils.replace(field, \"'http://'\", \"''\"\n ), \"'https://'\", \"''\"\n ), \"'/'\", 1\n ), \"'?'\", 1\n )\n \n-%}\n\n \n {{ dbt_utils.safe_cast(\n parsed,\n dbt_utils.type_string()\n )}}\n \n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.split_part", "macro.dbt_utils.replace", "macro.dbt_utils.safe_cast", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.get_url_path": {"unique_id": "macro.dbt_utils.get_url_path", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/web/get_url_path.sql", "original_file_path": "macros/web/get_url_path.sql", "name": "get_url_path", "macro_sql": "{% macro get_url_path(field) -%}\n {{ return(adapter.dispatch('get_url_path', 'dbt_utils')(field)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_url_path"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.default__get_url_path": {"unique_id": "macro.dbt_utils.default__get_url_path", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/web/get_url_path.sql", "original_file_path": "macros/web/get_url_path.sql", "name": "default__get_url_path", "macro_sql": "{% macro default__get_url_path(field) -%}\n\n {%- set stripped_url = \n dbt_utils.replace(\n dbt_utils.replace(field, \"'http://'\", \"''\"), \"'https://'\", \"''\")\n -%}\n\n {%- set first_slash_pos -%}\n coalesce(\n nullif({{dbt_utils.position(\"'/'\", stripped_url)}}, 0),\n {{dbt_utils.position(\"'?'\", stripped_url)}} - 1\n )\n {%- endset -%}\n\n {%- set parsed_path =\n dbt_utils.split_part(\n dbt_utils.right(\n stripped_url, \n dbt_utils.length(stripped_url) ~ \"-\" ~ first_slash_pos\n ), \n \"'?'\", 1\n )\n -%}\n\n {{ dbt_utils.safe_cast(\n parsed_path,\n dbt_utils.type_string()\n )}}\n \n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.replace", "macro.dbt_utils.position", "macro.dbt_utils.split_part", "macro.dbt_utils.right", "macro.dbt_utils.length", "macro.dbt_utils.safe_cast", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.get_url_parameter": {"unique_id": "macro.dbt_utils.get_url_parameter", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/web/get_url_parameter.sql", "original_file_path": "macros/web/get_url_parameter.sql", "name": "get_url_parameter", "macro_sql": "{% macro get_url_parameter(field, url_parameter) -%}\n {{ return(adapter.dispatch('get_url_parameter', 'dbt_utils')(field, url_parameter)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.default__get_url_parameter": {"unique_id": "macro.dbt_utils.default__get_url_parameter", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/web/get_url_parameter.sql", "original_file_path": "macros/web/get_url_parameter.sql", "name": "default__get_url_parameter", "macro_sql": "{% macro default__get_url_parameter(field, url_parameter) -%}\n\n{%- set formatted_url_parameter = \"'\" + url_parameter + \"='\" -%}\n\n{%- set split = dbt_utils.split_part(dbt_utils.split_part(field, formatted_url_parameter, 2), \"'&'\", 1) -%}\n\nnullif({{ split }},'')\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.split_part"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.pretty_log_format": {"unique_id": "macro.dbt_utils.pretty_log_format", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/jinja_helpers/pretty_log_format.sql", "original_file_path": "macros/jinja_helpers/pretty_log_format.sql", "name": "pretty_log_format", "macro_sql": "{% macro pretty_log_format(message) %}\n {{ return(adapter.dispatch('pretty_log_format', 'dbt_utils')(message)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__pretty_log_format"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.default__pretty_log_format": {"unique_id": "macro.dbt_utils.default__pretty_log_format", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/jinja_helpers/pretty_log_format.sql", "original_file_path": "macros/jinja_helpers/pretty_log_format.sql", "name": "default__pretty_log_format", "macro_sql": "{% macro default__pretty_log_format(message) %}\n {{ return( dbt_utils.pretty_time() ~ ' + ' ~ message) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.pretty_time"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.pretty_time": {"unique_id": "macro.dbt_utils.pretty_time", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/jinja_helpers/pretty_time.sql", "original_file_path": "macros/jinja_helpers/pretty_time.sql", "name": "pretty_time", "macro_sql": "{% macro pretty_time(format='%H:%M:%S') %}\n {{ return(adapter.dispatch('pretty_time', 'dbt_utils')(format)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__pretty_time"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.default__pretty_time": {"unique_id": "macro.dbt_utils.default__pretty_time", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/jinja_helpers/pretty_time.sql", "original_file_path": "macros/jinja_helpers/pretty_time.sql", "name": "default__pretty_time", "macro_sql": "{% macro default__pretty_time(format='%H:%M:%S') %}\n {{ return(modules.datetime.datetime.now().strftime(format)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.log_info": {"unique_id": "macro.dbt_utils.log_info", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/jinja_helpers/log_info.sql", "original_file_path": "macros/jinja_helpers/log_info.sql", "name": "log_info", "macro_sql": "{% macro log_info(message) %}\n {{ return(adapter.dispatch('log_info', 'dbt_utils')(message)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__log_info"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.default__log_info": {"unique_id": "macro.dbt_utils.default__log_info", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/jinja_helpers/log_info.sql", "original_file_path": "macros/jinja_helpers/log_info.sql", "name": "default__log_info", "macro_sql": "{% macro default__log_info(message) %}\n {{ log(dbt_utils.pretty_log_format(message), info=True) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.pretty_log_format"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.slugify": {"unique_id": "macro.dbt_utils.slugify", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/jinja_helpers/slugify.sql", "original_file_path": "macros/jinja_helpers/slugify.sql", "name": "slugify", "macro_sql": "{% macro slugify(string) %}\n\n{#- Lower case the string -#}\n{% set string = string | lower %}\n{#- Replace spaces and dashes with underscores -#}\n{% set string = modules.re.sub('[ -]+', '_', string) %}\n{#- Only take letters, numbers, and underscores -#}\n{% set string = modules.re.sub('[^a-z0-9_]+', '', string) %}\n\n{{ return(string) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.test_fewer_rows_than": {"unique_id": "macro.dbt_utils.test_fewer_rows_than", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/fewer_rows_than.sql", "original_file_path": "macros/schema_tests/fewer_rows_than.sql", "name": "test_fewer_rows_than", "macro_sql": "{% test fewer_rows_than(model, compare_model) %}\n {{ return(adapter.dispatch('test_fewer_rows_than', 'dbt_utils')(model, compare_model)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_fewer_rows_than"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.default__test_fewer_rows_than": {"unique_id": "macro.dbt_utils.default__test_fewer_rows_than", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/fewer_rows_than.sql", "original_file_path": "macros/schema_tests/fewer_rows_than.sql", "name": "default__test_fewer_rows_than", "macro_sql": "{% macro default__test_fewer_rows_than(model, compare_model) %}\n\n{{ config(fail_calc = 'coalesce(row_count_delta, 0)') }}\n\nwith a as (\n\n select count(*) as count_our_model from {{ model }}\n\n),\nb as (\n\n select count(*) as count_comparison_model from {{ compare_model }}\n\n),\ncounts as (\n\n select\n count_our_model,\n count_comparison_model\n from a\n cross join b\n\n),\nfinal as (\n\n select *,\n case\n -- fail the test if we have more rows than the reference model and return the row count delta\n when count_our_model > count_comparison_model then (count_our_model - count_comparison_model)\n -- fail the test if they are the same number\n when count_our_model = count_comparison_model then 1\n -- pass the test if the delta is positive (i.e. return the number 0)\n else 0\n end as row_count_delta\n from counts\n\n)\n\nselect * from final\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.test_equal_rowcount": {"unique_id": "macro.dbt_utils.test_equal_rowcount", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/equal_rowcount.sql", "original_file_path": "macros/schema_tests/equal_rowcount.sql", "name": "test_equal_rowcount", "macro_sql": "{% test equal_rowcount(model, compare_model) %}\n {{ return(adapter.dispatch('test_equal_rowcount', 'dbt_utils')(model, compare_model)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_equal_rowcount"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.default__test_equal_rowcount": {"unique_id": "macro.dbt_utils.default__test_equal_rowcount", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/equal_rowcount.sql", "original_file_path": "macros/schema_tests/equal_rowcount.sql", "name": "default__test_equal_rowcount", "macro_sql": "{% macro default__test_equal_rowcount(model, compare_model) %}\n\n{#-- Needs to be set at parse time, before we return '' below --#}\n{{ config(fail_calc = 'coalesce(diff_count, 0)') }}\n\n{#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n{%- if not execute -%}\n {{ return('') }}\n{% endif %}\n\nwith a as (\n\n select count(*) as count_a from {{ model }}\n\n),\nb as (\n\n select count(*) as count_b from {{ compare_model }}\n\n),\nfinal as (\n\n select\n count_a,\n count_b,\n abs(count_a - count_b) as diff_count\n from a\n cross join b\n\n)\n\nselect * from final\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.test_relationships_where": {"unique_id": "macro.dbt_utils.test_relationships_where", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/relationships_where.sql", "original_file_path": "macros/schema_tests/relationships_where.sql", "name": "test_relationships_where", "macro_sql": "{% test relationships_where(model, column_name, to, field, from_condition=\"1=1\", to_condition=\"1=1\") %}\n {{ return(adapter.dispatch('test_relationships_where', 'dbt_utils')(model, column_name, to, field, from_condition, to_condition)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_relationships_where"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.default__test_relationships_where": {"unique_id": "macro.dbt_utils.default__test_relationships_where", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/relationships_where.sql", "original_file_path": "macros/schema_tests/relationships_where.sql", "name": "default__test_relationships_where", "macro_sql": "{% macro default__test_relationships_where(model, column_name, to, field, from_condition=\"1=1\", to_condition=\"1=1\") %}\n\n{# T-SQL has no boolean data type so we use 1=1 which returns TRUE #}\n{# ref https://stackoverflow.com/a/7170753/3842610 #}\n\nwith left_table as (\n\n select\n {{column_name}} as id\n\n from {{model}}\n\n where {{column_name}} is not null\n and {{from_condition}}\n\n),\n\nright_table as (\n\n select\n {{field}} as id\n\n from {{to}}\n\n where {{field}} is not null\n and {{to_condition}}\n\n),\n\nexceptions as (\n\n select\n left_table.id,\n right_table.id as right_id\n\n from left_table\n\n left join right_table\n on left_table.id = right_table.id\n\n where right_table.id is null\n\n)\n\nselect * from exceptions\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.test_recency": {"unique_id": "macro.dbt_utils.test_recency", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/recency.sql", "original_file_path": "macros/schema_tests/recency.sql", "name": "test_recency", "macro_sql": "{% test recency(model, field, datepart, interval) %}\n {{ return(adapter.dispatch('test_recency', 'dbt_utils')(model, field, datepart, interval)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_recency"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.default__test_recency": {"unique_id": "macro.dbt_utils.default__test_recency", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/recency.sql", "original_file_path": "macros/schema_tests/recency.sql", "name": "default__test_recency", "macro_sql": "{% macro default__test_recency(model, field, datepart, interval) %}\n\n{% set threshold = dbt_utils.dateadd(datepart, interval * -1, dbt_utils.current_timestamp()) %}\n\nwith recency as (\n\n select max({{field}}) as most_recent\n from {{ model }}\n\n)\n\nselect\n\n most_recent,\n {{ threshold }} as threshold\n\nfrom recency\nwhere most_recent < {{ threshold }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.dateadd", "macro.dbt_utils.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.test_not_constant": {"unique_id": "macro.dbt_utils.test_not_constant", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/not_constant.sql", "original_file_path": "macros/schema_tests/not_constant.sql", "name": "test_not_constant", "macro_sql": "{% test not_constant(model, column_name) %}\n {{ return(adapter.dispatch('test_not_constant', 'dbt_utils')(model, column_name)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_not_constant"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.default__test_not_constant": {"unique_id": "macro.dbt_utils.default__test_not_constant", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/not_constant.sql", "original_file_path": "macros/schema_tests/not_constant.sql", "name": "default__test_not_constant", "macro_sql": "{% macro default__test_not_constant(model, column_name) %}\n\n\nselect\n {# In TSQL, subquery aggregate columns need aliases #}\n {# thus: a filler col name, 'filler_column' #}\n count(distinct {{ column_name }}) as filler_column\n\nfrom {{ model }}\n\nhaving count(distinct {{ column_name }}) = 1\n\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.test_accepted_range": {"unique_id": "macro.dbt_utils.test_accepted_range", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/accepted_range.sql", "original_file_path": "macros/schema_tests/accepted_range.sql", "name": "test_accepted_range", "macro_sql": "{% test accepted_range(model, column_name, min_value=none, max_value=none, inclusive=true) %}\n {{ return(adapter.dispatch('test_accepted_range', 'dbt_utils')(model, column_name, min_value, max_value, inclusive)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_accepted_range"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.default__test_accepted_range": {"unique_id": "macro.dbt_utils.default__test_accepted_range", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/accepted_range.sql", "original_file_path": "macros/schema_tests/accepted_range.sql", "name": "default__test_accepted_range", "macro_sql": "{% macro default__test_accepted_range(model, column_name, min_value=none, max_value=none, inclusive=true) %}\n\nwith meet_condition as(\n select {{ column_name }}\n from {{ model }}\n),\n\nvalidation_errors as (\n select *\n from meet_condition\n where\n -- never true, defaults to an empty result set. Exists to ensure any combo of the `or` clauses below succeeds\n 1 = 2\n\n {%- if min_value is not none %}\n -- records with a value >= min_value are permitted. The `not` flips this to find records that don't meet the rule.\n or not {{ column_name }} > {{- \"=\" if inclusive }} {{ min_value }}\n {%- endif %}\n\n {%- if max_value is not none %}\n -- records with a value <= max_value are permitted. The `not` flips this to find records that don't meet the rule.\n or not {{ column_name }} < {{- \"=\" if inclusive }} {{ max_value }}\n {%- endif %}\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.test_not_accepted_values": {"unique_id": "macro.dbt_utils.test_not_accepted_values", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/not_accepted_values.sql", "original_file_path": "macros/schema_tests/not_accepted_values.sql", "name": "test_not_accepted_values", "macro_sql": "{% test not_accepted_values(model, column_name, values, quote=True) %}\n {{ return(adapter.dispatch('test_not_accepted_values', 'dbt_utils')(model, column_name, values, quote)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_not_accepted_values"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.default__test_not_accepted_values": {"unique_id": "macro.dbt_utils.default__test_not_accepted_values", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/not_accepted_values.sql", "original_file_path": "macros/schema_tests/not_accepted_values.sql", "name": "default__test_not_accepted_values", "macro_sql": "{% macro default__test_not_accepted_values(model, column_name, values, quote=True) %}\nwith all_values as (\n\n select distinct\n {{ column_name }} as value_field\n\n from {{ model }}\n\n),\n\nvalidation_errors as (\n\n select\n value_field\n\n from all_values\n where value_field in (\n {% for value in values -%}\n {% if quote -%}\n '{{ value }}'\n {%- else -%}\n {{ value }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {%- endfor %}\n )\n\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.test_unique_where": {"unique_id": "macro.dbt_utils.test_unique_where", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/test_unique_where.sql", "original_file_path": "macros/schema_tests/test_unique_where.sql", "name": "test_unique_where", "macro_sql": "{% test unique_where(model, column_name) %}\r\n {%- set deprecation_warning = '\r\n Warning: `dbt_utils.unique_where` is no longer supported.\r\n Starting in dbt v0.20.0, the built-in `unique` test supports a `where` config.\r\n ' -%}\r\n {%- do exceptions.warn(deprecation_warning) -%}\r\n {{ return(adapter.dispatch('test_unique_where', 'dbt_utils')(model, column_name)) }}\r\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_unique_where"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.default__test_unique_where": {"unique_id": "macro.dbt_utils.default__test_unique_where", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/test_unique_where.sql", "original_file_path": "macros/schema_tests/test_unique_where.sql", "name": "default__test_unique_where", "macro_sql": "{% macro default__test_unique_where(model, column_name) %}\r\n {{ return(test_unique(model, column_name)) }}\r\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.test_unique"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.test_at_least_one": {"unique_id": "macro.dbt_utils.test_at_least_one", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/at_least_one.sql", "original_file_path": "macros/schema_tests/at_least_one.sql", "name": "test_at_least_one", "macro_sql": "{% test at_least_one(model, column_name) %}\n {{ return(adapter.dispatch('test_at_least_one', 'dbt_utils')(model, column_name)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_at_least_one"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.default__test_at_least_one": {"unique_id": "macro.dbt_utils.default__test_at_least_one", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/at_least_one.sql", "original_file_path": "macros/schema_tests/at_least_one.sql", "name": "default__test_at_least_one", "macro_sql": "{% macro default__test_at_least_one(model, column_name) %}\n\nselect *\nfrom (\n select\n {# In TSQL, subquery aggregate columns need aliases #}\n {# thus: a filler col name, 'filler_column' #}\n count({{ column_name }}) as filler_column\n\n from {{ model }}\n\n having count({{ column_name }}) = 0\n\n) validation_errors\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.test_unique_combination_of_columns": {"unique_id": "macro.dbt_utils.test_unique_combination_of_columns", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/unique_combination_of_columns.sql", "original_file_path": "macros/schema_tests/unique_combination_of_columns.sql", "name": "test_unique_combination_of_columns", "macro_sql": "{% test unique_combination_of_columns(model, combination_of_columns, quote_columns=false) %}\n {{ return(adapter.dispatch('test_unique_combination_of_columns', 'dbt_utils')(model, combination_of_columns, quote_columns)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_unique_combination_of_columns"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.default__test_unique_combination_of_columns": {"unique_id": "macro.dbt_utils.default__test_unique_combination_of_columns", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/unique_combination_of_columns.sql", "original_file_path": "macros/schema_tests/unique_combination_of_columns.sql", "name": "default__test_unique_combination_of_columns", "macro_sql": "{% macro default__test_unique_combination_of_columns(model, combination_of_columns, quote_columns=false) %}\n\n{% if not quote_columns %}\n {%- set column_list=combination_of_columns %}\n{% elif quote_columns %}\n {%- set column_list=[] %}\n {% for column in combination_of_columns -%}\n {% set column_list = column_list.append( adapter.quote(column) ) %}\n {%- endfor %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`quote_columns` argument for unique_combination_of_columns test must be one of [True, False] Got: '\" ~ quote ~\"'.'\"\n ) }}\n{% endif %}\n\n{%- set columns_csv=column_list | join(', ') %}\n\n\nwith validation_errors as (\n\n select\n {{ columns_csv }}\n from {{ model }}\n group by {{ columns_csv }}\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.test_cardinality_equality": {"unique_id": "macro.dbt_utils.test_cardinality_equality", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/cardinality_equality.sql", "original_file_path": "macros/schema_tests/cardinality_equality.sql", "name": "test_cardinality_equality", "macro_sql": "{% test cardinality_equality(model, column_name, to, field) %}\n {{ return(adapter.dispatch('test_cardinality_equality', 'dbt_utils')(model, column_name, to, field)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_cardinality_equality"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.default__test_cardinality_equality": {"unique_id": "macro.dbt_utils.default__test_cardinality_equality", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/cardinality_equality.sql", "original_file_path": "macros/schema_tests/cardinality_equality.sql", "name": "default__test_cardinality_equality", "macro_sql": "{% macro default__test_cardinality_equality(model, column_name, to, field) %}\n\n{# T-SQL does not let you use numbers as aliases for columns #}\n{# Thus, no \"GROUP BY 1\" #}\n\nwith table_a as (\nselect\n {{ column_name }},\n count(*) as num_rows\nfrom {{ model }}\ngroup by {{ column_name }}\n),\n\ntable_b as (\nselect\n {{ field }},\n count(*) as num_rows\nfrom {{ to }}\ngroup by {{ field }}\n),\n\nexcept_a as (\n select *\n from table_a\n {{ dbt_utils.except() }}\n select *\n from table_b\n),\n\nexcept_b as (\n select *\n from table_b\n {{ dbt_utils.except() }}\n select *\n from table_a\n),\n\nunioned as (\n select *\n from except_a\n union all\n select *\n from except_b\n)\n\nselect *\nfrom unioned\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.except"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.test_expression_is_true": {"unique_id": "macro.dbt_utils.test_expression_is_true", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/expression_is_true.sql", "original_file_path": "macros/schema_tests/expression_is_true.sql", "name": "test_expression_is_true", "macro_sql": "{% test expression_is_true(model, expression, column_name=None, condition='1=1') %}\n{# T-SQL has no boolean data type so we use 1=1 which returns TRUE #}\n{# ref https://stackoverflow.com/a/7170753/3842610 #}\n {{ return(adapter.dispatch('test_expression_is_true', 'dbt_utils')(model, expression, column_name, condition)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.default__test_expression_is_true": {"unique_id": "macro.dbt_utils.default__test_expression_is_true", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/expression_is_true.sql", "original_file_path": "macros/schema_tests/expression_is_true.sql", "name": "default__test_expression_is_true", "macro_sql": "{% macro default__test_expression_is_true(model, expression, column_name, condition) %}\n\nwith meet_condition as (\n select * from {{ model }} where {{ condition }}\n)\n\nselect\n *\nfrom meet_condition\n{% if column_name is none %}\nwhere not({{ expression }})\n{%- else %}\nwhere not({{ column_name }} {{ expression }})\n{%- endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.test_sequential_values": {"unique_id": "macro.dbt_utils.test_sequential_values", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/sequential_values.sql", "original_file_path": "macros/schema_tests/sequential_values.sql", "name": "test_sequential_values", "macro_sql": "{% test sequential_values(model, column_name, interval=1, datepart=None) %}\n\n {{ return(adapter.dispatch('test_sequential_values', 'dbt_utils')(model, column_name, interval, datepart)) }}\n\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_sequential_values"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.default__test_sequential_values": {"unique_id": "macro.dbt_utils.default__test_sequential_values", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/sequential_values.sql", "original_file_path": "macros/schema_tests/sequential_values.sql", "name": "default__test_sequential_values", "macro_sql": "{% macro default__test_sequential_values(model, column_name, interval=1, datepart=None) %}\n\nwith windowed as (\n\n select\n {{ column_name }},\n lag({{ column_name }}) over (\n order by {{ column_name }}\n ) as previous_{{ column_name }}\n from {{ model }}\n),\n\nvalidation_errors as (\n select\n *\n from windowed\n {% if datepart %}\n where not(cast({{ column_name }} as {{ dbt_utils.type_timestamp() }})= cast({{ dbt_utils.dateadd(datepart, interval, 'previous_' + column_name) }} as {{ dbt_utils.type_timestamp() }}))\n {% else %}\n where not({{ column_name }} = previous_{{ column_name }} + {{ interval }})\n {% endif %}\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.test_not_null_where": {"unique_id": "macro.dbt_utils.test_not_null_where", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/test_not_null_where.sql", "original_file_path": "macros/schema_tests/test_not_null_where.sql", "name": "test_not_null_where", "macro_sql": "{% test not_null_where(model, column_name) %}\r\n {%- set deprecation_warning = '\r\n Warning: `dbt_utils.not_null_where` is no longer supported.\r\n Starting in dbt v0.20.0, the built-in `not_null` test supports a `where` config.\r\n ' -%}\r\n {%- do exceptions.warn(deprecation_warning) -%}\r\n {{ return(adapter.dispatch('test_not_null_where', 'dbt_utils')(model, column_name)) }}\r\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_not_null_where"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.default__test_not_null_where": {"unique_id": "macro.dbt_utils.default__test_not_null_where", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/test_not_null_where.sql", "original_file_path": "macros/schema_tests/test_not_null_where.sql", "name": "default__test_not_null_where", "macro_sql": "{% macro default__test_not_null_where(model, column_name) %}\r\n {{ return(test_not_null(model, column_name)) }}\r\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.test_not_null"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.test_equality": {"unique_id": "macro.dbt_utils.test_equality", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/equality.sql", "original_file_path": "macros/schema_tests/equality.sql", "name": "test_equality", "macro_sql": "{% test equality(model, compare_model, compare_columns=None) %}\n {{ return(adapter.dispatch('test_equality', 'dbt_utils')(model, compare_model, compare_columns)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_equality"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.default__test_equality": {"unique_id": "macro.dbt_utils.default__test_equality", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/equality.sql", "original_file_path": "macros/schema_tests/equality.sql", "name": "default__test_equality", "macro_sql": "{% macro default__test_equality(model, compare_model, compare_columns=None) %}\n\n{% set set_diff %}\n count(*) + coalesce(abs(\n sum(case when which_diff = 'a_minus_b' then 1 else 0 end) -\n sum(case when which_diff = 'b_minus_a' then 1 else 0 end)\n ), 0)\n{% endset %}\n\n{#-- Needs to be set at parse time, before we return '' below --#}\n{{ config(fail_calc = set_diff) }}\n\n{#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n{%- if not execute -%}\n {{ return('') }}\n{% endif %}\n\n-- setup\n{%- do dbt_utils._is_relation(model, 'test_equality') -%}\n\n{#-\nIf the compare_cols arg is provided, we can run this test without querying the\ninformation schema\u00a0\u2014 this allows the model to be an ephemeral model\n-#}\n\n{%- if not compare_columns -%}\n {%- do dbt_utils._is_ephemeral(model, 'test_equality') -%}\n {%- set compare_columns = adapter.get_columns_in_relation(model) | map(attribute='quoted') -%}\n{%- endif -%}\n\n{% set compare_cols_csv = compare_columns | join(', ') %}\n\nwith a as (\n\n select * from {{ model }}\n\n),\n\nb as (\n\n select * from {{ compare_model }}\n\n),\n\na_minus_b as (\n\n select {{compare_cols_csv}} from a\n {{ dbt_utils.except() }}\n select {{compare_cols_csv}} from b\n\n),\n\nb_minus_a as (\n\n select {{compare_cols_csv}} from b\n {{ dbt_utils.except() }}\n select {{compare_cols_csv}} from a\n\n),\n\nunioned as (\n\n select 'a_minus_b' as which_diff, * from a_minus_b\n union all\n select 'b_minus_a' as which_diff, * from b_minus_a\n\n)\n\nselect * from unioned\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt_utils.except"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.test_mutually_exclusive_ranges": {"unique_id": "macro.dbt_utils.test_mutually_exclusive_ranges", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/mutually_exclusive_ranges.sql", "original_file_path": "macros/schema_tests/mutually_exclusive_ranges.sql", "name": "test_mutually_exclusive_ranges", "macro_sql": "{% test mutually_exclusive_ranges(model, lower_bound_column, upper_bound_column, partition_by=None, gaps='allowed', zero_length_range_allowed=False) %}\n {{ return(adapter.dispatch('test_mutually_exclusive_ranges', 'dbt_utils')(model, lower_bound_column, upper_bound_column, partition_by, gaps, zero_length_range_allowed)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_mutually_exclusive_ranges"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.default__test_mutually_exclusive_ranges": {"unique_id": "macro.dbt_utils.default__test_mutually_exclusive_ranges", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/mutually_exclusive_ranges.sql", "original_file_path": "macros/schema_tests/mutually_exclusive_ranges.sql", "name": "default__test_mutually_exclusive_ranges", "macro_sql": "{% macro default__test_mutually_exclusive_ranges(model, lower_bound_column, upper_bound_column, partition_by=None, gaps='allowed', zero_length_range_allowed=False) %}\n{% if gaps == 'not_allowed' %}\n {% set allow_gaps_operator='=' %}\n {% set allow_gaps_operator_in_words='equal_to' %}\n{% elif gaps == 'allowed' %}\n {% set allow_gaps_operator='<=' %}\n {% set allow_gaps_operator_in_words='less_than_or_equal_to' %}\n{% elif gaps == 'required' %}\n {% set allow_gaps_operator='<' %}\n {% set allow_gaps_operator_in_words='less_than' %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`gaps` argument for mutually_exclusive_ranges test must be one of ['not_allowed', 'allowed', 'required'] Got: '\" ~ gaps ~\"'.'\"\n ) }}\n{% endif %}\n{% if not zero_length_range_allowed %}\n {% set allow_zero_length_operator='<' %}\n {% set allow_zero_length_operator_in_words='less_than' %}\n{% elif zero_length_range_allowed %}\n {% set allow_zero_length_operator='<=' %}\n {% set allow_zero_length_operator_in_words='less_than_or_equal_to' %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`zero_length_range_allowed` argument for mutually_exclusive_ranges test must be one of [true, false] Got: '\" ~ zero_length_range_allowed ~\"'.'\"\n ) }}\n{% endif %}\n\n{% set partition_clause=\"partition by \" ~ partition_by if partition_by else '' %}\n\nwith window_functions as (\n\n select\n {% if partition_by %}\n {{ partition_by }},\n {% endif %}\n {{ lower_bound_column }} as lower_bound,\n {{ upper_bound_column }} as upper_bound,\n\n lead({{ lower_bound_column }}) over (\n {{ partition_clause }}\n order by {{ lower_bound_column }}\n ) as next_lower_bound,\n\n row_number() over (\n {{ partition_clause }}\n order by {{ lower_bound_column }} desc\n ) = 1 as is_last_record\n\n from {{ model }}\n\n),\n\ncalc as (\n -- We want to return records where one of our assumptions fails, so we'll use\n -- the `not` function with `and` statements so we can write our assumptions nore cleanly\n select\n *,\n\n -- For each record: lower_bound should be < upper_bound.\n -- Coalesce it to return an error on the null case (implicit assumption\n -- these columns are not_null)\n coalesce(\n lower_bound {{ allow_zero_length_operator }} upper_bound,\n false\n ) as lower_bound_{{ allow_zero_length_operator_in_words }}_upper_bound,\n\n -- For each record: upper_bound {{ allow_gaps_operator }} the next lower_bound.\n -- Coalesce it to handle null cases for the last record.\n coalesce(\n upper_bound {{ allow_gaps_operator }} next_lower_bound,\n is_last_record,\n false\n ) as upper_bound_{{ allow_gaps_operator_in_words }}_next_lower_bound\n\n from window_functions\n\n),\n\nvalidation_errors as (\n\n select\n *\n from calc\n\n where not(\n -- THE FOLLOWING SHOULD BE TRUE --\n lower_bound_{{ allow_zero_length_operator_in_words }}_upper_bound\n and upper_bound_{{ allow_gaps_operator_in_words }}_next_lower_bound\n )\n)\n\nselect * from validation_errors\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.get_intervals_between": {"unique_id": "macro.dbt_utils.get_intervals_between", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "name": "get_intervals_between", "macro_sql": "{% macro get_intervals_between(start_date, end_date, datepart) -%}\n {{ return(adapter.dispatch('get_intervals_between', 'dbt_utils')(start_date, end_date, datepart)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_intervals_between"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.default__get_intervals_between": {"unique_id": "macro.dbt_utils.default__get_intervals_between", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "name": "default__get_intervals_between", "macro_sql": "{% macro default__get_intervals_between(start_date, end_date, datepart) -%}\n {%- call statement('get_intervals_between', fetch_result=True) %}\n\n select {{dbt_utils.datediff(start_date, end_date, datepart)}}\n\n {%- endcall -%}\n\n {%- set value_list = load_result('get_intervals_between') -%}\n\n {%- if value_list and value_list['data'] -%}\n {%- set values = value_list['data'] | map(attribute=0) | list %}\n {{ return(values[0]) }}\n {%- else -%}\n {{ return(1) }}\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_utils.datediff"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.date_spine": {"unique_id": "macro.dbt_utils.date_spine", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "name": "date_spine", "macro_sql": "{% macro date_spine(datepart, start_date, end_date) %}\n {{ return(adapter.dispatch('date_spine', 'dbt_utils')(datepart, start_date, end_date)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__date_spine"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.default__date_spine": {"unique_id": "macro.dbt_utils.default__date_spine", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "name": "default__date_spine", "macro_sql": "{% macro default__date_spine(datepart, start_date, end_date) %}\n\n/*\ncall as follows:\n\ndate_spine(\n \"day\",\n \"to_date('01/01/2016', 'mm/dd/yyyy')\",\n \"dateadd(week, 1, current_date)\"\n)\n\n*/\n\nwith rawdata as (\n\n {{dbt_utils.generate_series(\n dbt_utils.get_intervals_between(start_date, end_date, datepart)\n )}}\n\n),\n\nall_periods as (\n\n select (\n {{\n dbt_utils.dateadd(\n datepart,\n \"row_number() over (order by 1) - 1\",\n start_date\n )\n }}\n ) as date_{{datepart}}\n from rawdata\n\n),\n\nfiltered as (\n\n select *\n from all_periods\n where date_{{datepart}} <= {{ end_date }}\n\n)\n\nselect * from filtered\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.generate_series", "macro.dbt_utils.get_intervals_between", "macro.dbt_utils.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.nullcheck_table": {"unique_id": "macro.dbt_utils.nullcheck_table", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/nullcheck_table.sql", "original_file_path": "macros/sql/nullcheck_table.sql", "name": "nullcheck_table", "macro_sql": "{% macro nullcheck_table(relation) %}\n {{ return(adapter.dispatch('nullcheck_table', 'dbt_utils')(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__nullcheck_table"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.default__nullcheck_table": {"unique_id": "macro.dbt_utils.default__nullcheck_table", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/nullcheck_table.sql", "original_file_path": "macros/sql/nullcheck_table.sql", "name": "default__nullcheck_table", "macro_sql": "{% macro default__nullcheck_table(relation) %}\n\n {%- do dbt_utils._is_relation(relation, 'nullcheck_table') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'nullcheck_table') -%}\n {% set cols = adapter.get_columns_in_relation(relation) %}\n\n select {{ dbt_utils.nullcheck(cols) }}\n from {{relation}}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt_utils.nullcheck"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.get_relations_by_pattern": {"unique_id": "macro.dbt_utils.get_relations_by_pattern", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/get_relations_by_pattern.sql", "original_file_path": "macros/sql/get_relations_by_pattern.sql", "name": "get_relations_by_pattern", "macro_sql": "{% macro get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_relations_by_pattern', 'dbt_utils')(schema_pattern, table_pattern, exclude, database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_relations_by_pattern"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.default__get_relations_by_pattern": {"unique_id": "macro.dbt_utils.default__get_relations_by_pattern", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/get_relations_by_pattern.sql", "original_file_path": "macros/sql/get_relations_by_pattern.sql", "name": "default__get_relations_by_pattern", "macro_sql": "{% macro default__get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n {%- call statement('get_tables', fetch_result=True) %}\n\n {{ dbt_utils.get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude, database) }}\n\n {%- endcall -%}\n\n {%- set table_list = load_result('get_tables') -%}\n\n {%- if table_list and table_list['table'] -%}\n {%- set tbl_relations = [] -%}\n {%- for row in table_list['table'] -%}\n {%- set tbl_relation = api.Relation.create(\n database=database,\n schema=row.table_schema,\n identifier=row.table_name,\n type=row.table_type\n ) -%}\n {%- do tbl_relations.append(tbl_relation) -%}\n {%- endfor -%}\n\n {{ return(tbl_relations) }}\n {%- else -%}\n {{ return([]) }}\n {%- endif -%}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_utils.get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.get_powers_of_two": {"unique_id": "macro.dbt_utils.get_powers_of_two", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "name": "get_powers_of_two", "macro_sql": "{% macro get_powers_of_two(upper_bound) %}\n {{ return(adapter.dispatch('get_powers_of_two', 'dbt_utils')(upper_bound)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.default__get_powers_of_two": {"unique_id": "macro.dbt_utils.default__get_powers_of_two", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "name": "default__get_powers_of_two", "macro_sql": "{% macro default__get_powers_of_two(upper_bound) %}\n\n {% if upper_bound <= 0 %}\n {{ exceptions.raise_compiler_error(\"upper bound must be positive\") }}\n {% endif %}\n\n {% for _ in range(1, 100) %}\n {% if upper_bound <= 2 ** loop.index %}{{ return(loop.index) }}{% endif %}\n {% endfor %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.generate_series": {"unique_id": "macro.dbt_utils.generate_series", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "name": "generate_series", "macro_sql": "{% macro generate_series(upper_bound) %}\n {{ return(adapter.dispatch('generate_series', 'dbt_utils')(upper_bound)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__generate_series"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.default__generate_series": {"unique_id": "macro.dbt_utils.default__generate_series", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "name": "default__generate_series", "macro_sql": "{% macro default__generate_series(upper_bound) %}\n\n {% set n = dbt_utils.get_powers_of_two(upper_bound) %}\n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n {% for i in range(n) %}\n p{{i}}.generated_number * power(2, {{i}})\n {% if not loop.last %} + {% endif %}\n {% endfor %}\n + 1\n as generated_number\n\n from\n\n {% for i in range(n) %}\n p as p{{i}}\n {% if not loop.last %} cross join {% endif %}\n {% endfor %}\n\n )\n\n select *\n from unioned\n where generated_number <= {{upper_bound}}\n order by generated_number\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.get_relations_by_prefix": {"unique_id": "macro.dbt_utils.get_relations_by_prefix", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/get_relations_by_prefix.sql", "original_file_path": "macros/sql/get_relations_by_prefix.sql", "name": "get_relations_by_prefix", "macro_sql": "{% macro get_relations_by_prefix(schema, prefix, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_relations_by_prefix', 'dbt_utils')(schema, prefix, exclude, database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_relations_by_prefix"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.default__get_relations_by_prefix": {"unique_id": "macro.dbt_utils.default__get_relations_by_prefix", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/get_relations_by_prefix.sql", "original_file_path": "macros/sql/get_relations_by_prefix.sql", "name": "default__get_relations_by_prefix", "macro_sql": "{% macro default__get_relations_by_prefix(schema, prefix, exclude='', database=target.database) %}\n\n {%- call statement('get_tables', fetch_result=True) %}\n\n {{ dbt_utils.get_tables_by_prefix_sql(schema, prefix, exclude, database) }}\n\n {%- endcall -%}\n\n {%- set table_list = load_result('get_tables') -%}\n\n {%- if table_list and table_list['table'] -%}\n {%- set tbl_relations = [] -%}\n {%- for row in table_list['table'] -%}\n {%- set tbl_relation = api.Relation.create(\n database=database,\n schema=row.table_schema,\n identifier=row.table_name,\n type=row.table_type\n ) -%}\n {%- do tbl_relations.append(tbl_relation) -%}\n {%- endfor -%}\n\n {{ return(tbl_relations) }}\n {%- else -%}\n {{ return([]) }}\n {%- endif -%}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_utils.get_tables_by_prefix_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.get_tables_by_prefix_sql": {"unique_id": "macro.dbt_utils.get_tables_by_prefix_sql", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/get_tables_by_prefix_sql.sql", "original_file_path": "macros/sql/get_tables_by_prefix_sql.sql", "name": "get_tables_by_prefix_sql", "macro_sql": "{% macro get_tables_by_prefix_sql(schema, prefix, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_tables_by_prefix_sql', 'dbt_utils')(schema, prefix, exclude, database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_tables_by_prefix_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.default__get_tables_by_prefix_sql": {"unique_id": "macro.dbt_utils.default__get_tables_by_prefix_sql", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/get_tables_by_prefix_sql.sql", "original_file_path": "macros/sql/get_tables_by_prefix_sql.sql", "name": "default__get_tables_by_prefix_sql", "macro_sql": "{% macro default__get_tables_by_prefix_sql(schema, prefix, exclude='', database=target.database) %}\n\n {{ dbt_utils.get_tables_by_pattern_sql(\n schema_pattern = schema,\n table_pattern = prefix ~ '%',\n exclude = exclude,\n database = database\n ) }}\n \n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.star": {"unique_id": "macro.dbt_utils.star", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/star.sql", "original_file_path": "macros/sql/star.sql", "name": "star", "macro_sql": "{% macro star(from, relation_alias=False, except=[]) -%}\n {{ return(adapter.dispatch('star', 'dbt_utils')(from, relation_alias, except)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__star"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.default__star": {"unique_id": "macro.dbt_utils.default__star", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/star.sql", "original_file_path": "macros/sql/star.sql", "name": "default__star", "macro_sql": "{% macro default__star(from, relation_alias=False, except=[]) -%}\n {%- do dbt_utils._is_relation(from, 'star') -%}\n {%- do dbt_utils._is_ephemeral(from, 'star') -%}\n\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n {%- if not execute -%}\n {{ return('') }}\n {% endif %}\n\n {%- set include_cols = [] %}\n {%- set cols = adapter.get_columns_in_relation(from) -%}\n\n {%- for col in cols -%}\n\n {%- if col.column not in except -%}\n {% do include_cols.append(col.column) %}\n\n {%- endif %}\n {%- endfor %}\n\n {%- for col in include_cols %}\n\n {%- if relation_alias %}{{ relation_alias }}.{% else %}{%- endif -%}{{ adapter.quote(col)|trim }}\n {%- if not loop.last %},{{ '\\n ' }}{% endif %}\n\n {%- endfor -%}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.unpivot": {"unique_id": "macro.dbt_utils.unpivot", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/unpivot.sql", "original_file_path": "macros/sql/unpivot.sql", "name": "unpivot", "macro_sql": "{% macro unpivot(relation=none, cast_to='varchar', exclude=none, remove=none, field_name='field_name', value_name='value', table=none) -%}\n {{ return(adapter.dispatch('unpivot', 'dbt_utils')(relation, cast_to, exclude, remove, field_name, value_name, table)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__unpivot"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.default__unpivot": {"unique_id": "macro.dbt_utils.default__unpivot", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/unpivot.sql", "original_file_path": "macros/sql/unpivot.sql", "name": "default__unpivot", "macro_sql": "{% macro default__unpivot(relation=none, cast_to='varchar', exclude=none, remove=none, field_name='field_name', value_name='value', table=none) -%}\n\n {% if table %}\n {%- set error_message = '\n Warning: the `unpivot` macro no longer accepts a `table` parameter. \\\n This parameter will be deprecated in a future release of dbt-utils. Use the `relation` parameter instead. \\\n The {}.{} model triggered this warning. \\\n '.format(model.package_name, model.name) -%}\n {%- do exceptions.warn(error_message) -%}\n {% endif %}\n\n {% if relation and table %}\n {{ exceptions.raise_compiler_error(\"Error: both the `relation` and `table` parameters were provided to `unpivot` macro. Choose one only (we recommend `relation`).\") }}\n {% elif not relation and table %}\n {% set relation=table %}\n {% elif not relation and not table %}\n {{ exceptions.raise_compiler_error(\"Error: argument `relation` is required for `unpivot` macro.\") }}\n {% endif %}\n\n {%- set exclude = exclude if exclude is not none else [] %}\n {%- set remove = remove if remove is not none else [] %}\n\n {%- set include_cols = [] %}\n\n {%- set table_columns = {} %}\n\n {%- do table_columns.update({relation: []}) %}\n\n {%- do dbt_utils._is_relation(relation, 'unpivot') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'unpivot') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) %}\n\n {%- for col in cols -%}\n {%- if col.column.lower() not in remove|map('lower') and col.column.lower() not in exclude|map('lower') -%}\n {% do include_cols.append(col) %}\n {%- endif %}\n {%- endfor %}\n\n\n {%- for col in include_cols -%}\n select\n {%- for exclude_col in exclude %}\n {{ exclude_col }},\n {%- endfor %}\n\n cast('{{ col.column }}' as {{ dbt_utils.type_string() }}) as {{ field_name }},\n cast( {% if col.data_type == 'boolean' %}\n {{ dbt_utils.cast_bool_to_text(col.column) }}\n {% else %}\n {{ col.column }}\n {% endif %}\n as {{ cast_to }}) as {{ value_name }}\n\n from {{ relation }}\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n {%- endfor -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt_utils.type_string", "macro.dbt_utils.cast_bool_to_text"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.union_relations": {"unique_id": "macro.dbt_utils.union_relations", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/union.sql", "original_file_path": "macros/sql/union.sql", "name": "union_relations", "macro_sql": "{%- macro union_relations(relations, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_relation') -%}\n {{ return(adapter.dispatch('union_relations', 'dbt_utils')(relations, column_override, include, exclude, source_column_name)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__union_relations"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.default__union_relations": {"unique_id": "macro.dbt_utils.default__union_relations", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/union.sql", "original_file_path": "macros/sql/union.sql", "name": "default__union_relations", "macro_sql": "\n\n{%- macro default__union_relations(relations, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_relation') -%}\n\n {%- if exclude and include -%}\n {{ exceptions.raise_compiler_error(\"Both an exclude and include list were provided to the `union` macro. Only one is allowed\") }}\n {%- endif -%}\n\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. -#}\n {%- if not execute %}\n {{ return('') }}\n {% endif -%}\n\n {%- set column_override = column_override if column_override is not none else {} -%}\n\n {%- set relation_columns = {} -%}\n {%- set column_superset = {} -%}\n\n {%- for relation in relations -%}\n\n {%- do relation_columns.update({relation: []}) -%}\n\n {%- do dbt_utils._is_relation(relation, 'union_relations') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'union_relations') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) -%}\n {%- for col in cols -%}\n\n {#- If an exclude list was provided and the column is in the list, do nothing -#}\n {%- if exclude and col.column in exclude -%}\n\n {#- If an include list was provided and the column is not in the list, do nothing -#}\n {%- elif include and col.column not in include -%}\n\n {#- Otherwise add the column to the column superset -#}\n {%- else -%}\n\n {#- update the list of columns in this relation -#}\n {%- do relation_columns[relation].append(col.column) -%}\n\n {%- if col.column in column_superset -%}\n\n {%- set stored = column_superset[col.column] -%}\n {%- if col.is_string() and stored.is_string() and col.string_size() > stored.string_size() -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif %}\n\n {%- else -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif -%}\n\n {%- endif -%}\n\n {%- endfor -%}\n {%- endfor -%}\n\n {%- set ordered_column_names = column_superset.keys() -%}\n\n {%- for relation in relations %}\n\n (\n select\n\n cast({{ dbt_utils.string_literal(relation) }} as {{ dbt_utils.type_string() }}) as {{ source_column_name }},\n {% for col_name in ordered_column_names -%}\n\n {%- set col = column_superset[col_name] %}\n {%- set col_type = column_override.get(col.column, col.data_type) %}\n {%- set col_name = adapter.quote(col_name) if col_name in relation_columns[relation] else 'null' %}\n cast({{ col_name }} as {{ col_type }}) as {{ col.quoted }} {% if not loop.last %},{% endif -%}\n\n {%- endfor %}\n\n from {{ relation }}\n )\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n\n {%- endfor -%}\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt_utils.string_literal", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.group_by": {"unique_id": "macro.dbt_utils.group_by", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/groupby.sql", "original_file_path": "macros/sql/groupby.sql", "name": "group_by", "macro_sql": "{%- macro group_by(n) -%}\n {{ return(adapter.dispatch('group_by', 'dbt_utils')(n)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__group_by"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.default__group_by": {"unique_id": "macro.dbt_utils.default__group_by", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/groupby.sql", "original_file_path": "macros/sql/groupby.sql", "name": "default__group_by", "macro_sql": "\n\n{%- macro default__group_by(n) -%}\n\n group by {% for i in range(1, n + 1) -%}\n {{ i }}{{ ',' if not loop.last }} \n {%- endfor -%}\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.surrogate_key": {"unique_id": "macro.dbt_utils.surrogate_key", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/surrogate_key.sql", "original_file_path": "macros/sql/surrogate_key.sql", "name": "surrogate_key", "macro_sql": "{%- macro surrogate_key(field_list) -%}\n {# needed for safe_add to allow for non-keyword arguments see SO post #}\n {# https://stackoverflow.com/questions/13944751/args-kwargs-in-jinja2-macros #}\n {% set frustrating_jinja_feature = varargs %}\n {{ return(adapter.dispatch('surrogate_key', 'dbt_utils')(field_list, *varargs)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__surrogate_key"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.default__surrogate_key": {"unique_id": "macro.dbt_utils.default__surrogate_key", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/surrogate_key.sql", "original_file_path": "macros/sql/surrogate_key.sql", "name": "default__surrogate_key", "macro_sql": "\n\n{%- macro default__surrogate_key(field_list) -%}\n\n{%- if varargs|length >= 1 or field_list is string %}\n\n{%- set error_message = '\nWarning: the `surrogate_key` macro now takes a single list argument instead of \\\nmultiple string arguments. Support for multiple string arguments will be \\\ndeprecated in a future release of dbt-utils. The {}.{} model triggered this warning. \\\n'.format(model.package_name, model.name) -%}\n\n{%- do exceptions.warn(error_message) -%}\n\n{# first argument is not included in varargs, so add first element to field_list_xf #}\n{%- set field_list_xf = [field_list] -%}\n\n{%- for field in varargs %}\n{%- set _ = field_list_xf.append(field) -%}\n{%- endfor -%}\n\n{%- else -%}\n\n{# if using list, just set field_list_xf as field_list #}\n{%- set field_list_xf = field_list -%}\n\n{%- endif -%}\n\n\n{%- set fields = [] -%}\n\n{%- for field in field_list_xf -%}\n\n {%- set _ = fields.append(\n \"coalesce(cast(\" ~ field ~ \" as \" ~ dbt_utils.type_string() ~ \"), '')\"\n ) -%}\n\n {%- if not loop.last %}\n {%- set _ = fields.append(\"'-'\") -%}\n {%- endif -%}\n\n{%- endfor -%}\n\n{{dbt_utils.hash(dbt_utils.concat(fields))}}\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string", "macro.dbt_utils.hash", "macro.dbt_utils.concat"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.safe_add": {"unique_id": "macro.dbt_utils.safe_add", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/safe_add.sql", "original_file_path": "macros/sql/safe_add.sql", "name": "safe_add", "macro_sql": "{%- macro safe_add() -%}\n {# needed for safe_add to allow for non-keyword arguments see SO post #}\n {# https://stackoverflow.com/questions/13944751/args-kwargs-in-jinja2-macros #}\n {% set frustrating_jinja_feature = varargs %}\n {{ return(adapter.dispatch('safe_add', 'dbt_utils')(*varargs)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__safe_add"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.default__safe_add": {"unique_id": "macro.dbt_utils.default__safe_add", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/safe_add.sql", "original_file_path": "macros/sql/safe_add.sql", "name": "default__safe_add", "macro_sql": "\n\n{%- macro default__safe_add() -%}\n\n{% set fields = [] %}\n\n{%- for field in varargs -%}\n\n {% do fields.append(\"coalesce(\" ~ field ~ \", 0)\") %}\n\n{%- endfor -%}\n\n{{ fields|join(' +\\n ') }}\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.nullcheck": {"unique_id": "macro.dbt_utils.nullcheck", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/nullcheck.sql", "original_file_path": "macros/sql/nullcheck.sql", "name": "nullcheck", "macro_sql": "{% macro nullcheck(cols) %}\n {{ return(adapter.dispatch('nullcheck', 'dbt_utils')(cols)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__nullcheck"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.default__nullcheck": {"unique_id": "macro.dbt_utils.default__nullcheck", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/nullcheck.sql", "original_file_path": "macros/sql/nullcheck.sql", "name": "default__nullcheck", "macro_sql": "{% macro default__nullcheck(cols) %}\n{%- for col in cols %}\n\n {% if col.is_string() -%}\n\n nullif({{col.name}},'') as {{col.name}}\n\n {%- else -%}\n\n {{col.name}}\n\n {%- endif -%}\n\n{%- if not loop.last -%} , {%- endif -%}\n\n{%- endfor -%}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.get_tables_by_pattern_sql": {"unique_id": "macro.dbt_utils.get_tables_by_pattern_sql", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "name": "get_tables_by_pattern_sql", "macro_sql": "{% macro get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_tables_by_pattern_sql', 'dbt_utils')\n (schema_pattern, table_pattern, exclude, database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.bigquery__get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.default__get_tables_by_pattern_sql": {"unique_id": "macro.dbt_utils.default__get_tables_by_pattern_sql", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "name": "default__get_tables_by_pattern_sql", "macro_sql": "{% macro default__get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n select distinct\n table_schema as \"table_schema\",\n table_name as \"table_name\",\n case table_type\n when 'BASE TABLE' then 'table'\n when 'EXTERNAL TABLE' then 'external'\n when 'MATERIALIZED VIEW' then 'materializedview'\n else lower(table_type)\n end as \"table_type\"\n from {{ database }}.information_schema.tables\n where table_schema ilike '{{ schema_pattern }}'\n and table_name ilike '{{ table_pattern }}'\n and table_name not ilike '{{ exclude }}'\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.bigquery__get_tables_by_pattern_sql": {"unique_id": "macro.dbt_utils.bigquery__get_tables_by_pattern_sql", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "name": "bigquery__get_tables_by_pattern_sql", "macro_sql": "{% macro bigquery__get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n {% if '%' in schema_pattern %}\n {% set schemata=dbt_utils._bigquery__get_matching_schemata(schema_pattern, database) %}\n {% else %}\n {% set schemata=[schema_pattern] %}\n {% endif %}\n\n {% set sql %}\n {% for schema in schemata %}\n select distinct\n table_schema,\n table_name,\n case table_type\n when 'BASE TABLE' then 'table'\n else lower(table_type)\n end as table_type\n\n from {{ adapter.quote(database) }}.{{ schema }}.INFORMATION_SCHEMA.TABLES\n where lower(table_name) like lower ('{{ table_pattern }}')\n and lower(table_name) not like lower ('{{ exclude }}')\n\n {% if not loop.last %} union all {% endif %}\n\n {% endfor %}\n {% endset %}\n\n {{ return(sql) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._bigquery__get_matching_schemata"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils._bigquery__get_matching_schemata": {"unique_id": "macro.dbt_utils._bigquery__get_matching_schemata", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "name": "_bigquery__get_matching_schemata", "macro_sql": "{% macro _bigquery__get_matching_schemata(schema_pattern, database) %}\n {% if execute %}\n\n {% set sql %}\n select schema_name from {{ adapter.quote(database) }}.INFORMATION_SCHEMA.SCHEMATA\n where lower(schema_name) like lower('{{ schema_pattern }}')\n {% endset %}\n\n {% set results=run_query(sql) %}\n\n {% set schemata=results.columns['schema_name'].values() %}\n\n {{ return(schemata) }}\n\n {% else %}\n\n {{ return([]) }}\n\n {% endif %}\n\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.get_column_values": {"unique_id": "macro.dbt_utils.get_column_values", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/get_column_values.sql", "original_file_path": "macros/sql/get_column_values.sql", "name": "get_column_values", "macro_sql": "{% macro get_column_values(table, column, order_by='count(*) desc', max_records=none, default=none) -%}\n {{ return(adapter.dispatch('get_column_values', 'dbt_utils')(table, column, order_by, max_records, default)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_column_values"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.default__get_column_values": {"unique_id": "macro.dbt_utils.default__get_column_values", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/get_column_values.sql", "original_file_path": "macros/sql/get_column_values.sql", "name": "default__get_column_values", "macro_sql": "{% macro default__get_column_values(table, column, order_by='count(*) desc', max_records=none, default=none) -%}\n\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n {%- if not execute -%}\n {{ return('') }}\n {% endif %}\n\n {%- set target_relation = adapter.get_relation(database=table.database,\n schema=table.schema,\n identifier=table.identifier) -%}\n\n {%- call statement('get_column_values', fetch_result=true) %}\n\n {%- if not target_relation and default is none -%}\n\n {{ exceptions.raise_compiler_error(\"In get_column_values(): relation \" ~ table ~ \" does not exist and no default value was provided.\") }}\n\n {%- elif not target_relation and default is not none -%}\n\n {{ log(\"Relation \" ~ table ~ \" does not exist. Returning the default value: \" ~ default) }}\n\n {{ return(default) }}\n\n {%- else -%}\n\n\n select\n {{ column }} as value\n\n from {{ target_relation }}\n group by 1\n order by {{ order_by }}\n\n {% if max_records is not none %}\n limit {{ max_records }}\n {% endif %}\n\n {% endif %}\n\n {%- endcall -%}\n\n {%- set value_list = load_result('get_column_values') -%}\n\n {%- if value_list and value_list['data'] -%}\n {%- set values = value_list['data'] | map(attribute=0) | list %}\n {{ return(values) }}\n {%- else -%}\n {{ return(default) }}\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.pivot": {"unique_id": "macro.dbt_utils.pivot", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/pivot.sql", "original_file_path": "macros/sql/pivot.sql", "name": "pivot", "macro_sql": "{% macro pivot(column,\n values,\n alias=True,\n agg='sum',\n cmp='=',\n prefix='',\n suffix='',\n then_value=1,\n else_value=0,\n quote_identifiers=True,\n distinct=False) %}\n {{ return(adapter.dispatch('pivot', 'dbt_utils')(column, values, alias, agg, cmp, prefix, suffix, then_value, else_value, quote_identifiers, distinct)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__pivot"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.default__pivot": {"unique_id": "macro.dbt_utils.default__pivot", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/pivot.sql", "original_file_path": "macros/sql/pivot.sql", "name": "default__pivot", "macro_sql": "{% macro default__pivot(column,\n values,\n alias=True,\n agg='sum',\n cmp='=',\n prefix='',\n suffix='',\n then_value=1,\n else_value=0,\n quote_identifiers=True,\n distinct=False) %}\n {% for v in values %}\n {{ agg }}(\n {% if distinct %} distinct {% endif %}\n case\n when {{ column }} {{ cmp }} '{{ v }}'\n then {{ then_value }}\n else {{ else_value }}\n end\n )\n {% if alias %}\n {% if quote_identifiers %}\n as {{ adapter.quote(prefix ~ v ~ suffix) }}\n {% else %}\n as {{ dbt_utils.slugify(prefix ~ v ~ suffix) }}\n {% endif %}\n {% endif %}\n {% if not loop.last %},{% endif %}\n {% endfor %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.slugify"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.get_query_results_as_dict": {"unique_id": "macro.dbt_utils.get_query_results_as_dict", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/get_query_results_as_dict.sql", "original_file_path": "macros/sql/get_query_results_as_dict.sql", "name": "get_query_results_as_dict", "macro_sql": "{% macro get_query_results_as_dict(query) %}\n {{ return(adapter.dispatch('get_query_results_as_dict', 'dbt_utils')(query)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_query_results_as_dict"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.default__get_query_results_as_dict": {"unique_id": "macro.dbt_utils.default__get_query_results_as_dict", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/get_query_results_as_dict.sql", "original_file_path": "macros/sql/get_query_results_as_dict.sql", "name": "default__get_query_results_as_dict", "macro_sql": "{% macro default__get_query_results_as_dict(query) %}\n\n{# This macro returns a dictionary of the form {column_name: (tuple_of_results)} #}\n\n {%- call statement('get_query_results', fetch_result=True,auto_begin=false) -%}\n\n {{ query }}\n\n {%- endcall -%}\n\n {% set sql_results={} %}\n\n {%- if execute -%}\n {% set sql_results_table = load_result('get_query_results').table.columns %}\n {% for column_name, column in sql_results_table.items() %}\n {% do sql_results.update({column_name: column.values()}) %}\n {% endfor %}\n {%- endif -%}\n\n {{ return(sql_results) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.degrees_to_radians": {"unique_id": "macro.dbt_utils.degrees_to_radians", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "name": "degrees_to_radians", "macro_sql": "{% macro degrees_to_radians(degrees) -%}\n acos(-1) * {{degrees}} / 180\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.haversine_distance": {"unique_id": "macro.dbt_utils.haversine_distance", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "name": "haversine_distance", "macro_sql": "{% macro haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n {{ return(adapter.dispatch('haversine_distance', 'dbt_utils')(lat1,lon1,lat2,lon2,unit)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.bigquery__haversine_distance"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.default__haversine_distance": {"unique_id": "macro.dbt_utils.default__haversine_distance", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "name": "default__haversine_distance", "macro_sql": "{% macro default__haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n{%- if unit == 'mi' %}\n {% set conversion_rate = 1 %}\n{% elif unit == 'km' %}\n {% set conversion_rate = 1.60934 %}\n{% else %}\n {{ exceptions.raise_compiler_error(\"unit input must be one of 'mi' or 'km'. Got \" ~ unit) }}\n{% endif %}\n\n 2 * 3961 * asin(sqrt(power((sin(radians(({{ lat2 }} - {{ lat1 }}) / 2))), 2) +\n cos(radians({{lat1}})) * cos(radians({{lat2}})) *\n power((sin(radians(({{ lon2 }} - {{ lon1 }}) / 2))), 2))) * {{ conversion_rate }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.dbt_utils.bigquery__haversine_distance": {"unique_id": "macro.dbt_utils.bigquery__haversine_distance", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "name": "bigquery__haversine_distance", "macro_sql": "{% macro bigquery__haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n{% set radians_lat1 = dbt_utils.degrees_to_radians(lat1) %}\n{% set radians_lat2 = dbt_utils.degrees_to_radians(lat2) %}\n{% set radians_lon1 = dbt_utils.degrees_to_radians(lon1) %}\n{% set radians_lon2 = dbt_utils.degrees_to_radians(lon2) %}\n{%- if unit == 'mi' %}\n {% set conversion_rate = 1 %}\n{% elif unit == 'km' %}\n {% set conversion_rate = 1.60934 %}\n{% else %}\n {{ exceptions.raise_compiler_error(\"unit input must be one of 'mi' or 'km'. Got \" ~ unit) }}\n{% endif %}\n 2 * 3961 * asin(sqrt(power(sin(({{ radians_lat2 }} - {{ radians_lat1 }}) / 2), 2) +\n cos({{ radians_lat1 }}) * cos({{ radians_lat2 }}) *\n power(sin(({{ radians_lon2 }} - {{ radians_lon1 }}) / 2), 2))) * {{ conversion_rate }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.degrees_to_radians"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.fivetran_utils.enabled_vars": {"unique_id": "macro.fivetran_utils.enabled_vars", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/enabled_vars.sql", "original_file_path": "macros/enabled_vars.sql", "name": "enabled_vars", "macro_sql": "{% macro enabled_vars(vars) %}\n\n{% for v in vars %}\n \n {% if var(v, True) == False %}\n {{ return(False) }}\n {% endif %}\n\n{% endfor %}\n\n{{ return(True) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.fivetran_utils.percentile": {"unique_id": "macro.fivetran_utils.percentile", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "name": "percentile", "macro_sql": "{% macro percentile(percentile_field, partition_field, percent) -%}\n\n{{ adapter.dispatch('percentile', 'fivetran_utils') (percentile_field, partition_field, percent) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.bigquery__percentile"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.fivetran_utils.default__percentile": {"unique_id": "macro.fivetran_utils.default__percentile", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "name": "default__percentile", "macro_sql": "{% macro default__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percent }} )\n within group ( order by {{ percentile_field }} )\n over ( partition by {{ partition_field }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.fivetran_utils.redshift__percentile": {"unique_id": "macro.fivetran_utils.redshift__percentile", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "name": "redshift__percentile", "macro_sql": "{% macro redshift__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percent }} )\n within group ( order by {{ percentile_field }} )\n over ( partition by {{ partition_field }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.fivetran_utils.bigquery__percentile": {"unique_id": "macro.fivetran_utils.bigquery__percentile", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "name": "bigquery__percentile", "macro_sql": "{% macro bigquery__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percentile_field }}, \n {{ percent }}) \n over (partition by {{ partition_field }} \n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.fivetran_utils.postgres__percentile": {"unique_id": "macro.fivetran_utils.postgres__percentile", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "name": "postgres__percentile", "macro_sql": "{% macro postgres__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percent }} )\n within group ( order by {{ percentile_field }} )\n /* have to group by partition field */\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.fivetran_utils.spark__percentile": {"unique_id": "macro.fivetran_utils.spark__percentile", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "name": "spark__percentile", "macro_sql": "{% macro spark__percentile(percentile_field, partition_field, percent) %}\n\n percentile( \n {{ percentile_field }}, \n {{ percent }}) \n over (partition by {{ partition_field }} \n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.fivetran_utils.pivot_json_extract": {"unique_id": "macro.fivetran_utils.pivot_json_extract", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/pivot_json_extract.sql", "original_file_path": "macros/pivot_json_extract.sql", "name": "pivot_json_extract", "macro_sql": "{% macro pivot_json_extract(string, list_of_properties) %}\n\n{%- for property in list_of_properties -%}\n\nreplace( {{ fivetran_utils.json_extract(string, property) }}, '\"', '') as {{ property | replace(' ', '_') | lower }}\n\n{%- if not loop.last -%},{%- endif %}\n{% endfor -%}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.json_extract"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.fivetran_utils.json_parse": {"unique_id": "macro.fivetran_utils.json_parse", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "name": "json_parse", "macro_sql": "{% macro json_parse(string, string_path) -%}\n\n{{ adapter.dispatch('json_parse', 'fivetran_utils') (string, string_path) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.bigquery__json_parse"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.fivetran_utils.default__json_parse": {"unique_id": "macro.fivetran_utils.default__json_parse", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "name": "default__json_parse", "macro_sql": "{% macro default__json_parse(string, string_path) %}\n\n json_extract_path_text({{string}}, {%- for s in string_path -%}'{{ s }}'{%- if not loop.last -%},{%- endif -%}{%- endfor -%} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.fivetran_utils.redshift__json_parse": {"unique_id": "macro.fivetran_utils.redshift__json_parse", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "name": "redshift__json_parse", "macro_sql": "{% macro redshift__json_parse(string, string_path) %}\n\n json_extract_path_text({{string}}, {%- for s in string_path -%}'{{ s }}'{%- if not loop.last -%},{%- endif -%}{%- endfor -%} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.fivetran_utils.bigquery__json_parse": {"unique_id": "macro.fivetran_utils.bigquery__json_parse", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "name": "bigquery__json_parse", "macro_sql": "{% macro bigquery__json_parse(string, string_path) %}\n\n \n json_extract_scalar({{string}}, '$.{%- for s in string_path -%}{{ s }}{%- if not loop.last -%}.{%- endif -%}{%- endfor -%} ')\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.fivetran_utils.postgres__json_parse": {"unique_id": "macro.fivetran_utils.postgres__json_parse", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "name": "postgres__json_parse", "macro_sql": "{% macro postgres__json_parse(string, string_path) %}\n\n {{string}}::json #>> '{ {%- for s in string_path -%}{{ s }}{%- if not loop.last -%},{%- endif -%}{%- endfor -%} }'\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.fivetran_utils.snowflake__json_parse": {"unique_id": "macro.fivetran_utils.snowflake__json_parse", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "name": "snowflake__json_parse", "macro_sql": "{% macro snowflake__json_parse(string, string_path) %}\n\n parse_json( {{string}} ) {%- for s in string_path -%}{% if s is number %}[{{ s }}]{% else %}['{{ s }}']{% endif %}{%- endfor -%}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.fivetran_utils.spark__json_parse": {"unique_id": "macro.fivetran_utils.spark__json_parse", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "name": "spark__json_parse", "macro_sql": "{% macro spark__json_parse(string, string_path) %}\n\n {{string}} : {%- for s in string_path -%}{% if s is number %}[{{ s }}]{% else %}['{{ s }}']{% endif %}{%- endfor -%}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.fivetran_utils.max_bool": {"unique_id": "macro.fivetran_utils.max_bool", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "name": "max_bool", "macro_sql": "{% macro max_bool(boolean_field) -%}\n\n{{ adapter.dispatch('max_bool', 'fivetran_utils') (boolean_field) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.bigquery__max_bool"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.fivetran_utils.default__max_bool": {"unique_id": "macro.fivetran_utils.default__max_bool", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "name": "default__max_bool", "macro_sql": "{% macro default__max_bool(boolean_field) %}\n\n bool_or( {{ boolean_field }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.fivetran_utils.snowflake__max_bool": {"unique_id": "macro.fivetran_utils.snowflake__max_bool", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "name": "snowflake__max_bool", "macro_sql": "{% macro snowflake__max_bool(boolean_field) %}\n\n max( {{ boolean_field }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.fivetran_utils.bigquery__max_bool": {"unique_id": "macro.fivetran_utils.bigquery__max_bool", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "name": "bigquery__max_bool", "macro_sql": "{% macro bigquery__max_bool(boolean_field) %}\n\n max( {{ boolean_field }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.fivetran_utils.seed_data_helper": {"unique_id": "macro.fivetran_utils.seed_data_helper", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/seed_data_helper.sql", "original_file_path": "macros/seed_data_helper.sql", "name": "seed_data_helper", "macro_sql": "{% macro seed_data_helper(seed_name, warehouses) %}\n\n{% if target.type in warehouses %}\n {% for w in warehouses %}\n {% if target.type == w %}\n {{ return(ref(seed_name ~ \"_\" ~ w ~ \"\")) }}\n {% endif %}\n {% endfor %}\n{% else %}\n{{ return(ref(seed_name)) }}\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.fivetran_utils.fill_pass_through_columns": {"unique_id": "macro.fivetran_utils.fill_pass_through_columns", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/fill_pass_through_columns.sql", "original_file_path": "macros/fill_pass_through_columns.sql", "name": "fill_pass_through_columns", "macro_sql": "{% macro fill_pass_through_columns(pass_through_variable) %}\n\n{% if var(pass_through_variable) %}\n {% for field in var(pass_through_variable) %}\n {% if field.transform_sql %}\n , {{ field.transform_sql }} as {{ field.alias if field.alias else field.name }}\n {% else %}\n , {{ field.alias if field.alias else field.name }}\n {% endif %}\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.fivetran_utils.string_agg": {"unique_id": "macro.fivetran_utils.string_agg", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "name": "string_agg", "macro_sql": "{% macro string_agg(field_to_agg, delimiter) -%}\n\n{{ adapter.dispatch('string_agg', 'fivetran_utils') (field_to_agg, delimiter) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__string_agg"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.fivetran_utils.default__string_agg": {"unique_id": "macro.fivetran_utils.default__string_agg", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "name": "default__string_agg", "macro_sql": "{% macro default__string_agg(field_to_agg, delimiter) %}\n string_agg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.fivetran_utils.snowflake__string_agg": {"unique_id": "macro.fivetran_utils.snowflake__string_agg", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "name": "snowflake__string_agg", "macro_sql": "{% macro snowflake__string_agg(field_to_agg, delimiter) %}\n listagg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.fivetran_utils.redshift__string_agg": {"unique_id": "macro.fivetran_utils.redshift__string_agg", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "name": "redshift__string_agg", "macro_sql": "{% macro redshift__string_agg(field_to_agg, delimiter) %}\n listagg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.fivetran_utils.spark__string_agg": {"unique_id": "macro.fivetran_utils.spark__string_agg", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "name": "spark__string_agg", "macro_sql": "{% macro spark__string_agg(field_to_agg, delimiter) %}\n -- collect set will remove duplicates\n replace(replace(replace(cast( collect_set({{ field_to_agg }}) as string), '[', ''), ']', ''), ', ', {{ delimiter }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.fivetran_utils.timestamp_diff": {"unique_id": "macro.fivetran_utils.timestamp_diff", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "name": "timestamp_diff", "macro_sql": "{% macro timestamp_diff(first_date, second_date, datepart) %}\n {{ adapter.dispatch('timestamp_diff', 'fivetran_utils')(first_date, second_date, datepart) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.bigquery__timestamp_diff"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.fivetran_utils.default__timestamp_diff": {"unique_id": "macro.fivetran_utils.default__timestamp_diff", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "name": "default__timestamp_diff", "macro_sql": "{% macro default__timestamp_diff(first_date, second_date, datepart) %}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.fivetran_utils.redshift__timestamp_diff": {"unique_id": "macro.fivetran_utils.redshift__timestamp_diff", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "name": "redshift__timestamp_diff", "macro_sql": "{% macro redshift__timestamp_diff(first_date, second_date, datepart) %}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.fivetran_utils.bigquery__timestamp_diff": {"unique_id": "macro.fivetran_utils.bigquery__timestamp_diff", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "name": "bigquery__timestamp_diff", "macro_sql": "{% macro bigquery__timestamp_diff(first_date, second_date, datepart) %}\n\n timestamp_diff(\n {{second_date}},\n {{first_date}},\n {{datepart}}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.fivetran_utils.postgres__timestamp_diff": {"unique_id": "macro.fivetran_utils.postgres__timestamp_diff", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "name": "postgres__timestamp_diff", "macro_sql": "{% macro postgres__timestamp_diff(first_date, second_date, datepart) %}\n\n {% if datepart == 'year' %}\n (date_part('year', ({{second_date}})::date) - date_part('year', ({{first_date}})::date))\n {% elif datepart == 'quarter' %}\n ({{ dbt_utils.datediff(first_date, second_date, 'year') }} * 4 + date_part('quarter', ({{second_date}})::date) - date_part('quarter', ({{first_date}})::date))\n {% elif datepart == 'month' %}\n ({{ dbt_utils.datediff(first_date, second_date, 'year') }} * 12 + date_part('month', ({{second_date}})::date) - date_part('month', ({{first_date}})::date))\n {% elif datepart == 'day' %}\n (({{second_date}})::date - ({{first_date}})::date)\n {% elif datepart == 'week' %}\n ({{ dbt_utils.datediff(first_date, second_date, 'day') }} / 7 + case\n when date_part('dow', ({{first_date}})::timestamp) <= date_part('dow', ({{second_date}})::timestamp) then\n case when {{first_date}} <= {{second_date}} then 0 else -1 end\n else\n case when {{first_date}} <= {{second_date}} then 1 else 0 end\n end)\n {% elif datepart == 'hour' %}\n ({{ dbt_utils.datediff(first_date, second_date, 'day') }} * 24 + date_part('hour', ({{second_date}})::timestamp) - date_part('hour', ({{first_date}})::timestamp))\n {% elif datepart == 'minute' %}\n ({{ dbt_utils.datediff(first_date, second_date, 'hour') }} * 60 + date_part('minute', ({{second_date}})::timestamp) - date_part('minute', ({{first_date}})::timestamp))\n {% elif datepart == 'second' %}\n ({{ dbt_utils.datediff(first_date, second_date, 'minute') }} * 60 + floor(date_part('second', ({{second_date}})::timestamp)) - floor(date_part('second', ({{first_date}})::timestamp)))\n {% elif datepart == 'millisecond' %}\n ({{ dbt_utils.datediff(first_date, second_date, 'minute') }} * 60000 + floor(date_part('millisecond', ({{second_date}})::timestamp)) - floor(date_part('millisecond', ({{first_date}})::timestamp)))\n {% elif datepart == 'microsecond' %}\n ({{ dbt_utils.datediff(first_date, second_date, 'minute') }} * 60000000 + floor(date_part('microsecond', ({{second_date}})::timestamp)) - floor(date_part('microsecond', ({{first_date}})::timestamp)))\n {% else %}\n {{ exceptions.raise_compiler_error(\"Unsupported datepart for macro datediff in postgres: {!r}\".format(datepart)) }}\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.datediff"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.fivetran_utils.generate_columns_macro": {"unique_id": "macro.fivetran_utils.generate_columns_macro", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/generate_columns_macro.sql", "original_file_path": "macros/generate_columns_macro.sql", "name": "generate_columns_macro", "macro_sql": "{% macro generate_columns_macro(table_name, schema_name, database_name=target.database) %}\n\n{% set columns = get_columns_for_macro(table_name, schema_name, database_name) %}\n\n{% set jinja_macro=[] %}\n\n{% do jinja_macro.append('{% macro get_' ~ table_name ~ '_columns() %}') %}\n{% do jinja_macro.append('') %}\n{% do jinja_macro.append('{% set columns = [') %}\n\n{% for col in columns %}\n{% do jinja_macro.append(' ' ~ col ~ (',' if not loop.last)) %}\n{% endfor %}\n\n{% do jinja_macro.append('] %}') %}\n{% do jinja_macro.append('') %}\n{% do jinja_macro.append('{{ return(columns) }}') %}\n{% do jinja_macro.append('') %}\n{% do jinja_macro.append('{% endmacro %}') %}\n\n{% if execute %}\n\n {% set joined = jinja_macro | join ('\\n') %}\n {{ log(joined, info=True) }}\n {% do return(joined) %}\n\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.get_columns_for_macro"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.fivetran_utils.source_relation": {"unique_id": "macro.fivetran_utils.source_relation", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/source_relation.sql", "original_file_path": "macros/source_relation.sql", "name": "source_relation", "macro_sql": "{% macro source_relation() -%}\n\n{{ adapter.dispatch('source_relation', 'fivetran_utils') () }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__source_relation"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.fivetran_utils.default__source_relation": {"unique_id": "macro.fivetran_utils.default__source_relation", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/source_relation.sql", "original_file_path": "macros/source_relation.sql", "name": "default__source_relation", "macro_sql": "{% macro default__source_relation() %}\n\n{% if var('union_schemas', none) %}\n, case\n {% for schema in var('union_schemas') %}\n when lower(replace(replace(_dbt_source_relation,'\"',''),'`','')) like '%.{{ schema|lower }}.%' then '{{ schema|lower }}'\n {% endfor %}\n end as source_relation\n{% elif var('union_databases', none) %}\n, case\n {% for database in var('union_databases') %}\n when lower(replace(replace(_dbt_source_relation,'\"',''),'`','')) like '%{{ database|lower }}.%' then '{{ database|lower }}'\n {% endfor %}\n end as source_relation\n{% else %}\n, '' as source_relation\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.fivetran_utils.first_value": {"unique_id": "macro.fivetran_utils.first_value", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "name": "first_value", "macro_sql": "{% macro first_value(first_value_field, partition_field, order_by_field, order=\"asc\") -%}\n\n{{ adapter.dispatch('first_value', 'fivetran_utils') (first_value_field, partition_field, order_by_field, order) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__first_value"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.fivetran_utils.default__first_value": {"unique_id": "macro.fivetran_utils.default__first_value", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "name": "default__first_value", "macro_sql": "{% macro default__first_value(first_value_field, partition_field, order_by_field, order=\"asc\") %}\n\n first_value( {{ first_value_field }} ignore nulls ) over (partition by {{ partition_field }} order by {{ order_by_field }} {{ order }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.fivetran_utils.redshift__first_value": {"unique_id": "macro.fivetran_utils.redshift__first_value", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "name": "redshift__first_value", "macro_sql": "{% macro redshift__first_value(first_value_field, partition_field, order_by_field, order=\"asc\") %}\n\n first_value( {{ first_value_field }} ignore nulls ) over (partition by {{ partition_field }} order by {{ order_by_field }} {{ order }} , {{ partition_field }} rows unbounded preceding )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.fivetran_utils.add_pass_through_columns": {"unique_id": "macro.fivetran_utils.add_pass_through_columns", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/add_pass_through_columns.sql", "original_file_path": "macros/add_pass_through_columns.sql", "name": "add_pass_through_columns", "macro_sql": "{% macro add_pass_through_columns(base_columns, pass_through_var) %}\n\n {% if pass_through_var %}\n\n {% for column in pass_through_var %}\n\n {% do base_columns.append({ \"name\": column.name, \"alias\": column.alias }) if column.alias else base_columns.append({ \"name\": column.name }) %}\n\n {% endfor %}\n\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.fivetran_utils.staging_models_automation": {"unique_id": "macro.fivetran_utils.staging_models_automation", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/staging_models_automation.sql", "original_file_path": "macros/staging_models_automation.sql", "name": "staging_models_automation", "macro_sql": "{% macro staging_models_automation(package, source_schema, source_database, tables) %}\n\n{% set package = \"\"~ package ~\"\" %}\n{% set source_schema = \"\"~ source_schema ~\"\" %}\n{% set source_database = \"\"~ source_database ~\"\" %}\n\n{% set zsh_command = \"source dbt_modules/fivetran_utils/columns_setup.sh '../dbt_\"\"\"~ package ~\"\"\"_source' stg_\"\"\"~ package ~\"\"\" \"\"\"~ source_database ~\"\"\" \"\"\"~ source_schema ~\"\"\" \" %}\n\n{% for t in tables %}\n {% if t != tables[-1] %}\n {% set help_command = zsh_command + t + \" && \\n\" %}\n\n {% else %}\n {% set help_command = zsh_command + t %}\n\n {% endif %}\n {{ log(help_command, info=True) }}\n\n{% endfor %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.fivetran_utils.union_relations": {"unique_id": "macro.fivetran_utils.union_relations", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/union_relations.sql", "original_file_path": "macros/union_relations.sql", "name": "union_relations", "macro_sql": "{%- macro union_relations(relations, aliases=none, column_override=none, include=[], exclude=[], source_column_name=none) -%}\n\n {%- if exclude and include -%}\n {{ exceptions.raise_compiler_error(\"Both an exclude and include list were provided to the `union` macro. Only one is allowed\") }}\n {%- endif -%}\n\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. -#}\n {%- if not execute %}\n {{ return('') }}\n {% endif -%}\n\n {%- set column_override = column_override if column_override is not none else {} -%}\n {%- set source_column_name = source_column_name if source_column_name is not none else '_dbt_source_relation' -%}\n\n {%- set relation_columns = {} -%}\n {%- set column_superset = {} -%}\n\n {%- for relation in relations -%}\n\n {%- do relation_columns.update({relation: []}) -%}\n\n {%- do dbt_utils._is_relation(relation, 'union_relations') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) -%}\n {%- for col in cols -%}\n\n {#- If an exclude list was provided and the column is in the list, do nothing -#}\n {%- if exclude and col.column in exclude -%}\n\n {#- If an include list was provided and the column is not in the list, do nothing -#}\n {%- elif include and col.column not in include -%}\n\n {#- Otherwise add the column to the column superset -#}\n {%- else -%}\n\n {#- update the list of columns in this relation -#}\n {%- do relation_columns[relation].append(col.column) -%}\n\n {%- if col.column in column_superset -%}\n\n {%- set stored = column_superset[col.column] -%}\n {%- if col.is_string() and stored.is_string() and col.string_size() > stored.string_size() -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif %}\n\n {%- else -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif -%}\n\n {%- endif -%}\n\n {%- endfor -%}\n {%- endfor -%}\n\n {%- set ordered_column_names = column_superset.keys() -%}\n\n {%- for relation in relations %}\n\n (\n select\n\n cast({{ dbt_utils.string_literal(relation) }} as {{ dbt_utils.type_string() }}) as {{ source_column_name }},\n {% for col_name in ordered_column_names -%}\n\n {%- set col = column_superset[col_name] %}\n {%- set col_type = column_override.get(col.column, col.data_type) %}\n {%- set col_name = adapter.quote(col_name) if col_name in relation_columns[relation] else 'null' %}\n cast({{ col_name }} as {{ col_type }}) as {{ col.quoted }} {% if not loop.last %},{% endif -%}\n\n {%- endfor %}\n\n from {{ aliases[loop.index0] if aliases else relation }}\n )\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n\n {%- endfor -%}\n\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils.string_literal", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.fivetran_utils.union_tables": {"unique_id": "macro.fivetran_utils.union_tables", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/union_relations.sql", "original_file_path": "macros/union_relations.sql", "name": "union_tables", "macro_sql": "{%- macro union_tables(tables, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_table') -%}\n\n {%- do exceptions.warn(\"Warning: the `union_tables` macro is no longer supported and will be deprecated in a future release of dbt-utils. Use the `union_relations` macro instead\") -%}\n\n {{ return(dbt_utils.union_relations(tables, column_override, include, exclude, source_column_name)) }}\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.union_relations"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.fivetran_utils.snowflake_seed_data": {"unique_id": "macro.fivetran_utils.snowflake_seed_data", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/snowflake_seed_data.sql", "original_file_path": "macros/snowflake_seed_data.sql", "name": "snowflake_seed_data", "macro_sql": "{% macro snowflake_seed_data(seed_name) %}\n\n{% if target.type == 'snowflake' %}\n{{ return(ref(seed_name ~ '_snowflake')) }}\n{% else %}\n{{ return(ref(seed_name)) }}\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.fivetran_utils.default__get_columns_for_macro": {"unique_id": "macro.fivetran_utils.default__get_columns_for_macro", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/get_columns_for_macro.sql", "original_file_path": "macros/get_columns_for_macro.sql", "name": "default__get_columns_for_macro", "macro_sql": "{% macro default__get_columns_for_macro(table_name, schema_name, database_name=target.database) %}\n\n{% set query %}\n\nselect\n concat(\n '{\"name\": \"', \n lower(column_name), \n '\", \"datatype\": ',\n case\n when lower(data_type) like '%timestamp%' then 'dbt_utils.type_timestamp()' \n when lower(data_type) = 'text' then 'dbt_utils.type_string()' \n when lower(data_type) = 'boolean' then '\"boolean\"'\n when lower(data_type) = 'number' then 'dbt_utils.type_numeric()' \n when lower(data_type) = 'float' then 'dbt_utils.type_float()' \n when lower(data_type) = 'date' then '\"date\"'\n end,\n '}')\nfrom {{ database_name }}.information_schema.columns\nwhere lower(table_name) = '{{ table_name }}'\nand lower(table_schema) = '{{ schema_name }}'\norder by 1\n\n{% endset %}\n\n{% set results = run_query(query) %}\n{% set results_list = results.columns[0].values() %}}\n\n{{ return(results_list) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.fivetran_utils.bigquery__get_columns_for_macro": {"unique_id": "macro.fivetran_utils.bigquery__get_columns_for_macro", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/get_columns_for_macro.sql", "original_file_path": "macros/get_columns_for_macro.sql", "name": "bigquery__get_columns_for_macro", "macro_sql": "{% macro bigquery__get_columns_for_macro(table_name, schema_name, database_name=target.database) %}\n\n{% set query %}\n\nselect\n concat(\n '{\"name\": \"', \n lower(column_name), \n '\", \"datatype\": ',\n case\n when lower(data_type) like '%timestamp%' then 'dbt_utils.type_timestamp()' \n when lower(data_type) = 'string' then 'dbt_utils.type_string()' \n when lower(data_type) = 'bool' then '\"boolean\"'\n when lower(data_type) = 'numeric' then 'dbt_utils.type_numeric()' \n when lower(data_type) = 'float64' then 'dbt_utils.type_float()' \n when lower(data_type) = 'int64' then 'dbt_utils.type_int()' \n when lower(data_type) = 'date' then '\"date\"' \n when lower(data_type) = 'datetime' then '\"datetime\"' \n end,\n '}')\nfrom `{{ database_name }}`.{{ schema_name }}.INFORMATION_SCHEMA.COLUMNS\nwhere lower(table_name) = '{{ table_name }}'\nand lower(table_schema) = '{{ schema_name }}'\norder by 1\n\n{% endset %}\n\n{% set results = run_query(query) %}\n{% set results_list = results.columns[0].values() %}}\n\n{{ return(results_list) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.fivetran_utils.get_columns_for_macro": {"unique_id": "macro.fivetran_utils.get_columns_for_macro", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/get_columns_for_macro.sql", "original_file_path": "macros/get_columns_for_macro.sql", "name": "get_columns_for_macro", "macro_sql": "{% macro get_columns_for_macro(table_name, schema_name, database_name) -%}\n {{ return(adapter.dispatch('get_columns_for_macro')(table_name, schema_name, database_name)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.bigquery__get_columns_for_macro"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200847}, "macro.fivetran_utils.fill_staging_columns": {"unique_id": "macro.fivetran_utils.fill_staging_columns", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/fill_staging_columns.sql", "original_file_path": "macros/fill_staging_columns.sql", "name": "fill_staging_columns", "macro_sql": "{% macro fill_staging_columns(source_columns, staging_columns) -%}\n\n{%- set source_column_names = source_columns|map(attribute='name')|map('lower')|list -%}\n\n{%- for column in staging_columns %}\n {% if column.name|lower in source_column_names -%}\n {{ fivetran_utils.quote_column(column) }} as \n {%- if 'alias' in column %} {{ column.alias }} {% else %} {{ fivetran_utils.quote_column(column) }} {%- endif -%}\n {%- else -%}\n cast(null as {{ column.datatype }})\n {%- if 'alias' in column %} as {{ column.alias }} {% else %} as {{ fivetran_utils.quote_column(column) }} {% endif -%}\n {%- endif -%}\n {%- if not loop.last -%} , {% endif -%}\n{% endfor %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.quote_column"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200848}, "macro.fivetran_utils.quote_column": {"unique_id": "macro.fivetran_utils.quote_column", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/fill_staging_columns.sql", "original_file_path": "macros/fill_staging_columns.sql", "name": "quote_column", "macro_sql": "{% macro quote_column(column) %}\n {% if 'quote' in column %}\n {% if column.quote %}\n {% if target.type in ('bigquery', 'spark') %}\n `{{ column.name }}`\n {% elif target.type == 'snowflake' %}\n \"{{ column.name | upper }}\"\n {% else %}\n \"{{ column.name }}\"\n {% endif %}\n {% else %}\n {{ column.name }}\n {% endif %}\n {% else %}\n {{ column.name }}\n {% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200848}, "macro.fivetran_utils.json_extract": {"unique_id": "macro.fivetran_utils.json_extract", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "name": "json_extract", "macro_sql": "{% macro json_extract(string, string_path) -%}\n\n{{ adapter.dispatch('json_extract', 'fivetran_utils') (string, string_path) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.bigquery__json_extract"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200848}, "macro.fivetran_utils.default__json_extract": {"unique_id": "macro.fivetran_utils.default__json_extract", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "name": "default__json_extract", "macro_sql": "{% macro default__json_extract(string, string_path) %}\n\n json_extract_path_text({{string}}, {{ \"'\" ~ string_path ~ \"'\" }} )\n \n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200848}, "macro.fivetran_utils.redshift__json_extract": {"unique_id": "macro.fivetran_utils.redshift__json_extract", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "name": "redshift__json_extract", "macro_sql": "{% macro redshift__json_extract(string, string_path) %}\n\n json_extract_path_text({{string}}, {{ \"'\" ~ string_path ~ \"'\" }} )\n \n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200848}, "macro.fivetran_utils.bigquery__json_extract": {"unique_id": "macro.fivetran_utils.bigquery__json_extract", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "name": "bigquery__json_extract", "macro_sql": "{% macro bigquery__json_extract(string, string_path) %}\n\n json_extract_scalar({{string}}, {{ \"'$.\" ~ string_path ~ \"'\" }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200848}, "macro.fivetran_utils.postgres__json_extract": {"unique_id": "macro.fivetran_utils.postgres__json_extract", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "name": "postgres__json_extract", "macro_sql": "{% macro postgres__json_extract(string, string_path) %}\n\n {{string}}::json->>{{\"'\" ~ string_path ~ \"'\" }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200848}, "macro.fivetran_utils.collect_freshness": {"unique_id": "macro.fivetran_utils.collect_freshness", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/collect_freshness.sql", "original_file_path": "macros/collect_freshness.sql", "name": "collect_freshness", "macro_sql": "{% macro collect_freshness(source, loaded_at_field, filter) %}\n {{ return(adapter.dispatch('collect_freshness')(source, loaded_at_field, filter))}}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__collect_freshness"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200848}, "macro.fivetran_utils.default__collect_freshness": {"unique_id": "macro.fivetran_utils.default__collect_freshness", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/collect_freshness.sql", "original_file_path": "macros/collect_freshness.sql", "name": "default__collect_freshness", "macro_sql": "{% macro default__collect_freshness(source, loaded_at_field, filter) %}\n {% call statement('collect_freshness', fetch_result=True, auto_begin=False) -%}\n\n {%- set enabled_array = [] -%}\n {% for node in graph.sources.values() %}\n {% if node.name == source.name %}\n {% if (node.meta['is_enabled'] | default(true)) %}\n {%- do enabled_array.append(1) -%}\n {% endif %}\n {% endif %}\n {% endfor %}\n {% set is_enabled = (enabled_array != []) %}\n\n select\n {% if is_enabled %}\n max({{ loaded_at_field }})\n {% else %} \n {{ current_timestamp() }} {% endif %} as max_loaded_at,\n {{ current_timestamp() }} as snapshotted_at\n\n {% if is_enabled %}\n from {{ source }}\n {% if filter %}\n where {{ filter }}\n {% endif %}\n {% endif %}\n\n {% endcall %}\n {{ return(load_result('collect_freshness').table) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_utils.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200848}, "macro.fivetran_utils.timestamp_add": {"unique_id": "macro.fivetran_utils.timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "name": "timestamp_add", "macro_sql": "{% macro timestamp_add(datepart, interval, from_timestamp) -%}\n\n{{ adapter.dispatch('timestamp_add', 'fivetran_utils') (datepart, interval, from_timestamp) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.bigquery__timestamp_add"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200848}, "macro.fivetran_utils.default__timestamp_add": {"unique_id": "macro.fivetran_utils.default__timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "name": "default__timestamp_add", "macro_sql": "{% macro default__timestamp_add(datepart, interval, from_timestamp) %}\n\n timestampadd(\n {{ datepart }},\n {{ interval }},\n {{ from_timestamp }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200848}, "macro.fivetran_utils.bigquery__timestamp_add": {"unique_id": "macro.fivetran_utils.bigquery__timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "name": "bigquery__timestamp_add", "macro_sql": "{% macro bigquery__timestamp_add(datepart, interval, from_timestamp) %}\n\n timestamp_add({{ from_timestamp }}, interval {{ interval }} {{ datepart }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200848}, "macro.fivetran_utils.redshift__timestamp_add": {"unique_id": "macro.fivetran_utils.redshift__timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "name": "redshift__timestamp_add", "macro_sql": "{% macro redshift__timestamp_add(datepart, interval, from_timestamp) %}\n\n dateadd(\n {{ datepart }},\n {{ interval }},\n {{ from_timestamp }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200848}, "macro.fivetran_utils.postgres__timestamp_add": {"unique_id": "macro.fivetran_utils.postgres__timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "name": "postgres__timestamp_add", "macro_sql": "{% macro postgres__timestamp_add(datepart, interval, from_timestamp) %}\n\n {{ from_timestamp }} + ((interval '1 {{ datepart }}') * ({{ interval }}))\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200848}, "macro.fivetran_utils.spark__timestamp_add": {"unique_id": "macro.fivetran_utils.spark__timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "name": "spark__timestamp_add", "macro_sql": "{% macro spark__timestamp_add(datepart, interval, from_timestamp) %}\n\n {{ dbt_utils.dateadd(datepart, interval, from_timestamp) }}\n \n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200848}, "macro.fivetran_utils.ceiling": {"unique_id": "macro.fivetran_utils.ceiling", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "name": "ceiling", "macro_sql": "{% macro ceiling(num) -%}\n\n{{ adapter.dispatch('ceiling', 'fivetran_utils') (num) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__ceiling"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200848}, "macro.fivetran_utils.default__ceiling": {"unique_id": "macro.fivetran_utils.default__ceiling", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "name": "default__ceiling", "macro_sql": "{% macro default__ceiling(num) %}\n ceiling({{ num }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200848}, "macro.fivetran_utils.snowflake__ceiling": {"unique_id": "macro.fivetran_utils.snowflake__ceiling", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "name": "snowflake__ceiling", "macro_sql": "{% macro snowflake__ceiling(num) %}\n ceil({{ num }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200848}, "macro.fivetran_utils.remove_prefix_from_columns": {"unique_id": "macro.fivetran_utils.remove_prefix_from_columns", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/remove_prefix_from_columns.sql", "original_file_path": "macros/remove_prefix_from_columns.sql", "name": "remove_prefix_from_columns", "macro_sql": "{% macro remove_prefix_from_columns(columns, prefix='', exclude=[]) %}\n\n {%- for col in columns if col.name not in exclude -%}\n {%- if col.name[:prefix|length]|lower == prefix -%}\n {{ col.name }} as {{ col.name[prefix|length:] }}\n {%- else -%}\n {{ col.name }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {% endfor -%}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200848}, "macro.fivetran_utils.union_data": {"unique_id": "macro.fivetran_utils.union_data", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/union_data.sql", "original_file_path": "macros/union_data.sql", "name": "union_data", "macro_sql": "{% macro union_data(table_identifier, database_variable, schema_variable, default_database, default_schema, default_variable) -%}\n\n{{ adapter.dispatch('union_data', 'fivetran_utils') (table_identifier, database_variable, schema_variable, default_database, default_schema, default_variable) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__union_data"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200848}, "macro.fivetran_utils.default__union_data": {"unique_id": "macro.fivetran_utils.default__union_data", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/union_data.sql", "original_file_path": "macros/union_data.sql", "name": "default__union_data", "macro_sql": "{% macro default__union_data(table_identifier, database_variable, schema_variable, default_database, default_schema, default_variable) %}\n\n{% if var('union_schemas', none) %}\n\n {% set relations = [] %}\n\n {% for schema in var('union_schemas') %}\n\n {% set relation=adapter.get_relation(\n database=var(database_variable, default_database),\n schema=schema,\n identifier=table_identifier\n ) -%}\n \n {% set relation_exists=relation is not none %}\n\n {% if relation_exists %}\n\n {% do relations.append(relation) %}\n \n {% endif %}\n\n {% endfor %}\n\n {{ dbt_utils.union_relations(relations) }}\n\n{% elif var('union_databases', none) %}\n\n {% set relations = [] %}\n\n {% for database in var('union_databases') %}\n\n {% set relation=adapter.get_relation(\n database=database,\n schema=var(schema_variable, default_schema),\n identifier=table_identifier\n ) -%}\n\n {% set relation_exists=relation is not none %}\n\n {% if relation_exists %}\n\n {% do relations.append(relation) %}\n \n {% endif %}\n\n {% endfor %}\n\n {{ dbt_utils.union_relations(relations) }}\n\n{% else %}\n\n select * \n from {{ var(default_variable) }}\n\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.union_relations"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200848}, "macro.fivetran_utils.dummy_coalesce_value": {"unique_id": "macro.fivetran_utils.dummy_coalesce_value", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/dummy_coalesce_value.sql", "original_file_path": "macros/dummy_coalesce_value.sql", "name": "dummy_coalesce_value", "macro_sql": "{% macro dummy_coalesce_value(column) %}\n\n{% set coalesce_value = {\n 'STRING': \"'DUMMY_STRING'\",\n 'BOOLEAN': 'null',\n 'INT': 999999999,\n 'FLOAT': 999999999.99,\n 'TIMESTAMP': 'cast(\"2099-12-31\" as timestamp)',\n 'DATE': 'cast(\"2099-12-31\" as date)',\n} %}\n\n{% if column.is_float() %}\n{{ return(coalesce_value['FLOAT']) }}\n\n{% elif column.is_numeric() %}\n{{ return(coalesce_value['INT']) }}\n\n{% elif column.is_string() %}\n{{ return(coalesce_value['STRING']) }}\n\n{% elif column.data_type|lower == 'boolean' %}\n{{ return(coalesce_value['BOOLEAN']) }}\n\n{% elif 'timestamp' in column.data_type|lower %}\n{{ return(coalesce_value['TIMESTAMP']) }}\n\n{% elif 'date' in column.data_type|lower %}\n{{ return(coalesce_value['DATE']) }}\n\n{% elif 'int' in column.data_type|lower %}\n{{ return(coalesce_value['INT']) }}\n\n{% endif %}\n\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200848}, "macro.fivetran_utils.array_agg": {"unique_id": "macro.fivetran_utils.array_agg", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "name": "array_agg", "macro_sql": "{% macro array_agg(field_to_agg) -%}\n\n{{ adapter.dispatch('array_agg', 'fivetran_utils') (field_to_agg) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__array_agg"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200848}, "macro.fivetran_utils.default__array_agg": {"unique_id": "macro.fivetran_utils.default__array_agg", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "name": "default__array_agg", "macro_sql": "{% macro default__array_agg(field_to_agg) %}\n array_agg({{ field_to_agg }})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200848}, "macro.fivetran_utils.redshift__array_agg": {"unique_id": "macro.fivetran_utils.redshift__array_agg", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "name": "redshift__array_agg", "macro_sql": "{% macro redshift__array_agg(field_to_agg) %}\n listagg({{ field_to_agg }}, ',')\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200848}, "macro.fivetran_utils.empty_variable_warning": {"unique_id": "macro.fivetran_utils.empty_variable_warning", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/empty_variable_warning.sql", "original_file_path": "macros/empty_variable_warning.sql", "name": "empty_variable_warning", "macro_sql": "{% macro empty_variable_warning(variable, downstream_model) %}\n\n{% if not var(variable) %}\n{{ log(\n \"\"\"\n Warning: You have passed an empty list to the \"\"\" ~ variable ~ \"\"\".\n As a result, you won't see the history of any columns in the \"\"\" ~ downstream_model ~ \"\"\" model.\n \"\"\",\n info=True\n) }}\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200848}, "macro.fivetran_utils.enabled_vars_one_true": {"unique_id": "macro.fivetran_utils.enabled_vars_one_true", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/enabled_vars_one_true.sql", "original_file_path": "macros/enabled_vars_one_true.sql", "name": "enabled_vars_one_true", "macro_sql": "{% macro enabled_vars_one_true(vars) %}\n\n{% for v in vars %}\n \n {% if var(v, False) == True %}\n {{ return(True) }}\n {% endif %}\n\n{% endfor %}\n\n{{ return(False) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200848}, "macro.salesforce_source.get_account_columns": {"unique_id": "macro.salesforce_source.get_account_columns", "package_name": "salesforce_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/salesforce_source", "path": "macros/generate_columns.sql", "original_file_path": "macros/generate_columns.sql", "name": "get_account_columns", "macro_sql": "{% macro get_account_columns() %}\n\n{% set columns = [\n\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"account_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"account_source\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"annual_revenue\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"billing_city\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"billing_country\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"billing_postal_code\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"billing_state\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"billing_state_code\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"billing_street\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"description\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"industry\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"is_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"last_activity_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"last_referenced_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"last_viewed_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"master_record_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"number_of_employees\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"owner_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"ownership\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"parent_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"rating\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"record_type_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"shipping_city\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"shipping_country\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"shipping_country_code\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"shipping_postal_code\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"shipping_state\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"shipping_state_code\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"shipping_street\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"website\", \"datatype\": dbt_utils.type_string()},\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string", "macro.dbt_utils.type_float", "macro.dbt_utils.type_int"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200848}, "macro.salesforce_source.get_opportunity_columns": {"unique_id": "macro.salesforce_source.get_opportunity_columns", "package_name": "salesforce_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/salesforce_source", "path": "macros/generate_columns.sql", "original_file_path": "macros/generate_columns.sql", "name": "get_opportunity_columns", "macro_sql": "{% macro get_opportunity_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"campaign_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"close_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"created_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"description\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"expected_revenue\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"fiscal\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"fiscal_quarter\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"fiscal_year\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"forecast_category\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"forecast_category_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"has_open_activity\", \"datatype\": \"boolean\"},\n {\"name\": \"has_opportunity_line_item\", \"datatype\": \"boolean\"},\n {\"name\": \"has_overdue_task\", \"datatype\": \"boolean\"},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"is_closed\", \"datatype\": \"boolean\"},\n {\"name\": \"is_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"is_won\", \"datatype\": \"boolean\"},\n {\"name\": \"last_activity_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"last_referenced_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"last_viewed_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"lead_source\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"next_step\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"owner_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"probability\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"record_type_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"stage_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"synced_quote_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"type\", \"datatype\": dbt_utils.type_string()},\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string", "macro.dbt_utils.type_float", "macro.dbt_utils.type_numeric", "macro.dbt_utils.type_int"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200848}, "macro.salesforce_source.get_user_columns": {"unique_id": "macro.salesforce_source.get_user_columns", "package_name": "salesforce_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/salesforce_source", "path": "macros/generate_columns.sql", "original_file_path": "macros/generate_columns.sql", "name": "get_user_columns", "macro_sql": "{% macro get_user_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"alias\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"city\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"company_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"contact_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"country\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"country_code\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"department\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"email\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"first_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"individual_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"is_active\", \"datatype\": \"boolean\"},\n {\"name\": \"last_login_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"last_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"last_referenced_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"last_viewed_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"manager_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"postal_code\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"profile_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"state\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"state_code\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"street\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"title\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"user_role_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"user_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"username\", \"datatype\": dbt_utils.type_string()},\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200848}, "macro.salesforce_source.get_user_role_columns": {"unique_id": "macro.salesforce_source.get_user_role_columns", "package_name": "salesforce_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/Salesforce/dbt_salesforce_source/integration_tests/dbt_modules/salesforce_source", "path": "macros/generate_columns.sql", "original_file_path": "macros/generate_columns.sql", "name": "get_user_role_columns", "macro_sql": "{% macro get_user_role_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"developer_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"opportunity_access_for_account_owner\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"parent_role_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"rollup_description\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1628200848}}, "docs": {"dbt.__overview__": {"unique_id": "dbt.__overview__", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "overview.md", "original_file_path": "docs/overview.md", "name": "__overview__", "block_contents": "### Welcome!\n\nWelcome to the auto-generated documentation for your dbt project!\n\n### Navigation\n\nYou can use the `Project` and `Database` navigation tabs on the left side of the window to explore the models\nin your project.\n\n#### Project Tab\nThe `Project` tab mirrors the directory structure of your dbt project. In this tab, you can see all of the\nmodels defined in your dbt project, as well as models imported from dbt packages.\n\n#### Database Tab\nThe `Database` tab also exposes your models, but in a format that looks more like a database explorer. This view\nshows relations (tables and views) grouped into database schemas. Note that ephemeral models are _not_ shown\nin this interface, as they do not exist in the database.\n\n### Graph Exploration\nYou can click the blue icon on the bottom-right corner of the page to view the lineage graph of your models.\n\nOn model pages, you'll see the immediate parents and children of the model you're exploring. By clicking the `Expand`\nbutton at the top-right of this lineage pane, you'll be able to see all of the models that are used to build,\nor are built from, the model you're exploring.\n\nOnce expanded, you'll be able to use the `--models` and `--exclude` model selection syntax to filter the\nmodels in the graph. For more information on model selection, check out the [dbt docs](https://docs.getdbt.com/docs/model-selection-syntax).\n\nNote that you can also right-click on models to interactively filter and explore the graph.\n\n---\n\n### More information\n\n- [What is dbt](https://docs.getdbt.com/docs/overview)?\n- Read the [dbt viewpoint](https://docs.getdbt.com/docs/viewpoint)\n- [Installation](https://docs.getdbt.com/docs/installation)\n- Join the [chat](https://community.getdbt.com/) on Slack for live questions and support."}}, "exposures": {}, "selectors": {}, "disabled": [], "parent_map": {"seed.salesforce_source_integration_tests.user_role_data": [], "seed.salesforce_source_integration_tests.account_data": [], "seed.salesforce_source_integration_tests.opportunity_data": [], "seed.salesforce_source_integration_tests.user_data": [], "model.salesforce_source.stg_salesforce__opportunity": ["model.salesforce_source.stg_salesforce__opportunity_tmp", "model.salesforce_source.stg_salesforce__opportunity_tmp"], "model.salesforce_source.stg_salesforce__user_role": ["model.salesforce_source.stg_salesforce__user_role_tmp", "model.salesforce_source.stg_salesforce__user_role_tmp"], "model.salesforce_source.stg_salesforce__account": ["model.salesforce_source.stg_salesforce__account_tmp", "model.salesforce_source.stg_salesforce__account_tmp"], "model.salesforce_source.stg_salesforce__user": ["model.salesforce_source.stg_salesforce__user_tmp", "model.salesforce_source.stg_salesforce__user_tmp"], "model.salesforce_source.stg_salesforce__user_tmp": ["seed.salesforce_source_integration_tests.user_data"], "model.salesforce_source.stg_salesforce__opportunity_tmp": ["seed.salesforce_source_integration_tests.opportunity_data"], "model.salesforce_source.stg_salesforce__account_tmp": ["seed.salesforce_source_integration_tests.account_data"], "model.salesforce_source.stg_salesforce__user_role_tmp": ["seed.salesforce_source_integration_tests.user_role_data"], "test.salesforce_source.not_null_stg_salesforce__account_account_id.318c3c43de": ["model.salesforce_source.stg_salesforce__account"], "test.salesforce_source.unique_stg_salesforce__account_account_id.9cc8cf6f0c": ["model.salesforce_source.stg_salesforce__account"], "test.salesforce_source.not_null_stg_salesforce__opportunity_opportunity_id.221d465e3f": ["model.salesforce_source.stg_salesforce__opportunity"], "test.salesforce_source.unique_stg_salesforce__opportunity_opportunity_id.16d671bdcd": ["model.salesforce_source.stg_salesforce__opportunity"], "test.salesforce_source.not_null_stg_salesforce__user_user_id.d79e41e4fa": ["model.salesforce_source.stg_salesforce__user"], "test.salesforce_source.unique_stg_salesforce__user_user_id.a9ff648ec8": ["model.salesforce_source.stg_salesforce__user"], "test.salesforce_source.not_null_stg_salesforce__user_role_user_role_id.d64248cb03": ["model.salesforce_source.stg_salesforce__user_role"], "test.salesforce_source.unique_stg_salesforce__user_role_user_role_id.75675c5628": ["model.salesforce_source.stg_salesforce__user_role"], "source.salesforce_source.salesforce.account": [], "source.salesforce_source.salesforce.opportunity": [], "source.salesforce_source.salesforce.user": [], "source.salesforce_source.salesforce.user_role": []}, "child_map": {"seed.salesforce_source_integration_tests.user_role_data": ["model.salesforce_source.stg_salesforce__user_role_tmp"], "seed.salesforce_source_integration_tests.account_data": ["model.salesforce_source.stg_salesforce__account_tmp"], "seed.salesforce_source_integration_tests.opportunity_data": ["model.salesforce_source.stg_salesforce__opportunity_tmp"], "seed.salesforce_source_integration_tests.user_data": ["model.salesforce_source.stg_salesforce__user_tmp"], "model.salesforce_source.stg_salesforce__opportunity": ["test.salesforce_source.not_null_stg_salesforce__opportunity_opportunity_id.221d465e3f", "test.salesforce_source.unique_stg_salesforce__opportunity_opportunity_id.16d671bdcd"], "model.salesforce_source.stg_salesforce__user_role": ["test.salesforce_source.not_null_stg_salesforce__user_role_user_role_id.d64248cb03", "test.salesforce_source.unique_stg_salesforce__user_role_user_role_id.75675c5628"], "model.salesforce_source.stg_salesforce__account": ["test.salesforce_source.not_null_stg_salesforce__account_account_id.318c3c43de", "test.salesforce_source.unique_stg_salesforce__account_account_id.9cc8cf6f0c"], "model.salesforce_source.stg_salesforce__user": ["test.salesforce_source.not_null_stg_salesforce__user_user_id.d79e41e4fa", "test.salesforce_source.unique_stg_salesforce__user_user_id.a9ff648ec8"], "model.salesforce_source.stg_salesforce__user_tmp": ["model.salesforce_source.stg_salesforce__user", "model.salesforce_source.stg_salesforce__user"], "model.salesforce_source.stg_salesforce__opportunity_tmp": ["model.salesforce_source.stg_salesforce__opportunity", "model.salesforce_source.stg_salesforce__opportunity"], "model.salesforce_source.stg_salesforce__account_tmp": ["model.salesforce_source.stg_salesforce__account", "model.salesforce_source.stg_salesforce__account"], "model.salesforce_source.stg_salesforce__user_role_tmp": ["model.salesforce_source.stg_salesforce__user_role", "model.salesforce_source.stg_salesforce__user_role"], "test.salesforce_source.not_null_stg_salesforce__account_account_id.318c3c43de": [], "test.salesforce_source.unique_stg_salesforce__account_account_id.9cc8cf6f0c": [], "test.salesforce_source.not_null_stg_salesforce__opportunity_opportunity_id.221d465e3f": [], "test.salesforce_source.unique_stg_salesforce__opportunity_opportunity_id.16d671bdcd": [], "test.salesforce_source.not_null_stg_salesforce__user_user_id.d79e41e4fa": [], "test.salesforce_source.unique_stg_salesforce__user_user_id.a9ff648ec8": [], "test.salesforce_source.not_null_stg_salesforce__user_role_user_role_id.d64248cb03": [], "test.salesforce_source.unique_stg_salesforce__user_role_user_role_id.75675c5628": [], "source.salesforce_source.salesforce.account": [], "source.salesforce_source.salesforce.opportunity": [], "source.salesforce_source.salesforce.user": [], "source.salesforce_source.salesforce.user_role": []}} \ No newline at end of file +{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/manifest/v4.json", "dbt_version": "1.0.0", "generated_at": "2022-06-15T17:31:59.266477Z", "invocation_id": "a85f65ad-6696-4ef3-b19d-81973cd36798", "env": {}, "project_id": "a19ea622182c63ddc19bb22cde982b82", "user_id": "e607f749-4294-4b15-833b-0ae4a87d4d24", "send_anonymous_usage_stats": true, "adapter_type": "bigquery"}, "nodes": {"model.develop.opportunity_formula": {"raw_sql": "{{ salesforce_formula_utils.sfdc_formula_view(source_table='opportunity', fields_to_include=['order_form_opt_out_c']) }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.salesforce_formula_utils.sfdc_formula_view"], "nodes": ["source.salesforce_source.salesforce.fivetran_formula", "source.salesforce_source.salesforce.opportunity", "source.salesforce_source.salesforce.fivetran_formula", "source.salesforce_source.salesforce.fivetran_formula", "source.salesforce_source.salesforce.opportunity", "source.salesforce_source.salesforce.fivetran_formula"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "dbt_renee", "fqn": ["develop", "opportunity_formula"], "unique_id": "model.develop.opportunity_formula", "package_name": "develop", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop", "path": "opportunity_formula.sql", "original_file_path": "models/opportunity_formula.sql", "name": "opportunity_formula", "alias": "opportunity_formula", "checksum": {"name": "sha256", "checksum": "cb9ddead140341cc829fca9297d089053092a488d89a17dd3cce83e9a9049a06"}, "tags": [], "refs": [], "sources": [["salesforce", "fivetran_formula"], ["salesforce", "opportunity"], ["salesforce", "fivetran_formula"], ["salesforce", "fivetran_formula"], ["salesforce", "opportunity"], ["salesforce", "fivetran_formula"]], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/develop/models/opportunity_formula.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view"}, "created_at": 1655305161.0129468, "compiled_sql": "-- Best practice for this model is to be materialized as view. That is why we have set that here.\n\n\n/*\n The below sets the old_formula_fields variable to the results of the get_column_values results which queries the field column from the fivetran_formula table.\n The logic here is that the variable will be a list of all current salesforce formula field names. This list is then used within the dbt_utils.star operation to exclude them.\n This allows users with the Fivetran legacy Salesforce fields to ignore them and be replaced by the new fields.\n*/--In Snowflake the fields are case sensitive in order to determine if there are duplicates.\n\n-- defaults to all formula fields if fields_to_include is none\n\n\n select\n\n opportunity__table.`close_date`,\n opportunity__table.`secondary_reason_won_c`,\n opportunity__table.`owner_id`,\n opportunity__table.`primary_reason_lost_c`,\n opportunity__table.`subscription_end_date_c`,\n opportunity__table.`lead_source`,\n opportunity__table.`expected_trial_start_date_c`,\n opportunity__table.`last_modified_date`,\n opportunity__table.`type`,\n opportunity__table.`trial_end_date_c`,\n opportunity__table.`pricebook_2_id`,\n opportunity__table.`next_step`,\n opportunity__table.`fiscal_year`,\n opportunity__table.`last_modified_by_id`,\n opportunity__table.`system_modstamp`,\n opportunity__table.`stage_name`,\n opportunity__table.`id`,\n opportunity__table.`campaign_id`,\n opportunity__table.`is_closed`,\n opportunity__table.`last_referenced_date`,\n opportunity__table.`probability`,\n opportunity__table.`last_activity_date`,\n opportunity__table.`secondary_reason_lost_c`,\n opportunity__table.`synced_quote_id`,\n opportunity__table.`is_won`,\n opportunity__table.`fiscal`,\n opportunity__table.`name`,\n opportunity__table.`lead_source_detail_c`,\n opportunity__table.`created_by_id`,\n opportunity__table.`primary_reason_won_c`,\n opportunity__table.`billing_frequency_c`,\n opportunity__table.`forecast_category`,\n opportunity__table.`description`,\n opportunity__table.`has_overdue_task`,\n opportunity__table.`last_viewed_date`,\n opportunity__table.`_fivetran_synced`,\n opportunity__table.`pandadoc_tracking_number_c`,\n opportunity__table.`is_deleted`,\n opportunity__table.`trial_start_date_c`,\n opportunity__table.`subscription_start_date_c`,\n opportunity__table.`has_open_activity`,\n opportunity__table.`fiscal_quarter`,\n opportunity__table.`automatic_renewal_c`,\n opportunity__table.`confidence_c`,\n opportunity__table.`amount`,\n opportunity__table.`discount_c`,\n opportunity__table.`integrations_c`,\n opportunity__table.`has_opportunity_line_item`,\n opportunity__table.`account_id`,\n opportunity__table.`forecast_category_name`,\n opportunity__table.`created_date`,\n opportunity__table.`gclid_c`,\n opportunity__table.`next_step_due_date_c`,\n opportunity__table.`next_step_due_date_del_c`,\n opportunity__table.`competitors_c`,\n opportunity__table.`connector_products_c`,\n opportunity__table.`data_warehouse_products_c`,\n opportunity__table.`notes_c`,\n opportunity__table.`timeframe_c`,\n opportunity__table.`website_c`,\n opportunity__table.`opportunity_competitors_c`,\n opportunity__table.`opportunity_data_warehouses_c`,\n opportunity__table.`opportunity_products_c`,\n opportunity__table.`account_all_products_c`,\n opportunity__table.`account_bi_tools_c`,\n opportunity__table.`account_data_warehouses_c`,\n opportunity__table.`referral_account_c`,\n opportunity__table.`referral_contact_c`,\n opportunity__table.`subscription_active_c`,\n opportunity__table.`volume_in_millions_c`,\n opportunity__table.`feature_requests_c`,\n opportunity__table.`subscription_end_date_greater_than_today_c`,\n opportunity__table.`bread_winner_total_amount_due_c`,\n opportunity__table.`bread_winner_total_amount_invoiced_c`,\n opportunity__table.`bread_winner_total_amount_overdue_c`,\n opportunity__table.`bread_winner_total_amount_paid_c`,\n opportunity__table.`bread_winner_total_draft_amount_c`,\n opportunity__table.`reason_lost_c`,\n opportunity__table.`reason_won_c`,\n opportunity__table.`billing_contact_first_name_c`,\n opportunity__table.`billing_contact_last_name_c`,\n opportunity__table.`billing_email_c`,\n opportunity__table.`billing_phone_c`,\n opportunity__table.`invoice_payment_terms_net_c`,\n opportunity__table.`subscription_not_started_c`,\n opportunity__table.`invoice_due_date_c`,\n opportunity__table.`payment_terms_c`,\n opportunity__table.`associated_stripe_charge_id_c`,\n opportunity__table.`record_type_id`,\n opportunity__table.`contract_type_c`,\n opportunity__table.`lost_communication_preference_c`,\n opportunity__table.`lost_primary_reason_c`,\n opportunity__table.`associate_sdr_c`,\n opportunity__table.`associated_sdr_c`,\n opportunity__table.`no_show_c`,\n opportunity__table.`order_form_c`,\n opportunity__table.`reason_unqualified_c`,\n opportunity__table.`closing_notes_for_ams_c`,\n opportunity__table.`sdr_setup_trial_successfully_c`,\n opportunity__table.`number_of_contact_roles_c`,\n opportunity__table.`utm_campaign_c`,\n opportunity__table.`utm_content_c`,\n opportunity__table.`utm_medium_c`,\n opportunity__table.`utm_source_c`,\n opportunity__table.`utm_term_c`,\n opportunity__table.`original_opportunity_c`,\n opportunity__table.`lean_data_reporting_total_marketing_touches_c`,\n opportunity__table.`lean_data_days_in_stage_c`,\n opportunity__table.`lean_data_routing_action_c`,\n opportunity__table.`lean_data_reporting_won_number_c`,\n opportunity__table.`lean_data_reporting_opportunity_source_c`,\n opportunity__table.`lean_data_reporting_last_run_date_c`,\n opportunity__table.`lean_data_order_number_c`,\n opportunity__table.`sales_engineer_c`,\n opportunity__table.`sales_engineer_needed_c`,\n opportunity__table.`netsuite_conn_reseller_c`,\n opportunity__table.`netsuite_conn_net_suite_sync_err_c`,\n opportunity__table.`netsuite_conn_from_contract_c`,\n opportunity__table.`netsuite_conn_celigo_contract_c`,\n opportunity__table.`netsuite_conn_ns_renewal_transaction_internal_id_c`,\n opportunity__table.`netsuite_conn_end_date_c`,\n opportunity__table.`netsuite_conn_contract_term_c`,\n opportunity__table.`netsuite_conn_push_as_net_suite_project_c`,\n opportunity__table.`netsuite_conn_net_suite_contract_id_c`,\n opportunity__table.`netsuite_conn_current_opportunity_id_c`,\n opportunity__table.`netsuite_conn_distributor_c`,\n opportunity__table.`netsuite_conn_bill_to_tier_c`,\n opportunity__table.`netsuite_conn_end_user_c`,\n opportunity__table.`netsuite_conn_current_sales_order_id_c`,\n opportunity__table.`netsuite_conn_celigo_update_c`,\n opportunity__table.`netsuite_conn_eligible_account_for_channel_sales_c`,\n opportunity__table.`netsuite_conn_tracking_number_c`,\n opportunity__table.`netsuite_conn_originated_from_net_suite_c`,\n opportunity__table.`netsuite_conn_nsrenewal_opportunity_internal_id_c`,\n opportunity__table.`netsuite_conn_net_suite_renewal_terms_c`,\n opportunity__table.`netsuite_conn_push_as_net_suite_opportunity_c`,\n opportunity__table.`netsuite_conn_order_type_c`,\n opportunity__table.`netsuite_conn_sync_in_progress_c`,\n opportunity__table.`netsuite_conn_net_suite_sales_order_number_c`,\n opportunity__table.`netsuite_conn_push_to_net_suite_c`,\n opportunity__table.`netsuite_conn_net_suite_project_id_c`,\n opportunity__table.`netsuite_conn_net_suite_contract_term_c`,\n opportunity__table.`netsuite_conn_start_date_c`,\n opportunity__table.`netsuite_conn_ship_to_tier_c`,\n opportunity__table.`db_competitor_c`,\n opportunity__table.`lid_linked_in_company_id_c`,\n opportunity__table.`lid_is_influenced_c`,\n opportunity__table.`debooked_date_c`,\n opportunity__table.`debooked_amount_c`,\n opportunity__table.`is_debooked_c`,\n opportunity__table.`economic_buyer_c`,\n opportunity__table.`decision_process_c`,\n opportunity__table.`decision_criteria_c`,\n opportunity__table.`champion_c`,\n opportunity__table.`metrics_c`,\n opportunity__table.`identify_pain_c`,\n opportunity__table.`is_non_renewable_c`,\n opportunity__table.`sales_loft_1_primary_contact_c`,\n opportunity__table.`sales_loft_1_most_recent_last_completed_step_c`,\n opportunity__table.`sales_loft_1_most_recent_cadence_name_c`,\n opportunity__table.`is_partner_opp_c`,\n opportunity__table.`territory_2_id`,\n opportunity__table.`is_excluded_from_territory_2_filter`,\n opportunity__table.`sbqq_amended_contract_c`,\n opportunity__table.`sbqq_contracted_c`,\n opportunity__table.`sbqq_create_contracted_prices_c`,\n opportunity__table.`sbqq_order_group_id_c`,\n opportunity__table.`sbqq_ordered_c`,\n opportunity__table.`sbqq_primary_quote_c`,\n opportunity__table.`sbqq_quote_pricebook_id_c`,\n opportunity__table.`sbqq_renewal_c`,\n opportunity__table.`sbqq_renewed_contract_c`,\n opportunity__table.`is_non_recurring_c`,\n opportunity__table.`did_a_partner_help_this_sale_c`,\n opportunity__table.`did_they_select_a_bi_tool_c`,\n opportunity__table.`which_bi_tool_did_they_select_c`,\n opportunity__table.`which_partner_was_most_influential_c`,\n opportunity__table.`which_bi_tool_s_are_they_using_c`,\n opportunity__table.`associated_bdr_c`,\n opportunity__table.`aws_payment_c`,\n opportunity__table.`expected_revenue`,\n opportunity__table.`competitor_we_lost_to_c`,\n opportunity__table.`marketplace_payment_c`,\n opportunity__table.`has_competition_c`,\n opportunity__table.`no_known_competition_c`,\n opportunity__table.`marketing_process_c`,\n opportunity__table.`automation_tracking_c`,\n opportunity__table.`user_gems_has_changed_job_c`,\n opportunity__table.`manager_forecast_amount_c`,\n opportunity__table.`manager_forecast_category_c`,\n opportunity__table.`superset_forecast_category_c`,\n opportunity__table.`forecast_amount_c`,\n opportunity__table.`are_we_co_selling_with_anyone_c`,\n opportunity__table.`has_co_sell_activity_c`,\n opportunity__table.`signed_order_c`,\n opportunity__table.`compelling_event_c`,\n opportunity__table.`territory_c`,\n opportunity__table.`validation_override_c`,\n opportunity__table.`map_reviewed_with_ae_c`,\n opportunity__table.`se_manager_notes_c`,\n opportunity__table.`se_notes_c`,\n opportunity__table.`se_stage_c`,\n opportunity__table.`next_steps_date_c`,\n opportunity__table.`pbf_c`,\n opportunity__table.`partner_c`,\n opportunity__table.`channel_c`,\n opportunity__table.`primary_contact_fivetran_c`,\n opportunity__table.`time_spent_minutes_c`,\n opportunity__table.`date_for_next_update_c`,\n opportunity__table.`lean_data_trigger_c`,\n opportunity__table.`workflow_helper_c`,\n opportunity__table.`deal_risk_c`,\n opportunity__table.`gcp_approved_c`,\n opportunity__table.`next_steps_c`,\n opportunity__table.`manger_notes_c`,\n opportunity__table.`manager_notes_c`,\n opportunity__table.`marketplace_offer_accepted_c`,\n opportunity__table.`stage_0_date_time_c`,\n opportunity__table.`stage_1_date_time_c`,\n opportunity__table.`round_robin_ae_c`,\n opportunity__table.`round_robin_ae_trigger_c`,\n opportunity__table.`automation_validation_override_c`,\n opportunity__table.`related_renewal_opportunity_c`,\n opportunity__table.`sales_rep_to_be_credited_c`,\n opportunity__table.`trial_self_service_converted_c`,\n opportunity__table.`migration_opportunity_c`,\n opportunity__table.`post_close_changes_c`,\n opportunity__table.`assigned_tsm_c`,\n opportunity__table.`allbound_partner_id_c`,\n opportunity__table.`se_summary_c`,\n opportunity__table.`ae_paired_csm_c`,\n opportunity__table.`vh_can_revive_c`,\n opportunity__table.`vh_date_revived_c`,\n opportunity__table.`vh_deal_breaker_opportunity_gap_score_c`,\n opportunity__table.`vh_deal_challenge_opportunity_gap_score_c`,\n opportunity__table.`vh_nice_to_have_opportunity_gap_score_c`,\n opportunity__table.`vh_opportunity_gap_score_c`,\n opportunity__table.`vh_opportunity_score_c`,\n opportunity__table.`vh_presales_concern_c`,\n opportunity__table.`vh_presales_stage_c`,\n opportunity__table.`vh_technical_differentiation_c`,\n opportunity__table.`se_manager_summary_c`,\n opportunity__table.`bugs_c`,\n opportunity__table.`approval_required_c`,\n opportunity__table.`push_counter_c`,\n opportunity__table.`mar_link_c`,\n opportunity__table.`contact_id`,\n opportunity__table.`last_amount_changed_history_id`,\n opportunity__table.`last_close_date_changed_history_id`,\n opportunity__table.`expected_renewal_amount_c`,\n opportunity__table.`connectors_c`,\n opportunity__table.`estimated_credit_consumption_per_month_c`,\n opportunity__table.`project_status_c`,\n opportunity__table.`type_of_churn_c`,\n opportunity__table.`usage_reason_c`,\n opportunity__table.`use_cases_c`,\n opportunity__table.`bizible_2_bizible_opportunity_amount_c`,\n opportunity__table.`active_technical_owner_c`,\n opportunity__table.`referral_partner_c`,\n opportunity__table.`celigo_sfnsio_bill_to_tier_c`,\n opportunity__table.`celigo_sfnsio_contract_opportunity_c`,\n opportunity__table.`celigo_sfnsio_contract_term_c`,\n opportunity__table.`celigo_sfnsio_distributor_c`,\n opportunity__table.`celigo_sfnsio_end_date_c`,\n opportunity__table.`celigo_sfnsio_end_user_c`,\n opportunity__table.`celigo_sfnsio_from_contract_c`,\n opportunity__table.`celigo_sfnsio_net_suite_id_c`,\n opportunity__table.`celigo_sfnsio_net_suite_opportunity_id_c`,\n opportunity__table.`celigo_sfnsio_net_suite_opportunity_record_url_c`,\n opportunity__table.`celigo_sfnsio_net_suite_order_number_c`,\n opportunity__table.`celigo_sfnsio_net_suite_record_c`,\n opportunity__table.`celigo_sfnsio_net_suite_sync_error_c`,\n opportunity__table.`celigo_sfnsio_ns_originated_order_c`,\n opportunity__table.`celigo_sfnsio_renewal_term_c`,\n opportunity__table.`celigo_sfnsio_reseller_c`,\n opportunity__table.`celigo_sfnsio_ship_to_tier_c`,\n opportunity__table.`celigo_sfnsio_skip_export_to_net_suite_c`,\n opportunity__table.`celigo_sfnsio_start_date_c`,\n opportunity__table.`celigo_sfnsio_test_mode_record_c`,\n opportunity__table.`initial_meeting_notes_c`,\n opportunity__table.`initial_meeting_source_c`,\n opportunity__table.`initial_meeting_date_c`,\n opportunity__table.`initial_meeting_status_c`,\n opportunity__table.`bdr_sdr_override_c`,\n opportunity__table.`tsm_discovered_c`,\n opportunity__table.`for_initial_revenue_ramp_c`,\n opportunity__table.`clari_amount_c`,\n opportunity__table.`connector_x_c`,\n opportunity__table.`use_cases_deprecate_c`,\n opportunity__table.`data_stack_c`,\n opportunity__table.`projected_ending_4_mos_amount_total_c`,\n opportunity__table.`p_o_number_c`,\n opportunity__table.`user_gems_user_gems_summary_c`,\n opportunity__table.`fivetran_map_link_c`,\n opportunity__table.`after_scenario_c`,\n opportunity__table.`top_competition_c`,\n opportunity__table.`economic_buyer_lu_c`,\n opportunity__table.`champion_lu_c`,\n opportunity__table.`paper_process_c`,\n opportunity__table.`before_scenario_c`,\n opportunity__table.`defensible_differentiators_c`,\n opportunity__table.`positive_business_outcomes_c`,\n opportunity__table.`customer_marketplace_pref_c`,\n opportunity__table.`using_consultant_si_c`,\n opportunity__table.`value_drivers_c`,\n opportunity__table.`is_solution_architect_needed_c`,\n opportunity__table.`contact_opportunity_created_from_c`,\n opportunity__table.`previous_contract_blended_unit_price_c`,\n opportunity__table.`previous_contract_total_credits_purchase_c`,\n opportunity__table.`original_price_per_credit_c`,\n opportunity__table.`previous_contract_discount_percentage_c`,\n opportunity__table.`expected_renewal_amount_override_1_c`,\n opportunity__table.`expected_renewal_override_c`,\n opportunity__table.`bookings_arr_2_c`,\n opportunity__table.`baseline_arr_2_c`,\n opportunity__table.`value_of_services_purchased_c`,\n opportunity__table.`value_of_credits_purchased_c`,\n opportunity__table.`renewal_fields_verified_c`,\n opportunity__table.`no_co_sell_reason_c`,\n opportunity__table.`credit_summary_at_creation_c`,\n opportunity__table.`renewal_date_on_creation_c`,\n opportunity__table.`did_you_pitch_quickstart_packages_c`,\n opportunity__table.`expected_renewal_amount_stamp_c`,\n opportunity__table.`platform_level_stamped_c`,\n opportunity__table.`customer_spend_type_c`,\n opportunity__table.`self_service_routing_c`,\n opportunity__table.`value_of_rollover_credits_quote_stamp_c`,\n opportunity__table.`renewal_manager_notes_c`,\n opportunity__table.`fivetran_use_case_c`,\n opportunity__table.`did_you_try_to_sell_services_c`,\n opportunity__table.`routed_from_manual_bdr_ae_activity_c`,\n opportunity__table.`group_id_c`,\n opportunity__table.`comma_separated_schema_list_c`,\n opportunity__table.`si_referral_count_c`,\n opportunity__table.`si_referral_partner_chosen_c`,\n opportunity__table.`partner_relationship_added_c`,\n opportunity__table.`si_with_partner_referral_activity_type_c`,\n opportunity__table.`late_renewal_subscription_c`,\n opportunity__table.`rev_ops_created_renewal_c`,\n opportunity__table.`conversion_opp_type_c`,\n opportunity__table.`projected_mrr_increase_clari_c`,\n opportunity__table.`amount_rollover_annualized_stamped_c`,\n opportunity__table.`credit_amount_stamped_c`,\n opportunity__table.`rollover_value_on_close_c`,\n opportunity__table.`lost_to_a_competitive_solution_c`,\n opportunity__table.`lost_primary_reason_detail_c`,\n opportunity__table.`marketing_activity_in_last_30_days_c`,\n opportunity__table.`disco_meeting_date_c`,\n opportunity__table.`disco_meeting_status_c`,\n opportunity__table.`third_party_data_c`,\n opportunity__table.`pbf_overlay_c`,\n opportunity__table.`services_stage_2_date_c`,\n opportunity__table.`why_did_we_lose_the_services_pitch_c`,\n opportunity__table.`partner_relationship_created_automation_c`,\n opportunity__table.`non_connector_expansion_c`,\n opportunity__table.`purchase_order_required_c`,\n opportunity__table.`push_count`,\n opportunity__table.`last_stage_change_date`,\n opportunity__table.`logged_to_partner_portal_c`,\n opportunity__table.`bdr_sdr_cross_sell_disco_call_c`,\n opportunity__table.`expected_renewal_expansion_override_c`,\n opportunity__table.`hvr_contract_end_date_c`,\n opportunity__table.`hvr_technical_fit_c`,\n opportunity__table.`hvr_arr_new_c`,\n opportunity__table.`legacy_hvr_id_c`,\n opportunity__table.`hvr_sales_region_c`,\n opportunity__table.`contract_id`,\n opportunity__table.`hvr_arr_end_c`,\n opportunity__table.`hvr_sum_of_forecast_calc_c`,\n opportunity__table.`hvr_nrr_total_c`,\n opportunity__table.`hvr_type_summary_c`,\n opportunity__table.`hvr_special_instructions_for_licensing_c`,\n opportunity__table.`hvr_year_3_amount_c`,\n opportunity__table.`hvr_targets_c`,\n opportunity__table.`hvr_type_adj_c`,\n opportunity__table.`hvr_arr_expansion_c`,\n opportunity__table.`negative_consequences_c`,\n opportunity__table.`hvr_quarterly_forecast_summary_c`,\n opportunity__table.`hvr_sal_confirmed_with_ae_c`,\n opportunity__table.`hvr_years_2_5_on_quote_c`,\n opportunity__table.`hvr_arr_license_total_c`,\n opportunity__table.`hvr_term_months_c`,\n opportunity__table.`hvr_upside_value_at_50_c`,\n opportunity__table.`proof_point_c`,\n opportunity__table.`hub_fingerprint_c`,\n opportunity__table.`demo_deep_technical_dive_completed_date_c`,\n opportunity__table.`hvr_license_type_1_c`,\n opportunity__table.`hvr_year_2_c`,\n opportunity__table.`hvr_currency_code_c`,\n opportunity__table.`hvr_fq_c`,\n opportunity__table.`hvr_multi_year_total_c`,\n opportunity__table.`hvr_annual_support_c`,\n opportunity__table.`hvr_targets_count_c`,\n opportunity__table.`opportunity_channel_confirmed_c`,\n opportunity__table.`how_we_do_it_c`,\n opportunity__table.`hvr_primary_cloud_preference_c`,\n opportunity__table.`hvr_year_4_c`,\n opportunity__table.`hvr_sources_c`,\n opportunity__table.`hvr_arr_start_c`,\n opportunity__table.`hvr_fy_c`,\n opportunity__table.`hvr_year_5_amount_c`,\n opportunity__table.`is_private`,\n opportunity__table.`hvr_arr_support_products_c`,\n opportunity__table.`license_key_generated_c`,\n opportunity__table.`hvr_arr_from_products_c`,\n opportunity__table.`total_opportunity_quantity`,\n opportunity__table.`hvr_sapruntimeflag_c`,\n opportunity__table.`hvr_arr_from_total_arr_products_added_c`,\n opportunity__table.`hvr_arr_support_total_c`,\n opportunity__table.`hvr_year_4_amount_c`,\n opportunity__table.`opportunity_sources_and_targets_reviewed_c`,\n opportunity__table.`hvr_pilot_fees_c`,\n opportunity__table.`intacct_customer_id_c`,\n opportunity__table.`hvr_arr_old_c`,\n opportunity__table.`hvr_arr_adjusted_c`,\n opportunity__table.`hvr_churn_date_c`,\n opportunity__table.`hvr_arr_total_products_c`,\n opportunity__table.`required_capabilities_c`,\n opportunity__table.`hvr_sources_count_c`,\n opportunity__table.`hvr_secondary_cloud_preference_c`,\n opportunity__table.`hvr_arr_type_2_c`,\n opportunity__table.`differentiators_against_c`,\n opportunity__table.`nrr_total_c`,\n opportunity__table.`hvr_years_25_on_quote_c`,\n opportunity__table.`hvr_opportunity_targets_c`,\n opportunity__table.`hvr_license_type_2_c`,\n opportunity__table.`hvr_solution_use_case_sub_category_c`,\n opportunity__table.`license_key_submission_date_stamp_c`,\n opportunity__table.`hvr_year_2_amount_c`,\n opportunity__table.`hvr_new_arr_c`,\n opportunity__table.`support_level_c`,\n opportunity__table.`hvr_arr_c`,\n opportunity__table.`hvr_arr_calculated_c`,\n opportunity__table.`hvr_amount_arrperpetual_c`,\n opportunity__table.`hvr_exchange_rate_c`,\n opportunity__table.`hvr_perpetual_amount_c`,\n opportunity__table.`hvr_arr_contraction_c`,\n opportunity__table.`hvr_arr_months_c`,\n opportunity__table.`hvr_arr_gold_at_12_of_license_total_c`,\n opportunity__table.`hvr_arr_forecast_expected_c`,\n opportunity__table.`hvr_year_5_c`,\n opportunity__table.`hvr_arr_total_c`,\n opportunity__table.`hvr_type_arrperpetual_c`,\n opportunity__table.`hvr_tcv_c`,\n opportunity__table.`hvr_year_3_c`,\n opportunity__table.`hvr_arr_type_c`,\n opportunity__table.`demo_deep_technical_dive_scheduled_date_c`,\n opportunity__table.`hvr_pro_serve_products_c`,\n opportunity__table.`hvr_pro_serve_total_c`,\n opportunity__table.`hvr_total_amount_c`,\n opportunity__table.`lean_data_status_info_c`,\n opportunity__table.`hvr_additional_partners_c`,\n opportunity__table.`hvr_local_amount_c`,\n opportunity__table.`explain_reason_for_hvr_6_1_sale_c`,\n opportunity__table.`hvr_6_1_proposed_sale_c`,\n opportunity__table.`approval_of_hvr_6_1_sale_c`,\n opportunity__table.`hvr_6_1_sale_decision_c`,\n opportunity__table.`hvr_poc_sources_details_c`,\n opportunity__table.`hvr_poc_targets_c`,\n opportunity__table.`hvr_check_list_sent_c`,\n opportunity__table.`hvr_start_date_actual_c`,\n opportunity__table.`hvr_check_list_received_c`,\n opportunity__table.`hvr_support_location_c`,\n opportunity__table.`hvr_stop_date_plan_c`,\n opportunity__table.`hvr_start_date_plan_c`,\n opportunity__table.`hvr_what_worked_c`,\n opportunity__table.`hvr_competition_c`,\n opportunity__table.`hvr_what_didnt_work_c`,\n opportunity__table.`hvr_conducted_by_c`,\n opportunity__table.`hvr_poc_sources_c`,\n opportunity__table.`hvr_review_call_date_c`,\n opportunity__table.`hvr_stop_date_actual_c`,\n opportunity__table.`hvr_will_there_be_a_poc_c`,\n opportunity__table.`hvr_poc_of_days_c`,\n opportunity__table.`hvr_poc_targets_details_c`,\n opportunity__table.`hvr_hub_details_c`,\n opportunity__table.`legacy_hvr_channel_c`,\n opportunity__table.`account_strategist_stamp_c`,\n opportunity__table.`hvr_fivetran_conversion_type_c`,\n opportunity__table.`olp_cancellation_override_c`,\n opportunity__table.`account_strategist_1_c`,\n opportunity__table.`product_being_pitched_c`,\n opportunity__table.`estimated_monthly_dollar_consumption_c`,\n opportunity__table.`platform_level_sso_c`,\n opportunity__table.`salesforce_created_c`,\n opportunity__table.`route_pbf_overlay_c`,\n opportunity__table.`hvr_deal_submitted_c`,\n opportunity__table.`annual_2_olp_conversion_created_c`,\n opportunity__table.`sub_start_date_vp_level_exception_c`,\n opportunity__table.`closed_won_region_c`,\n opportunity__table.`closed_won_segment_c`,\n opportunity__table.`deal_desk_notes_c` --Querying the source table and excluding the old formula fields if they are present.\n\n --Generate the key value pair from the view_sql field within the formula table with the below macro.--Only run the below code if the key_val for view_sql contains data\n\n , view_sql_1.order_form_opt_out_c\n --Adds the field names for records that leverage the view_sql logic.\n\n -- The results generated from sfdc_formula_refactor are set to the key_val variable.-- k being the field name and v being the sql.\n --Adds the results of the sfdc_formula_pivot macro as the remainder of the sql query.\n\n from `fivetran`.`salesforce`.`opportunity` as opportunity__table\n\n --Generate the key value pair from the formula field table with the below macro.--Only run the below code if the key_val for the view sql has data\n \n \n\n --The select statement must explicitly query from and join from the source, not the target. The replace filters point the query to the source.\n \n \n\n \n \n\n --To ensure the reference is unique across view sql the index of the loop is used in the reference name\n , ( select main__table.id, ( CAST( contract__alias.opt_out_c AS STRING ) ) as order_form_opt_out_c from `fivetran`.`salesforce`.opportunity as main__table left join `fivetran`.`salesforce`.contract as contract__alias on main__table.order_form_c = contract__alias.id ) as view_sql_1\n\n \n \n\n --A where clause is needed to properly leverage the view sql. The below joins the views to the base table using the base ID.\n where opportunity__table.id = view_sql_1.id\n \n --If view_sql logic is used, queries are inserted here as well as the where clause.", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`dbt_renee`.`opportunity_formula`"}, "model.salesforce_source.stg_salesforce__opportunity": {"raw_sql": "with base as (\n\n select *\n from {{ ref('stg_salesforce__opportunity_tmp') }}\n), \n\nfields as (\n\n select\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_salesforce__opportunity_tmp')),\n staging_columns=get_opportunity_columns()\n )\n }}\n\n --The below script allows for pass through columns.\n {% if var('opportunity_pass_through_columns',[]) != [] %}\n , {{ var('opportunity_pass_through_columns') | join (\", \")}}\n {% endif %}\n\n from base\n), \n\nfinal as (\n \n select \n cast(_fivetran_synced as {{ dbt_utils.type_timestamp() }}) as _fivetran_synced,\n account_id,\n cast(amount as {{ dbt_utils.type_numeric() }}) as amount,\n campaign_id,\n cast(close_date as {{ dbt_utils.type_timestamp() }}) as close_date,\n cast(created_date as {{ dbt_utils.type_timestamp() }}) as created_date,\n description,\n cast(expected_revenue as {{ dbt_utils.type_numeric() }}) as expected_revenue,\n fiscal,\n fiscal_quarter,\n fiscal_year,\n forecast_category,\n forecast_category_name,\n has_open_activity,\n has_opportunity_line_item,\n has_overdue_task,\n id as opportunity_id,\n is_closed,\n is_deleted,\n is_won,\n cast(last_activity_date as {{ dbt_utils.type_timestamp() }}) as last_activity_date,\n cast(last_referenced_date as {{ dbt_utils.type_timestamp() }}) as last_referenced_date,\n cast(last_viewed_date as {{ dbt_utils.type_timestamp() }}) as last_viewed_date,\n lead_source,\n name as opportunity_name,\n next_step,\n owner_id,\n probability,\n record_type_id,\n stage_name,\n synced_quote_id,\n type\n\n --The below script allows for pass through columns.\n {% if var('opportunity_pass_through_columns',[]) != [] %}\n , {{ var('opportunity_pass_through_columns') | join (\", \")}}\n\n {% endif %}\n\n from fields\n), \n\ncalculated as (\n \n select \n *,\n created_date >= {{ dbt_utils.date_trunc('month', dbt_utils.current_timestamp()) }} as is_created_this_month,\n created_date >= {{ dbt_utils.date_trunc('quarter', dbt_utils.current_timestamp()) }} as is_created_this_quarter,\n {{ dbt_utils.datediff(dbt_utils.current_timestamp(), 'created_date', 'day') }} as days_since_created,\n {{ dbt_utils.datediff('close_date', 'created_date', 'day') }} as days_to_close,\n {{ dbt_utils.date_trunc('month', 'close_date') }} = {{ dbt_utils.date_trunc('month', dbt_utils.current_timestamp()) }} as is_closed_this_month,\n {{ dbt_utils.date_trunc('quarter', 'close_date') }} = {{ dbt_utils.date_trunc('quarter', dbt_utils.current_timestamp()) }} as is_closed_this_quarter\n from final\n)\n\nselect * \nfrom calculated\nwhere not coalesce(is_deleted, false)", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.salesforce_source.get_opportunity_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_numeric", "macro.dbt_utils.current_timestamp", "macro.dbt_utils.date_trunc", "macro.dbt_utils.datediff"], "nodes": ["model.salesforce_source.stg_salesforce__opportunity_tmp", "model.salesforce_source.stg_salesforce__opportunity_tmp"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "dbt_renee", "fqn": ["salesforce_source", "stg_salesforce__opportunity"], "unique_id": "model.salesforce_source.stg_salesforce__opportunity", "package_name": "salesforce_source", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/salesforce_source", "path": "stg_salesforce__opportunity.sql", "original_file_path": "models/stg_salesforce__opportunity.sql", "name": "stg_salesforce__opportunity", "alias": "stg_salesforce__opportunity", "checksum": {"name": "sha256", "checksum": "06b5e56fff55d5f5ea276ccc84e3c920e506f6db9874de8307dfe63a5a44be57"}, "tags": [], "refs": [["stg_salesforce__opportunity_tmp"], ["stg_salesforce__opportunity_tmp"]], "sources": [], "description": "Represents an opportunity, which is a sale or pending deal.", "columns": {"opportunity_id": {"name": "opportunity_id", "description": "The unique, system-generated ID assigned during creation.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time at which fivetran last synced this record", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "ID of the account associated with this opportunity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Estimated total sale amount. For opportunities with products, the amount is the sum of the related products.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "ID of a related Campaign. This field is defined only for those organizations that have the campaign feature Campaigns enabled.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "close_date": {"name": "close_date", "description": "Required. Date when the opportunity is expected to close.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_date": {"name": "created_date", "description": "Date when the opportunity is was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Text description of the opportunity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "expected_revenue": {"name": "expected_revenue", "description": "Read-only field that is equal to the product of the opportunity Amount field and the Probability.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fiscal": {"name": "fiscal", "description": "If fiscal years are not enabled, the name of the fiscal quarter or period in which the opportunity CloseDate falls.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fiscal_quarter": {"name": "fiscal_quarter", "description": "Represents the fiscal quarter. Valid values are 1, 2, 3, or 4.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fiscal_year": {"name": "fiscal_year", "description": "Represents the fiscal year, for example, 2006.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "forecast_category": {"name": "forecast_category", "description": "Restricted picklist field.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "forecast_category_name": {"name": "forecast_category_name", "description": "The name of the forecast category.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "has_open_activity": {"name": "has_open_activity", "description": "Indicates whether an opportunity has an open event or task (true) or not (false).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "has_opportunity_line_item": {"name": "has_opportunity_line_item", "description": "Read-only field that indicates whether the opportunity has associated line items. A value of true means that Opportunity line items have been created for the opportunity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "has_overdue_task": {"name": "has_overdue_task", "description": "Indicates whether an opportunity has an overdue task (true) or not (false).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_closed": {"name": "is_closed", "description": "True, if Stage Name Label is Closed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_deleted": {"name": "is_deleted", "description": "Indicates whether the object has been moved to the Recycle Bin (true) or not (false).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_excluded_from_territory_2_filter": {"name": "is_excluded_from_territory_2_filter", "description": "Used for Filter-Based Opportunity Territory Assignment. Indicates whether the opportunity is excluded (True) or included (False) each time the APEX filter is executed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_won": {"name": "is_won", "description": "True, if Stage Name Label is Won.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_activity_date": {"name": "last_activity_date", "description": "Value is one of the following, whichever is the most recent:Due date of the most recent event logged against the record or Due date of the most recently closed task associated with the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_referenced_date": {"name": "last_referenced_date", "description": "The timestamp when the current user last accessed this record, a record related to this record, or a list view.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_viewed_date": {"name": "last_viewed_date", "description": "The timestamp when the current user last viewed this record or list view. If this value is null, the user might have only accessed this record or list view (LastReferencedDate) but not viewed it.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "lead_source": {"name": "lead_source", "description": "Source of this opportunity, such as Advertisement or Trade Show.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "opportunity_name": {"name": "opportunity_name", "description": "Required. A name for this opportunity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "next_step": {"name": "next_step", "description": "Description of next task in closing opportunity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "owner_id": {"name": "owner_id", "description": "ID of the User who has been assigned to work this opportunity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "Pricebook2Id": {"name": "Pricebook2Id", "description": "ID of a related Pricebook2 object. The Pricebook2Id field indicates which Pricebook2 applies to this opportunity. The Pricebook2Id field is defined only for those organizations that have products enabled as a feature. You can specify values for only one field (Pricebook2Id or PricebookId)\u2014not both fields. For this reason, both fields are declared nillable.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "pricebook_2_id": {"name": "pricebook_2_id", "description": "Unavailable as of version 3.0. As of version 8.0, the Pricebook object is no longer available. Use the Pricebook2Id field instead, specifying the ID of the Pricebook2 record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "probability": {"name": "probability", "description": "Percentage of estimated confidence in closing the opportunity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "record_type_id": {"name": "record_type_id", "description": "ID of the record type assigned to this object.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "stage_name": {"name": "stage_name", "description": "Required. Current stage of this record. The StageName field controls several other fields on an opportunity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "synced_quote_id": {"name": "synced_quote_id", "description": "The ID of the Quote that syncs with the opportunity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "territory_2_id": {"name": "territory_2_id", "description": "The ID of the territory that is assigned to the opportunity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "type": {"name": "type", "description": "Type of opportunity. For example, Existing Business or New Business.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_created_this_month": {"name": "is_created_this_month", "description": "Yes, if the opportunity created date is in the current month.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_created_this_quarter": {"name": "is_created_this_quarter", "description": "Yes, if the opportunity created date is in the current quarter.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "days_since_created": {"name": "days_since_created", "description": "The difference, in days, between the opportunity created date and the current timestamp.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "days_to_close": {"name": "days_to_close", "description": "The difference, in days, between the opportunity created date and the opportunity close date.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_closed_this_month": {"name": "is_closed_this_month", "description": "Yes, if the opportunity close date is in the current month.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_closed_this_quarter": {"name": "is_closed_this_quarter", "description": "Yes, if the opportunity close date is in the current quarter.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "salesforce_source://models/stg_tables.yml", "compiled_path": "target/compiled/salesforce_source/models/stg_salesforce__opportunity.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table"}, "created_at": 1655305161.7580218, "compiled_sql": "with base as (\n\n select *\n from `dbt-package-testing`.`dbt_renee`.`stg_salesforce__opportunity_tmp`\n), \n\nfields as (\n\n select\n\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n account_id\n \n as \n \n account_id\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n campaign_id\n \n as \n \n campaign_id\n \n, \n \n \n close_date\n \n as \n \n close_date\n \n, \n \n \n created_date\n \n as \n \n created_date\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n expected_revenue\n \n as \n \n expected_revenue\n \n, \n \n \n fiscal\n \n as \n \n fiscal\n \n, \n \n \n fiscal_quarter\n \n as \n \n fiscal_quarter\n \n, \n \n \n fiscal_year\n \n as \n \n fiscal_year\n \n, \n \n \n forecast_category\n \n as \n \n forecast_category\n \n, \n \n \n forecast_category_name\n \n as \n \n forecast_category_name\n \n, \n \n \n has_open_activity\n \n as \n \n has_open_activity\n \n, \n \n \n has_opportunity_line_item\n \n as \n \n has_opportunity_line_item\n \n, \n \n \n has_overdue_task\n \n as \n \n has_overdue_task\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n is_closed\n \n as \n \n is_closed\n \n, \n \n \n is_deleted\n \n as \n \n is_deleted\n \n, \n \n \n is_won\n \n as \n \n is_won\n \n, \n \n \n last_activity_date\n \n as \n \n last_activity_date\n \n, \n \n \n last_referenced_date\n \n as \n \n last_referenced_date\n \n, \n \n \n last_viewed_date\n \n as \n \n last_viewed_date\n \n, \n \n \n lead_source\n \n as \n \n lead_source\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n next_step\n \n as \n \n next_step\n \n, \n \n \n owner_id\n \n as \n \n owner_id\n \n, \n \n \n probability\n \n as \n \n probability\n \n, \n \n \n record_type_id\n \n as \n \n record_type_id\n \n, \n \n \n stage_name\n \n as \n \n stage_name\n \n, \n \n \n synced_quote_id\n \n as \n \n synced_quote_id\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n\n --The below script allows for pass through columns.\n \n , order_form_opt_out_c\n \n\n from base\n), \n\nfinal as (\n \n select \n cast(_fivetran_synced as \n timestamp\n) as _fivetran_synced,\n account_id,\n cast(amount as \n numeric\n) as amount,\n campaign_id,\n cast(close_date as \n timestamp\n) as close_date,\n cast(created_date as \n timestamp\n) as created_date,\n description,\n cast(expected_revenue as \n numeric\n) as expected_revenue,\n fiscal,\n fiscal_quarter,\n fiscal_year,\n forecast_category,\n forecast_category_name,\n has_open_activity,\n has_opportunity_line_item,\n has_overdue_task,\n id as opportunity_id,\n is_closed,\n is_deleted,\n is_won,\n cast(last_activity_date as \n timestamp\n) as last_activity_date,\n cast(last_referenced_date as \n timestamp\n) as last_referenced_date,\n cast(last_viewed_date as \n timestamp\n) as last_viewed_date,\n lead_source,\n name as opportunity_name,\n next_step,\n owner_id,\n probability,\n record_type_id,\n stage_name,\n synced_quote_id,\n type\n\n --The below script allows for pass through columns.\n \n , order_form_opt_out_c\n\n \n\n from fields\n), \n\ncalculated as (\n \n select \n *,\n created_date >= timestamp_trunc(\n cast(\n current_timestamp\n as timestamp),\n month\n ) as is_created_this_month,\n created_date >= timestamp_trunc(\n cast(\n current_timestamp\n as timestamp),\n quarter\n ) as is_created_this_quarter,\n datetime_diff(\n cast(created_date as datetime),\n cast(\n current_timestamp\n as datetime),\n day\n ) as days_since_created,\n datetime_diff(\n cast(created_date as datetime),\n cast(close_date as datetime),\n day\n ) as days_to_close,\n timestamp_trunc(\n cast(close_date as timestamp),\n month\n ) = timestamp_trunc(\n cast(\n current_timestamp\n as timestamp),\n month\n ) as is_closed_this_month,\n timestamp_trunc(\n cast(close_date as timestamp),\n quarter\n ) = timestamp_trunc(\n cast(\n current_timestamp\n as timestamp),\n quarter\n ) as is_closed_this_quarter\n from final\n)\n\nselect * \nfrom calculated\nwhere not coalesce(is_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`dbt_renee`.`stg_salesforce__opportunity`"}, "model.salesforce_source.stg_salesforce__user_role": {"raw_sql": "--To disable this model, set the using_user_role variable within your dbt_project.yml file to False.\n{{ config(enabled=var('salesforce__user_role_enabled', True)) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_salesforce__user_role_tmp') }}\n), \n\nfields as (\n\n select\n \n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_salesforce__user_role_tmp')),\n staging_columns=get_user_role_columns()\n )\n }}\n\n --The below script allows for pass through columns.\n {% if var('user_role_pass_through_columns',[]) != [] %}\n , {{ var('user_role_pass_through_columns') | join (\", \")}}\n {% endif %}\n\n from base\n), \n\nfinal as (\n\n select\n _fivetran_deleted,\n cast(_fivetran_synced as {{ dbt_utils.type_timestamp() }}) as _fivetran_synced,\n developer_name,\n id as user_role_id,\n name as user_role_name,\n opportunity_access_for_account_owner,\n parent_role_id,\n rollup_description\n\n --The below script allows for pass through columns.\n {% if var('user_role_pass_through_columns',[]) != [] %}\n , {{ var('user_role_pass_through_columns') | join (\", \")}}\n\n {% endif %}\n \n from fields\n)\n\nselect *\nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.salesforce_source.get_user_role_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_timestamp"], "nodes": ["model.salesforce_source.stg_salesforce__user_role_tmp", "model.salesforce_source.stg_salesforce__user_role_tmp"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "dbt_renee", "fqn": ["salesforce_source", "stg_salesforce__user_role"], "unique_id": "model.salesforce_source.stg_salesforce__user_role", "package_name": "salesforce_source", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/salesforce_source", "path": "stg_salesforce__user_role.sql", "original_file_path": "models/stg_salesforce__user_role.sql", "name": "stg_salesforce__user_role", "alias": "stg_salesforce__user_role", "checksum": {"name": "sha256", "checksum": "2d3de7ef7409cfc7636dfd35f831808496ed9b665fbf737e4ab02bf4e8048992"}, "tags": [], "refs": [["stg_salesforce__user_role_tmp"], ["stg_salesforce__user_role_tmp"]], "sources": [], "description": "Represents a user role in your organization.", "columns": {"user_role_id": {"name": "user_role_id", "description": "The unique, system-generated ID assigned during creation", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time at which fivetran last synced this record", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "True, if this field has been deleted", "meta": {}, "data_type": null, "quote": null, "tags": []}, "case_access_for_account_owner": {"name": "case_access_for_account_owner", "description": "The case access level for the account owner.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "contact_access_for_account_owner": {"name": "contact_access_for_account_owner", "description": "The contact access level for the account owner.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "developer_name": {"name": "developer_name", "description": "The unique name of the object in the API.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "forecast_user_id": {"name": "forecast_user_id", "description": "The ID of the forecast manager associated with this role.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "may_forecast_manager_share": {"name": "may_forecast_manager_share", "description": "Indicates whether the forecast manager can manually share their own forecast.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "user_role_name": {"name": "user_role_name", "description": "Required. Name of the role. Corresponds to Label on the user interface.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "opportunity_access_for_account_owner": {"name": "opportunity_access_for_account_owner", "description": "Required. The opportunity access level for the account owner.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_role_id": {"name": "parent_role_id", "description": "The ID of the parent role.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "portal_type": {"name": "portal_type", "description": "This value indicates the type of portal for the role", "meta": {}, "data_type": null, "quote": null, "tags": []}, "rollup_description": {"name": "rollup_description", "description": "Description of the forecast rollup.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "salesforce_source://models/stg_tables.yml", "compiled_path": "target/compiled/salesforce_source/models/stg_salesforce__user_role.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "enabled": true}, "created_at": 1655305161.78992, "compiled_sql": "--To disable this model, set the using_user_role variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`dbt_renee`.`stg_salesforce__user_role_tmp`\n), \n\nfields as (\n\n select\n \n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n developer_name\n \n as \n \n developer_name\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n opportunity_access_for_account_owner\n \n as \n \n opportunity_access_for_account_owner\n \n, \n \n \n parent_role_id\n \n as \n \n parent_role_id\n \n, \n \n \n rollup_description\n \n as \n \n rollup_description\n \n\n\n\n\n --The below script allows for pass through columns.\n \n\n from base\n), \n\nfinal as (\n\n select\n _fivetran_deleted,\n cast(_fivetran_synced as \n timestamp\n) as _fivetran_synced,\n developer_name,\n id as user_role_id,\n name as user_role_name,\n opportunity_access_for_account_owner,\n parent_role_id,\n rollup_description\n\n --The below script allows for pass through columns.\n \n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`dbt_renee`.`stg_salesforce__user_role`"}, "model.salesforce_source.stg_salesforce__contact": {"raw_sql": "with base as (\n\n select * \n from {{ ref('stg_salesforce__contact_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_salesforce__contact_tmp')),\n staging_columns=get_contact_columns()\n )\n }}\n\n --The below script allows for pass through columns.\n {% if var('contact_pass_through_columns',[]) != [] %}\n , {{ var('contact_pass_through_columns') | join (\", \")}}\n {% endif %}\n \n from base\n), \n\nfinal as (\n \n select \n cast(_fivetran_synced as {{ dbt_utils.type_timestamp() }}) as _fivetran_synced,\n id as contact_id,\n account_id,\n department,\n description,\n email,\n first_name,\n home_phone,\n individual_id,\n is_deleted,\n cast(last_activity_date as {{ dbt_utils.type_timestamp() }}) as last_activity_date,\n last_modified_by_id,\n last_modified_date,\n last_name,\n last_referenced_date,\n cast(last_viewed_date as {{ dbt_utils.type_timestamp() }}) as last_viewed_date,\n lead_source,\n mailing_city,\n mailing_country,\n mailing_country_code,\n mailing_postal_code,\n mailing_state,\n mailing_state_code,\n mailing_street,\n master_record_id,\n mobile_phone,\n name,\n owner_id,\n phone,\n reports_to_id,\n title\n\n --The below script allows for pass through columns.\n {% if var('contact_pass_through_columns',[]) != [] %}\n , {{ var('contact_pass_through_columns') | join (\", \")}}\n\n {% endif %}\n \n from fields\n)\n\nselect *\nfrom final\nwhere not coalesce(is_deleted, false)", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.salesforce_source.get_contact_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_timestamp"], "nodes": ["model.salesforce_source.stg_salesforce__contact_tmp", "model.salesforce_source.stg_salesforce__contact_tmp"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "dbt_renee", "fqn": ["salesforce_source", "stg_salesforce__contact"], "unique_id": "model.salesforce_source.stg_salesforce__contact", "package_name": "salesforce_source", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/salesforce_source", "path": "stg_salesforce__contact.sql", "original_file_path": "models/stg_salesforce__contact.sql", "name": "stg_salesforce__contact", "alias": "stg_salesforce__contact", "checksum": {"name": "sha256", "checksum": "5f074427c0b2e9b3e1836e5321c894057c1faf1762c6e1f3212b3c834119324a"}, "tags": [], "refs": [["stg_salesforce__contact_tmp"], ["stg_salesforce__contact_tmp"]], "sources": [], "description": "Represents a contact, which is a person associated with an account.", "columns": {"contact_id": {"name": "contact_id", "description": "The unique, system-generated ID assigned during creation.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time at which fivetran last synced this record", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_active": {"name": "_fivetran_active", "description": "True if record is active, used to filter out only active records if History Mode is enabled", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "ID of the account that\u2019s the parent of this contact.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department": {"name": "department", "description": "The contact\u2019s department.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "A description of the contact. Label is Contact Description up to 32 KB.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "email": {"name": "email", "description": "The contact\u2019s email address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "first_name": {"name": "first_name", "description": "The contact\u2019s first name up to 40 characters.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "home_phone": {"name": "home_phone", "description": "The contact\u2019s home telephone number.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "individual_id": {"name": "individual_id", "description": "ID of the data privacy record associated with this contact. This field is available if Data Protection and Privacy is enabled. This is a relationship field.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_deleted": {"name": "is_deleted", "description": "Indicates whether the object has been moved to the Recycle Bin (true) or not (false). Label is Deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_activity_date": {"name": "last_activity_date", "description": "Value is the most recent of either: Due date of the most recent event logged against the record. Due date of the most recently closed task associated with the record.\n", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_modified_by_id": {"name": "last_modified_by_id", "description": "Last Modified By ID", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_modified_date": {"name": "last_modified_date", "description": "Last Modified Date", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_name": {"name": "last_name", "description": "Required. Last name of the contact up to 80 characters.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_referenced_date": {"name": "last_referenced_date", "description": "The timestamp when the current user last accessed this record, a record related to this record, or a list view.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_viewed_date": {"name": "last_viewed_date", "description": "The timestamp when the current user last viewed this record or list view. If this value is null, the user might have only accessed this record or list view (LastReferencedDate) but not viewed it.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "lead_source": {"name": "lead_source", "description": "The lead\u2019s source.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "mailing_city": {"name": "mailing_city", "description": "Mailing address details.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "mailing_country": {"name": "mailing_country", "description": "Mailing address details.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "mailing_country_code": {"name": "mailing_country_code", "description": "The ISO codes for the mailing address\u2019s state and country.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "mailing_postal_code": {"name": "mailing_postal_code", "description": "Mailing address details.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "mailing_state": {"name": "mailing_state", "description": "Mailing address details.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "mailing_state_code": {"name": "mailing_state_code", "description": "The ISO codes for the mailing address\u2019s state and country.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "mailing_street": {"name": "mailing_street", "description": "Street address for mailing address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "master_record_id": {"name": "master_record_id", "description": "If this record was deleted as the result of a merge, this field contains the ID of the record that remains. If this record was deleted for any other reason, or has not been deleted, the value is null. This is a relationship field.\n", "meta": {}, "data_type": null, "quote": null, "tags": []}, "mobile_phone": {"name": "mobile_phone", "description": "Contact\u2019s mobile phone number.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Concatenation of FirstName, MiddleName, LastName, and Suffix up to 203 characters, including whitespaces.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "owner_id": {"name": "owner_id", "description": "The ID of the owner of the account associated with this contact. This is a relationship field.\n", "meta": {}, "data_type": null, "quote": null, "tags": []}, "phone": {"name": "phone", "description": "Telephone number for the contact. Label is Business Phone.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "reports_to_id": {"name": "reports_to_id", "description": "This field doesn\u2019t appear if IsPersonAccount is true. This is a relationship field.\n", "meta": {}, "data_type": null, "quote": null, "tags": []}, "title": {"name": "title", "description": "Title", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "salesforce_source://models/stg_tables.yml", "compiled_path": "target/compiled/salesforce_source/models/stg_salesforce__contact.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table"}, "created_at": 1655305161.803207, "compiled_sql": "with base as (\n\n select * \n from `dbt-package-testing`.`dbt_renee`.`stg_salesforce__contact_tmp`\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n account_id\n \n as \n \n account_id\n \n, \n \n \n assistant_name\n \n as \n \n assistant_name\n \n, \n \n \n assistant_phone\n \n as \n \n assistant_phone\n \n, \n \n \n birthdate\n \n as \n \n birthdate\n \n, \n \n \n department\n \n as \n \n department\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n do_not_call\n \n as \n \n do_not_call\n \n, \n \n \n email\n \n as \n \n email\n \n, \n \n \n email_bounced_date\n \n as \n \n email_bounced_date\n \n, \n \n \n email_bounced_reason\n \n as \n \n email_bounced_reason\n \n, \n \n \n fax\n \n as \n \n fax\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n has_opted_out_of_email\n \n as \n \n has_opted_out_of_email\n \n, \n \n \n has_opted_out_of_fax\n \n as \n \n has_opted_out_of_fax\n \n, \n \n \n home_phone\n \n as \n \n home_phone\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n individual_id\n \n as \n \n individual_id\n \n, \n \n \n is_deleted\n \n as \n \n is_deleted\n \n, \n \n \n is_email_bounced\n \n as \n \n is_email_bounced\n \n, \n \n \n jigsaw\n \n as \n \n jigsaw\n \n, \n \n \n jigsaw_contact_id\n \n as \n \n jigsaw_contact_id\n \n, \n \n \n last_activity_date\n \n as \n \n last_activity_date\n \n, \n \n \n last_curequest_date\n \n as \n \n last_curequest_date\n \n, \n \n \n last_cuupdate_date\n \n as \n \n last_cuupdate_date\n \n, \n \n \n last_modified_by_id\n \n as \n \n last_modified_by_id\n \n, \n \n \n last_modified_date\n \n as \n \n last_modified_date\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n last_referenced_date\n \n as \n \n last_referenced_date\n \n, \n \n \n last_viewed_date\n \n as \n \n last_viewed_date\n \n, \n \n \n lead_source\n \n as \n \n lead_source\n \n, \n \n \n mailing_city\n \n as \n \n mailing_city\n \n, \n \n \n mailing_country\n \n as \n \n mailing_country\n \n, \n \n \n mailing_country_code\n \n as \n \n mailing_country_code\n \n, \n \n \n mailing_geocode_accuracy\n \n as \n \n mailing_geocode_accuracy\n \n, \n \n \n mailing_latitude\n \n as \n \n mailing_latitude\n \n, \n \n \n mailing_longitude\n \n as \n \n mailing_longitude\n \n, \n \n \n mailing_postal_code\n \n as \n \n mailing_postal_code\n \n, \n \n \n mailing_state\n \n as \n \n mailing_state\n \n, \n \n \n mailing_state_code\n \n as \n \n mailing_state_code\n \n, \n \n \n mailing_street\n \n as \n \n mailing_street\n \n, \n \n \n master_record_id\n \n as \n \n master_record_id\n \n, \n \n \n mobile_phone\n \n as \n \n mobile_phone\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n other_city\n \n as \n \n other_city\n \n, \n \n \n other_country\n \n as \n \n other_country\n \n, \n \n \n other_geocode_accuracy\n \n as \n \n other_geocode_accuracy\n \n, \n \n \n other_latitude\n \n as \n \n other_latitude\n \n, \n \n \n other_longitude\n \n as \n \n other_longitude\n \n, \n \n \n other_phone\n \n as \n \n other_phone\n \n, \n \n \n other_postal_code\n \n as \n \n other_postal_code\n \n, \n \n \n other_state\n \n as \n \n other_state\n \n, \n \n \n other_street\n \n as \n \n other_street\n \n, \n \n \n owner_id\n \n as \n \n owner_id\n \n, \n \n \n phone\n \n as \n \n phone\n \n, \n \n \n photo_url\n \n as \n \n photo_url\n \n, \n \n \n reports_to_id\n \n as \n \n reports_to_id\n \n, \n \n \n salutation\n \n as \n \n salutation\n \n, \n \n \n system_modstamp\n \n as \n \n system_modstamp\n \n, \n \n \n title\n \n as \n \n title\n \n\n\n\n\n --The below script allows for pass through columns.\n \n \n from base\n), \n\nfinal as (\n \n select \n cast(_fivetran_synced as \n timestamp\n) as _fivetran_synced,\n id as contact_id,\n account_id,\n department,\n description,\n email,\n first_name,\n home_phone,\n individual_id,\n is_deleted,\n cast(last_activity_date as \n timestamp\n) as last_activity_date,\n last_modified_by_id,\n last_modified_date,\n last_name,\n last_referenced_date,\n cast(last_viewed_date as \n timestamp\n) as last_viewed_date,\n lead_source,\n mailing_city,\n mailing_country,\n mailing_country_code,\n mailing_postal_code,\n mailing_state,\n mailing_state_code,\n mailing_street,\n master_record_id,\n mobile_phone,\n name,\n owner_id,\n phone,\n reports_to_id,\n title\n\n --The below script allows for pass through columns.\n \n \n from fields\n)\n\nselect *\nfrom final\nwhere not coalesce(is_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`dbt_renee`.`stg_salesforce__contact`"}, "model.salesforce_source.stg_salesforce__account": {"raw_sql": "with base as (\n\n select *\n from {{ ref('stg_salesforce__account_tmp') }}\n), \n\nfields as (\n\n select\n \n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_salesforce__account_tmp')),\n staging_columns=get_account_columns()\n )\n }}\n\n --The below script allows for pass through columns.\n {% if var('account_pass_through_columns',[]) != [] %}\n , {{ var('account_pass_through_columns') | join (\", \")}}\n {% endif %}\n \n from base\n), \n\nfinal as (\n\n select \n cast(_fivetran_synced as {{ dbt_utils.type_timestamp() }}) as _fivetran_synced,\n account_number,\n account_source,\n cast(annual_revenue as {{ dbt_utils.type_numeric() }}) as annual_revenue,\n billing_city,\n billing_country,\n billing_postal_code,\n billing_state,\n billing_state_code,\n billing_street,\n description,\n id as account_id,\n industry,\n is_deleted,\n cast(last_activity_date as {{ dbt_utils.type_timestamp() }}) as last_activity_date,\n cast(last_referenced_date as {{ dbt_utils.type_timestamp() }}) as last_referenced_date,\n cast(last_viewed_date as {{ dbt_utils.type_timestamp() }}) as last_viewed_date,\n master_record_id,\n name as account_name,\n number_of_employees,\n owner_id,\n ownership,\n parent_id,\n rating,\n record_type_id,\n shipping_city,\n shipping_country,\n shipping_country_code,\n shipping_postal_code,\n shipping_state,\n shipping_state_code,\n shipping_street,\n type,\n website\n\n --The below script allows for pass through columns.\n {% if var('account_pass_through_columns',[]) != [] %}\n , {{ var('account_pass_through_columns') | join (\", \")}}\n\n {% endif %}\n \n from fields\n)\n\nselect *\nfrom final\nwhere not coalesce(is_deleted, false)", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.salesforce_source.get_account_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_numeric"], "nodes": ["model.salesforce_source.stg_salesforce__account_tmp", "model.salesforce_source.stg_salesforce__account_tmp"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "dbt_renee", "fqn": ["salesforce_source", "stg_salesforce__account"], "unique_id": "model.salesforce_source.stg_salesforce__account", "package_name": "salesforce_source", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/salesforce_source", "path": "stg_salesforce__account.sql", "original_file_path": "models/stg_salesforce__account.sql", "name": "stg_salesforce__account", "alias": "stg_salesforce__account", "checksum": {"name": "sha256", "checksum": "7e4b4444cbca53eabe25f3bc85baacaf60989c9348bf0dcdf63073bde8f71d00"}, "tags": [], "refs": [["stg_salesforce__account_tmp"], ["stg_salesforce__account_tmp"]], "sources": [], "description": "Represents an individual account, which is an organization or person involved with your business (such as customers, competitors, and partners).", "columns": {"account_id": {"name": "account_id", "description": "The unique, system-generated ID assigned during creation", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time at which fivetran last synced this record", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_number": {"name": "account_number", "description": "Account number assigned to this account (not the unique, system-generated ID assigned during creation).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_source": {"name": "account_source", "description": "The source of the account record. For example, Advertisement, Data.com, or Trade Show.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "annual_revenue": {"name": "annual_revenue", "description": "Estimated annual revenue of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billing_city": {"name": "billing_city", "description": "Details for the billing address of this account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billing_country": {"name": "billing_country", "description": "Details for the billing address of this account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billing_country_code": {"name": "billing_country_code", "description": "The ISO country code for the account\u2019s billing address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billing_geocode_accuracy": {"name": "billing_geocode_accuracy", "description": "Accuracy level of the geocode for the billing address. See Compound Field Considerations and Limitations for details on geolocation compound fields.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billing_latitude": {"name": "billing_latitude", "description": "Used with BillingLongitude to specify the precise geolocation of a billing address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billing_longitude": {"name": "billing_longitude", "description": "Used with BillingLatitude to specify the precise geolocation of a billing address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billing_postal_code": {"name": "billing_postal_code", "description": "Details for the billing address of this account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billing_state": {"name": "billing_state", "description": "Details for the billing address of this account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billing_state_code": {"name": "billing_state_code", "description": "The ISO state code for the account\u2019s billing address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billing_street": {"name": "billing_street", "description": "Street address for the billing address of this account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Text description of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fax": {"name": "fax", "description": "Fax number for the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "industry": {"name": "industry", "description": "An industry associated with this account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_deleted": {"name": "is_deleted", "description": "Indicates whether the object has been moved to the Recycle Bin (true) or not (false).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "jigsaw_company_id": {"name": "jigsaw_company_id", "description": "References the ID of a company in Data.com. If an account has a value in this field, it means that the account was imported from Data.com.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_activity_date": {"name": "last_activity_date", "description": "Value is one of the following, whichever is the most recent", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_referenced_date": {"name": "last_referenced_date", "description": "The timestamp when the current user last accessed this record, a record related to this record, or a list view.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_viewed_date": {"name": "last_viewed_date", "description": "The timestamp when the current user last viewed this record or list view. If this value is null, the user might have only accessed this record or list view (LastReferencedDate) but not viewed it.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "master_record_id": {"name": "master_record_id", "description": "If this object was deleted as the result of a merge, this field contains the ID of the record that was kept. If this object was deleted for any other reason, or has not been deleted, the value is null.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "Required. Name of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "number_of_employees": {"name": "number_of_employees", "description": "Number of employees working at the company represented by this account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "owner_id": {"name": "owner_id", "description": "The ID of the user who currently owns this account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ownership": {"name": "ownership", "description": "Ownership type for the account, for example Private, Public, or Subsidiary.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_id": {"name": "parent_id", "description": "ID of the parent object, if any.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "phone": {"name": "phone", "description": "Phone number for this account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "photo_url": {"name": "photo_url", "description": "Path to be combined with the URL of a Salesforce instance (for example, https://yourInstance.salesforce.com/) to generate a URL to request the social network profile image associated with the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "rating": {"name": "rating", "description": "The account\u2019s prospect rating, for example Hot, Warm, or Cold.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "record_type_id": {"name": "record_type_id", "description": "ID of the record type assigned to this object.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "shipping_city": {"name": "shipping_city", "description": "Details of the shipping address for this account", "meta": {}, "data_type": null, "quote": null, "tags": []}, "shipping_country": {"name": "shipping_country", "description": "Details of the shipping address for this account. Country", "meta": {}, "data_type": null, "quote": null, "tags": []}, "shipping_country_code": {"name": "shipping_country_code", "description": "The ISO country code for the account\u2019s shipping address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "shipping_geocode_accuracy": {"name": "shipping_geocode_accuracy", "description": "Accuracy level of the geocode for the shipping address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "shipping_latitude": {"name": "shipping_latitude", "description": "Used with ShippingLongitude to specify the precise geolocation of a shipping address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "shipping_longitude": {"name": "shipping_longitude", "description": "Used with ShippingLatitude to specify the precise geolocation of an address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "shipping_postal_code": {"name": "shipping_postal_code", "description": "Details of the shipping address for this account. Postal code", "meta": {}, "data_type": null, "quote": null, "tags": []}, "shipping_state": {"name": "shipping_state", "description": "Details of the shipping address for this account. State", "meta": {}, "data_type": null, "quote": null, "tags": []}, "shipping_state_code": {"name": "shipping_state_code", "description": "The ISO state code for the account\u2019s shipping address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "shipping_street": {"name": "shipping_street", "description": "The street address of the shipping address for this account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sic": {"name": "sic", "description": "Standard Industrial Classification code of the company\u2019s main business categorization, for example, 57340 for Electronics.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sic_desc": {"name": "sic_desc", "description": "A brief description of an organization\u2019s line of business, based on its SIC code.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "site": {"name": "site", "description": "Name of the account\u2019s location, for example Headquarters or London.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ticker_symbol": {"name": "ticker_symbol", "description": "The stock market symbol for this account. This field is available on business accounts, not person accounts.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "type": {"name": "type", "description": "Type of account, for example, Customer, Competitor, or Partner.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "website": {"name": "website", "description": "The website of this account.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "salesforce_source://models/stg_tables.yml", "compiled_path": "target/compiled/salesforce_source/models/stg_salesforce__account.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table"}, "created_at": 1655305161.7405498, "compiled_sql": "with base as (\n\n select *\n from `dbt-package-testing`.`dbt_renee`.`stg_salesforce__account_tmp`\n), \n\nfields as (\n\n select\n \n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n account_number\n \n as \n \n account_number\n \n, \n \n \n account_source\n \n as \n \n account_source\n \n, \n \n \n annual_revenue\n \n as \n \n annual_revenue\n \n, \n \n \n billing_city\n \n as \n \n billing_city\n \n, \n \n \n billing_country\n \n as \n \n billing_country\n \n, \n \n \n billing_postal_code\n \n as \n \n billing_postal_code\n \n, \n \n \n billing_state\n \n as \n \n billing_state\n \n, \n \n \n billing_state_code\n \n as \n \n billing_state_code\n \n, \n \n \n billing_street\n \n as \n \n billing_street\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n industry\n \n as \n \n industry\n \n, \n \n \n is_deleted\n \n as \n \n is_deleted\n \n, \n \n \n last_activity_date\n \n as \n \n last_activity_date\n \n, \n \n \n last_referenced_date\n \n as \n \n last_referenced_date\n \n, \n \n \n last_viewed_date\n \n as \n \n last_viewed_date\n \n, \n \n \n master_record_id\n \n as \n \n master_record_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n number_of_employees\n \n as \n \n number_of_employees\n \n, \n \n \n owner_id\n \n as \n \n owner_id\n \n, \n \n \n ownership\n \n as \n \n ownership\n \n, \n \n \n parent_id\n \n as \n \n parent_id\n \n, \n \n \n rating\n \n as \n \n rating\n \n, \n \n \n record_type_id\n \n as \n \n record_type_id\n \n, \n \n \n shipping_city\n \n as \n \n shipping_city\n \n, \n \n \n shipping_country\n \n as \n \n shipping_country\n \n, \n \n \n shipping_country_code\n \n as \n \n shipping_country_code\n \n, \n \n \n shipping_postal_code\n \n as \n \n shipping_postal_code\n \n, \n \n \n shipping_state\n \n as \n \n shipping_state\n \n, \n \n \n shipping_state_code\n \n as \n \n shipping_state_code\n \n, \n \n \n shipping_street\n \n as \n \n shipping_street\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n website\n \n as \n \n website\n \n\n\n\n\n --The below script allows for pass through columns.\n \n \n from base\n), \n\nfinal as (\n\n select \n cast(_fivetran_synced as \n timestamp\n) as _fivetran_synced,\n account_number,\n account_source,\n cast(annual_revenue as \n numeric\n) as annual_revenue,\n billing_city,\n billing_country,\n billing_postal_code,\n billing_state,\n billing_state_code,\n billing_street,\n description,\n id as account_id,\n industry,\n is_deleted,\n cast(last_activity_date as \n timestamp\n) as last_activity_date,\n cast(last_referenced_date as \n timestamp\n) as last_referenced_date,\n cast(last_viewed_date as \n timestamp\n) as last_viewed_date,\n master_record_id,\n name as account_name,\n number_of_employees,\n owner_id,\n ownership,\n parent_id,\n rating,\n record_type_id,\n shipping_city,\n shipping_country,\n shipping_country_code,\n shipping_postal_code,\n shipping_state,\n shipping_state_code,\n shipping_street,\n type,\n website\n\n --The below script allows for pass through columns.\n \n \n from fields\n)\n\nselect *\nfrom final\nwhere not coalesce(is_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`dbt_renee`.`stg_salesforce__account`"}, "model.salesforce_source.stg_salesforce__lead": {"raw_sql": "with base as (\n\n select * \n from {{ ref('stg_salesforce__lead_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_salesforce__lead_tmp')),\n staging_columns=get_lead_columns()\n )\n }}\n\n --The below script allows for pass through columns.\n {% if var('lead_pass_through_columns',[]) != [] %}\n , {{ var('lead_pass_through_columns') | join (\", \")}}\n {% endif %}\n \n from base\n), \n\nfinal as (\n \n select \n cast(_fivetran_synced as {{ dbt_utils.type_timestamp() }}) as _fivetran_synced,\n id as lead_id,\n annual_revenue,\n city,\n company,\n converted_account_id,\n converted_contact_id,\n cast(converted_date as {{ dbt_utils.type_timestamp() }}) as converted_date,\n converted_opportunity_id,\n country,\n country_code,\n created_by_id,\n cast(created_date as {{ dbt_utils.type_timestamp() }}) as created_date,\n description,\n email,\n cast(email_bounced_date as {{ dbt_utils.type_timestamp() }}) as email_bounced_date,\n email_bounced_reason,\n first_name,\n geocode_accuracy,\n has_opted_out_of_email,\n individual_id,\n industry,\n is_converted,\n is_deleted,\n is_unread_by_owner,\n cast(last_activity_date as {{ dbt_utils.type_timestamp() }}) as last_activity_date,\n last_modified_by_id,\n cast(last_modified_date as {{ dbt_utils.type_timestamp() }}) as last_modified_date,\n last_name,\n cast(last_referenced_date as {{ dbt_utils.type_timestamp() }}) as last_referenced_date,\n cast(last_viewed_date as {{ dbt_utils.type_timestamp() }}) as last_viewed_date,\n lead_source,\n master_record_id,\n mobile_phone,\n name,\n number_of_employees,\n owner_id,\n phone,\n postal_code,\n state,\n state_code,\n status,\n street,\n title,\n website\n\n --The below script allows for pass through columns.\n {% if var('lead_pass_through_columns',[]) != [] %}\n , {{ var('lead_pass_through_columns') | join (\", \")}}\n\n {% endif %}\n \n from fields\n)\n\nselect *\nfrom final\nwhere not coalesce(is_deleted, false)", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.salesforce_source.get_lead_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_timestamp"], "nodes": ["model.salesforce_source.stg_salesforce__lead_tmp", "model.salesforce_source.stg_salesforce__lead_tmp"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "dbt_renee", "fqn": ["salesforce_source", "stg_salesforce__lead"], "unique_id": "model.salesforce_source.stg_salesforce__lead", "package_name": "salesforce_source", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/salesforce_source", "path": "stg_salesforce__lead.sql", "original_file_path": "models/stg_salesforce__lead.sql", "name": "stg_salesforce__lead", "alias": "stg_salesforce__lead", "checksum": {"name": "sha256", "checksum": "c99acfda4d3a0da922c113cc0d0b117dfc980ecb2d4eae3c6180e0edb1df4201"}, "tags": [], "refs": [["stg_salesforce__lead_tmp"], ["stg_salesforce__lead_tmp"]], "sources": [], "description": "Represents a prospect or lead.", "columns": {"lead_id": {"name": "lead_id", "description": "The unique, system-generated ID assigned during creation.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time at which fivetran last synced this record", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_active": {"name": "_fivetran_active", "description": "True if record is active, used to filter out only active records if History Mode is enabled", "meta": {}, "data_type": null, "quote": null, "tags": []}, "annual_revenue": {"name": "annual_revenue", "description": "Annual revenue for the lead\u2019s company.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "city": {"name": "city", "description": "City for the lead\u2019s address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "company": {"name": "company", "description": "Required. The lead\u2019s company.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "converted_account_id": {"name": "converted_account_id", "description": "Object reference ID that points to the account into which the lead converted. This is a relationship field.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "converted_contact_id": {"name": "converted_contact_id", "description": "Object reference ID that points to the contact into which the lead converted. This is a relationship field.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "converted_date": {"name": "converted_date", "description": "Date on which this lead was converted.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "converted_opportunity_id": {"name": "converted_opportunity_id", "description": "Object reference ID that points to the opportunity into which the lead has been converted. This is a relationship field.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "country": {"name": "country", "description": "The lead\u2019s country.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "country_code": {"name": "country_code", "description": "The ISO country code for the lead\u2019s address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_by_id": {"name": "created_by_id", "description": "Created By ID", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_date": {"name": "created_date", "description": "Created Date", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "The lead\u2019s description.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "email": {"name": "email", "description": "The lead\u2019s email address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "email_bounced_date": {"name": "email_bounced_date", "description": "If bounce management is activated and an email sent to the lead bounced, the date and time of the bounce.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "email_bounced_reason": {"name": "email_bounced_reason", "description": "If bounce management is activated and an email sent to the lead bounced, the reason for the bounce.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fax": {"name": "fax", "description": "The lead\u2019s fax number.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "first_name": {"name": "first_name", "description": "The lead\u2019s first name up to 40 characters.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "geocode_accuracy": {"name": "geocode_accuracy", "description": "Accuracy level of the geocode for the address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "has_opted_out_of_email": {"name": "has_opted_out_of_email", "description": "Indicates whether the lead doesn\u2019t want to receive email from Salesforce (true) or does (false). Label is Email Opt Out.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "id": {"name": "id", "description": "Lead ID", "meta": {}, "data_type": null, "quote": null, "tags": []}, "individual_id": {"name": "individual_id", "description": "ID of the data privacy record associated with this lead. This field is available if you enabled Data Protection and Privacy in Setup.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "industry": {"name": "industry", "description": "Industry in which the lead works.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_converted": {"name": "is_converted", "description": "Indicates whether the lead has been converted (true) or not (false). Label is Converted.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_deleted": {"name": "is_deleted", "description": "Indicates whether the object has been moved to the Recycle Bin (true) or not (false). Label is Deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_unread_by_owner": {"name": "is_unread_by_owner", "description": "If true, lead has been assigned, but not yet viewed. See Unread Leads for more information. Label is Unread By Owner.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "jigsaw_contact_id": {"name": "jigsaw_contact_id", "description": "Jigsaw Contact ID", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_activity_date": {"name": "last_activity_date", "description": "'Value is the most recent of either: Due date of the most recent event logged against the record. Due date of the most recently closed task associated with the record.'\n", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_modified_by_id": {"name": "last_modified_by_id", "description": "Last Modified By ID", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_modified_date": {"name": "last_modified_date", "description": "Last Modified Date", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_name": {"name": "last_name", "description": "Required. Last name of the lead up to 80 characters.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_referenced_date": {"name": "last_referenced_date", "description": "The timestamp when the current user last accessed this record, a record related to this record, or a list view.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_viewed_date": {"name": "last_viewed_date", "description": "The timestamp when the current user last viewed this record or list view. If this value is null, the user might have only accessed this record or list view (LastReferencedDate) but not viewed it.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "latitude": {"name": "latitude", "description": "Used with Longitude to specify the precise geolocation of an address. Acceptable values are numbers between \u201390 and 90 up to 15 decimal places.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "lead_source": {"name": "lead_source", "description": "The lead\u2019s source.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "longitude": {"name": "longitude", "description": "Used with Latitude to specify the precise geolocation of an address. Acceptable values are numbers between \u2013180 and 180 up to 15 decimal places.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "master_record_id": {"name": "master_record_id", "description": "If this record was deleted as the result of a merge, this field contains the ID of the record that was kept. If this record was deleted for any other reason, or has not been deleted, the value is null.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "mobile_phone": {"name": "mobile_phone", "description": "The lead\u2019s mobile phone number.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Concatenation of FirstName, MiddleName, LastName, and Suffix up to 203 characters, including whitespaces.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "number_of_employees": {"name": "number_of_employees", "description": "Number of employees at the lead\u2019s company. Label is Employees.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "owner_id": {"name": "owner_id", "description": "ID of the lead\u2019s owner. This is a polymorphic relationship field.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "phone": {"name": "phone", "description": "The lead\u2019s phone number.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "photo_url": {"name": "photo_url", "description": "Path to be combined with the URL of a Salesforce instance", "meta": {}, "data_type": null, "quote": null, "tags": []}, "postal_code": {"name": "postal_code", "description": "Postal code for the address of the lead. Label is Zip/Postal Code.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "salutation": {"name": "salutation", "description": "Salutation for the lead.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "state": {"name": "state", "description": "State for the address of the lead.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "state_code": {"name": "state_code", "description": "The ISO state code for the lead\u2019s address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "status": {"name": "status", "description": "Status code for this converted lead. Status codes are defined in Status and represented in the API by the LeadStatus object.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "street": {"name": "street", "description": "Street number and name for the address of the lead.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "system_modstamp": {"name": "system_modstamp", "description": "System Modstamp", "meta": {}, "data_type": null, "quote": null, "tags": []}, "title": {"name": "title", "description": "Title for the lead, such as CFO or CEO.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "website": {"name": "website", "description": "Website for the lead.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "salesforce_source://models/stg_tables.yml", "compiled_path": "target/compiled/salesforce_source/models/stg_salesforce__lead.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table"}, "created_at": 1655305161.838115, "compiled_sql": "with base as (\n\n select * \n from `dbt-package-testing`.`dbt_renee`.`stg_salesforce__lead_tmp`\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n annual_revenue\n \n as \n \n annual_revenue\n \n, \n \n \n city\n \n as \n \n city\n \n, \n \n \n company\n \n as \n \n company\n \n, \n \n \n converted_account_id\n \n as \n \n converted_account_id\n \n, \n \n \n converted_contact_id\n \n as \n \n converted_contact_id\n \n, \n \n \n converted_date\n \n as \n \n converted_date\n \n, \n \n \n converted_opportunity_id\n \n as \n \n converted_opportunity_id\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n country_code\n \n as \n \n country_code\n \n, \n \n \n created_by_id\n \n as \n \n created_by_id\n \n, \n \n \n created_date\n \n as \n \n created_date\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n email\n \n as \n \n email\n \n, \n \n \n email_bounced_date\n \n as \n \n email_bounced_date\n \n, \n \n \n email_bounced_reason\n \n as \n \n email_bounced_reason\n \n, \n \n \n fax\n \n as \n \n fax\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n geocode_accuracy\n \n as \n \n geocode_accuracy\n \n, \n \n \n has_opted_out_of_email\n \n as \n \n has_opted_out_of_email\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n individual_id\n \n as \n \n individual_id\n \n, \n \n \n industry\n \n as \n \n industry\n \n, \n \n \n is_converted\n \n as \n \n is_converted\n \n, \n \n \n is_deleted\n \n as \n \n is_deleted\n \n, \n \n \n is_unread_by_owner\n \n as \n \n is_unread_by_owner\n \n, \n \n \n jigsaw_contact_id\n \n as \n \n jigsaw_contact_id\n \n, \n \n \n last_activity_date\n \n as \n \n last_activity_date\n \n, \n \n \n last_modified_by_id\n \n as \n \n last_modified_by_id\n \n, \n \n \n last_modified_date\n \n as \n \n last_modified_date\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n last_referenced_date\n \n as \n \n last_referenced_date\n \n, \n \n \n last_viewed_date\n \n as \n \n last_viewed_date\n \n, \n \n \n latitude\n \n as \n \n latitude\n \n, \n \n \n lead_source\n \n as \n \n lead_source\n \n, \n \n \n longitude\n \n as \n \n longitude\n \n, \n \n \n master_record_id\n \n as \n \n master_record_id\n \n, \n \n \n mobile_phone\n \n as \n \n mobile_phone\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n number_of_employees\n \n as \n \n number_of_employees\n \n, \n \n \n owner_id\n \n as \n \n owner_id\n \n, \n \n \n phone\n \n as \n \n phone\n \n, \n \n \n photo_url\n \n as \n \n photo_url\n \n, \n \n \n postal_code\n \n as \n \n postal_code\n \n, \n \n \n salutation\n \n as \n \n salutation\n \n, \n \n \n state\n \n as \n \n state\n \n, \n \n \n state_code\n \n as \n \n state_code\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n street\n \n as \n \n street\n \n, \n \n \n system_modstamp\n \n as \n \n system_modstamp\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n website\n \n as \n \n website\n \n\n\n\n\n --The below script allows for pass through columns.\n \n \n from base\n), \n\nfinal as (\n \n select \n cast(_fivetran_synced as \n timestamp\n) as _fivetran_synced,\n id as lead_id,\n annual_revenue,\n city,\n company,\n converted_account_id,\n converted_contact_id,\n cast(converted_date as \n timestamp\n) as converted_date,\n converted_opportunity_id,\n country,\n country_code,\n created_by_id,\n cast(created_date as \n timestamp\n) as created_date,\n description,\n email,\n cast(email_bounced_date as \n timestamp\n) as email_bounced_date,\n email_bounced_reason,\n first_name,\n geocode_accuracy,\n has_opted_out_of_email,\n individual_id,\n industry,\n is_converted,\n is_deleted,\n is_unread_by_owner,\n cast(last_activity_date as \n timestamp\n) as last_activity_date,\n last_modified_by_id,\n cast(last_modified_date as \n timestamp\n) as last_modified_date,\n last_name,\n cast(last_referenced_date as \n timestamp\n) as last_referenced_date,\n cast(last_viewed_date as \n timestamp\n) as last_viewed_date,\n lead_source,\n master_record_id,\n mobile_phone,\n name,\n number_of_employees,\n owner_id,\n phone,\n postal_code,\n state,\n state_code,\n status,\n street,\n title,\n website\n\n --The below script allows for pass through columns.\n \n \n from fields\n)\n\nselect *\nfrom final\nwhere not coalesce(is_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`dbt_renee`.`stg_salesforce__lead`"}, "model.salesforce_source.stg_salesforce__event": {"raw_sql": "with base as (\n\n select * \n from {{ ref('stg_salesforce__event_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_salesforce__event_tmp')),\n staging_columns=get_event_columns()\n )\n }}\n\n --The below script allows for pass through columns.\n {% if var('event_pass_through_columns',[]) != [] %}\n , {{ var('event_pass_through_columns') | join (\", \")}}\n {% endif %}\n \n from base\n), \n\nfinal as (\n \n select \n cast(_fivetran_synced as {{ dbt_utils.type_timestamp() }}) as _fivetran_synced,\n id as event_id,\n account_id,\n cast(activity_date as {{ dbt_utils.type_timestamp() }}) as activity_date,\n cast(activity_date_time as {{ dbt_utils.type_timestamp() }}) as activity_date_time,\n created_by_id,\n cast(created_date as {{ dbt_utils.type_timestamp() }}) as created_date,\n description,\n cast(end_date as {{ dbt_utils.type_timestamp() }}) as end_date,\n cast(end_date_time as {{ dbt_utils.type_timestamp() }}) as end_date_time,\n event_subtype,\n group_event_type,\n is_archived,\n is_child,\n is_deleted,\n is_group_event,\n is_recurrence,\n last_modified_by_id,\n cast(last_modified_date as {{ dbt_utils.type_timestamp() }}) as last_modified_date,\n location,\n owner_id,\n cast(start_date_time as {{ dbt_utils.type_timestamp() }}) as start_date_time,\n subject,\n type,\n what_count,\n what_id,\n who_count,\n who_id\n\n --The below script allows for pass through columns.\n {% if var('event_pass_through_columns',[]) != [] %}\n , {{ var('event_pass_through_columns') | join (\", \")}}\n\n {% endif %}\n \n from fields\n)\n\nselect *\nfrom final\nwhere not coalesce(is_deleted, false)", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.salesforce_source.get_event_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_timestamp"], "nodes": ["model.salesforce_source.stg_salesforce__event_tmp", "model.salesforce_source.stg_salesforce__event_tmp"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "dbt_renee", "fqn": ["salesforce_source", "stg_salesforce__event"], "unique_id": "model.salesforce_source.stg_salesforce__event", "package_name": "salesforce_source", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/salesforce_source", "path": "stg_salesforce__event.sql", "original_file_path": "models/stg_salesforce__event.sql", "name": "stg_salesforce__event", "alias": "stg_salesforce__event", "checksum": {"name": "sha256", "checksum": "d8d13bcdf4f1c8252d2988c54e63b89e147245b9b97f7c14ea75b781e6d1ed23"}, "tags": [], "refs": [["stg_salesforce__event_tmp"], ["stg_salesforce__event_tmp"]], "sources": [], "description": "Represents an event in the calendar. In the user interface, event and task records are collectively referred to as activities.", "columns": {"event_id": {"name": "event_id", "description": "The unique, system-generated ID assigned during creation.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time at which fivetran last synced this record", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_active": {"name": "_fivetran_active", "description": "True if record is active, used to filter out only active records if History Mode is enabled", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Represents the ID of the related account. The AccountId is determined as follows. If the value of WhatId is any of the following objects, then Salesforce uses that object\u2019s AccountId.\nAccount Opportunity Contract Custom object that is a child of Account If the value of the WhatId field is any other object, and the value of the WhoId field is a contact object, then Salesforce uses that contact\u2019s AccountId. (If your org uses Shared Activities, Salesforce uses the AccountId of the primary contact.)\nOtherwise, Salesforce sets the value of the AccountId field to null.\nFor information on IDs, see ID Field Type.\nThis is a relationship field.\n", "meta": {}, "data_type": null, "quote": null, "tags": []}, "activity_date": {"name": "activity_date", "description": "Contains the event\u2019s due date if the IsAllDayEvent flag is set to true. This field is a date field with a timestamp that is always set to midnight in the Coordinated Universal Time (UTC) time zone. Don\u2019t attempt to alter the timestamp to account for time zone differences. Label is Due Date Only. This field is required in versions 12.0 and earlier if the IsAllDayEvent flag is set to true.\nThe value for this field and StartDateTime must match, or one of them must be null.\n", "meta": {}, "data_type": null, "quote": null, "tags": []}, "activity_date_time": {"name": "activity_date_time", "description": "Contains the event\u2019s due date if the IsAllDayEvent flag is set to false. The time portion of this field is always transferred in the Coordinated Universal Time (UTC) time zone. Translate the time portion to or from a local time zone for the user or the application, as appropriate. Label is Due Date Time. This field is required in versions 12.0 and earlier if the IsAllDayEvent flag is set to false.\nThe value for this field and StartDateTime must match, or one of them must be null.\n", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_by_id": {"name": "created_by_id", "description": "Created By ID", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_date": {"name": "created_date", "description": "Created Date", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Contains a text description of the event.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "duration_in_minutes": {"name": "duration_in_minutes", "description": "Contains the event length, in minutes\n", "meta": {}, "data_type": null, "quote": null, "tags": []}, "end_date": {"name": "end_date", "description": "Read-only. Available in versions 46.0 and later. This field supplies the date value that appears in the EndDateTime field. This field is a date field with a timestamp that is always set to midnight in the Coordinated Universal Time (UTC) time zone.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "end_date_time": {"name": "end_date_time", "description": "Available in versions 13.0 and later. The time portion of this field is always transferred in the Coordinated Universal Time (UTC) time zone. Translate the time portion to or from a local time zone for the user or the application, as appropriate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "event_subtype": {"name": "event_subtype", "description": "Provides standard subtypes to facilitate creating and searching for events. This field isn\u2019t updateable.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "group_event_type": {"name": "group_event_type", "description": "Group Event Type", "meta": {}, "data_type": null, "quote": null, "tags": []}, "id": {"name": "id", "description": "Activity ID", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_archived": {"name": "is_archived", "description": "Indicates whether the event has been archived.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_child": {"name": "is_child", "description": "Indicates whether the event is a child of another event (true) or not (false). For a child event, you can update IsReminderSet and ReminderDateTime only. You can query and delete a child event. If the objects related to the child event are different from those objects related to the parent event (this difference is possible if you use API version 25.0 or earlier) and one of the objects related to the child event is deleted, the objects related to the parent event are updated to ensure data integrity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_deleted": {"name": "is_deleted", "description": "Deleted", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_group_event": {"name": "is_group_event", "description": "Indicates whether the event is a group event\u2014that is, whether it has invitees (true) or not (false).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_recurrence": {"name": "is_recurrence", "description": "Indicates whether a Salesforce Classic event is scheduled to repeat itself (true) or only occurs one time (false). This field is read-only when updating records, but not when creating them. If this field value is true, then RecurrenceEndDateOnly, RecurrenceStartDateTime, RecurrenceType, and any recurrence fields associated with the given recurrence type must be populated. Label is Create recurring series of events.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_modified_by_id": {"name": "last_modified_by_id", "description": "Last Modified By ID", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_modified_date": {"name": "last_modified_date", "description": "Last Modified Date", "meta": {}, "data_type": null, "quote": null, "tags": []}, "location": {"name": "location", "description": "Contains the location of the event.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "owner_id": {"name": "owner_id", "description": "Contains the ID of the user or public calendar who owns the event. Label is Assigned to ID. This is a polymorphic relationship field.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "start_date_time": {"name": "start_date_time", "description": "Indicates the start date and time of the event. Available in versions 13.0 and later.\nIf this field has a value, then ActivityDate and ActivityDateTime must either be null or match the value of this field.\n", "meta": {}, "data_type": null, "quote": null, "tags": []}, "subject": {"name": "subject", "description": "The subject line of the event, such as Call, Email, or Meeting.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "type": {"name": "type", "description": "Indicates the event type, such as Call, Email, or Meeting.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "what_count": {"name": "what_count", "description": "Available if your organization has enabled Shared Activities. Represents the count of related EventRelations pertaining to the WhatId. The count of the WhatId must be 1 or less.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "what_id": {"name": "what_id", "description": "The WhatId represents nonhuman objects such as accounts, opportunities, campaigns, cases, or custom objects. WhatIds are polymorphic. Polymorphic means a WhatId is equivalent to the ID of a related object. The label is Related To ID. This is a polymorphic relationship field.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "who_count": {"name": "who_count", "description": "Available to organizations that have Shared Activities enabled. Represents the count of related EventRelations pertaining to the WhoId.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "who_id": {"name": "who_id", "description": "The WhoId represents a human such as a lead or a contact. WhoIds are polymorphic. Polymorphic means a WhoId is equivalent to a contact\u2019s ID or a lead\u2019s ID. The label is Name ID.\n", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "salesforce_source://models/stg_tables.yml", "compiled_path": "target/compiled/salesforce_source/models/stg_salesforce__event.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table"}, "created_at": 1655305161.816103, "compiled_sql": "with base as (\n\n select * \n from `dbt-package-testing`.`dbt_renee`.`stg_salesforce__event_tmp`\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n account_id\n \n as \n \n account_id\n \n, \n \n \n activity_date\n \n as \n \n activity_date\n \n, \n \n \n activity_date_time\n \n as \n \n activity_date_time\n \n, \n \n \n created_by_id\n \n as \n \n created_by_id\n \n, \n \n \n created_date\n \n as \n \n created_date\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n duration_in_minutes\n \n as \n \n duration_in_minutes\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_date_time\n \n as \n \n end_date_time\n \n, \n \n \n event_subtype\n \n as \n \n event_subtype\n \n, \n \n \n group_event_type\n \n as \n \n group_event_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n is_archived\n \n as \n \n is_archived\n \n, \n \n \n is_child\n \n as \n \n is_child\n \n, \n \n \n is_deleted\n \n as \n \n is_deleted\n \n, \n \n \n is_group_event\n \n as \n \n is_group_event\n \n, \n \n \n is_private\n \n as \n \n is_private\n \n, \n \n \n is_recurrence\n \n as \n \n is_recurrence\n \n, \n \n \n is_recurrence_2\n \n as \n \n is_recurrence_2\n \n, \n \n \n is_recurrence_2_exception\n \n as \n \n is_recurrence_2_exception\n \n, \n \n \n is_recurrence_2_exclusion\n \n as \n \n is_recurrence_2_exclusion\n \n, \n \n \n is_reminder_set\n \n as \n \n is_reminder_set\n \n, \n \n \n last_modified_by_id\n \n as \n \n last_modified_by_id\n \n, \n \n \n last_modified_date\n \n as \n \n last_modified_date\n \n, \n \n \n location\n \n as \n \n location\n \n, \n \n \n owner_id\n \n as \n \n owner_id\n \n, \n \n \n recurrence_2_pattern_start_date\n \n as \n \n recurrence_2_pattern_start_date\n \n, \n \n \n recurrence_2_pattern_text\n \n as \n \n recurrence_2_pattern_text\n \n, \n \n \n recurrence_2_pattern_time_zone\n \n as \n \n recurrence_2_pattern_time_zone\n \n, \n \n \n recurrence_2_pattern_version\n \n as \n \n recurrence_2_pattern_version\n \n, \n \n \n recurrence_activity_id\n \n as \n \n recurrence_activity_id\n \n, \n \n \n recurrence_day_of_month\n \n as \n \n recurrence_day_of_month\n \n, \n \n \n recurrence_day_of_week_mask\n \n as \n \n recurrence_day_of_week_mask\n \n, \n \n \n recurrence_end_date_only\n \n as \n \n recurrence_end_date_only\n \n, \n \n \n recurrence_instance\n \n as \n \n recurrence_instance\n \n, \n \n \n recurrence_interval\n \n as \n \n recurrence_interval\n \n, \n \n \n recurrence_month_of_year\n \n as \n \n recurrence_month_of_year\n \n, \n \n \n recurrence_start_date_time\n \n as \n \n recurrence_start_date_time\n \n, \n \n \n recurrence_time_zone_sid_key\n \n as \n \n recurrence_time_zone_sid_key\n \n, \n \n \n recurrence_type\n \n as \n \n recurrence_type\n \n, \n \n \n reminder_date_time\n \n as \n \n reminder_date_time\n \n, \n \n \n show_as\n \n as \n \n show_as\n \n, \n \n \n start_date_time\n \n as \n \n start_date_time\n \n, \n \n \n subject\n \n as \n \n subject\n \n, \n \n \n system_modstamp\n \n as \n \n system_modstamp\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n what_count\n \n as \n \n what_count\n \n, \n \n \n what_id\n \n as \n \n what_id\n \n, \n \n \n who_count\n \n as \n \n who_count\n \n, \n \n \n who_id\n \n as \n \n who_id\n \n\n\n\n\n --The below script allows for pass through columns.\n \n \n from base\n), \n\nfinal as (\n \n select \n cast(_fivetran_synced as \n timestamp\n) as _fivetran_synced,\n id as event_id,\n account_id,\n cast(activity_date as \n timestamp\n) as activity_date,\n cast(activity_date_time as \n timestamp\n) as activity_date_time,\n created_by_id,\n cast(created_date as \n timestamp\n) as created_date,\n description,\n cast(end_date as \n timestamp\n) as end_date,\n cast(end_date_time as \n timestamp\n) as end_date_time,\n event_subtype,\n group_event_type,\n is_archived,\n is_child,\n is_deleted,\n is_group_event,\n is_recurrence,\n last_modified_by_id,\n cast(last_modified_date as \n timestamp\n) as last_modified_date,\n location,\n owner_id,\n cast(start_date_time as \n timestamp\n) as start_date_time,\n subject,\n type,\n what_count,\n what_id,\n who_count,\n who_id\n\n --The below script allows for pass through columns.\n \n \n from fields\n)\n\nselect *\nfrom final\nwhere not coalesce(is_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`dbt_renee`.`stg_salesforce__event`"}, "model.salesforce_source.stg_salesforce__user": {"raw_sql": "with base as (\n\n select *\n from {{ ref('stg_salesforce__user_tmp') }}\n), \n\nfields as (\n\n select\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_salesforce__user_tmp')),\n staging_columns=get_user_columns()\n )\n }}\n\n --The below script allows for pass through columns.\n {% if var('user_pass_through_columns',[]) != [] %}\n , {{ var('user_pass_through_columns') | join (\", \")}}\n {% endif %}\n\n from base\n), \n\nfinal as (\n \n select \n _fivetran_deleted,\n cast(_fivetran_synced as {{ dbt_utils.type_timestamp() }}) as _fivetran_synced,\n account_id,\n alias,\n city,\n company_name,\n contact_id,\n country,\n country_code,\n department,\n email,\n first_name,\n id as user_id,\n individual_id,\n is_active,\n cast(last_login_date as {{ dbt_utils.type_timestamp() }}) as last_login_date,\n last_name,\n cast(last_referenced_date as {{ dbt_utils.type_timestamp() }}) as last_referenced_date,\n cast(last_viewed_date as {{ dbt_utils.type_timestamp() }}) as last_viewed_date,\n manager_id,\n name as user_name,\n postal_code,\n profile_id,\n state,\n state_code,\n street,\n title,\n user_role_id,\n user_type,\n username \n \n --The below script allows for pass through columns.\n {% if var('user_pass_through_columns',[]) != [] %}\n , {{ var('user_pass_through_columns') | join (\", \")}}\n\n {% endif %}\n \n from fields\n)\n\nselect * \nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.salesforce_source.get_user_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_timestamp"], "nodes": ["model.salesforce_source.stg_salesforce__user_tmp", "model.salesforce_source.stg_salesforce__user_tmp"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "dbt_renee", "fqn": ["salesforce_source", "stg_salesforce__user"], "unique_id": "model.salesforce_source.stg_salesforce__user", "package_name": "salesforce_source", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/salesforce_source", "path": "stg_salesforce__user.sql", "original_file_path": "models/stg_salesforce__user.sql", "name": "stg_salesforce__user", "alias": "stg_salesforce__user", "checksum": {"name": "sha256", "checksum": "4ea2f551dd58fc8d602fa9f1ccc05a955f15d0a38c886f11b18c36e64c443bda"}, "tags": [], "refs": [["stg_salesforce__user_tmp"], ["stg_salesforce__user_tmp"]], "sources": [], "description": "Represents a user in your organization.", "columns": {"user_id": {"name": "user_id", "description": "The unique, system-generated ID assigned during creation.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time at which fivetran last synced this record", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "True, if this field has been deleted", "meta": {}, "data_type": null, "quote": null, "tags": []}, "about_me": {"name": "about_me", "description": "Information about the user, such as areas of interest or skills.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "ID of the Account associated with a Customer Portal user. This field is null for Salesforce users.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "alias": {"name": "alias", "description": "Required. The user\u2019s alias. For example, jsmith.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "badge_text": {"name": "badge_text", "description": "The community role, displayed on the user profile page just below the user name.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "banner_photo_url": {"name": "banner_photo_url", "description": "The URL for the user's banner photo.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "call_center_id": {"name": "call_center_id", "description": "If Salesforce CRM Call Center is enabled, represents the call center to which this user is assigned.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "city": {"name": "city", "description": "The city associated with the user. Up to 40 characters allowed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "community_nickname": {"name": "community_nickname", "description": "Name used to identify this user in the Community application, which includes the ideas and answers features.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "company_name": {"name": "company_name", "description": "The name of the user\u2019s company.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "contact_id": {"name": "contact_id", "description": "ID of the Contact associated with this account. The contact must have a value in the AccountId field or an error occurs.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "country": {"name": "country", "description": "The country associated with the user.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "country_code": {"name": "country_code", "description": "The ISO country code associated with the user.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "default_group_notification_frequency": {"name": "default_group_notification_frequency", "description": "The default frequency for sending the user's Chatter group email notifications when the user joins groups.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "delegated_approver_id": {"name": "delegated_approver_id", "description": "Id of the user who is a delegated approver for this user.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department": {"name": "department", "description": "The company department associated with the user.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "digest_frequency": {"name": "digest_frequency", "description": "The frequency at which the system sends the user\u2019s Chatter personal email digest.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "division": {"name": "division", "description": "The division associated with this user, similar to Department and unrelated to DefaultDivision.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "email": {"name": "email", "description": "Required. The user\u2019s email address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "email_encoding_key": {"name": "email_encoding_key", "description": "Required. The email encoding for the user, such as ISO-8859-1 or UTF-8.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "email_preferences_auto_bcc": {"name": "email_preferences_auto_bcc", "description": "Determines whether the user receives copies of sent emails. This option applies only if compliance BCC emails are not enabled.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "employee_number": {"name": "employee_number", "description": "The user\u2019s employee number.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "extension": {"name": "extension", "description": "The user\u2019s phone extension number.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fax": {"name": "fax", "description": "The user\u2019s fax number.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "federation_identifier": {"name": "federation_identifier", "description": "Indicates the value that must be listed in the Subject element of a Security Assertion Markup Language (SAML) IDP certificate to authenticate the user for a client application using single sign-on.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "first_name": {"name": "first_name", "description": "The user\u2019s first name.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "forecast_enabled": {"name": "forecast_enabled", "description": "Indicates whether the user is enabled as a forecast manager (true) or not (false).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "full_photo_url": {"name": "full_photo_url", "description": "The URL for the user's profile photo.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "geocode_accuracy": {"name": "geocode_accuracy", "description": "The level of accuracy of a location\u2019s geographical coordinates compared with its physical address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "individual_id": {"name": "individual_id", "description": "ID of the data privacy record associated with this user. This field is available if Data Protection and Privacy is enabled.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_active": {"name": "is_active", "description": "Indicates whether the user has access to log in (true) or not (false).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_profile_photo_active": {"name": "is_profile_photo_active", "description": "Indicates whether a user has a profile photo (true) or not (false).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "language_locale_key": {"name": "language_locale_key", "description": "Required. The user\u2019s language, such as \u201cFrench\u201d or \u201cChinese (Traditional).\u201d", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_login_date": {"name": "last_login_date", "description": "The date and time when the user last successfully logged in. This value is updated if 60 seconds have elapsed since the user\u2019s last login.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_name": {"name": "last_name", "description": "Required. The user\u2019s last name.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_referenced_date": {"name": "last_referenced_date", "description": "The timestamp for when the current user last viewed a record related to this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_viewed_date": {"name": "last_viewed_date", "description": "The timestamp for when the current user last viewed this record. If this value is null, this record might only have been referenced (LastReferencedDate) and not viewed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "latitude": {"name": "latitude", "description": "Used with Longitude to specify the precise geolocation of an address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "locale_sid_key": {"name": "locale_sid_key", "description": "Required. This field is a restricted picklist field. The value of the field affects formatting and parsing of values, especially numeric values, in the user interface.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "longitude": {"name": "longitude", "description": "Used with Latitude to specify the precise geolocation of an address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "manager_id": {"name": "manager_id", "description": "The Id of the user who manages this user.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "medium_banner_photo_url": {"name": "medium_banner_photo_url", "description": "The URL for the medium-sized user profile banner photo.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "mobile_phone": {"name": "mobile_phone", "description": "The user\u2019s mobile or cellular phone number.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "user_name": {"name": "user_name", "description": "Concatenation of FirstName and LastName.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "offline_trial_expiration_date": {"name": "offline_trial_expiration_date", "description": "The date and time when the user\u2019s Connect Offline trial expires.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "phone": {"name": "phone", "description": "The user\u2019s phone number.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "postal_code": {"name": "postal_code", "description": "The user\u2019s postal or ZIP code.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "profile_id": {"name": "profile_id", "description": "Required. ID of the user\u2019s Profile. Use this value to cache metadata based on profile. In earlier releases, this was RoleId.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "receives_admin_info_emails": {"name": "receives_admin_info_emails", "description": "Indicates whether the user receives email for administrators from Salesforce (true) or not (false).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "receives_info_emails": {"name": "receives_info_emails", "description": "Indicates whether the user receives informational email from Salesforce (true) or not (false).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sender_email": {"name": "sender_email", "description": "The email address used as the From address when the user sends emails. This address is the same value shown in Setup on the My Email Settings page.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sender_name": {"name": "sender_name", "description": "The name used as the email sender when the user sends emails. This name is the same value shown in Setup on the My Email Settings page.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "signature": {"name": "signature", "description": "The signature text added to emails.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "small_banner_photo_url": {"name": "small_banner_photo_url", "description": "The URL for the small user profile banner photo.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "small_photo_url": {"name": "small_photo_url", "description": "The URL for a thumbnail of the user's profile photo.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "state": {"name": "state", "description": "The state associated with the User.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "state_code": {"name": "state_code", "description": "The ISO state code associated with the user.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "street": {"name": "street", "description": "The street address associated with the User.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "time_zone_sid_key": {"name": "time_zone_sid_key", "description": "Required. This field is a restricted picklist field. A User time zone affects the offset used when displaying or entering times in the user interface.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "title": {"name": "title", "description": "The user\u2019s business title, such as \u201cVice President.\u201d", "meta": {}, "data_type": null, "quote": null, "tags": []}, "username": {"name": "username", "description": "Contains the name that a user enters to log in. The value for this field must be in the form of an email address, using all lowercase characters. It must also be unique across all organizations.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "user_role_id": {"name": "user_role_id", "description": "ID of the user\u2019s UserRole.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "user_type": {"name": "user_type", "description": "The category of user license.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "salesforce_source://models/stg_tables.yml", "compiled_path": "target/compiled/salesforce_source/models/stg_salesforce__user.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table"}, "created_at": 1655305161.784199, "compiled_sql": "with base as (\n\n select *\n from `dbt-package-testing`.`dbt_renee`.`stg_salesforce__user_tmp`\n), \n\nfields as (\n\n select\n\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n account_id\n \n as \n \n account_id\n \n, \n \n \n alias\n \n as \n \n alias\n \n, \n \n \n city\n \n as \n \n city\n \n, \n \n \n company_name\n \n as \n \n company_name\n \n, \n \n \n contact_id\n \n as \n \n contact_id\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n country_code\n \n as \n \n country_code\n \n, \n \n \n department\n \n as \n \n department\n \n, \n \n \n email\n \n as \n \n email\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n individual_id\n \n as \n \n individual_id\n \n, \n \n \n is_active\n \n as \n \n is_active\n \n, \n \n \n last_login_date\n \n as \n \n last_login_date\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n last_referenced_date\n \n as \n \n last_referenced_date\n \n, \n \n \n last_viewed_date\n \n as \n \n last_viewed_date\n \n, \n \n \n manager_id\n \n as \n \n manager_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n postal_code\n \n as \n \n postal_code\n \n, \n \n \n profile_id\n \n as \n \n profile_id\n \n, \n \n \n state\n \n as \n \n state\n \n, \n \n \n state_code\n \n as \n \n state_code\n \n, \n \n \n street\n \n as \n \n street\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n user_role_id\n \n as \n \n user_role_id\n \n, \n \n \n user_type\n \n as \n \n user_type\n \n, \n \n \n username\n \n as \n \n username\n \n\n\n\n\n --The below script allows for pass through columns.\n \n\n from base\n), \n\nfinal as (\n \n select \n _fivetran_deleted,\n cast(_fivetran_synced as \n timestamp\n) as _fivetran_synced,\n account_id,\n alias,\n city,\n company_name,\n contact_id,\n country,\n country_code,\n department,\n email,\n first_name,\n id as user_id,\n individual_id,\n is_active,\n cast(last_login_date as \n timestamp\n) as last_login_date,\n last_name,\n cast(last_referenced_date as \n timestamp\n) as last_referenced_date,\n cast(last_viewed_date as \n timestamp\n) as last_viewed_date,\n manager_id,\n name as user_name,\n postal_code,\n profile_id,\n state,\n state_code,\n street,\n title,\n user_role_id,\n user_type,\n username \n \n --The below script allows for pass through columns.\n \n \n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`dbt_renee`.`stg_salesforce__user`"}, "model.salesforce_source.stg_salesforce__user_tmp": {"raw_sql": "select *\nfrom {{ var('user') }}\n{% if var('using_user_history_mode_active_records', false) %}\nwhere coalesce(_fivetran_active, true)\n{% endif %}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.salesforce_source.salesforce.user"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "dbt_renee", "fqn": ["salesforce_source", "tmp", "stg_salesforce__user_tmp"], "unique_id": "model.salesforce_source.stg_salesforce__user_tmp", "package_name": "salesforce_source", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/salesforce_source", "path": "tmp/stg_salesforce__user_tmp.sql", "original_file_path": "models/tmp/stg_salesforce__user_tmp.sql", "name": "stg_salesforce__user_tmp", "alias": "stg_salesforce__user_tmp", "checksum": {"name": "sha256", "checksum": "47e6dc88e5a6c1b5dd4bf65700f560297641f8d3b74a5e989704838dae35d61a"}, "tags": [], "refs": [], "sources": [["salesforce", "user"]], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/salesforce_source/models/tmp/stg_salesforce__user_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view"}, "created_at": 1655305161.634623, "compiled_sql": "select *\nfrom `fivetran`.`salesforce`.`user`\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`dbt_renee`.`stg_salesforce__user_tmp`"}, "model.salesforce_source.stg_salesforce__product_2_tmp": {"raw_sql": "select * \nfrom {{ var('product_2') }}\n{% if var('using_product_2_history_mode_active_records', false) %}\nwhere coalesce(_fivetran_active, true)\n{% endif %}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.salesforce_source.salesforce.product_2"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "dbt_renee", "fqn": ["salesforce_source", "tmp", "stg_salesforce__product_2_tmp"], "unique_id": "model.salesforce_source.stg_salesforce__product_2_tmp", "package_name": "salesforce_source", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/salesforce_source", "path": "tmp/stg_salesforce__product_2_tmp.sql", "original_file_path": "models/tmp/stg_salesforce__product_2_tmp.sql", "name": "stg_salesforce__product_2_tmp", "alias": "stg_salesforce__product_2_tmp", "checksum": {"name": "sha256", "checksum": "b79b7d6b9e03663745ef3d407bc78c60e1477bcfd454224cdd4df75e01ca5d59"}, "tags": [], "refs": [], "sources": [["salesforce", "product_2"]], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/salesforce_source/models/tmp/stg_salesforce__product_2_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view"}, "created_at": 1655305161.641738, "compiled_sql": "select * \nfrom `fivetran`.`salesforce`.`product_2`\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`dbt_renee`.`stg_salesforce__product_2_tmp`"}, "model.salesforce_source.stg_salesforce__lead_tmp": {"raw_sql": "select * \nfrom {{ var('lead') }}\n{% if var('using_lead_history_mode_active_records', false) %}\nwhere coalesce(_fivetran_active, true)\n{% endif %}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.salesforce_source.salesforce.lead"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "dbt_renee", "fqn": ["salesforce_source", "tmp", "stg_salesforce__lead_tmp"], "unique_id": "model.salesforce_source.stg_salesforce__lead_tmp", "package_name": "salesforce_source", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/salesforce_source", "path": "tmp/stg_salesforce__lead_tmp.sql", "original_file_path": "models/tmp/stg_salesforce__lead_tmp.sql", "name": "stg_salesforce__lead_tmp", "alias": "stg_salesforce__lead_tmp", "checksum": {"name": "sha256", "checksum": "43e769cdf63fef177ec76c574402b0388a639cd5ed198349ce0e15903d645ce4"}, "tags": [], "refs": [], "sources": [["salesforce", "lead"]], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/salesforce_source/models/tmp/stg_salesforce__lead_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view"}, "created_at": 1655305161.648625, "compiled_sql": "select * \nfrom `fivetran`.`salesforce`.`lead`\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`dbt_renee`.`stg_salesforce__lead_tmp`"}, "model.salesforce_source.stg_salesforce__opportunity_tmp": {"raw_sql": "select *\nfrom {{ var('opportunity') }}\n{% if var('using_opportunity_history_mode_active_records', false) %}\nwhere coalesce(_fivetran_active, true)\n{% endif %}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["model.develop.opportunity_formula"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "dbt_renee", "fqn": ["salesforce_source", "tmp", "stg_salesforce__opportunity_tmp"], "unique_id": "model.salesforce_source.stg_salesforce__opportunity_tmp", "package_name": "salesforce_source", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/salesforce_source", "path": "tmp/stg_salesforce__opportunity_tmp.sql", "original_file_path": "models/tmp/stg_salesforce__opportunity_tmp.sql", "name": "stg_salesforce__opportunity_tmp", "alias": "stg_salesforce__opportunity_tmp", "checksum": {"name": "sha256", "checksum": "df14177bbf870735c89ece5bc29139201176dd0319e73d35cee72d7c7d6c375a"}, "tags": [], "refs": [["opportunity_formula"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/salesforce_source/models/tmp/stg_salesforce__opportunity_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view"}, "created_at": 1655305161.655037, "compiled_sql": "select *\nfrom `dbt-package-testing`.`dbt_renee`.`opportunity_formula`\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`dbt_renee`.`stg_salesforce__opportunity_tmp`"}, "model.salesforce_source.stg_salesforce__task_tmp": {"raw_sql": "select * \nfrom {{ var('task') }}\n{% if var('using_task_history_mode_active_records', false) %}\nwhere coalesce(_fivetran_active, true)\n{% endif %}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.salesforce_source.salesforce.task"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "dbt_renee", "fqn": ["salesforce_source", "tmp", "stg_salesforce__task_tmp"], "unique_id": "model.salesforce_source.stg_salesforce__task_tmp", "package_name": "salesforce_source", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/salesforce_source", "path": "tmp/stg_salesforce__task_tmp.sql", "original_file_path": "models/tmp/stg_salesforce__task_tmp.sql", "name": "stg_salesforce__task_tmp", "alias": "stg_salesforce__task_tmp", "checksum": {"name": "sha256", "checksum": "60063beafc41c71d5911d36b2bd5ad78777fdd121f26da2ca632a49ac23b88e5"}, "tags": [], "refs": [], "sources": [["salesforce", "task"]], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/salesforce_source/models/tmp/stg_salesforce__task_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view"}, "created_at": 1655305161.6737862, "compiled_sql": "select * \nfrom `fivetran`.`salesforce`.`task`\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`dbt_renee`.`stg_salesforce__task_tmp`"}, "model.salesforce_source.stg_salesforce__opportunity_line_item_tmp": {"raw_sql": "select * \nfrom {{ var('opportunity_line_item') }}\n{% if var('using_opportunity_line_item_history_mode_active_records', false) %}\nwhere coalesce(_fivetran_active, true)\n{% endif %}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.salesforce_source.salesforce.opportunity_line_item"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "dbt_renee", "fqn": ["salesforce_source", "tmp", "stg_salesforce__opportunity_line_item_tmp"], "unique_id": "model.salesforce_source.stg_salesforce__opportunity_line_item_tmp", "package_name": "salesforce_source", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/salesforce_source", "path": "tmp/stg_salesforce__opportunity_line_item_tmp.sql", "original_file_path": "models/tmp/stg_salesforce__opportunity_line_item_tmp.sql", "name": "stg_salesforce__opportunity_line_item_tmp", "alias": "stg_salesforce__opportunity_line_item_tmp", "checksum": {"name": "sha256", "checksum": "bf72ad7859e13547f8696bec0e880041d274d530b05128e3ad772c677e48b1c7"}, "tags": [], "refs": [], "sources": [["salesforce", "opportunity_line_item"]], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/salesforce_source/models/tmp/stg_salesforce__opportunity_line_item_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view"}, "created_at": 1655305161.6798358, "compiled_sql": "select * \nfrom `fivetran`.`salesforce`.`opportunity_line_item`\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`dbt_renee`.`stg_salesforce__opportunity_line_item_tmp`"}, "model.salesforce_source.stg_salesforce__contact_tmp": {"raw_sql": "select * \nfrom {{ var('contact') }}\n{% if var('using_contact_history_mode_active_records', false) %}\nwhere coalesce(_fivetran_active, true)\n{% endif %}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.salesforce_source.salesforce.contact"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "dbt_renee", "fqn": ["salesforce_source", "tmp", "stg_salesforce__contact_tmp"], "unique_id": "model.salesforce_source.stg_salesforce__contact_tmp", "package_name": "salesforce_source", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/salesforce_source", "path": "tmp/stg_salesforce__contact_tmp.sql", "original_file_path": "models/tmp/stg_salesforce__contact_tmp.sql", "name": "stg_salesforce__contact_tmp", "alias": "stg_salesforce__contact_tmp", "checksum": {"name": "sha256", "checksum": "65ec496d9d80eaa2cbb55ed96f59a17427a37aa62e3ec73486690582d9a05592"}, "tags": [], "refs": [], "sources": [["salesforce", "contact"]], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/salesforce_source/models/tmp/stg_salesforce__contact_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view"}, "created_at": 1655305161.6857758, "compiled_sql": "select * \nfrom `fivetran`.`salesforce`.`contact`\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`dbt_renee`.`stg_salesforce__contact_tmp`"}, "model.salesforce_source.stg_salesforce__account_tmp": {"raw_sql": "select *\nfrom {{ var('account') }}\n{% if var('using_account_history_mode_active_records', false) %}\nwhere coalesce(_fivetran_active, true)\n{% endif %}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.salesforce_source.salesforce.account"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "dbt_renee", "fqn": ["salesforce_source", "tmp", "stg_salesforce__account_tmp"], "unique_id": "model.salesforce_source.stg_salesforce__account_tmp", "package_name": "salesforce_source", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/salesforce_source", "path": "tmp/stg_salesforce__account_tmp.sql", "original_file_path": "models/tmp/stg_salesforce__account_tmp.sql", "name": "stg_salesforce__account_tmp", "alias": "stg_salesforce__account_tmp", "checksum": {"name": "sha256", "checksum": "42afbcea61a2e7197f2c6adc3311e0ed6194c4c5bacc480b3eb160006705d5ee"}, "tags": [], "refs": [], "sources": [["salesforce", "account"]], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/salesforce_source/models/tmp/stg_salesforce__account_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view"}, "created_at": 1655305161.691802, "compiled_sql": "select *\nfrom `fivetran`.`salesforce`.`account`\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`dbt_renee`.`stg_salesforce__account_tmp`"}, "model.salesforce_source.stg_salesforce__user_role_tmp": {"raw_sql": "--To disable this model, set the using_user_role variable within your dbt_project.yml file to False.\n{{ config(enabled=var('salesforce__user_role_enabled', True)) }}\n\nselect *\nfrom {{ var('user_role') }}\n{% if var('using_user_role_history_mode_active_records', false) %}\nwhere coalesce(_fivetran_active, true)\n{% endif %}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.salesforce_source.salesforce.user_role"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "dbt_renee", "fqn": ["salesforce_source", "tmp", "stg_salesforce__user_role_tmp"], "unique_id": "model.salesforce_source.stg_salesforce__user_role_tmp", "package_name": "salesforce_source", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/salesforce_source", "path": "tmp/stg_salesforce__user_role_tmp.sql", "original_file_path": "models/tmp/stg_salesforce__user_role_tmp.sql", "name": "stg_salesforce__user_role_tmp", "alias": "stg_salesforce__user_role_tmp", "checksum": {"name": "sha256", "checksum": "406f3d53d802d3e31ae65cdbfa752a614e70577387222a0b633c50cf91c386b5"}, "tags": [], "refs": [], "sources": [["salesforce", "user_role"]], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/salesforce_source/models/tmp/stg_salesforce__user_role_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "enabled": true}, "created_at": 1655305161.6980522, "compiled_sql": "--To disable this model, set the using_user_role variable within your dbt_project.yml file to False.\n\n\nselect *\nfrom `fivetran`.`salesforce`.`user_role`\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`dbt_renee`.`stg_salesforce__user_role_tmp`"}, "test.salesforce_source.not_null_stg_salesforce__account_account_id.1e0ff361d4": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "account_id", "model": "{{ get_where_subquery(ref('stg_salesforce__account')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.salesforce_source.stg_salesforce__account"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "dbt_renee_dbt_test__audit", "fqn": ["salesforce_source", "not_null_stg_salesforce__account_account_id"], "unique_id": "test.salesforce_source.not_null_stg_salesforce__account_account_id.1e0ff361d4", "package_name": "salesforce_source", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/salesforce_source", "path": "not_null_stg_salesforce__account_account_id.sql", "original_file_path": "models/stg_tables.yml", "name": "not_null_stg_salesforce__account_account_id", "alias": "not_null_stg_salesforce__account_account_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_salesforce__account"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/salesforce_source/models/stg_tables.yml/not_null_stg_salesforce__account_account_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1655305161.9000802, "compiled_sql": "\n \n \n\nselect *\nfrom `dbt-package-testing`.`dbt_renee`.`stg_salesforce__account`\nwhere account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "account_id", "file_key_name": "models.stg_salesforce__account"}, "test.salesforce_source.unique_stg_salesforce__account_account_id.6d58a39ba7": {"raw_sql": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "unique", "kwargs": {"column_name": "account_id", "model": "{{ get_where_subquery(ref('stg_salesforce__account')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.salesforce_source.stg_salesforce__account"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "dbt_renee_dbt_test__audit", "fqn": ["salesforce_source", "unique_stg_salesforce__account_account_id"], "unique_id": "test.salesforce_source.unique_stg_salesforce__account_account_id.6d58a39ba7", "package_name": "salesforce_source", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/salesforce_source", "path": "unique_stg_salesforce__account_account_id.sql", "original_file_path": "models/stg_tables.yml", "name": "unique_stg_salesforce__account_account_id", "alias": "unique_stg_salesforce__account_account_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_salesforce__account"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/salesforce_source/models/stg_tables.yml/unique_stg_salesforce__account_account_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1655305161.902293, "compiled_sql": "\n \n \n\nwith dbt_test__target as (\n \n select account_id as unique_field\n from `dbt-package-testing`.`dbt_renee`.`stg_salesforce__account`\n where account_id is not null\n \n)\n\nselect\n unique_field,\n count(*) as n_records\n\nfrom dbt_test__target\ngroup by unique_field\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "account_id", "file_key_name": "models.stg_salesforce__account"}, "test.salesforce_source.not_null_stg_salesforce__opportunity_opportunity_id.234c5e60bd": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "opportunity_id", "model": "{{ get_where_subquery(ref('stg_salesforce__opportunity')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.salesforce_source.stg_salesforce__opportunity"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "dbt_renee_dbt_test__audit", "fqn": ["salesforce_source", "not_null_stg_salesforce__opportunity_opportunity_id"], "unique_id": "test.salesforce_source.not_null_stg_salesforce__opportunity_opportunity_id.234c5e60bd", "package_name": "salesforce_source", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/salesforce_source", "path": "not_null_stg_salesforce__opportunity_opportunity_id.sql", "original_file_path": "models/stg_tables.yml", "name": "not_null_stg_salesforce__opportunity_opportunity_id", "alias": "not_null_stg_salesforce__opportunity_opportunity_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_salesforce__opportunity"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/salesforce_source/models/stg_tables.yml/not_null_stg_salesforce__opportunity_opportunity_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1655305161.9045498, "compiled_sql": "\n \n \n\nselect *\nfrom `dbt-package-testing`.`dbt_renee`.`stg_salesforce__opportunity`\nwhere opportunity_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "opportunity_id", "file_key_name": "models.stg_salesforce__opportunity"}, "test.salesforce_source.unique_stg_salesforce__opportunity_opportunity_id.367b0f577a": {"raw_sql": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "unique", "kwargs": {"column_name": "opportunity_id", "model": "{{ get_where_subquery(ref('stg_salesforce__opportunity')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.salesforce_source.stg_salesforce__opportunity"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "dbt_renee_dbt_test__audit", "fqn": ["salesforce_source", "unique_stg_salesforce__opportunity_opportunity_id"], "unique_id": "test.salesforce_source.unique_stg_salesforce__opportunity_opportunity_id.367b0f577a", "package_name": "salesforce_source", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/salesforce_source", "path": "unique_stg_salesforce__opportunity_opportunity_id.sql", "original_file_path": "models/stg_tables.yml", "name": "unique_stg_salesforce__opportunity_opportunity_id", "alias": "unique_stg_salesforce__opportunity_opportunity_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_salesforce__opportunity"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/salesforce_source/models/stg_tables.yml/unique_stg_salesforce__opportunity_opportunity_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1655305161.9065359, "compiled_sql": "\n \n \n\nwith dbt_test__target as (\n \n select opportunity_id as unique_field\n from `dbt-package-testing`.`dbt_renee`.`stg_salesforce__opportunity`\n where opportunity_id is not null\n \n)\n\nselect\n unique_field,\n count(*) as n_records\n\nfrom dbt_test__target\ngroup by unique_field\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "opportunity_id", "file_key_name": "models.stg_salesforce__opportunity"}, "test.salesforce_source.not_null_stg_salesforce__user_user_id.ac0ab26d65": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "user_id", "model": "{{ get_where_subquery(ref('stg_salesforce__user')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.salesforce_source.stg_salesforce__user"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "dbt_renee_dbt_test__audit", "fqn": ["salesforce_source", "not_null_stg_salesforce__user_user_id"], "unique_id": "test.salesforce_source.not_null_stg_salesforce__user_user_id.ac0ab26d65", "package_name": "salesforce_source", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/salesforce_source", "path": "not_null_stg_salesforce__user_user_id.sql", "original_file_path": "models/stg_tables.yml", "name": "not_null_stg_salesforce__user_user_id", "alias": "not_null_stg_salesforce__user_user_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_salesforce__user"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/salesforce_source/models/stg_tables.yml/not_null_stg_salesforce__user_user_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1655305161.908549, "compiled_sql": "\n \n \n\nselect *\nfrom `dbt-package-testing`.`dbt_renee`.`stg_salesforce__user`\nwhere user_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "user_id", "file_key_name": "models.stg_salesforce__user"}, "test.salesforce_source.unique_stg_salesforce__user_user_id.9a29b41152": {"raw_sql": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "unique", "kwargs": {"column_name": "user_id", "model": "{{ get_where_subquery(ref('stg_salesforce__user')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.salesforce_source.stg_salesforce__user"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "dbt_renee_dbt_test__audit", "fqn": ["salesforce_source", "unique_stg_salesforce__user_user_id"], "unique_id": "test.salesforce_source.unique_stg_salesforce__user_user_id.9a29b41152", "package_name": "salesforce_source", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/salesforce_source", "path": "unique_stg_salesforce__user_user_id.sql", "original_file_path": "models/stg_tables.yml", "name": "unique_stg_salesforce__user_user_id", "alias": "unique_stg_salesforce__user_user_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_salesforce__user"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/salesforce_source/models/stg_tables.yml/unique_stg_salesforce__user_user_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1655305161.9106922, "compiled_sql": "\n \n \n\nwith dbt_test__target as (\n \n select user_id as unique_field\n from `dbt-package-testing`.`dbt_renee`.`stg_salesforce__user`\n where user_id is not null\n \n)\n\nselect\n unique_field,\n count(*) as n_records\n\nfrom dbt_test__target\ngroup by unique_field\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "user_id", "file_key_name": "models.stg_salesforce__user"}, "test.salesforce_source.not_null_stg_salesforce__user_role_user_role_id.949036e9bd": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "user_role_id", "model": "{{ get_where_subquery(ref('stg_salesforce__user_role')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.salesforce_source.stg_salesforce__user_role"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "dbt_renee_dbt_test__audit", "fqn": ["salesforce_source", "not_null_stg_salesforce__user_role_user_role_id"], "unique_id": "test.salesforce_source.not_null_stg_salesforce__user_role_user_role_id.949036e9bd", "package_name": "salesforce_source", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/salesforce_source", "path": "not_null_stg_salesforce__user_role_user_role_id.sql", "original_file_path": "models/stg_tables.yml", "name": "not_null_stg_salesforce__user_role_user_role_id", "alias": "not_null_stg_salesforce__user_role_user_role_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_salesforce__user_role"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/salesforce_source/models/stg_tables.yml/not_null_stg_salesforce__user_role_user_role_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1655305161.912931, "compiled_sql": "\n \n \n\nselect *\nfrom `dbt-package-testing`.`dbt_renee`.`stg_salesforce__user_role`\nwhere user_role_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "user_role_id", "file_key_name": "models.stg_salesforce__user_role"}, "test.salesforce_source.unique_stg_salesforce__user_role_user_role_id.1259050718": {"raw_sql": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "unique", "kwargs": {"column_name": "user_role_id", "model": "{{ get_where_subquery(ref('stg_salesforce__user_role')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.salesforce_source.stg_salesforce__user_role"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "dbt_renee_dbt_test__audit", "fqn": ["salesforce_source", "unique_stg_salesforce__user_role_user_role_id"], "unique_id": "test.salesforce_source.unique_stg_salesforce__user_role_user_role_id.1259050718", "package_name": "salesforce_source", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/salesforce_source", "path": "unique_stg_salesforce__user_role_user_role_id.sql", "original_file_path": "models/stg_tables.yml", "name": "unique_stg_salesforce__user_role_user_role_id", "alias": "unique_stg_salesforce__user_role_user_role_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_salesforce__user_role"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/salesforce_source/models/stg_tables.yml/unique_stg_salesforce__user_role_user_role_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1655305161.9148421, "compiled_sql": "\n \n \n\nwith dbt_test__target as (\n \n select user_role_id as unique_field\n from `dbt-package-testing`.`dbt_renee`.`stg_salesforce__user_role`\n where user_role_id is not null\n \n)\n\nselect\n unique_field,\n count(*) as n_records\n\nfrom dbt_test__target\ngroup by unique_field\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "user_role_id", "file_key_name": "models.stg_salesforce__user_role"}, "test.salesforce_source.not_null_stg_salesforce__contact_contact_id.d7c02bef78": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "contact_id", "model": "{{ get_where_subquery(ref('stg_salesforce__contact')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.salesforce_source.stg_salesforce__contact"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "dbt_renee_dbt_test__audit", "fqn": ["salesforce_source", "not_null_stg_salesforce__contact_contact_id"], "unique_id": "test.salesforce_source.not_null_stg_salesforce__contact_contact_id.d7c02bef78", "package_name": "salesforce_source", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/salesforce_source", "path": "not_null_stg_salesforce__contact_contact_id.sql", "original_file_path": "models/stg_tables.yml", "name": "not_null_stg_salesforce__contact_contact_id", "alias": "not_null_stg_salesforce__contact_contact_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_salesforce__contact"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/salesforce_source/models/stg_tables.yml/not_null_stg_salesforce__contact_contact_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1655305161.916955, "compiled_sql": "\n \n \n\nselect *\nfrom `dbt-package-testing`.`dbt_renee`.`stg_salesforce__contact`\nwhere contact_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "contact_id", "file_key_name": "models.stg_salesforce__contact"}, "test.salesforce_source.unique_stg_salesforce__contact_contact_id.0cc2c0609e": {"raw_sql": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "unique", "kwargs": {"column_name": "contact_id", "model": "{{ get_where_subquery(ref('stg_salesforce__contact')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.salesforce_source.stg_salesforce__contact"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "dbt_renee_dbt_test__audit", "fqn": ["salesforce_source", "unique_stg_salesforce__contact_contact_id"], "unique_id": "test.salesforce_source.unique_stg_salesforce__contact_contact_id.0cc2c0609e", "package_name": "salesforce_source", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/salesforce_source", "path": "unique_stg_salesforce__contact_contact_id.sql", "original_file_path": "models/stg_tables.yml", "name": "unique_stg_salesforce__contact_contact_id", "alias": "unique_stg_salesforce__contact_contact_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_salesforce__contact"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/salesforce_source/models/stg_tables.yml/unique_stg_salesforce__contact_contact_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1655305161.918944, "compiled_sql": "\n \n \n\nwith dbt_test__target as (\n \n select contact_id as unique_field\n from `dbt-package-testing`.`dbt_renee`.`stg_salesforce__contact`\n where contact_id is not null\n \n)\n\nselect\n unique_field,\n count(*) as n_records\n\nfrom dbt_test__target\ngroup by unique_field\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "contact_id", "file_key_name": "models.stg_salesforce__contact"}, "test.salesforce_source.not_null_stg_salesforce__event_event_id.e964b30db8": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "event_id", "model": "{{ get_where_subquery(ref('stg_salesforce__event')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.salesforce_source.stg_salesforce__event"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "dbt_renee_dbt_test__audit", "fqn": ["salesforce_source", "not_null_stg_salesforce__event_event_id"], "unique_id": "test.salesforce_source.not_null_stg_salesforce__event_event_id.e964b30db8", "package_name": "salesforce_source", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/salesforce_source", "path": "not_null_stg_salesforce__event_event_id.sql", "original_file_path": "models/stg_tables.yml", "name": "not_null_stg_salesforce__event_event_id", "alias": "not_null_stg_salesforce__event_event_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_salesforce__event"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/salesforce_source/models/stg_tables.yml/not_null_stg_salesforce__event_event_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1655305161.92143, "compiled_sql": "\n \n \n\nselect *\nfrom `dbt-package-testing`.`dbt_renee`.`stg_salesforce__event`\nwhere event_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "event_id", "file_key_name": "models.stg_salesforce__event"}, "test.salesforce_source.unique_stg_salesforce__event_event_id.13f7c8c0d9": {"raw_sql": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "unique", "kwargs": {"column_name": "event_id", "model": "{{ get_where_subquery(ref('stg_salesforce__event')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.salesforce_source.stg_salesforce__event"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "dbt_renee_dbt_test__audit", "fqn": ["salesforce_source", "unique_stg_salesforce__event_event_id"], "unique_id": "test.salesforce_source.unique_stg_salesforce__event_event_id.13f7c8c0d9", "package_name": "salesforce_source", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/salesforce_source", "path": "unique_stg_salesforce__event_event_id.sql", "original_file_path": "models/stg_tables.yml", "name": "unique_stg_salesforce__event_event_id", "alias": "unique_stg_salesforce__event_event_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_salesforce__event"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/salesforce_source/models/stg_tables.yml/unique_stg_salesforce__event_event_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1655305161.923388, "compiled_sql": "\n \n \n\nwith dbt_test__target as (\n \n select event_id as unique_field\n from `dbt-package-testing`.`dbt_renee`.`stg_salesforce__event`\n where event_id is not null\n \n)\n\nselect\n unique_field,\n count(*) as n_records\n\nfrom dbt_test__target\ngroup by unique_field\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "event_id", "file_key_name": "models.stg_salesforce__event"}, "test.salesforce_source.not_null_stg_salesforce__lead_lead_id.e2ba6b2026": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "lead_id", "model": "{{ get_where_subquery(ref('stg_salesforce__lead')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.salesforce_source.stg_salesforce__lead"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "dbt_renee_dbt_test__audit", "fqn": ["salesforce_source", "not_null_stg_salesforce__lead_lead_id"], "unique_id": "test.salesforce_source.not_null_stg_salesforce__lead_lead_id.e2ba6b2026", "package_name": "salesforce_source", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/salesforce_source", "path": "not_null_stg_salesforce__lead_lead_id.sql", "original_file_path": "models/stg_tables.yml", "name": "not_null_stg_salesforce__lead_lead_id", "alias": "not_null_stg_salesforce__lead_lead_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_salesforce__lead"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/salesforce_source/models/stg_tables.yml/not_null_stg_salesforce__lead_lead_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1655305161.92541, "compiled_sql": "\n \n \n\nselect *\nfrom `dbt-package-testing`.`dbt_renee`.`stg_salesforce__lead`\nwhere lead_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "lead_id", "file_key_name": "models.stg_salesforce__lead"}, "test.salesforce_source.unique_stg_salesforce__lead_lead_id.ba8b21e282": {"raw_sql": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "unique", "kwargs": {"column_name": "lead_id", "model": "{{ get_where_subquery(ref('stg_salesforce__lead')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.salesforce_source.stg_salesforce__lead"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "dbt_renee_dbt_test__audit", "fqn": ["salesforce_source", "unique_stg_salesforce__lead_lead_id"], "unique_id": "test.salesforce_source.unique_stg_salesforce__lead_lead_id.ba8b21e282", "package_name": "salesforce_source", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/salesforce_source", "path": "unique_stg_salesforce__lead_lead_id.sql", "original_file_path": "models/stg_tables.yml", "name": "unique_stg_salesforce__lead_lead_id", "alias": "unique_stg_salesforce__lead_lead_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_salesforce__lead"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/salesforce_source/models/stg_tables.yml/unique_stg_salesforce__lead_lead_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1655305161.927567, "compiled_sql": "\n \n \n\nwith dbt_test__target as (\n \n select lead_id as unique_field\n from `dbt-package-testing`.`dbt_renee`.`stg_salesforce__lead`\n where lead_id is not null\n \n)\n\nselect\n unique_field,\n count(*) as n_records\n\nfrom dbt_test__target\ngroup by unique_field\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "lead_id", "file_key_name": "models.stg_salesforce__lead"}, "model.salesforce_source.stg_salesforce__order": {"raw_sql": "with base as (\n\n select * \n from {{ ref('stg_salesforce__order_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_salesforce__order_tmp')),\n staging_columns=get_order_columns()\n )\n }}\n\n --The below script allows for pass through columns.\n {% if var('order_pass_through_columns',[]) != [] %}\n , {{ var('order_pass_through_columns') | join (\", \")}}\n {% endif %}\n \n from base\n), \n\nfinal as (\n \n select \n cast(_fivetran_synced as {{ dbt_utils.type_timestamp() }}) as _fivetran_synced,\n id as order_id,\n account_id,\n activated_by_id,\n cast(activated_date as {{ dbt_utils.type_timestamp() }}) as activated_date,\n billing_city,\n billing_country,\n billing_country_code,\n billing_postal_code,\n billing_state,\n billing_state_code,\n billing_street,\n contract_id,\n created_by_id,\n created_date,\n customer_authorized_by_id,\n description,\n cast(end_date as {{ dbt_utils.type_timestamp() }}) as end_date,\n is_deleted,\n last_modified_by_id,\n cast(last_modified_date as {{ dbt_utils.type_timestamp() }}) as last_modified_date,\n cast(last_referenced_date as {{ dbt_utils.type_timestamp() }}) as last_referenced_date,\n cast(last_viewed_date as {{ dbt_utils.type_timestamp() }}) as last_viewed_date,\n opportunity_id,\n order_number,\n original_order_id,\n owner_id,\n pricebook_2_id,\n shipping_city,\n shipping_country,\n shipping_country_code,\n shipping_postal_code,\n shipping_state,\n shipping_state_code,\n shipping_street,\n status,\n total_amount,\n type\n\n --The below script allows for pass through columns.\n {% if var('order_pass_through_columns',[]) != [] %}\n , {{ var('order_pass_through_columns') | join (\", \")}}\n\n {% endif %}\n \n from fields\n)\n\nselect *\nfrom final\nwhere not coalesce(is_deleted, false)", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.salesforce_source.get_order_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_timestamp"], "nodes": ["model.salesforce_source.stg_salesforce__order_tmp", "model.salesforce_source.stg_salesforce__order_tmp"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "dbt_renee", "fqn": ["salesforce_source", "stg_salesforce__order"], "unique_id": "model.salesforce_source.stg_salesforce__order", "package_name": "salesforce_source", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/salesforce_source", "path": "stg_salesforce__order.sql", "original_file_path": "models/stg_salesforce__order.sql", "name": "stg_salesforce__order", "alias": "stg_salesforce__order", "checksum": {"name": "sha256", "checksum": "e0379183bdf3c90e6725439c561b00f6a39dfe3048634fd54e9b07793711b950"}, "tags": [], "refs": [["stg_salesforce__order_tmp"], ["stg_salesforce__order_tmp"]], "sources": [], "description": "Represents an order associated with a contract or an account.", "columns": {"order_id": {"name": "order_id", "description": "order id", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time at which fivetran last synced this record", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_active": {"name": "_fivetran_active", "description": "True if record is active, used to filter out only active records if History Mode is enabled", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Required. ID of the Account associated with this order. Can only be updated when the order\u2019s StatusCode value is Draft. This is a relationship field.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "activated_by_id": {"name": "activated_by_id", "description": "ID of the User who activated this order. This is a relationship field.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "activated_date": {"name": "activated_date", "description": "Date and time when the order was activated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billing_city": {"name": "billing_city", "description": "City for the billing address for this order. Maximum size is 40 characters.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billing_country": {"name": "billing_country", "description": "Country for the billing address for this order. Maximum size is 80 characters.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billing_country_code": {"name": "billing_country_code", "description": "ISO country code for the billing address for this order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billing_geocode_accuracy": {"name": "billing_geocode_accuracy", "description": "Accuracy level of the geocode of the address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billing_postal_code": {"name": "billing_postal_code", "description": "Postal code for the billing address for this order. Maximum size is 20 characters.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billing_state": {"name": "billing_state", "description": "State for the billing address for this order. Maximum size is 80 characters.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billing_state_code": {"name": "billing_state_code", "description": "ISO state code for the order\u2019s billing address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billing_street": {"name": "billing_street", "description": "Street address for the billing address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "contract_id": {"name": "contract_id", "description": "ID of the contract associated with this order. Can only be updated when the order\u2019s StatusCode value is Draft. This is a relationship field.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_by_id": {"name": "created_by_id", "description": "Created By ID", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_date": {"name": "created_date", "description": "Created Date", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_authorized_by_id": {"name": "customer_authorized_by_id", "description": "ID of the contact who authorized the order. This is a relationship field.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "end_date": {"name": "end_date", "description": "Date at which the order ends. Label is Order End Date.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_deleted": {"name": "is_deleted", "description": "deleted", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_modified_by_id": {"name": "last_modified_by_id", "description": "Last Modified By ID", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_modified_date": {"name": "last_modified_date", "description": "Last Modified Date", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_referenced_date": {"name": "last_referenced_date", "description": "The timestamp when the current user last accessed this record, a record related to this record, or a list view.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_viewed_date": {"name": "last_viewed_date", "description": "The timestamp when the current user last viewed this record or list view. If this value is null, the user might have only accessed this record or list view (LastReferencedDate) but not viewed it.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "opportunity_id": {"name": "opportunity_id", "description": "ID for the opportunity that\u2019s associated with this order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "order_number": {"name": "order_number", "description": "Order number assigned to this order (not the unique, system-generated ID assigned during creation). Maximum size is 30 characters.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "original_order_id": {"name": "original_order_id", "description": "Optional. ID of the original order that a reduction order is reducing, if the reduction order is reducing a single order. Label is Original Order. Editable only if isReductionOrder is true. If the reduction order is reducing more than one order, leave blank. This is a relationship field.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "owner_id": {"name": "owner_id", "description": "Required. ID of the User or queue that owns this order. This is a polymorphic relationship field.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "pricebook_2_id": {"name": "pricebook_2_id", "description": "Required. ID of the price book associated with this order. This is a relationship field.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "shipping_city": {"name": "shipping_city", "description": "City of the shipping address. Maximum size is 40 characters.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "shipping_country": {"name": "shipping_country", "description": "Country of the shipping address. Maximum size is 80 characters.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "shipping_country_code": {"name": "shipping_country_code", "description": "ISO country code for the order\u2019s shipping address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "shipping_geocode_accuracy": {"name": "shipping_geocode_accuracy", "description": "Accuracy level of the geocode of the shipping address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "shipping_postal_code": {"name": "shipping_postal_code", "description": "Postal code of the shipping address. Maximum size is 20 characters.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "shipping_state": {"name": "shipping_state", "description": "State of the shipping address. Maximum size is 80 characters.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "shipping_state_code": {"name": "shipping_state_code", "description": "ISO state code for the order\u2019s shipping address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "shipping_street": {"name": "shipping_street", "description": "Street address of the shipping address. Maximum of 255 characters.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "status": {"name": "status", "description": "Picklist of values that indicate order status. Each value is within one of two status categories defined in StatusCode. For example, the status picklist might contain Draft, Ready for Review, and Ready for Activation values with a StatusCode of Draft.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "status_code": {"name": "status_code", "description": "The status category for the order. An order can be either Draft or Activated. Label is Status Category.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "The total amount for the order products associated with this order. This field is available in API v48.0 and later.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "type": {"name": "type", "description": "If you want to show more information about your order, you can add custom values to the Type picklist. By default, the Type field doesn't perform any actions or show any values.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "salesforce_source://models/stg_tables.yml", "compiled_path": "target/compiled/salesforce_source/models/stg_salesforce__order.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table"}, "created_at": 1655314319.691503, "compiled_sql": "with base as (\n\n select * \n from `dbt-package-testing`.`dbt_renee`.`stg_salesforce__order_tmp`\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n account_id\n \n as \n \n account_id\n \n, \n \n \n activated_by_id\n \n as \n \n activated_by_id\n \n, \n \n \n activated_date\n \n as \n \n activated_date\n \n, \n \n \n billing_city\n \n as \n \n billing_city\n \n, \n \n \n billing_country\n \n as \n \n billing_country\n \n, \n \n \n billing_country_code\n \n as \n \n billing_country_code\n \n, \n \n \n billing_geocode_accuracy\n \n as \n \n billing_geocode_accuracy\n \n, \n \n \n billing_latitude\n \n as \n \n billing_latitude\n \n, \n \n \n billing_longitude\n \n as \n \n billing_longitude\n \n, \n \n \n billing_postal_code\n \n as \n \n billing_postal_code\n \n, \n \n \n billing_state\n \n as \n \n billing_state\n \n, \n \n \n billing_state_code\n \n as \n \n billing_state_code\n \n, \n \n \n billing_street\n \n as \n \n billing_street\n \n, \n \n \n company_authorized_by_id\n \n as \n \n company_authorized_by_id\n \n, \n \n \n contract_id\n \n as \n \n contract_id\n \n, \n \n \n created_by_id\n \n as \n \n created_by_id\n \n, \n \n \n created_date\n \n as \n \n created_date\n \n, \n \n \n customer_authorized_by_id\n \n as \n \n customer_authorized_by_id\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n is_deleted\n \n as \n \n is_deleted\n \n, \n \n \n is_reduction_order\n \n as \n \n is_reduction_order\n \n, \n \n \n last_modified_by_id\n \n as \n \n last_modified_by_id\n \n, \n \n \n last_modified_date\n \n as \n \n last_modified_date\n \n, \n \n \n last_referenced_date\n \n as \n \n last_referenced_date\n \n, \n \n \n last_viewed_date\n \n as \n \n last_viewed_date\n \n, \n \n \n opportunity_id\n \n as \n \n opportunity_id\n \n, \n \n \n order_number\n \n as \n \n order_number\n \n, \n \n \n original_order_id\n \n as \n \n original_order_id\n \n, \n \n \n owner_id\n \n as \n \n owner_id\n \n, \n \n \n pricebook_2_id\n \n as \n \n pricebook_2_id\n \n, \n \n \n shipping_city\n \n as \n \n shipping_city\n \n, \n \n \n shipping_country\n \n as \n \n shipping_country\n \n, \n \n \n shipping_country_code\n \n as \n \n shipping_country_code\n \n, \n \n \n shipping_geocode_accuracy\n \n as \n \n shipping_geocode_accuracy\n \n, \n \n \n shipping_latitude\n \n as \n \n shipping_latitude\n \n, \n \n \n shipping_longitude\n \n as \n \n shipping_longitude\n \n, \n \n \n shipping_postal_code\n \n as \n \n shipping_postal_code\n \n, \n \n \n shipping_state\n \n as \n \n shipping_state\n \n, \n \n \n shipping_state_code\n \n as \n \n shipping_state_code\n \n, \n \n \n shipping_street\n \n as \n \n shipping_street\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n status_code\n \n as \n \n status_code\n \n, \n \n \n system_modstamp\n \n as \n \n system_modstamp\n \n, \n \n \n total_amount\n \n as \n \n total_amount\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n\n --The below script allows for pass through columns.\n \n \n from base\n), \n\nfinal as (\n \n select \n cast(_fivetran_synced as \n timestamp\n) as _fivetran_synced,\n id as order_id,\n account_id,\n activated_by_id,\n cast(activated_date as \n timestamp\n) as activated_date,\n billing_city,\n billing_country,\n billing_country_code,\n billing_postal_code,\n billing_state,\n billing_state_code,\n billing_street,\n contract_id,\n created_by_id,\n created_date,\n customer_authorized_by_id,\n description,\n cast(end_date as \n timestamp\n) as end_date,\n is_deleted,\n last_modified_by_id,\n cast(last_modified_date as \n timestamp\n) as last_modified_date,\n cast(last_referenced_date as \n timestamp\n) as last_referenced_date,\n cast(last_viewed_date as \n timestamp\n) as last_viewed_date,\n opportunity_id,\n order_number,\n original_order_id,\n owner_id,\n pricebook_2_id,\n shipping_city,\n shipping_country,\n shipping_country_code,\n shipping_postal_code,\n shipping_state,\n shipping_state_code,\n shipping_street,\n status,\n total_amount,\n type\n\n --The below script allows for pass through columns.\n \n \n from fields\n)\n\nselect *\nfrom final\nwhere not coalesce(is_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`dbt_renee`.`stg_salesforce__order`"}, "model.salesforce_source.stg_salesforce__opportunity_line_item": {"raw_sql": "with base as (\n\n select * \n from {{ ref('stg_salesforce__opportunity_line_item_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_salesforce__opportunity_line_item_tmp')),\n staging_columns=get_opportunity_line_item_columns()\n )\n }}\n\n --The below script allows for pass through columns.\n {% if var('opportunity_line_item_pass_through_columns',[]) != [] %}\n , {{ var('opportunity_line_item_pass_through_columns') | join (\", \")}}\n {% endif %}\n \n from base\n), \n\nfinal as (\n \n select \n cast(_fivetran_synced as {{ dbt_utils.type_timestamp() }}) as _fivetran_synced,\n id as opportunity_line_item_id,\n created_by_id,\n cast(created_date as {{ dbt_utils.type_timestamp() }}) as created_date,\n description,\n discount,\n has_quantity_schedule,\n has_revenue_schedule,\n has_schedule,\n is_deleted,\n last_modified_by_id,\n cast(last_modified_date as {{ dbt_utils.type_timestamp() }}) as last_modified_date,\n cast(last_referenced_date as {{ dbt_utils.type_timestamp() }}) as last_referenced_date,\n cast(last_viewed_date as {{ dbt_utils.type_timestamp() }}) as last_viewed_date,\n list_price,\n name,\n opportunity_id,\n pricebook_entry_id,\n product_2_id,\n product_code,\n quantity,\n cast(service_date as {{ dbt_utils.type_timestamp() }}) as service_date,\n sort_order,\n total_price,\n unit_price\n\n --The below script allows for pass through columns.\n {% if var('opportunity_line_item_pass_through_columns',[]) != [] %}\n , {{ var('opportunity_line_item_pass_through_columns') | join (\", \")}}\n\n {% endif %}\n \n from fields\n)\n\nselect *\nfrom final\nwhere not coalesce(is_deleted, false)", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.salesforce_source.get_opportunity_line_item_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_timestamp"], "nodes": ["model.salesforce_source.stg_salesforce__opportunity_line_item_tmp", "model.salesforce_source.stg_salesforce__opportunity_line_item_tmp"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "dbt_renee", "fqn": ["salesforce_source", "stg_salesforce__opportunity_line_item"], "unique_id": "model.salesforce_source.stg_salesforce__opportunity_line_item", "package_name": "salesforce_source", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/salesforce_source", "path": "stg_salesforce__opportunity_line_item.sql", "original_file_path": "models/stg_salesforce__opportunity_line_item.sql", "name": "stg_salesforce__opportunity_line_item", "alias": "stg_salesforce__opportunity_line_item", "checksum": {"name": "sha256", "checksum": "e9874feeec93b92fed9be8db7bfb4f81494f8743342ca470b1b94d78ccb4d8d6"}, "tags": [], "refs": [["stg_salesforce__opportunity_line_item_tmp"], ["stg_salesforce__opportunity_line_item_tmp"]], "sources": [], "description": "Represents an opportunity line item, which is a member of the list of Product2 products associated with an Opportunity.", "columns": {"opportunity_line_item_id": {"name": "opportunity_line_item_id", "description": "The unique, system-generated ID assigned during creation.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time at which fivetran last synced this record", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_active": {"name": "_fivetran_active", "description": "True if record is active, used to filter out only active records if History Mode is enabled", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_by_id": {"name": "created_by_id", "description": "Created By ID", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_date": {"name": "created_date", "description": "Created Date", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Text description of the opportunity line item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount": {"name": "discount", "description": "Discount for the product as a percentage. When updating these records: If you specify Discount without specifying TotalPrice, the TotalPrice is adjusted to accommodate the new Discount value, and the UnitPrice is held constant. If you specify both Discount and Quantity, you must also specify either TotalPrice or UnitPrice so the system knows which one to automatically adjust.\n", "meta": {}, "data_type": null, "quote": null, "tags": []}, "has_quantity_schedule": {"name": "has_quantity_schedule", "description": "Read-only. Indicates whether a quantity schedule has been created for this object (true) or not (false).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "has_revenue_schedule": {"name": "has_revenue_schedule", "description": "Indicates whether a revenue schedule has been created for this object (true) or not (false). If this object has a revenue schedule, the Quantity and TotalPrice fields can\u2019t be updated. In addition, the Quantity field can\u2019t be updated if this object has a quantity schedule. Update requests aren\u2019t rejected but the updated values are ignored.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "has_schedule": {"name": "has_schedule", "description": "If either HasQuantitySchedule or HasRevenueSchedule is true, this field is also true.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "id": {"name": "id", "description": "Line Item ID", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_deleted": {"name": "is_deleted", "description": "Deleted", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_modified_by_id": {"name": "last_modified_by_id", "description": "Last Modified By ID", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_modified_date": {"name": "last_modified_date", "description": "Last Modified Date", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_referenced_date": {"name": "last_referenced_date", "description": "The timestamp for when the current user last viewed a record related to this record. Available in API version 50.0 and later.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_viewed_date": {"name": "last_viewed_date", "description": "The timestamp for when the current user last viewed this record. If this value is null, this record might only have been referenced (LastReferencedDate) and not viewed. Available in API version 50.0 and later.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "list_price": {"name": "list_price", "description": "Corresponds to the UnitPrice on the PricebookEntry that is associated with this line item, which can be in the standard price book or a custom price book. A client application can use this information to show whether the unit price (or sales price) of the line item differs from the price book entry list price.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The opportunity line item name (known as \u201cOpportunity Product\u201d in the user interface). This read-only field is available in API version 30.0 and later.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "opportunity_id": {"name": "opportunity_id", "description": "Required. ID of the associated Opportunity. This is a relationship field.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "pricebook_entry_id": {"name": "pricebook_entry_id", "description": "Required. ID of the associated PricebookEntry. Exists only for those organizations that have Products enabled as a feature. In API versions 1.0 and 2.0, you can specify values for either this field or ProductId, but not both. For this reason, both fields are declared nillable. In API version 3.0 and later, you must specify values for this field instead of ProductId. This is a relationship field.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "product_2_id": {"name": "product_2_id", "description": "The ID of the related Product2 record. This is a read-only field available in API version 30.0 and later. Use the PricebookEntryId field instead, specifying the ID of the PricebookEntry record.\n", "meta": {}, "data_type": null, "quote": null, "tags": []}, "product_code": {"name": "product_code", "description": "This read-only field is available in API version 30.0 and later. It references the value in the ProductCode field of the related Product2 record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "quantity": {"name": "quantity", "description": "Read-only if this record has a quantity schedule, a revenue schedule, or both a quantity and a revenue schedule. When updating these records: If you specify Quantity without specifying the UnitPrice, the UnitPrice value will be adjusted to accommodate the new Quantity value, and the TotalPrice will be held constant. If you specify both Discount and Quantity, you must also specify either TotalPrice or UnitPrice so the system can determine which one to automatically adjust.\n", "meta": {}, "data_type": null, "quote": null, "tags": []}, "service_date": {"name": "service_date", "description": "Date when the product revenue will be recognized and the product quantity will be shipped. Opportunity Close Date\u2014ServiceDate is ignored. Product Date\u2014ServiceDate is used if not null. Schedule Date\u2014ServiceDate is used if not null and there are no revenue schedules present for this line item, that is, there are no OpportunityLineItemSchedule records with a field Type value of Revenue that are children of this record.\n", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sort_order": {"name": "sort_order", "description": "Number indicating the sort order selected by the user. Client applications can use this to match the sort order in Salesforce.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_price": {"name": "total_price", "description": "This field is available only for backward compatibility. It represents the total price of the OpportunityLineItem. If you do not specify UnitPrice, this field is required. If you specify Discount and Quantity, this field or UnitPrice is required. When updating these records, you can change either this value or the UnitPrice, but not both at the same time.\nThis field is nullable, but you can\u2019t set both TotalPrice and UnitPrice to null in the same update request. To insert the TotalPrice via the API (given only a unit price and the quantity), calculate this field as the unit price multiplied by the quantity. This field is read-only if the opportunity line item has a revenue schedule. If the opportunity line item does not have a schedule or only has quantity schedule, this field can be updated.\n", "meta": {}, "data_type": null, "quote": null, "tags": []}, "unit_price": {"name": "unit_price", "description": "The unit price for the opportunity line item. In the Salesforce user interface, this field\u2019s value is calculated by dividing the total price of the opportunity line item by the quantity listed for that line item. Label is Sales Price. This field or TotalPrice is required. You can\u2019t specify both.\nIf you specify Discount and Quantity, this field or TotalPrice is required.\n", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "salesforce_source://models/stg_tables.yml", "compiled_path": "target/compiled/salesforce_source/models/stg_salesforce__opportunity_line_item.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table"}, "created_at": 1655314319.701855, "compiled_sql": "with base as (\n\n select * \n from `dbt-package-testing`.`dbt_renee`.`stg_salesforce__opportunity_line_item_tmp`\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n created_by_id\n \n as \n \n created_by_id\n \n, \n \n \n created_date\n \n as \n \n created_date\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n discount\n \n as \n \n discount\n \n, \n \n \n has_quantity_schedule\n \n as \n \n has_quantity_schedule\n \n, \n \n \n has_revenue_schedule\n \n as \n \n has_revenue_schedule\n \n, \n \n \n has_schedule\n \n as \n \n has_schedule\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n is_deleted\n \n as \n \n is_deleted\n \n, \n \n \n last_modified_by_id\n \n as \n \n last_modified_by_id\n \n, \n \n \n last_modified_date\n \n as \n \n last_modified_date\n \n, \n \n \n last_referenced_date\n \n as \n \n last_referenced_date\n \n, \n \n \n last_viewed_date\n \n as \n \n last_viewed_date\n \n, \n \n \n list_price\n \n as \n \n list_price\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n opportunity_id\n \n as \n \n opportunity_id\n \n, \n \n \n pricebook_entry_id\n \n as \n \n pricebook_entry_id\n \n, \n \n \n product_2_id\n \n as \n \n product_2_id\n \n, \n \n \n product_code\n \n as \n \n product_code\n \n, \n \n \n quantity\n \n as \n \n quantity\n \n, \n \n \n service_date\n \n as \n \n service_date\n \n, \n \n \n sort_order\n \n as \n \n sort_order\n \n, \n \n \n system_modstamp\n \n as \n \n system_modstamp\n \n, \n \n \n total_price\n \n as \n \n total_price\n \n, \n \n \n unit_price\n \n as \n \n unit_price\n \n\n\n\n\n --The below script allows for pass through columns.\n \n \n from base\n), \n\nfinal as (\n \n select \n cast(_fivetran_synced as \n timestamp\n) as _fivetran_synced,\n id as opportunity_line_item_id,\n created_by_id,\n cast(created_date as \n timestamp\n) as created_date,\n description,\n discount,\n has_quantity_schedule,\n has_revenue_schedule,\n has_schedule,\n is_deleted,\n last_modified_by_id,\n cast(last_modified_date as \n timestamp\n) as last_modified_date,\n cast(last_referenced_date as \n timestamp\n) as last_referenced_date,\n cast(last_viewed_date as \n timestamp\n) as last_viewed_date,\n list_price,\n name,\n opportunity_id,\n pricebook_entry_id,\n product_2_id,\n product_code,\n quantity,\n cast(service_date as \n timestamp\n) as service_date,\n sort_order,\n total_price,\n unit_price\n\n --The below script allows for pass through columns.\n \n \n from fields\n)\n\nselect *\nfrom final\nwhere not coalesce(is_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`dbt_renee`.`stg_salesforce__opportunity_line_item`"}, "model.salesforce_source.stg_salesforce__order_tmp": {"raw_sql": "select *\nfrom {{ var('order') }}\n{% if var('using_order_history_mode_active_records', false) %}\nwhere coalesce(_fivetran_active, true)\n{% endif %}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.salesforce_source.salesforce.order"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "dbt_renee", "fqn": ["salesforce_source", "tmp", "stg_salesforce__order_tmp"], "unique_id": "model.salesforce_source.stg_salesforce__order_tmp", "package_name": "salesforce_source", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/salesforce_source", "path": "tmp/stg_salesforce__order_tmp.sql", "original_file_path": "models/tmp/stg_salesforce__order_tmp.sql", "name": "stg_salesforce__order_tmp", "alias": "stg_salesforce__order_tmp", "checksum": {"name": "sha256", "checksum": "f27f8df9892f1bcd35ce494aea1b46cbc2e01c7959ce9a4cc6b0ae5770ccf831"}, "tags": [], "refs": [], "sources": [["salesforce", "order"]], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/salesforce_source/models/tmp/stg_salesforce__order_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view"}, "created_at": 1655314319.5825121, "compiled_sql": "select *\nfrom `fivetran`.`salesforce`.`order`\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`dbt_renee`.`stg_salesforce__order_tmp`"}, "model.salesforce_source.stg_salesforce__product_2": {"raw_sql": "with base as (\n\n select * \n from {{ ref('stg_salesforce__product_2_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_salesforce__product_2_tmp')),\n staging_columns=get_product_2_columns()\n )\n }}\n\n --The below script allows for pass through columns.\n {% if var('product_2_pass_through_columns',[]) != [] %}\n , {{ var('product_2_pass_through_columns') | join (\", \")}}\n {% endif %}\n \n from base\n), \n\nfinal as (\n \n select \n cast(_fivetran_synced as {{ dbt_utils.type_timestamp() }}) as _fivetran_synced,\n id as product_2_id,\n created_by_id,\n cast(created_date as {{ dbt_utils.type_timestamp() }}) as created_date,\n description,\n display_url,\n external_id,\n family,\n is_active,\n is_archived,\n is_deleted,\n last_modified_by_id,\n cast(last_modified_date as {{ dbt_utils.type_timestamp() }}) as last_modified_date,\n cast(last_referenced_date as {{ dbt_utils.type_timestamp() }}) as last_referenced_date,\n cast(last_viewed_date as {{ dbt_utils.type_timestamp() }}) as last_viewed_date,\n name,\n number_of_quantity_installments,\n number_of_revenue_installments,\n product_code,\n quantity_installment_period,\n quantity_schedule_type,\n quantity_unit_of_measure,\n record_type_id,\n revenue_installment_period,\n revenue_schedule_type\n\n --The below script allows for pass through columns.\n {% if var('product_2_pass_through_columns',[]) != [] %}\n , {{ var('product_2_pass_through_columns') | join (\", \")}}\n\n {% endif %}\n \n from fields\n)\n\nselect *\nfrom final\nwhere not coalesce(is_deleted, false)", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.salesforce_source.get_product_2_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_timestamp"], "nodes": ["model.salesforce_source.stg_salesforce__product_2_tmp", "model.salesforce_source.stg_salesforce__product_2_tmp"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "dbt_renee", "fqn": ["salesforce_source", "stg_salesforce__product_2"], "unique_id": "model.salesforce_source.stg_salesforce__product_2", "package_name": "salesforce_source", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/salesforce_source", "path": "stg_salesforce__product_2.sql", "original_file_path": "models/stg_salesforce__product_2.sql", "name": "stg_salesforce__product_2", "alias": "stg_salesforce__product_2", "checksum": {"name": "sha256", "checksum": "4c6087e2975bc75319248574761a98ce61ba480ea08e4ca394dfa38c91975ec5"}, "tags": [], "refs": [["stg_salesforce__product_2_tmp"], ["stg_salesforce__product_2_tmp"]], "sources": [], "description": "Represents a product that your company sells.", "columns": {"product_2_id": {"name": "product_2_id", "description": "The unique, system-generated ID assigned during creation.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time at which fivetran last synced this record", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_active": {"name": "_fivetran_active", "description": "True if record is active, used to filter out only active records if History Mode is enabled", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_by_id": {"name": "created_by_id", "description": "Created By ID", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_date": {"name": "created_date", "description": "Created Date", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "A text description of this record. Label is Product Description.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "display_url": {"name": "display_url", "description": "URL leading to a specific version of a record in the linked external data source.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "external_data_source_id": {"name": "external_data_source_id", "description": "ID of the related external data source.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "external_id": {"name": "external_id", "description": "The unique identifier of a record in the linked external data source. For example, ID", "meta": {}, "data_type": null, "quote": null, "tags": []}, "family": {"name": "family", "description": "Name of the product family associated with this record. Product families are configured as picklists in the user interface. To obtain a list of valid values, call describeSObjects() and process the DescribeSObjectResult for the values associated with the Family field. Label is Product Family.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_active": {"name": "is_active", "description": "Indicates whether this record is active (true) or not (false). Inactive Product2 records are hidden in many areas in the user interface. You can change the IsActive flag on a Product2 object as often as necessary. Label is Active.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_archived": {"name": "is_archived", "description": "Describes whether the product is archived. The default value is false.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_deleted": {"name": "is_deleted", "description": "Indicates whether the object has been moved to the Recycle Bin (true) or not (false). Label is Deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_modified_by_id": {"name": "last_modified_by_id", "description": "Last Modified By ID", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_modified_date": {"name": "last_modified_date", "description": "Last Modified Date", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_referenced_date": {"name": "last_referenced_date", "description": "The timestamp when the current user last accessed this record, a record related to this record, or a list view.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_viewed_date": {"name": "last_viewed_date", "description": "The timestamp when the current user last viewed this record or list view. If this value is null, the user might have only accessed this record or list view (LastReferencedDate) but not viewed it.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Required. Default name of this record. Label is Product Name.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "number_of_quantity_installments": {"name": "number_of_quantity_installments", "description": "If the product has a quantity schedule, the number of installments.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "number_of_revenue_installments": {"name": "number_of_revenue_installments", "description": "If the product has a revenue schedule, the number of installments.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "product_code": {"name": "product_code", "description": "Default product code for this record. Your org defines the product code naming pattern.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "quantity_installment_period": {"name": "quantity_installment_period", "description": "If the product has a quantity schedule, the amount of time covered by the schedule.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "quantity_schedule_type": {"name": "quantity_schedule_type", "description": "The type of the quantity schedule, if the product has one.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "quantity_unit_of_measure": {"name": "quantity_unit_of_measure", "description": "Unit of the product; for example, kilograms, liters, or cases. This field comes with only one value, Each, so consider creating your own. The QuantityUnitOfMeasure field on ProductItem inherits this field\u2019s values.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "record_type_id": {"name": "record_type_id", "description": "ID of the record type assigned to this object.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "revenue_installment_period": {"name": "revenue_installment_period", "description": "If the product has a revenue schedule, the time period covered by the schedule.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "revenue_schedule_type": {"name": "revenue_schedule_type", "description": "The type of the revenue schedule, if the product has one.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "stock_keeping_unit": {"name": "stock_keeping_unit", "description": "The SKU for the product. Use in tandem with or instead of the ProductCode field. For example, you can track the manufacturer\u2019s identifying code in the Product Code field and assign the product a SKU when you resell it.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "system_modstamp": {"name": "system_modstamp", "description": "System Modstamp", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "salesforce_source://models/stg_tables.yml", "compiled_path": "target/compiled/salesforce_source/models/stg_salesforce__product_2.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table"}, "created_at": 1655314319.712404, "compiled_sql": "with base as (\n\n select * \n from `dbt-package-testing`.`dbt_renee`.`stg_salesforce__product_2_tmp`\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n created_by_id\n \n as \n \n created_by_id\n \n, \n \n \n created_date\n \n as \n \n created_date\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n display_url\n \n as \n \n display_url\n \n, \n \n \n external_data_source_id\n \n as \n \n external_data_source_id\n \n, \n \n \n external_id\n \n as \n \n external_id\n \n, \n \n \n family\n \n as \n \n family\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n is_active\n \n as \n \n is_active\n \n, \n \n \n is_archived\n \n as \n \n is_archived\n \n, \n \n \n is_deleted\n \n as \n \n is_deleted\n \n, \n \n \n last_modified_by_id\n \n as \n \n last_modified_by_id\n \n, \n \n \n last_modified_date\n \n as \n \n last_modified_date\n \n, \n \n \n last_referenced_date\n \n as \n \n last_referenced_date\n \n, \n \n \n last_viewed_date\n \n as \n \n last_viewed_date\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n number_of_quantity_installments\n \n as \n \n number_of_quantity_installments\n \n, \n \n \n number_of_revenue_installments\n \n as \n \n number_of_revenue_installments\n \n, \n \n \n product_code\n \n as \n \n product_code\n \n, \n \n \n quantity_installment_period\n \n as \n \n quantity_installment_period\n \n, \n \n \n quantity_schedule_type\n \n as \n \n quantity_schedule_type\n \n, \n \n \n quantity_unit_of_measure\n \n as \n \n quantity_unit_of_measure\n \n, \n \n \n record_type_id\n \n as \n \n record_type_id\n \n, \n \n \n revenue_installment_period\n \n as \n \n revenue_installment_period\n \n, \n \n \n revenue_schedule_type\n \n as \n \n revenue_schedule_type\n \n, \n \n \n stock_keeping_unit\n \n as \n \n stock_keeping_unit\n \n, \n \n \n system_modstamp\n \n as \n \n system_modstamp\n \n\n\n\n\n --The below script allows for pass through columns.\n \n \n from base\n), \n\nfinal as (\n \n select \n cast(_fivetran_synced as \n timestamp\n) as _fivetran_synced,\n id as product_2_id,\n created_by_id,\n cast(created_date as \n timestamp\n) as created_date,\n description,\n display_url,\n external_id,\n family,\n is_active,\n is_archived,\n is_deleted,\n last_modified_by_id,\n cast(last_modified_date as \n timestamp\n) as last_modified_date,\n cast(last_referenced_date as \n timestamp\n) as last_referenced_date,\n cast(last_viewed_date as \n timestamp\n) as last_viewed_date,\n name,\n number_of_quantity_installments,\n number_of_revenue_installments,\n product_code,\n quantity_installment_period,\n quantity_schedule_type,\n quantity_unit_of_measure,\n record_type_id,\n revenue_installment_period,\n revenue_schedule_type\n\n --The below script allows for pass through columns.\n \n \n from fields\n)\n\nselect *\nfrom final\nwhere not coalesce(is_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`dbt_renee`.`stg_salesforce__product_2`"}, "model.salesforce_source.stg_salesforce__event_tmp": {"raw_sql": "select * \nfrom {{ var('event') }}\n{% if var('using_event_history_mode_active_records', false) %}\nwhere coalesce(_fivetran_active, true)\n{% endif %}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.salesforce_source.salesforce.event"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "dbt_renee", "fqn": ["salesforce_source", "tmp", "stg_salesforce__event_tmp"], "unique_id": "model.salesforce_source.stg_salesforce__event_tmp", "package_name": "salesforce_source", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/salesforce_source", "path": "tmp/stg_salesforce__event_tmp.sql", "original_file_path": "models/tmp/stg_salesforce__event_tmp.sql", "name": "stg_salesforce__event_tmp", "alias": "stg_salesforce__event_tmp", "checksum": {"name": "sha256", "checksum": "5abfce88b68dae3856239f0df3344bc6bc37d48bd8a04a4d668a215ecbadc030"}, "tags": [], "refs": [], "sources": [["salesforce", "event"]], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/salesforce_source/models/tmp/stg_salesforce__event_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view"}, "created_at": 1655314319.6182148, "compiled_sql": "select * \nfrom `fivetran`.`salesforce`.`event`\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`dbt_renee`.`stg_salesforce__event_tmp`"}, "model.salesforce_source.stg_salesforce__task": {"raw_sql": "with base as (\n\n select * \n from {{ ref('stg_salesforce__task_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_salesforce__task_tmp')),\n staging_columns=get_task_columns()\n )\n }}\n\n --The below script allows for pass through columns.\n {% if var('task_pass_through_columns',[]) != [] %}\n , {{ var('task_pass_through_columns') | join (\", \")}}\n {% endif %}\n \n from base\n), \n\nfinal as (\n \n select \n cast(_fivetran_synced as {{ dbt_utils.type_timestamp() }}) as _fivetran_synced,\n id as task_id,\n account_id,\n cast(activity_date as {{ dbt_utils.type_timestamp() }}) as activity_date,\n call_disposition,\n call_duration_in_seconds,\n call_object,\n call_type,\n cast(completed_date_time as {{ dbt_utils.type_timestamp() }}) as completed_date_time,\n created_by_id,\n cast(created_date as {{ dbt_utils.type_timestamp() }}) as created_date,\n description,\n is_archived,\n is_closed,\n is_deleted,\n is_high_priority,\n last_modified_by_id,\n cast(last_modified_date as {{ dbt_utils.type_timestamp() }}) as last_modified_date,\n owner_id,\n priority,\n record_type_id,\n status,\n subject,\n task_subtype,\n type,\n what_count,\n what_id,\n who_count,\n who_id\n\n --The below script allows for pass through columns.\n {% if var('task_pass_through_columns',[]) != [] %}\n , {{ var('task_pass_through_columns') | join (\", \")}}\n\n {% endif %}\n \n from fields\n)\n\nselect *\nfrom final\nwhere not coalesce(is_deleted, false)", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.salesforce_source.get_task_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_timestamp"], "nodes": ["model.salesforce_source.stg_salesforce__task_tmp", "model.salesforce_source.stg_salesforce__task_tmp"]}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "dbt-package-testing", "schema": "dbt_renee", "fqn": ["salesforce_source", "stg_salesforce__task"], "unique_id": "model.salesforce_source.stg_salesforce__task", "package_name": "salesforce_source", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/salesforce_source", "path": "stg_salesforce__task.sql", "original_file_path": "models/stg_salesforce__task.sql", "name": "stg_salesforce__task", "alias": "stg_salesforce__task", "checksum": {"name": "sha256", "checksum": "2f8a532645ecec79ded262ec2fa5222a131c4a384d8f72f58a91ce0ee4d6d20b"}, "tags": [], "refs": [["stg_salesforce__task_tmp"], ["stg_salesforce__task_tmp"]], "sources": [], "description": "Represents a business activity such as making a phone call or other to-do items. In the user interface, Task and Event records are collectively referred to as activities.", "columns": {"task_id": {"name": "task_id", "description": "The unique, system-generated ID assigned during creation.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time at which fivetran last synced this record", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_active": {"name": "_fivetran_active", "description": "True if record is active, used to filter out only active records if History Mode is enabled", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Represents the ID of the related Account. The AccountId is determined as follows. If the value of WhatId is any of the following objects, then Salesforce uses that object\u2019s AccountId. Account Opportunity Contract Custom object that is a child of Account If the value of the WhatIdfield is any other object, and the value of the WhoId field is a Contact object, then Salesforce uses that contact\u2019s AccountId. (If your organization uses Shared Activities, then Salesforce uses the AccountId of the primary contact.) Otherwise, Salesforce sets the value of the AccountId field to null. This is a relationship field.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "activity_date": {"name": "activity_date", "description": "Represents the due date of the task. This field has a timestamp that is always set to midnight in the Coordinated Universal Time (UTC) time zone. The timestamp is not relevant; do not attempt to alter it to accommodate time zone differences. Label is Due Date.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "call_disposition": {"name": "call_disposition", "description": "Represents the result of a given call, for example, \u201cwe'll call back,\u201d or \u201ccall unsuccessful.\u201d Limit is 255 characters. Not subject to field-level security, available for any user in an organization with Salesforce CRM Call Center.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "call_duration_in_seconds": {"name": "call_duration_in_seconds", "description": "Duration of the call in seconds. Not subject to field-level security, available for any user in an organization with Salesforce CRM Call Center.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "call_object": {"name": "call_object", "description": "Name of a call center. Limit is 255 characters. Not subject to field-level security, available for any user in an organization with Salesforce CRM Call Center.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "call_type": {"name": "call_type", "description": "The type of call being answered: Inbound, Internal, or Outbound.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "completed_date_time": {"name": "completed_date_time", "description": "The date and time the task was saved with a Closed status. For insert, if the task is saved with a Closed status the field is set. If the task is saved with an Open status the field is set to NULL. For update, if the task is saved with a new Closed status, the field is reset. If the task is saved with a new non-closed status, the field is reset to NULL. If the task is saved with the same closed status (that is, unchanged) there is no change to the field.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_by_id": {"name": "created_by_id", "description": "Created By ID", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_date": {"name": "created_date", "description": "Created Date", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Contains a text description of the task.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_archived": {"name": "is_archived", "description": "Indicates whether the event has been archived.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_closed": {"name": "is_closed", "description": "Indicates whether the task has been completed (true) or not (false). Is only set indirectly via the Status picklist. Label is Closed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_deleted": {"name": "is_deleted", "description": "Deleted", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_high_priority": {"name": "is_high_priority", "description": "Indicates a high-priority task. This field is derived from the Priority field.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_modified_by_id": {"name": "last_modified_by_id", "description": "Last Modified By ID", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_modified_date": {"name": "last_modified_date", "description": "Last Modified Date", "meta": {}, "data_type": null, "quote": null, "tags": []}, "owner_id": {"name": "owner_id", "description": "ID of the User or Group who owns the record. Label is Assigned To ID. This field accepts Groups of type Queue only. In the user interface, Group IDs correspond with the queue\u2019s list view names. To create or update tasks assigned to Group, use v48.0 or later. This is a polymorphic relationship field.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "priority": {"name": "priority", "description": "Required. Indicates the importance or urgency of a task, such as high or low.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "record_type_id": {"name": "record_type_id", "description": "ID of the record type assigned to this object.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "status": {"name": "status", "description": "Required. The status of the task, such as In Progress or Completed. Each predefined Status field implies a value for the IsClosed flag. To obtain picklist values, query the TaskStatus object.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "subject": {"name": "subject", "description": "The subject line of the task, such as \u201cCall\u201d or \u201cSend Quote.\u201d", "meta": {}, "data_type": null, "quote": null, "tags": []}, "system_modstamp": {"name": "system_modstamp", "description": "System Modstamp", "meta": {}, "data_type": null, "quote": null, "tags": []}, "task_subtype": {"name": "task_subtype", "description": "Provides standard subtypes to facilitate creating and searching for specific task subtypes.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "type": {"name": "type", "description": "The type of task, such as Call or Meeting.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "what_count": {"name": "what_count", "description": "Available to organizations that have Shared Activities enabled. Count of related TaskRelations pertaining to WhatId. Count of the WhatId must be 1 or less.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "what_id": {"name": "what_id", "description": "The WhatId represents nonhuman objects such as accounts, opportunities, campaigns, cases, or custom objects. WhatIds are polymorphic. Polymorphic means a WhatId is equivalent to the ID of a related object. The label is Related To ID. This is a polymorphic relationship field.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "who_count": {"name": "who_count", "description": "Available to organizations that have Shared Activities enabled. Count of related TaskRelations pertaining to WhoId.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "who_id": {"name": "who_id", "description": "The WhoId represents a human such as a lead or a contact. WhoIds are polymorphic. Polymorphic means a WhoId is equivalent to a contact\u2019s ID or a lead\u2019s ID. The label is Name ID. If Shared Activities is enabled, the value of this field is the ID of the related lead or primary contact. If you add, update, or remove the WhoId field, you might encounter problems with triggers, workflows, and data validation rules that are associated with the record. The label is Name ID. Beginning in API version 37.0, if the contact or lead ID in the WhoId field is not in the TaskWhoIds list, no error occurs and the ID is added to the TaskWhoIds as the primary WhoId. If WhoId is set to null, an arbitrary ID from the existing TaskWhoIds list is promoted to the primary position.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "salesforce_source://models/stg_tables.yml", "compiled_path": "target/compiled/salesforce_source/models/stg_salesforce__task.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table"}, "created_at": 1655314319.723447, "compiled_sql": "with base as (\n\n select * \n from `dbt-package-testing`.`dbt_renee`.`stg_salesforce__task_tmp`\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n account_id\n \n as \n \n account_id\n \n, \n \n \n activity_date\n \n as \n \n activity_date\n \n, \n \n \n call_disposition\n \n as \n \n call_disposition\n \n, \n \n \n call_duration_in_seconds\n \n as \n \n call_duration_in_seconds\n \n, \n \n \n call_object\n \n as \n \n call_object\n \n, \n \n \n call_type\n \n as \n \n call_type\n \n, \n \n \n completed_date_time\n \n as \n \n completed_date_time\n \n, \n \n \n created_by_id\n \n as \n \n created_by_id\n \n, \n \n \n created_date\n \n as \n \n created_date\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n is_archived\n \n as \n \n is_archived\n \n, \n \n \n is_closed\n \n as \n \n is_closed\n \n, \n \n \n is_deleted\n \n as \n \n is_deleted\n \n, \n \n \n is_high_priority\n \n as \n \n is_high_priority\n \n, \n \n \n is_recurrence\n \n as \n \n is_recurrence\n \n, \n \n \n is_reminder_set\n \n as \n \n is_reminder_set\n \n, \n \n \n last_modified_by_id\n \n as \n \n last_modified_by_id\n \n, \n \n \n last_modified_date\n \n as \n \n last_modified_date\n \n, \n \n \n owner_id\n \n as \n \n owner_id\n \n, \n \n \n priority\n \n as \n \n priority\n \n, \n \n \n record_type_id\n \n as \n \n record_type_id\n \n, \n \n \n recurrence_activity_id\n \n as \n \n recurrence_activity_id\n \n, \n \n \n recurrence_day_of_month\n \n as \n \n recurrence_day_of_month\n \n, \n \n \n recurrence_day_of_week_mask\n \n as \n \n recurrence_day_of_week_mask\n \n, \n \n \n recurrence_end_date_only\n \n as \n \n recurrence_end_date_only\n \n, \n \n \n recurrence_instance\n \n as \n \n recurrence_instance\n \n, \n \n \n recurrence_interval\n \n as \n \n recurrence_interval\n \n, \n \n \n recurrence_month_of_year\n \n as \n \n recurrence_month_of_year\n \n, \n \n \n recurrence_regenerated_type\n \n as \n \n recurrence_regenerated_type\n \n, \n \n \n recurrence_start_date_only\n \n as \n \n recurrence_start_date_only\n \n, \n \n \n recurrence_time_zone_sid_key\n \n as \n \n recurrence_time_zone_sid_key\n \n, \n \n \n recurrence_type\n \n as \n \n recurrence_type\n \n, \n \n \n reminder_date_time\n \n as \n \n reminder_date_time\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n subject\n \n as \n \n subject\n \n, \n \n \n system_modstamp\n \n as \n \n system_modstamp\n \n, \n \n \n task_subtype\n \n as \n \n task_subtype\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n what_count\n \n as \n \n what_count\n \n, \n \n \n what_id\n \n as \n \n what_id\n \n, \n \n \n who_count\n \n as \n \n who_count\n \n, \n \n \n who_id\n \n as \n \n who_id\n \n\n\n\n\n --The below script allows for pass through columns.\n \n \n from base\n), \n\nfinal as (\n \n select \n cast(_fivetran_synced as \n timestamp\n) as _fivetran_synced,\n id as task_id,\n account_id,\n cast(activity_date as \n timestamp\n) as activity_date,\n call_disposition,\n call_duration_in_seconds,\n call_object,\n call_type,\n cast(completed_date_time as \n timestamp\n) as completed_date_time,\n created_by_id,\n cast(created_date as \n timestamp\n) as created_date,\n description,\n is_archived,\n is_closed,\n is_deleted,\n is_high_priority,\n last_modified_by_id,\n cast(last_modified_date as \n timestamp\n) as last_modified_date,\n owner_id,\n priority,\n record_type_id,\n status,\n subject,\n task_subtype,\n type,\n what_count,\n what_id,\n who_count,\n who_id\n\n --The below script allows for pass through columns.\n \n \n from fields\n)\n\nselect *\nfrom final\nwhere not coalesce(is_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`dbt_renee`.`stg_salesforce__task`"}, "test.salesforce_source.not_null_stg_salesforce__order_order_id.4782f3b34f": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_id", "model": "{{ get_where_subquery(ref('stg_salesforce__order')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.salesforce_source.stg_salesforce__order"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "dbt_renee_dbt_test__audit", "fqn": ["salesforce_source", "not_null_stg_salesforce__order_order_id"], "unique_id": "test.salesforce_source.not_null_stg_salesforce__order_order_id.4782f3b34f", "package_name": "salesforce_source", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/salesforce_source", "path": "not_null_stg_salesforce__order_order_id.sql", "original_file_path": "models/stg_tables.yml", "name": "not_null_stg_salesforce__order_order_id", "alias": "not_null_stg_salesforce__order_order_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_salesforce__order"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/salesforce_source/models/stg_tables.yml/not_null_stg_salesforce__order_order_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1655314319.7308311, "compiled_sql": "\n \n \n\nselect *\nfrom `dbt-package-testing`.`dbt_renee`.`stg_salesforce__order`\nwhere order_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "order_id", "file_key_name": "models.stg_salesforce__order"}, "test.salesforce_source.unique_stg_salesforce__order_order_id.12a96b4e3c": {"raw_sql": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "unique", "kwargs": {"column_name": "order_id", "model": "{{ get_where_subquery(ref('stg_salesforce__order')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.salesforce_source.stg_salesforce__order"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "dbt_renee_dbt_test__audit", "fqn": ["salesforce_source", "unique_stg_salesforce__order_order_id"], "unique_id": "test.salesforce_source.unique_stg_salesforce__order_order_id.12a96b4e3c", "package_name": "salesforce_source", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/salesforce_source", "path": "unique_stg_salesforce__order_order_id.sql", "original_file_path": "models/stg_tables.yml", "name": "unique_stg_salesforce__order_order_id", "alias": "unique_stg_salesforce__order_order_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_salesforce__order"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/salesforce_source/models/stg_tables.yml/unique_stg_salesforce__order_order_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1655314319.732623, "compiled_sql": "\n \n \n\nwith dbt_test__target as (\n \n select order_id as unique_field\n from `dbt-package-testing`.`dbt_renee`.`stg_salesforce__order`\n where order_id is not null\n \n)\n\nselect\n unique_field,\n count(*) as n_records\n\nfrom dbt_test__target\ngroup by unique_field\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "order_id", "file_key_name": "models.stg_salesforce__order"}, "test.salesforce_source.not_null_stg_salesforce__opportunity_line_item_opportunity_line_item_id.b5d2465072": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_salesforce__oppor_cdeb75ef90723b483025a6ea3200473b\") }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "opportunity_line_item_id", "model": "{{ get_where_subquery(ref('stg_salesforce__opportunity_line_item')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.salesforce_source.stg_salesforce__opportunity_line_item"]}, "config": {"enabled": true, "alias": "not_null_stg_salesforce__oppor_cdeb75ef90723b483025a6ea3200473b", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "dbt_renee_dbt_test__audit", "fqn": ["salesforce_source", "not_null_stg_salesforce__opportunity_line_item_opportunity_line_item_id"], "unique_id": "test.salesforce_source.not_null_stg_salesforce__opportunity_line_item_opportunity_line_item_id.b5d2465072", "package_name": "salesforce_source", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/salesforce_source", "path": "not_null_stg_salesforce__oppor_cdeb75ef90723b483025a6ea3200473b.sql", "original_file_path": "models/stg_tables.yml", "name": "not_null_stg_salesforce__opportunity_line_item_opportunity_line_item_id", "alias": "not_null_stg_salesforce__oppor_cdeb75ef90723b483025a6ea3200473b", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_salesforce__opportunity_line_item"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/salesforce_source/models/stg_tables.yml/not_null_stg_salesforce__oppor_cdeb75ef90723b483025a6ea3200473b.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_salesforce__oppor_cdeb75ef90723b483025a6ea3200473b"}, "created_at": 1655314319.7343922, "compiled_sql": "\n \n \n\nselect *\nfrom `dbt-package-testing`.`dbt_renee`.`stg_salesforce__opportunity_line_item`\nwhere opportunity_line_item_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "opportunity_line_item_id", "file_key_name": "models.stg_salesforce__opportunity_line_item"}, "test.salesforce_source.unique_stg_salesforce__opportunity_line_item_opportunity_line_item_id.c18042d902": {"raw_sql": "{{ test_unique(**_dbt_generic_test_kwargs) }}{{ config(alias=\"unique_stg_salesforce__opportu_e7519b9845106f63a1bb91c4defd69e4\") }}", "test_metadata": {"name": "unique", "kwargs": {"column_name": "opportunity_line_item_id", "model": "{{ get_where_subquery(ref('stg_salesforce__opportunity_line_item')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.salesforce_source.stg_salesforce__opportunity_line_item"]}, "config": {"enabled": true, "alias": "unique_stg_salesforce__opportu_e7519b9845106f63a1bb91c4defd69e4", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "dbt_renee_dbt_test__audit", "fqn": ["salesforce_source", "unique_stg_salesforce__opportunity_line_item_opportunity_line_item_id"], "unique_id": "test.salesforce_source.unique_stg_salesforce__opportunity_line_item_opportunity_line_item_id.c18042d902", "package_name": "salesforce_source", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/salesforce_source", "path": "unique_stg_salesforce__opportu_e7519b9845106f63a1bb91c4defd69e4.sql", "original_file_path": "models/stg_tables.yml", "name": "unique_stg_salesforce__opportunity_line_item_opportunity_line_item_id", "alias": "unique_stg_salesforce__opportu_e7519b9845106f63a1bb91c4defd69e4", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_salesforce__opportunity_line_item"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/salesforce_source/models/stg_tables.yml/unique_stg_salesforce__opportu_e7519b9845106f63a1bb91c4defd69e4.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "unique_stg_salesforce__opportu_e7519b9845106f63a1bb91c4defd69e4"}, "created_at": 1655314319.736384, "compiled_sql": "\n \n \n\nwith dbt_test__target as (\n \n select opportunity_line_item_id as unique_field\n from `dbt-package-testing`.`dbt_renee`.`stg_salesforce__opportunity_line_item`\n where opportunity_line_item_id is not null\n \n)\n\nselect\n unique_field,\n count(*) as n_records\n\nfrom dbt_test__target\ngroup by unique_field\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "opportunity_line_item_id", "file_key_name": "models.stg_salesforce__opportunity_line_item"}, "test.salesforce_source.not_null_stg_salesforce__product_2_product_2_id.84aed29e8a": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "product_2_id", "model": "{{ get_where_subquery(ref('stg_salesforce__product_2')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.salesforce_source.stg_salesforce__product_2"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "dbt_renee_dbt_test__audit", "fqn": ["salesforce_source", "not_null_stg_salesforce__product_2_product_2_id"], "unique_id": "test.salesforce_source.not_null_stg_salesforce__product_2_product_2_id.84aed29e8a", "package_name": "salesforce_source", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/salesforce_source", "path": "not_null_stg_salesforce__product_2_product_2_id.sql", "original_file_path": "models/stg_tables.yml", "name": "not_null_stg_salesforce__product_2_product_2_id", "alias": "not_null_stg_salesforce__product_2_product_2_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_salesforce__product_2"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/salesforce_source/models/stg_tables.yml/not_null_stg_salesforce__product_2_product_2_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1655314319.7381299, "compiled_sql": "\n \n \n\nselect *\nfrom `dbt-package-testing`.`dbt_renee`.`stg_salesforce__product_2`\nwhere product_2_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "product_2_id", "file_key_name": "models.stg_salesforce__product_2"}, "test.salesforce_source.unique_stg_salesforce__product_2_product_2_id.b4bc489d61": {"raw_sql": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "unique", "kwargs": {"column_name": "product_2_id", "model": "{{ get_where_subquery(ref('stg_salesforce__product_2')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.salesforce_source.stg_salesforce__product_2"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "dbt_renee_dbt_test__audit", "fqn": ["salesforce_source", "unique_stg_salesforce__product_2_product_2_id"], "unique_id": "test.salesforce_source.unique_stg_salesforce__product_2_product_2_id.b4bc489d61", "package_name": "salesforce_source", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/salesforce_source", "path": "unique_stg_salesforce__product_2_product_2_id.sql", "original_file_path": "models/stg_tables.yml", "name": "unique_stg_salesforce__product_2_product_2_id", "alias": "unique_stg_salesforce__product_2_product_2_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_salesforce__product_2"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/salesforce_source/models/stg_tables.yml/unique_stg_salesforce__product_2_product_2_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1655314319.739938, "compiled_sql": "\n \n \n\nwith dbt_test__target as (\n \n select product_2_id as unique_field\n from `dbt-package-testing`.`dbt_renee`.`stg_salesforce__product_2`\n where product_2_id is not null\n \n)\n\nselect\n unique_field,\n count(*) as n_records\n\nfrom dbt_test__target\ngroup by unique_field\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "product_2_id", "file_key_name": "models.stg_salesforce__product_2"}, "test.salesforce_source.not_null_stg_salesforce__task_task_id.aabe11a5d9": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "task_id", "model": "{{ get_where_subquery(ref('stg_salesforce__task')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.salesforce_source.stg_salesforce__task"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "dbt_renee_dbt_test__audit", "fqn": ["salesforce_source", "not_null_stg_salesforce__task_task_id"], "unique_id": "test.salesforce_source.not_null_stg_salesforce__task_task_id.aabe11a5d9", "package_name": "salesforce_source", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/salesforce_source", "path": "not_null_stg_salesforce__task_task_id.sql", "original_file_path": "models/stg_tables.yml", "name": "not_null_stg_salesforce__task_task_id", "alias": "not_null_stg_salesforce__task_task_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_salesforce__task"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/salesforce_source/models/stg_tables.yml/not_null_stg_salesforce__task_task_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1655314319.741706, "compiled_sql": "\n \n \n\nselect *\nfrom `dbt-package-testing`.`dbt_renee`.`stg_salesforce__task`\nwhere task_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "task_id", "file_key_name": "models.stg_salesforce__task"}, "test.salesforce_source.unique_stg_salesforce__task_task_id.73684ed605": {"raw_sql": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "unique", "kwargs": {"column_name": "task_id", "model": "{{ get_where_subquery(ref('stg_salesforce__task')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.salesforce_source.stg_salesforce__task"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "dbt-package-testing", "schema": "dbt_renee_dbt_test__audit", "fqn": ["salesforce_source", "unique_stg_salesforce__task_task_id"], "unique_id": "test.salesforce_source.unique_stg_salesforce__task_task_id.73684ed605", "package_name": "salesforce_source", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/salesforce_source", "path": "unique_stg_salesforce__task_task_id.sql", "original_file_path": "models/stg_tables.yml", "name": "unique_stg_salesforce__task_task_id", "alias": "unique_stg_salesforce__task_task_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_salesforce__task"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/salesforce_source/models/stg_tables.yml/unique_stg_salesforce__task_task_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1655314319.743424, "compiled_sql": "\n \n \n\nwith dbt_test__target as (\n \n select task_id as unique_field\n from `dbt-package-testing`.`dbt_renee`.`stg_salesforce__task`\n where task_id is not null\n \n)\n\nselect\n unique_field,\n count(*) as n_records\n\nfrom dbt_test__target\ngroup by unique_field\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "task_id", "file_key_name": "models.stg_salesforce__task"}}, "sources": {"source.salesforce_source.salesforce.account": {"fqn": ["salesforce_source", "salesforce", "account"], "database": "fivetran", "schema": "salesforce", "unique_id": "source.salesforce_source.salesforce.account", "package_name": "salesforce_source", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/salesforce_source", "path": "models/src_salesforce.yml", "original_file_path": "models/src_salesforce.yml", "name": "account", "source_name": "salesforce", "source_description": "", "loader": "fivetran", "identifier": "account", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "Represents an individual account, which is an organization or person involved with your business (such as customers, competitors, and partners).", "columns": {"id": {"name": "id", "description": "The unique, system-generated ID assigned during creation", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time at which fivetran last synced this record", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_active": {"name": "_fivetran_active", "description": "True if record is active, used to filter out only active records if History Mode is enabled", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_number": {"name": "account_number", "description": "Account number assigned to this account (not the unique, system-generated ID assigned during creation).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_source": {"name": "account_source", "description": "The source of the account record. For example, Advertisement, Data.com, or Trade Show.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "annual_revenue": {"name": "annual_revenue", "description": "Estimated annual revenue of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billing_city": {"name": "billing_city", "description": "Details for the billing address of this account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billing_country": {"name": "billing_country", "description": "Details for the billing address of this account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billing_country_code": {"name": "billing_country_code", "description": "The ISO country code for the account\u2019s billing address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billing_geocode_accuracy": {"name": "billing_geocode_accuracy", "description": "Accuracy level of the geocode for the billing address. See Compound Field Considerations and Limitations for details on geolocation compound fields.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billing_latitude": {"name": "billing_latitude", "description": "Used with BillingLongitude to specify the precise geolocation of a billing address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billing_longitude": {"name": "billing_longitude", "description": "Used with BillingLatitude to specify the precise geolocation of a billing address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billing_postal_code": {"name": "billing_postal_code", "description": "Details for the billing address of this account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billing_state": {"name": "billing_state", "description": "Details for the billing address of this account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billing_state_code": {"name": "billing_state_code", "description": "The ISO state code for the account\u2019s billing address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billing_street": {"name": "billing_street", "description": "Street address for the billing address of this account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Text description of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fax": {"name": "fax", "description": "Fax number for the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "industry": {"name": "industry", "description": "An industry associated with this account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_deleted": {"name": "is_deleted", "description": "Indicates whether the object has been moved to the Recycle Bin (true) or not (false).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "jigsaw_company_id": {"name": "jigsaw_company_id", "description": "References the ID of a company in Data.com. If an account has a value in this field, it means that the account was imported from Data.com.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_activity_date": {"name": "last_activity_date", "description": "Value is one of the following, whichever is the most recent", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_referenced_date": {"name": "last_referenced_date", "description": "The timestamp when the current user last accessed this record, a record related to this record, or a list view.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_viewed_date": {"name": "last_viewed_date", "description": "The timestamp when the current user last viewed this record or list view. If this value is null, the user might have only accessed this record or list view (LastReferencedDate) but not viewed it.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "master_record_id": {"name": "master_record_id", "description": "If this object was deleted as the result of a merge, this field contains the ID of the record that was kept. If this object was deleted for any other reason, or has not been deleted, the value is null.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Required. Name of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "number_of_employees": {"name": "number_of_employees", "description": "Number of employees working at the company represented by this account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "owner_id": {"name": "owner_id", "description": "The ID of the user who currently owns this account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ownership": {"name": "ownership", "description": "Ownership type for the account, for example Private, Public, or Subsidiary.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_id": {"name": "parent_id", "description": "ID of the parent object, if any.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "phone": {"name": "phone", "description": "Phone number for this account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "photo_url": {"name": "photo_url", "description": "Path to be combined with the URL of a Salesforce instance (for example, https://yourInstance.salesforce.com/) to generate a URL to request the social network profile image associated with the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "rating": {"name": "rating", "description": "The account\u2019s prospect rating, for example Hot, Warm, or Cold.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "record_type_id": {"name": "record_type_id", "description": "ID of the record type assigned to this object.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "shipping_city": {"name": "shipping_city", "description": "Details of the shipping address for this account", "meta": {}, "data_type": null, "quote": null, "tags": []}, "shipping_country": {"name": "shipping_country", "description": "Details of the shipping address for this account. Country", "meta": {}, "data_type": null, "quote": null, "tags": []}, "shipping_country_code": {"name": "shipping_country_code", "description": "The ISO country code for the account\u2019s shipping address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "shipping_geocode_accuracy": {"name": "shipping_geocode_accuracy", "description": "Accuracy level of the geocode for the shipping address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "shipping_latitude": {"name": "shipping_latitude", "description": "Used with ShippingLongitude to specify the precise geolocation of a shipping address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "shipping_longitude": {"name": "shipping_longitude", "description": "Used with ShippingLatitude to specify the precise geolocation of an address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "shipping_postal_code": {"name": "shipping_postal_code", "description": "Details of the shipping address for this account. Postal code", "meta": {}, "data_type": null, "quote": null, "tags": []}, "shipping_state": {"name": "shipping_state", "description": "Details of the shipping address for this account. State", "meta": {}, "data_type": null, "quote": null, "tags": []}, "shipping_state_code": {"name": "shipping_state_code", "description": "The ISO state code for the account\u2019s shipping address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "shipping_street": {"name": "shipping_street", "description": "The street address of the shipping address for this account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sic": {"name": "sic", "description": "Standard Industrial Classification code of the company\u2019s main business categorization, for example, 57340 for Electronics.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sic_desc": {"name": "sic_desc", "description": "A brief description of an organization\u2019s line of business, based on its SIC code.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "site": {"name": "site", "description": "Name of the account\u2019s location, for example Headquarters or London.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ticker_symbol": {"name": "ticker_symbol", "description": "The stock market symbol for this account. This field is available on business accounts, not person accounts.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "type": {"name": "type", "description": "Type of account, for example, Customer, Competitor, or Partner.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "website": {"name": "website", "description": "The website of this account.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`fivetran`.`salesforce`.`account`", "created_at": 1655305162.150395}, "source.salesforce_source.salesforce.opportunity": {"fqn": ["salesforce_source", "salesforce", "opportunity"], "database": "fivetran", "schema": "salesforce", "unique_id": "source.salesforce_source.salesforce.opportunity", "package_name": "salesforce_source", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/salesforce_source", "path": "models/src_salesforce.yml", "original_file_path": "models/src_salesforce.yml", "name": "opportunity", "source_name": "salesforce", "source_description": "", "loader": "fivetran", "identifier": "opportunity", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "Represents an opportunity, which is a sale or pending deal.", "columns": {"id": {"name": "id", "description": "The unique, system-generated ID assigned during creation.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time at which fivetran last synced this record", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_active": {"name": "_fivetran_active", "description": "True if record is active, used to filter out only active records if History Mode is enabled", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "ID of the account associated with this opportunity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Estimated total sale amount. For opportunities with products, the amount is the sum of the related products.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_id": {"name": "campaign_id", "description": "ID of a related Campaign. This field is defined only for those organizations that have the campaign feature Campaigns enabled.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "close_date": {"name": "close_date", "description": "Required. Date when the opportunity is expected to close.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_date": {"name": "created_date", "description": "Date when the opportunity is was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Text description of the opportunity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "expected_revenue": {"name": "expected_revenue", "description": "Read-only field that is equal to the product of the opportunity Amount field and the Probability.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fiscal": {"name": "fiscal", "description": "If fiscal years are not enabled, the name of the fiscal quarter or period in which the opportunity CloseDate falls.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fiscal_quarter": {"name": "fiscal_quarter", "description": "Represents the fiscal quarter. Valid values are 1, 2, 3, or 4.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fiscal_year": {"name": "fiscal_year", "description": "Represents the fiscal year, for example, 2006.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "forecast_category": {"name": "forecast_category", "description": "Restricted picklist field.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "forecast_category_name": {"name": "forecast_category_name", "description": "The name of the forecast category.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "has_open_activity": {"name": "has_open_activity", "description": "Indicates whether an opportunity has an open event or task (true) or not (false).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "has_opportunity_line_item": {"name": "has_opportunity_line_item", "description": "Read-only field that indicates whether the opportunity has associated line items. A value of true means that Opportunity line items have been created for the opportunity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "has_overdue_task": {"name": "has_overdue_task", "description": "Indicates whether an opportunity has an overdue task (true) or not (false).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_closed": {"name": "is_closed", "description": "True, if Stage Name Label is Closed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_deleted": {"name": "is_deleted", "description": "Indicates whether the object has been moved to the Recycle Bin (true) or not (false).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_excluded_from_territory_2_filter": {"name": "is_excluded_from_territory_2_filter", "description": "Used for Filter-Based Opportunity Territory Assignment. Indicates whether the opportunity is excluded (True) or included (False) each time the APEX filter is executed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_won": {"name": "is_won", "description": "True, if Stage Name Label is Won.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_activity_date": {"name": "last_activity_date", "description": "Value is one of the following, whichever is the most recent:Due date of the most recent event logged against the record or Due date of the most recently closed task associated with the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_referenced_date": {"name": "last_referenced_date", "description": "The timestamp when the current user last accessed this record, a record related to this record, or a list view.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_viewed_date": {"name": "last_viewed_date", "description": "The timestamp when the current user last viewed this record or list view. If this value is null, the user might have only accessed this record or list view (LastReferencedDate) but not viewed it.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "lead_source": {"name": "lead_source", "description": "Source of this opportunity, such as Advertisement or Trade Show.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Required. A name for this opportunity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "next_step": {"name": "next_step", "description": "Description of next task in closing opportunity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "owner_id": {"name": "owner_id", "description": "ID of the User who has been assigned to work this opportunity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "Pricebook2Id": {"name": "Pricebook2Id", "description": "ID of a related Pricebook2 object. The Pricebook2Id field indicates which Pricebook2 applies to this opportunity. The Pricebook2Id field is defined only for those organizations that have products enabled as a feature. You can specify values for only one field (Pricebook2Id or PricebookId)\u2014not both fields. For this reason, both fields are declared nillable.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "pricebook_2_id": {"name": "pricebook_2_id", "description": "Unavailable as of version 3.0. As of version 8.0, the Pricebook object is no longer available. Use the Pricebook2Id field instead, specifying the ID of the Pricebook2 record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "probability": {"name": "probability", "description": "Percentage of estimated confidence in closing the opportunity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "record_type_id": {"name": "record_type_id", "description": "ID of the record type assigned to this object.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "stage_name": {"name": "stage_name", "description": "Required. Current stage of this record. The StageName field controls several other fields on an opportunity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "synced_quote_id": {"name": "synced_quote_id", "description": "The ID of the Quote that syncs with the opportunity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "territory_2_id": {"name": "territory_2_id", "description": "The ID of the territory that is assigned to the opportunity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "type": {"name": "type", "description": "Type of opportunity. For example, Existing Business or New Business.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`fivetran`.`salesforce`.`opportunity`", "created_at": 1655305162.150623}, "source.salesforce_source.salesforce.user": {"fqn": ["salesforce_source", "salesforce", "user"], "database": "fivetran", "schema": "salesforce", "unique_id": "source.salesforce_source.salesforce.user", "package_name": "salesforce_source", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/salesforce_source", "path": "models/src_salesforce.yml", "original_file_path": "models/src_salesforce.yml", "name": "user", "source_name": "salesforce", "source_description": "", "loader": "fivetran", "identifier": "user", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": null, "external": null, "description": "Represents a user in your organization.", "columns": {"id": {"name": "id", "description": "The unique, system-generated ID assigned during creation.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time at which fivetran last synced this record", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_active": {"name": "_fivetran_active", "description": "True if record is active, used to filter out only active records if History Mode is enabled", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "True, if this field has been deleted", "meta": {}, "data_type": null, "quote": null, "tags": []}, "about_me": {"name": "about_me", "description": "Information about the user, such as areas of interest or skills.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "ID of the Account associated with a Customer Portal user. This field is null for Salesforce users.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "alias": {"name": "alias", "description": "Required. The user\u2019s alias. For example, jsmith.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "badge_text": {"name": "badge_text", "description": "The community role, displayed on the user profile page just below the user name.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "banner_photo_url": {"name": "banner_photo_url", "description": "The URL for the user's banner photo.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "call_center_id": {"name": "call_center_id", "description": "If Salesforce CRM Call Center is enabled, represents the call center to which this user is assigned.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "city": {"name": "city", "description": "The city associated with the user. Up to 40 characters allowed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "community_nickname": {"name": "community_nickname", "description": "Name used to identify this user in the Community application, which includes the ideas and answers features.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "company_name": {"name": "company_name", "description": "The name of the user\u2019s company.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "contact_id": {"name": "contact_id", "description": "ID of the Contact associated with this account. The contact must have a value in the AccountId field or an error occurs.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "country": {"name": "country", "description": "The country associated with the user.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "country_code": {"name": "country_code", "description": "The ISO country code associated with the user.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "default_group_notification_frequency": {"name": "default_group_notification_frequency", "description": "The default frequency for sending the user's Chatter group email notifications when the user joins groups.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "delegated_approver_id": {"name": "delegated_approver_id", "description": "Id of the user who is a delegated approver for this user.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department": {"name": "department", "description": "The company department associated with the user.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "digest_frequency": {"name": "digest_frequency", "description": "The frequency at which the system sends the user\u2019s Chatter personal email digest.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "division": {"name": "division", "description": "The division associated with this user, similar to Department and unrelated to DefaultDivision.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "email": {"name": "email", "description": "Required. The user\u2019s email address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "email_encoding_key": {"name": "email_encoding_key", "description": "Required. The email encoding for the user, such as ISO-8859-1 or UTF-8.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "email_preferences_auto_bcc": {"name": "email_preferences_auto_bcc", "description": "Determines whether the user receives copies of sent emails. This option applies only if compliance BCC emails are not enabled.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "employee_number": {"name": "employee_number", "description": "The user\u2019s employee number.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "extension": {"name": "extension", "description": "The user\u2019s phone extension number.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fax": {"name": "fax", "description": "The user\u2019s fax number.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "federation_identifier": {"name": "federation_identifier", "description": "Indicates the value that must be listed in the Subject element of a Security Assertion Markup Language (SAML) IDP certificate to authenticate the user for a client application using single sign-on.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "first_name": {"name": "first_name", "description": "The user\u2019s first name.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "forecast_enabled": {"name": "forecast_enabled", "description": "Indicates whether the user is enabled as a forecast manager (true) or not (false).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "full_photo_url": {"name": "full_photo_url", "description": "The URL for the user's profile photo.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "geocode_accuracy": {"name": "geocode_accuracy", "description": "The level of accuracy of a location\u2019s geographical coordinates compared with its physical address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "individual_id": {"name": "individual_id", "description": "ID of the data privacy record associated with this user. This field is available if Data Protection and Privacy is enabled.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_active": {"name": "is_active", "description": "Indicates whether the user has access to log in (true) or not (false).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_profile_photo_active": {"name": "is_profile_photo_active", "description": "Indicates whether a user has a profile photo (true) or not (false).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "language_locale_key": {"name": "language_locale_key", "description": "Required. The user\u2019s language, such as \u201cFrench\u201d or \u201cChinese (Traditional).\u201d", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_login_date": {"name": "last_login_date", "description": "The date and time when the user last successfully logged in. This value is updated if 60 seconds have elapsed since the user\u2019s last login.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_name": {"name": "last_name", "description": "Required. The user\u2019s last name.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_referenced_date": {"name": "last_referenced_date", "description": "The timestamp for when the current user last viewed a record related to this record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_viewed_date": {"name": "last_viewed_date", "description": "The timestamp for when the current user last viewed this record. If this value is null, this record might only have been referenced (LastReferencedDate) and not viewed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "latitude": {"name": "latitude", "description": "Used with Longitude to specify the precise geolocation of an address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "locale_sid_key": {"name": "locale_sid_key", "description": "Required. This field is a restricted picklist field. The value of the field affects formatting and parsing of values, especially numeric values, in the user interface.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "longitude": {"name": "longitude", "description": "Used with Latitude to specify the precise geolocation of an address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "manager_id": {"name": "manager_id", "description": "The Id of the user who manages this user.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "medium_banner_photo_url": {"name": "medium_banner_photo_url", "description": "The URL for the medium-sized user profile banner photo.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "mobile_phone": {"name": "mobile_phone", "description": "The user\u2019s mobile or cellular phone number.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Concatenation of FirstName and LastName.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "offline_trial_expiration_date": {"name": "offline_trial_expiration_date", "description": "The date and time when the user\u2019s Connect Offline trial expires.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "phone": {"name": "phone", "description": "The user\u2019s phone number.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "postal_code": {"name": "postal_code", "description": "The user\u2019s postal or ZIP code.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "profile_id": {"name": "profile_id", "description": "Required. ID of the user\u2019s Profile. Use this value to cache metadata based on profile. In earlier releases, this was RoleId.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "receives_admin_info_emails": {"name": "receives_admin_info_emails", "description": "Indicates whether the user receives email for administrators from Salesforce (true) or not (false).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "receives_info_emails": {"name": "receives_info_emails", "description": "Indicates whether the user receives informational email from Salesforce (true) or not (false).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sender_email": {"name": "sender_email", "description": "The email address used as the From address when the user sends emails. This address is the same value shown in Setup on the My Email Settings page.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sender_name": {"name": "sender_name", "description": "The name used as the email sender when the user sends emails. This name is the same value shown in Setup on the My Email Settings page.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "signature": {"name": "signature", "description": "The signature text added to emails.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "small_banner_photo_url": {"name": "small_banner_photo_url", "description": "The URL for the small user profile banner photo.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "small_photo_url": {"name": "small_photo_url", "description": "The URL for a thumbnail of the user's profile photo.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "state": {"name": "state", "description": "The state associated with the User.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "state_code": {"name": "state_code", "description": "The ISO state code associated with the user.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "street": {"name": "street", "description": "The street address associated with the User.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "time_zone_sid_key": {"name": "time_zone_sid_key", "description": "Required. This field is a restricted picklist field. A User time zone affects the offset used when displaying or entering times in the user interface.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "title": {"name": "title", "description": "The user\u2019s business title, such as \u201cVice President.\u201d", "meta": {}, "data_type": null, "quote": null, "tags": []}, "username": {"name": "username", "description": "Contains the name that a user enters to log in. The value for this field must be in the form of an email address, using all lowercase characters. It must also be unique across all organizations.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "user_role_id": {"name": "user_role_id", "description": "ID of the user\u2019s UserRole.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "user_type": {"name": "user_type", "description": "The category of user license.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`fivetran`.`salesforce`.`user`", "created_at": 1655305162.15086}, "source.salesforce_source.salesforce.user_role": {"fqn": ["salesforce_source", "salesforce", "user_role"], "database": "fivetran", "schema": "salesforce", "unique_id": "source.salesforce_source.salesforce.user_role", "package_name": "salesforce_source", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/salesforce_source", "path": "models/src_salesforce.yml", "original_file_path": "models/src_salesforce.yml", "name": "user_role", "source_name": "salesforce", "source_description": "", "loader": "fivetran", "identifier": "user_role", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": null, "external": null, "description": "Represents a user role in your organization.", "columns": {"id": {"name": "id", "description": "The unique, system-generated ID assigned during creation", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time at which fivetran last synced this record", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "True, if this field has been deleted", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_active": {"name": "_fivetran_active", "description": "True if record is active, used to filter out only active records if History Mode is enabled", "meta": {}, "data_type": null, "quote": null, "tags": []}, "case_access_for_account_owner": {"name": "case_access_for_account_owner", "description": "The case access level for the account owner.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "contact_access_for_account_owner": {"name": "contact_access_for_account_owner", "description": "The contact access level for the account owner.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "developer_name": {"name": "developer_name", "description": "The unique name of the object in the API.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "forecast_user_id": {"name": "forecast_user_id", "description": "The ID of the forecast manager associated with this role.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "may_forecast_manager_share": {"name": "may_forecast_manager_share", "description": "Indicates whether the forecast manager can manually share their own forecast.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Required. Name of the role. Corresponds to Label on the user interface.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "opportunity_access_for_account_owner": {"name": "opportunity_access_for_account_owner", "description": "Required. The opportunity access level for the account owner.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_role_id": {"name": "parent_role_id", "description": "The ID of the parent role.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "portal_type": {"name": "portal_type", "description": "This value indicates the type of portal for the role", "meta": {}, "data_type": null, "quote": null, "tags": []}, "rollup_description": {"name": "rollup_description", "description": "Description of the forecast rollup.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`fivetran`.`salesforce`.`user_role`", "created_at": 1655305162.151008}, "source.salesforce_source.salesforce.contact": {"fqn": ["salesforce_source", "salesforce", "contact"], "database": "fivetran", "schema": "salesforce", "unique_id": "source.salesforce_source.salesforce.contact", "package_name": "salesforce_source", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/salesforce_source", "path": "models/src_salesforce.yml", "original_file_path": "models/src_salesforce.yml", "name": "contact", "source_name": "salesforce", "source_description": "", "loader": "fivetran", "identifier": "contact", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": null, "external": null, "description": "Represents a contact, which is a person associated with an account.", "columns": {"id": {"name": "id", "description": "The unique, system-generated ID assigned during creation.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time at which fivetran last synced this record", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_active": {"name": "_fivetran_active", "description": "True if record is active, used to filter out only active records if History Mode is enabled", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "ID of the account that\u2019s the parent of this contact.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "assistant_name": {"name": "assistant_name", "description": "The assistant\u2019s name.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "assistant_phone": {"name": "assistant_phone", "description": "The assistant\u2019s telephone number.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "birthdate": {"name": "birthdate", "description": "The contact\u2019s birthdate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department": {"name": "department", "description": "The contact\u2019s department.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "A description of the contact. Label is Contact Description up to 32 KB.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "do_not_call": {"name": "do_not_call", "description": "Indicates that the contact does not want to receive calls.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "email": {"name": "email", "description": "The contact\u2019s email address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "email_bounced_date": {"name": "email_bounced_date", "description": "If bounce management is activated and an email sent to the contact bounces, the date and time of the bounce.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "email_bounced_reason": {"name": "email_bounced_reason", "description": "If bounce management is activated and an email sent to the contact bounces, the reason for the bounce.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fax": {"name": "fax", "description": "The contact\u2019s fax number. Label is Business Fax.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "first_name": {"name": "first_name", "description": "The contact\u2019s first name up to 40 characters.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "has_opted_out_of_email": {"name": "has_opted_out_of_email", "description": "indicates whether the contact doesn\u2019t want to receive email from Salesforce (true) or does (false). Label is Email Opt Out", "meta": {}, "data_type": null, "quote": null, "tags": []}, "has_opted_out_of_fax": {"name": "has_opted_out_of_fax", "description": "Indicates whether the contact prohibits receiving faxes.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "home_phone": {"name": "home_phone", "description": "The contact\u2019s home telephone number.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "individual_id": {"name": "individual_id", "description": "ID of the data privacy record associated with this contact. This field is available if Data Protection and Privacy is enabled. This is a relationship field.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_deleted": {"name": "is_deleted", "description": "Indicates whether the object has been moved to the Recycle Bin (true) or not (false). Label is Deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_email_bounced": {"name": "is_email_bounced", "description": "If bounce management is activated and an email is sent to a contact, indicates whether the email bounced (true) or not (false).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "jigsaw": {"name": "jigsaw", "description": "Data.com Key", "meta": {}, "data_type": null, "quote": null, "tags": []}, "jigsaw_contact_id": {"name": "jigsaw_contact_id", "description": "Jigsaw contact OD", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_activity_date": {"name": "last_activity_date", "description": "Value is the most recent of either: Due date of the most recent event logged against the record. Due date of the most recently closed task associated with the record.\n", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_curequest_date": {"name": "last_curequest_date", "description": "Last Stay-in-Touch Request Date", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_cuupdate_date": {"name": "last_cuupdate_date", "description": "Last Stay-in-Touch Save Date", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_modified_by_id": {"name": "last_modified_by_id", "description": "Last Modified By ID", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_modified_date": {"name": "last_modified_date", "description": "Last Modified Date", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_name": {"name": "last_name", "description": "Required. Last name of the contact up to 80 characters.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_referenced_date": {"name": "last_referenced_date", "description": "The timestamp when the current user last accessed this record, a record related to this record, or a list view.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_viewed_date": {"name": "last_viewed_date", "description": "The timestamp when the current user last viewed this record or list view. If this value is null, the user might have only accessed this record or list view (LastReferencedDate) but not viewed it.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "lead_source": {"name": "lead_source", "description": "The lead\u2019s source.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "mailing_city": {"name": "mailing_city", "description": "Mailing address details.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "mailing_country": {"name": "mailing_country", "description": "Mailing address details.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "mailing_country_code": {"name": "mailing_country_code", "description": "The ISO codes for the mailing address\u2019s state and country.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "mailing_geocode_accuracy": {"name": "mailing_geocode_accuracy", "description": "Accuracy level of the geocode for the mailing address. For details on geolocation compound field", "meta": {}, "data_type": null, "quote": null, "tags": []}, "mailing_latitude": {"name": "mailing_latitude", "description": "Used with MailingLongitude to specify the precise geolocation of a mailing address. Acceptable values are numbers between \u201390 and 90 up to 15 decimal places. For details on geolocation compound fields", "meta": {}, "data_type": null, "quote": null, "tags": []}, "mailing_longitude": {"name": "mailing_longitude", "description": "Used with MailingLatitude to specify the precise geolocation of a mailing address. Acceptable values are numbers between \u2013180 and 180 up to 15 decimal places. For details on geolocation compound fields", "meta": {}, "data_type": null, "quote": null, "tags": []}, "mailing_postal_code": {"name": "mailing_postal_code", "description": "Mailing address details.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "mailing_state": {"name": "mailing_state", "description": "Mailing address details.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "mailing_state_code": {"name": "mailing_state_code", "description": "The ISO codes for the mailing address\u2019s state and country.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "mailing_street": {"name": "mailing_street", "description": "Street address for mailing address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "master_record_id": {"name": "master_record_id", "description": "If this record was deleted as the result of a merge, this field contains the ID of the record that remains. If this record was deleted for any other reason, or has not been deleted, the value is null. This is a relationship field.\n", "meta": {}, "data_type": null, "quote": null, "tags": []}, "mobile_phone": {"name": "mobile_phone", "description": "Contact\u2019s mobile phone number.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Concatenation of FirstName, MiddleName, LastName, and Suffix up to 203 characters, including whitespaces.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "other_city": {"name": "other_city", "description": "Alternate address details.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "other_country": {"name": "other_country", "description": "Alternate address details.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "other_geocode_accuracy": {"name": "other_geocode_accuracy", "description": "Accuracy level of the geocode for the other address. For details on geolocation compound fields", "meta": {}, "data_type": null, "quote": null, "tags": []}, "other_latitude": {"name": "other_latitude", "description": "Used with OtherLongitude to specify the precise geolocation of an alternate address. Acceptable values are numbers between \u201390 and 90 up to 15 decimal places. For details on geolocation compound fields", "meta": {}, "data_type": null, "quote": null, "tags": []}, "other_longitude": {"name": "other_longitude", "description": "Used with OtherLatitude to specify the precise geolocation of an alternate address. Acceptable values are numbers between \u2013180 and 180 up to 15 decimal places. For details on geolocation compound fields", "meta": {}, "data_type": null, "quote": null, "tags": []}, "other_phone": {"name": "other_phone", "description": "Telephone for alternate address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "other_postal_code": {"name": "other_postal_code", "description": "Alternate address details.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "other_state": {"name": "other_state", "description": "Alternate address details.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "other_street": {"name": "other_street", "description": "Street for alternate address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "owner_id": {"name": "owner_id", "description": "The ID of the owner of the account associated with this contact. This is a relationship field.\n", "meta": {}, "data_type": null, "quote": null, "tags": []}, "phone": {"name": "phone", "description": "Telephone number for the contact. Label is Business Phone.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "photo_url": {"name": "photo_url", "description": "'Path to be combined with the URL of a Salesforce instance (Example: https://yourInstance.salesforce.com/) to generate a URL to request the social network profile image associated with the contact. Generated URL returns an HTTP redirect (code 302) to the social network profile image for the contact. Empty if Social Accounts and Contacts isn't enabled or if Social Accounts and Contacts is disabled for the requesting user.'\n", "meta": {}, "data_type": null, "quote": null, "tags": []}, "reports_to_id": {"name": "reports_to_id", "description": "This field doesn\u2019t appear if IsPersonAccount is true. This is a relationship field.\n", "meta": {}, "data_type": null, "quote": null, "tags": []}, "salutation": {"name": "salutation", "description": "Honorific abbreviation, word, or phrase to be used in front of name in greetings, such as Dr. or Mrs.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "system_modstamp": {"name": "system_modstamp", "description": "System Modstamp", "meta": {}, "data_type": null, "quote": null, "tags": []}, "title": {"name": "title", "description": "Title", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`fivetran`.`salesforce`.`contact`", "created_at": 1655305162.151227}, "source.salesforce_source.salesforce.event": {"fqn": ["salesforce_source", "salesforce", "event"], "database": "fivetran", "schema": "salesforce", "unique_id": "source.salesforce_source.salesforce.event", "package_name": "salesforce_source", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/salesforce_source", "path": "models/src_salesforce.yml", "original_file_path": "models/src_salesforce.yml", "name": "event", "source_name": "salesforce", "source_description": "", "loader": "fivetran", "identifier": "event", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": null, "external": null, "description": "Represents an event in the calendar. In the user interface, event and task records are collectively referred to as activities.", "columns": {"id": {"name": "id", "description": "Activity ID", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time at which fivetran last synced this record", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_active": {"name": "_fivetran_active", "description": "True if record is active, used to filter out only active records if History Mode is enabled", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Represents the ID of the related account. The AccountId is determined as follows. If the value of WhatId is any of the following objects, then Salesforce uses that object\u2019s AccountId.\nAccount Opportunity Contract Custom object that is a child of Account If the value of the WhatId field is any other object, and the value of the WhoId field is a contact object, then Salesforce uses that contact\u2019s AccountId. (If your org uses Shared Activities, Salesforce uses the AccountId of the primary contact.)\nOtherwise, Salesforce sets the value of the AccountId field to null.\nFor information on IDs, see ID Field Type.\nThis is a relationship field.\n", "meta": {}, "data_type": null, "quote": null, "tags": []}, "activity_date": {"name": "activity_date", "description": "Contains the event\u2019s due date if the IsAllDayEvent flag is set to true. This field is a date field with a timestamp that is always set to midnight in the Coordinated Universal Time (UTC) time zone. Don\u2019t attempt to alter the timestamp to account for time zone differences. Label is Due Date Only. This field is required in versions 12.0 and earlier if the IsAllDayEvent flag is set to true.\nThe value for this field and StartDateTime must match, or one of them must be null.\n", "meta": {}, "data_type": null, "quote": null, "tags": []}, "activity_date_time": {"name": "activity_date_time", "description": "Contains the event\u2019s due date if the IsAllDayEvent flag is set to false. The time portion of this field is always transferred in the Coordinated Universal Time (UTC) time zone. Translate the time portion to or from a local time zone for the user or the application, as appropriate. Label is Due Date Time. This field is required in versions 12.0 and earlier if the IsAllDayEvent flag is set to false.\nThe value for this field and StartDateTime must match, or one of them must be null.\n", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_by_id": {"name": "created_by_id", "description": "Created By ID", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_date": {"name": "created_date", "description": "Created Date", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Contains a text description of the event.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "duration_in_minutes": {"name": "duration_in_minutes", "description": "Contains the event length, in minutes\n", "meta": {}, "data_type": null, "quote": null, "tags": []}, "end_date": {"name": "end_date", "description": "Read-only. Available in versions 46.0 and later. This field supplies the date value that appears in the EndDateTime field. This field is a date field with a timestamp that is always set to midnight in the Coordinated Universal Time (UTC) time zone.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "end_date_time": {"name": "end_date_time", "description": "Available in versions 13.0 and later. The time portion of this field is always transferred in the Coordinated Universal Time (UTC) time zone. Translate the time portion to or from a local time zone for the user or the application, as appropriate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "event_subtype": {"name": "event_subtype", "description": "Provides standard subtypes to facilitate creating and searching for events. This field isn\u2019t updateable.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "group_event_type": {"name": "group_event_type", "description": "Group Event Type", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_archived": {"name": "is_archived", "description": "Indicates whether the event has been archived.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_child": {"name": "is_child", "description": "Indicates whether the event is a child of another event (true) or not (false). For a child event, you can update IsReminderSet and ReminderDateTime only. You can query and delete a child event. If the objects related to the child event are different from those objects related to the parent event (this difference is possible if you use API version 25.0 or earlier) and one of the objects related to the child event is deleted, the objects related to the parent event are updated to ensure data integrity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_deleted": {"name": "is_deleted", "description": "Deleted", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_group_event": {"name": "is_group_event", "description": "Indicates whether the event is a group event\u2014that is, whether it has invitees (true) or not (false).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_private": {"name": "is_private", "description": "Indicates whether users other than the creator of the event can (false) or can\u2019t (true) see the event details when viewing the event user\u2019s calendar. However, users with the View All Data or Modify All Data permission can see private events in reports and searches, or when viewing other users\u2019 calendars. Private events can\u2019t be associated with opportunities, accounts, cases, campaigns, contracts, leads, or contacts. Label is Private.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_recurrence": {"name": "is_recurrence", "description": "Indicates whether a Salesforce Classic event is scheduled to repeat itself (true) or only occurs one time (false). This field is read-only when updating records, but not when creating them. If this field value is true, then RecurrenceEndDateOnly, RecurrenceStartDateTime, RecurrenceType, and any recurrence fields associated with the given recurrence type must be populated. Label is Create recurring series of events.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_recurrence_2": {"name": "is_recurrence_2", "description": "Read-only. This field available in API version 44.0 and later. Indicates whether a Lightning Experience event is scheduled to repeat (true) or only occurs one time (false). If this field value is true, then Recurrence2PatternText and Recurrence2PatternVersion must be populated. Label is Repeat.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_recurrence_2_exception": {"name": "is_recurrence_2_exception", "description": "Read-only. This field available in API version 44.0 and later. Indicates whether an individual event in a Lightning Experience event series has a recurrence pattern that\u2019s different from the rest of the series, making it an exception.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_recurrence_2_exclusion": {"name": "is_recurrence_2_exclusion", "description": "Read-only. This field available in API version 44.0 and later. Indicates when updates to a Lightning Experience event series recurrence pattern have been made, but affect future event occurrences only. For past event occurrences, IsRecurrence2Exclusion is set to true, excluding past occurrences from the series recurrence pattern.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_reminder_set": {"name": "is_reminder_set", "description": "Indicates whether the activity is a reminder (true) or not (false).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_modified_by_id": {"name": "last_modified_by_id", "description": "Last Modified By ID", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_modified_date": {"name": "last_modified_date", "description": "Last Modified Date", "meta": {}, "data_type": null, "quote": null, "tags": []}, "location": {"name": "location", "description": "Contains the location of the event.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "owner_id": {"name": "owner_id", "description": "Contains the ID of the user or public calendar who owns the event. Label is Assigned to ID. This is a polymorphic relationship field.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "recurrence_2_pattern_start_date": {"name": "recurrence_2_pattern_start_date", "description": "Read-only. This field available in API version 44.0 and later. Indicates the date and time when the Lightning Experience event series begins. The time portion of this field is always transferred in the Coordinated Universal Time (UTC) time zone. Translate the time portion to or from a local time zone for the user or the application, as appropriate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "recurrence_2_pattern_text": {"name": "recurrence_2_pattern_text", "description": "The RRULE that describes the recurrence pattern for Lightning Experience event series. Supports a subset of the RFC 5545 standard for internet calendaring and scheduling. See the Event Series section in this topic for usage examples. This field has a maximum length of 512 characters. This field is available in API version 44.0 and later, and has the Create property in API version 52.0 and later.\n", "meta": {}, "data_type": null, "quote": null, "tags": []}, "recurrence_2_pattern_time_zone": {"name": "recurrence_2_pattern_time_zone", "description": "This field available in API version 44.0 and later. Indicates the time zone in which the Lightning Experience event series was created or updated. This field uses standard Java TimeZone IDs. For example, America/Los_Angeles.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "recurrence_2_pattern_version": {"name": "recurrence_2_pattern_version", "description": "Read-only. This field available in API version 44.0 and later. Indicates the standard specifications for Lightning Experience event series recurrence patterns. The only possible value is 1 (RFC 5545 v4 RRULE)\u2014RFC 5545 is a standard set of specifications for internet calendaring and scheduling that IsRecurrence2 adheres to for series recurrence patterns. RFC 5545 specifications for series recurrence patterns are called RRULES. For examples of rrule usage, see the Event Series section in this topic.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "recurrence_activity_id": {"name": "recurrence_activity_id", "description": "Read-only. Not required on create. Contains the ID of the main record of the Salesforce Classic recurring event. Subsequent occurrences have the same value in this field.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "recurrence_day_of_month": {"name": "recurrence_day_of_month", "description": "Indicates the day of the month on which the event repeats.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "recurrence_day_of_week_mask": {"name": "recurrence_day_of_week_mask", "description": "Indicates the day or days of the week on which the Salesforce Classic recurring event repeats. This field contains a bitmask. The values are as follows: Sunday = 1 Monday = 2 Tuesday = 4 Wednesday = 8 Thursday = 16 Friday = 32 Saturday = 64 Multiple days are represented as the sum of their numerical values. For example, Tuesday and Thursday = 4 + 16 = 20.\n", "meta": {}, "data_type": null, "quote": null, "tags": []}, "recurrence_end_date_only": {"name": "recurrence_end_date_only", "description": "Indicates the last date on which the event repeats. For multiday Salesforce Classic recurring events, this date is the day on which the last occurrence starts. This field is a date field with a timestamp that is always set to midnight in the Coordinated Universal Time (UTC) time zone. Don\u2019t attempt to alter the timestamp to account for time zone differences.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "recurrence_instance": {"name": "recurrence_instance", "description": "Indicates the frequency of the Salesforce Classic event\u2019s recurrence. For example, 2nd or 3rd.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "recurrence_interval": {"name": "recurrence_interval", "description": "Indicates the interval between Salesforce Classic recurring events.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "recurrence_month_of_year": {"name": "recurrence_month_of_year", "description": "Indicates the month in which the Salesforce Classic recurring event repeats.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "recurrence_start_date_time": {"name": "recurrence_start_date_time", "description": "Indicates the date and time when the Salesforce Classic recurring event begins. The value must precede the RecurrenceEndDateOnly. The time portion of this field is always transferred in the Coordinated Universal Time (UTC) time zone. Translate the time portion to or from a local time zone for the user or the application, as appropriate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "recurrence_time_zone_sid_key": {"name": "recurrence_time_zone_sid_key", "description": "Indicates the time zone associated with a Salesforce Classic recurring event. For example, \u201cUTC-8:00\u201d for Pacific Standard Time.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "recurrence_type": {"name": "recurrence_type", "description": "Indicates how often the Salesforce Classic event repeats. For example, daily, weekly, or every nth month (where \u201cnth\u201d is defined in RecurrenceInstance).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "reminder_date_time": {"name": "reminder_date_time", "description": "Represents the time when the reminder is scheduled to fire, if IsReminderSet is set to true. If IsReminderSet is set to false, then the user may have deselected the reminder checkbox in the Salesforce user interface, or the reminder has already fired at the time indicated by the value.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "show_as": {"name": "show_as", "description": "Indicates how this event appears when another user views the calendar: Busy, Out of Office, or Free. Label is Show Time As.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "start_date_time": {"name": "start_date_time", "description": "Indicates the start date and time of the event. Available in versions 13.0 and later.\nIf this field has a value, then ActivityDate and ActivityDateTime must either be null or match the value of this field.\n", "meta": {}, "data_type": null, "quote": null, "tags": []}, "subject": {"name": "subject", "description": "The subject line of the event, such as Call, Email, or Meeting.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "system_modstamp": {"name": "system_modstamp", "description": "System Modstamp", "meta": {}, "data_type": null, "quote": null, "tags": []}, "type": {"name": "type", "description": "Indicates the event type, such as Call, Email, or Meeting.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "what_count": {"name": "what_count", "description": "Available if your organization has enabled Shared Activities. Represents the count of related EventRelations pertaining to the WhatId. The count of the WhatId must be 1 or less.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "what_id": {"name": "what_id", "description": "The WhatId represents nonhuman objects such as accounts, opportunities, campaigns, cases, or custom objects. WhatIds are polymorphic. Polymorphic means a WhatId is equivalent to the ID of a related object. The label is Related To ID. This is a polymorphic relationship field.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "who_count": {"name": "who_count", "description": "Available to organizations that have Shared Activities enabled. Represents the count of related EventRelations pertaining to the WhoId.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "who_id": {"name": "who_id", "description": "The WhoId represents a human such as a lead or a contact. WhoIds are polymorphic. Polymorphic means a WhoId is equivalent to a contact\u2019s ID or a lead\u2019s ID. The label is Name ID.\n", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`fivetran`.`salesforce`.`event`", "created_at": 1655305162.151529}, "source.salesforce_source.salesforce.lead": {"fqn": ["salesforce_source", "salesforce", "lead"], "database": "fivetran", "schema": "salesforce", "unique_id": "source.salesforce_source.salesforce.lead", "package_name": "salesforce_source", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/salesforce_source", "path": "models/src_salesforce.yml", "original_file_path": "models/src_salesforce.yml", "name": "lead", "source_name": "salesforce", "source_description": "", "loader": "fivetran", "identifier": "lead", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": null, "external": null, "description": "Represents a prospect or lead.", "columns": {"id": {"name": "id", "description": "The unique, system-generated ID assigned during creation.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time at which fivetran last synced this record", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_active": {"name": "_fivetran_active", "description": "True if record is active, used to filter out only active records if History Mode is enabled", "meta": {}, "data_type": null, "quote": null, "tags": []}, "annual_revenue": {"name": "annual_revenue", "description": "Annual revenue for the lead\u2019s company.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "city": {"name": "city", "description": "City for the lead\u2019s address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "company": {"name": "company", "description": "Required. The lead\u2019s company.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "converted_account_id": {"name": "converted_account_id", "description": "Object reference ID that points to the account into which the lead converted. This is a relationship field.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "converted_contact_id": {"name": "converted_contact_id", "description": "Object reference ID that points to the contact into which the lead converted. This is a relationship field.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "converted_date": {"name": "converted_date", "description": "Date on which this lead was converted.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "converted_opportunity_id": {"name": "converted_opportunity_id", "description": "Object reference ID that points to the opportunity into which the lead has been converted. This is a relationship field.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "country": {"name": "country", "description": "The lead\u2019s country.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "country_code": {"name": "country_code", "description": "The ISO country code for the lead\u2019s address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_by_id": {"name": "created_by_id", "description": "Created By ID", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_date": {"name": "created_date", "description": "Created Date", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "The lead\u2019s description.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "email": {"name": "email", "description": "The lead\u2019s email address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "email_bounced_date": {"name": "email_bounced_date", "description": "If bounce management is activated and an email sent to the lead bounced, the date and time of the bounce.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "email_bounced_reason": {"name": "email_bounced_reason", "description": "If bounce management is activated and an email sent to the lead bounced, the reason for the bounce.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fax": {"name": "fax", "description": "The lead\u2019s fax number.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "first_name": {"name": "first_name", "description": "The lead\u2019s first name up to 40 characters.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "geocode_accuracy": {"name": "geocode_accuracy", "description": "Accuracy level of the geocode for the address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "has_opted_out_of_email": {"name": "has_opted_out_of_email", "description": "Indicates whether the lead doesn\u2019t want to receive email from Salesforce (true) or does (false). Label is Email Opt Out.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "individual_id": {"name": "individual_id", "description": "ID of the data privacy record associated with this lead. This field is available if you enabled Data Protection and Privacy in Setup.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "industry": {"name": "industry", "description": "Industry in which the lead works.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_converted": {"name": "is_converted", "description": "Indicates whether the lead has been converted (true) or not (false). Label is Converted.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_deleted": {"name": "is_deleted", "description": "Indicates whether the object has been moved to the Recycle Bin (true) or not (false). Label is Deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_unread_by_owner": {"name": "is_unread_by_owner", "description": "If true, lead has been assigned, but not yet viewed. See Unread Leads for more information. Label is Unread By Owner.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "jigsaw_contact_id": {"name": "jigsaw_contact_id", "description": "Jigsaw Contact ID", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_activity_date": {"name": "last_activity_date", "description": "'Value is the most recent of either: Due date of the most recent event logged against the record. Due date of the most recently closed task associated with the record.'\n", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_modified_by_id": {"name": "last_modified_by_id", "description": "Last Modified By ID", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_modified_date": {"name": "last_modified_date", "description": "Last Modified Date", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_name": {"name": "last_name", "description": "Required. Last name of the lead up to 80 characters.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_referenced_date": {"name": "last_referenced_date", "description": "The timestamp when the current user last accessed this record, a record related to this record, or a list view.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_viewed_date": {"name": "last_viewed_date", "description": "The timestamp when the current user last viewed this record or list view. If this value is null, the user might have only accessed this record or list view (LastReferencedDate) but not viewed it.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "latitude": {"name": "latitude", "description": "Used with Longitude to specify the precise geolocation of an address. Acceptable values are numbers between \u201390 and 90 up to 15 decimal places.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "lead_source": {"name": "lead_source", "description": "The lead\u2019s source.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "longitude": {"name": "longitude", "description": "Used with Latitude to specify the precise geolocation of an address. Acceptable values are numbers between \u2013180 and 180 up to 15 decimal places.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "master_record_id": {"name": "master_record_id", "description": "If this record was deleted as the result of a merge, this field contains the ID of the record that was kept. If this record was deleted for any other reason, or has not been deleted, the value is null.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "mobile_phone": {"name": "mobile_phone", "description": "The lead\u2019s mobile phone number.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Concatenation of FirstName, MiddleName, LastName, and Suffix up to 203 characters, including whitespaces.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "number_of_employees": {"name": "number_of_employees", "description": "Number of employees at the lead\u2019s company. Label is Employees.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "owner_id": {"name": "owner_id", "description": "ID of the lead\u2019s owner. This is a polymorphic relationship field.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "phone": {"name": "phone", "description": "The lead\u2019s phone number.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "photo_url": {"name": "photo_url", "description": "Path to be combined with the URL of a Salesforce instance", "meta": {}, "data_type": null, "quote": null, "tags": []}, "postal_code": {"name": "postal_code", "description": "Postal code for the address of the lead. Label is Zip/Postal Code.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "salutation": {"name": "salutation", "description": "Salutation for the lead.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "state": {"name": "state", "description": "State for the address of the lead.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "state_code": {"name": "state_code", "description": "The ISO state code for the lead\u2019s address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "status": {"name": "status", "description": "Status code for this converted lead. Status codes are defined in Status and represented in the API by the LeadStatus object.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "street": {"name": "street", "description": "Street number and name for the address of the lead.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "system_modstamp": {"name": "system_modstamp", "description": "System Modstamp", "meta": {}, "data_type": null, "quote": null, "tags": []}, "title": {"name": "title", "description": "Title for the lead, such as CFO or CEO.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "website": {"name": "website", "description": "Website for the lead.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`fivetran`.`salesforce`.`lead`", "created_at": 1655305162.151781}, "source.salesforce_source.salesforce.opportunity_line_item": {"fqn": ["salesforce_source", "salesforce", "opportunity_line_item"], "database": "fivetran", "schema": "salesforce", "unique_id": "source.salesforce_source.salesforce.opportunity_line_item", "package_name": "salesforce_source", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/salesforce_source", "path": "models/src_salesforce.yml", "original_file_path": "models/src_salesforce.yml", "name": "opportunity_line_item", "source_name": "salesforce", "source_description": "", "loader": "fivetran", "identifier": "opportunity_line_item", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": null, "external": null, "description": "Represents an opportunity line item, which is a member of the list of Product2 products associated with an Opportunity.", "columns": {"id": {"name": "id", "description": "The unique, system-generated ID assigned during creation.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time at which fivetran last synced this record", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_active": {"name": "_fivetran_active", "description": "True if record is active, used to filter out only active records if History Mode is enabled", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_by_id": {"name": "created_by_id", "description": "Created By ID", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_date": {"name": "created_date", "description": "Created Date", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Text description of the opportunity line item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount": {"name": "discount", "description": "Discount for the product as a percentage. When updating these records: If you specify Discount without specifying TotalPrice, the TotalPrice is adjusted to accommodate the new Discount value, and the UnitPrice is held constant. If you specify both Discount and Quantity, you must also specify either TotalPrice or UnitPrice so the system knows which one to automatically adjust.\n", "meta": {}, "data_type": null, "quote": null, "tags": []}, "has_quantity_schedule": {"name": "has_quantity_schedule", "description": "Read-only. Indicates whether a quantity schedule has been created for this object (true) or not (false).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "has_revenue_schedule": {"name": "has_revenue_schedule", "description": "Indicates whether a revenue schedule has been created for this object (true) or not (false). If this object has a revenue schedule, the Quantity and TotalPrice fields can\u2019t be updated. In addition, the Quantity field can\u2019t be updated if this object has a quantity schedule. Update requests aren\u2019t rejected but the updated values are ignored.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "has_schedule": {"name": "has_schedule", "description": "If either HasQuantitySchedule or HasRevenueSchedule is true, this field is also true.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_deleted": {"name": "is_deleted", "description": "Deleted", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_modified_by_id": {"name": "last_modified_by_id", "description": "Last Modified By ID", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_modified_date": {"name": "last_modified_date", "description": "Last Modified Date", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_referenced_date": {"name": "last_referenced_date", "description": "The timestamp for when the current user last viewed a record related to this record. Available in API version 50.0 and later.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_viewed_date": {"name": "last_viewed_date", "description": "The timestamp for when the current user last viewed this record. If this value is null, this record might only have been referenced (LastReferencedDate) and not viewed. Available in API version 50.0 and later.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "list_price": {"name": "list_price", "description": "Corresponds to the UnitPrice on the PricebookEntry that is associated with this line item, which can be in the standard price book or a custom price book. A client application can use this information to show whether the unit price (or sales price) of the line item differs from the price book entry list price.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The opportunity line item name (known as \u201cOpportunity Product\u201d in the user interface). This read-only field is available in API version 30.0 and later.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "opportunity_id": {"name": "opportunity_id", "description": "Required. ID of the associated Opportunity. This is a relationship field.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "pricebook_entry_id": {"name": "pricebook_entry_id", "description": "Required. ID of the associated PricebookEntry. Exists only for those organizations that have Products enabled as a feature. In API versions 1.0 and 2.0, you can specify values for either this field or ProductId, but not both. For this reason, both fields are declared nillable. In API version 3.0 and later, you must specify values for this field instead of ProductId. This is a relationship field.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "product_2_id": {"name": "product_2_id", "description": "The ID of the related Product2 record. This is a read-only field available in API version 30.0 and later. Use the PricebookEntryId field instead, specifying the ID of the PricebookEntry record.\n", "meta": {}, "data_type": null, "quote": null, "tags": []}, "product_code": {"name": "product_code", "description": "This read-only field is available in API version 30.0 and later. It references the value in the ProductCode field of the related Product2 record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "quantity": {"name": "quantity", "description": "Read-only if this record has a quantity schedule, a revenue schedule, or both a quantity and a revenue schedule. When updating these records: If you specify Quantity without specifying the UnitPrice, the UnitPrice value will be adjusted to accommodate the new Quantity value, and the TotalPrice will be held constant. If you specify both Discount and Quantity, you must also specify either TotalPrice or UnitPrice so the system can determine which one to automatically adjust.\n", "meta": {}, "data_type": null, "quote": null, "tags": []}, "service_date": {"name": "service_date", "description": "Date when the product revenue will be recognized and the product quantity will be shipped. Opportunity Close Date\u2014ServiceDate is ignored. Product Date\u2014ServiceDate is used if not null. Schedule Date\u2014ServiceDate is used if not null and there are no revenue schedules present for this line item, that is, there are no OpportunityLineItemSchedule records with a field Type value of Revenue that are children of this record.\n", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sort_order": {"name": "sort_order", "description": "Number indicating the sort order selected by the user. Client applications can use this to match the sort order in Salesforce.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "system_modstamp": {"name": "system_modstamp", "description": "System Modstamp", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_price": {"name": "total_price", "description": "This field is available only for backward compatibility. It represents the total price of the OpportunityLineItem. If you do not specify UnitPrice, this field is required. If you specify Discount and Quantity, this field or UnitPrice is required. When updating these records, you can change either this value or the UnitPrice, but not both at the same time.\nThis field is nullable, but you can\u2019t set both TotalPrice and UnitPrice to null in the same update request. To insert the TotalPrice via the API (given only a unit price and the quantity), calculate this field as the unit price multiplied by the quantity. This field is read-only if the opportunity line item has a revenue schedule. If the opportunity line item does not have a schedule or only has quantity schedule, this field can be updated.\n", "meta": {}, "data_type": null, "quote": null, "tags": []}, "unit_price": {"name": "unit_price", "description": "The unit price for the opportunity line item. In the Salesforce user interface, this field\u2019s value is calculated by dividing the total price of the opportunity line item by the quantity listed for that line item. Label is Sales Price. This field or TotalPrice is required. You can\u2019t specify both.\nIf you specify Discount and Quantity, this field or TotalPrice is required.\n", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`fivetran`.`salesforce`.`opportunity_line_item`", "created_at": 1655305162.152106}, "source.salesforce_source.salesforce.order": {"fqn": ["salesforce_source", "salesforce", "order"], "database": "fivetran", "schema": "salesforce", "unique_id": "source.salesforce_source.salesforce.order", "package_name": "salesforce_source", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/salesforce_source", "path": "models/src_salesforce.yml", "original_file_path": "models/src_salesforce.yml", "name": "order", "source_name": "salesforce", "source_description": "", "loader": "fivetran", "identifier": "order", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": null, "external": null, "description": "Represents an order associated with a contract or an account.", "columns": {"id": {"name": "id", "description": "The unique, system-generated ID assigned during creation.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time at which fivetran last synced this record", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_active": {"name": "_fivetran_active", "description": "True if record is active, used to filter out only active records if History Mode is enabled", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Required. ID of the Account associated with this order. Can only be updated when the order\u2019s StatusCode value is Draft. This is a relationship field.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "activated_by_id": {"name": "activated_by_id", "description": "ID of the User who activated this order. This is a relationship field.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "activated_date": {"name": "activated_date", "description": "Date and time when the order was activated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billing_city": {"name": "billing_city", "description": "City for the billing address for this order. Maximum size is 40 characters.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billing_country": {"name": "billing_country", "description": "Country for the billing address for this order. Maximum size is 80 characters.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billing_country_code": {"name": "billing_country_code", "description": "ISO country code for the billing address for this order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billing_geocode_accuracy": {"name": "billing_geocode_accuracy", "description": "Accuracy level of the geocode of the address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billing_latitude": {"name": "billing_latitude", "description": "Used with BillingLongitude to specify the precise geolocation of a billing address. Acceptable values are numbers between \u201390 and 90 with up to 15 decimal places.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billing_longitude": {"name": "billing_longitude", "description": "Used with BillingLatitude to specify the precise geolocation of a billing address. Acceptable values are numbers between \u2013180 and 180 with up to 15 decimal places.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billing_postal_code": {"name": "billing_postal_code", "description": "Postal code for the billing address for this order. Maximum size is 20 characters.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billing_state": {"name": "billing_state", "description": "State for the billing address for this order. Maximum size is 80 characters.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billing_state_code": {"name": "billing_state_code", "description": "ISO state code for the order\u2019s billing address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billing_street": {"name": "billing_street", "description": "Street address for the billing address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "company_authorized_by_id": {"name": "company_authorized_by_id", "description": "ID of the user who authorized the account associated with the order. This is a relationship field.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "contract_id": {"name": "contract_id", "description": "ID of the contract associated with this order. Can only be updated when the order\u2019s StatusCode value is Draft. This is a relationship field.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_by_id": {"name": "created_by_id", "description": "Created By ID", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_date": {"name": "created_date", "description": "Created Date", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_authorized_by_id": {"name": "customer_authorized_by_id", "description": "ID of the contact who authorized the order. This is a relationship field.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date at which the order becomes effective. Label is Order Start Date.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "end_date": {"name": "end_date", "description": "Date at which the order ends. Label is Order End Date.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_deleted": {"name": "is_deleted", "description": "Deleted", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_reduction_order": {"name": "is_reduction_order", "description": "Read-only. Determines whether an order is a reduction order. Label is Reduction Order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_modified_by_id": {"name": "last_modified_by_id", "description": "Last Modified By ID", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_modified_date": {"name": "last_modified_date", "description": "Last Modified Date", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_referenced_date": {"name": "last_referenced_date", "description": "The timestamp when the current user last accessed this record, a record related to this record, or a list view.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_viewed_date": {"name": "last_viewed_date", "description": "The timestamp when the current user last viewed this record or list view. If this value is null, the user might have only accessed this record or list view (LastReferencedDate) but not viewed it.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "opportunity_id": {"name": "opportunity_id", "description": "ID for the opportunity that\u2019s associated with this order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "order_number": {"name": "order_number", "description": "Order number assigned to this order (not the unique, system-generated ID assigned during creation). Maximum size is 30 characters.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "original_order_id": {"name": "original_order_id", "description": "Optional. ID of the original order that a reduction order is reducing, if the reduction order is reducing a single order. Label is Original Order. Editable only if isReductionOrder is true. If the reduction order is reducing more than one order, leave blank. This is a relationship field.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "owner_id": {"name": "owner_id", "description": "Required. ID of the User or queue that owns this order. This is a polymorphic relationship field.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "pricebook_2_id": {"name": "pricebook_2_id", "description": "Required. ID of the price book associated with this order. This is a relationship field.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "shipping_city": {"name": "shipping_city", "description": "City of the shipping address. Maximum size is 40 characters.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "shipping_country": {"name": "shipping_country", "description": "Country of the shipping address. Maximum size is 80 characters.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "shipping_country_code": {"name": "shipping_country_code", "description": "ISO country code for the order\u2019s shipping address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "shipping_geocode_accuracy": {"name": "shipping_geocode_accuracy", "description": "Accuracy level of the geocode of the shipping address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "shipping_latitude": {"name": "shipping_latitude", "description": "Used with ShippingLongitude to specify the precise geolocation of a shipping address. Acceptable values are numbers between \u201390 and 90 with up to 15 decimal places.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "shipping_longitude": {"name": "shipping_longitude", "description": "Used with ShippingLatitude to specify the precise geolocation of an address. Acceptable values are numbers between \u2013180 and 180 with up to 15 decimal places.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "shipping_postal_code": {"name": "shipping_postal_code", "description": "Postal code of the shipping address. Maximum size is 20 characters.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "shipping_state": {"name": "shipping_state", "description": "State of the shipping address. Maximum size is 80 characters.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "shipping_state_code": {"name": "shipping_state_code", "description": "ISO state code for the order\u2019s shipping address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "shipping_street": {"name": "shipping_street", "description": "Street address of the shipping address. Maximum of 255 characters.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "status": {"name": "status", "description": "Picklist of values that indicate order status. Each value is within one of two status categories defined in StatusCode. For example, the status picklist might contain Draft, Ready for Review, and Ready for Activation values with a StatusCode of Draft.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "status_code": {"name": "status_code", "description": "The status category for the order. An order can be either Draft or Activated. Label is Status Category.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "system_modstamp": {"name": "system_modstamp", "description": "System Modstamp", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "The total amount for the order products associated with this order. This field is available in API v48.0 and later.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "type": {"name": "type", "description": "If you want to show more information about your order, you can add custom values to the Type picklist. By default, the Type field doesn't perform any actions or show any values.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`fivetran`.`salesforce`.`order`", "created_at": 1655305162.15241}, "source.salesforce_source.salesforce.product_2": {"fqn": ["salesforce_source", "salesforce", "product_2"], "database": "fivetran", "schema": "salesforce", "unique_id": "source.salesforce_source.salesforce.product_2", "package_name": "salesforce_source", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/salesforce_source", "path": "models/src_salesforce.yml", "original_file_path": "models/src_salesforce.yml", "name": "product_2", "source_name": "salesforce", "source_description": "", "loader": "fivetran", "identifier": "product_2", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": null, "external": null, "description": "Represents a product that your company sells.", "columns": {"id": {"name": "id", "description": "The unique, system-generated ID assigned during creation.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time at which fivetran last synced this record", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_active": {"name": "_fivetran_active", "description": "True if record is active, used to filter out only active records if History Mode is enabled", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_by_id": {"name": "created_by_id", "description": "Created By ID", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_date": {"name": "created_date", "description": "Created Date", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "A text description of this record. Label is Product Description.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "display_url": {"name": "display_url", "description": "URL leading to a specific version of a record in the linked external data source.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "external_data_source_id": {"name": "external_data_source_id", "description": "ID of the related external data source.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "external_id": {"name": "external_id", "description": "The unique identifier of a record in the linked external data source. For example, ID", "meta": {}, "data_type": null, "quote": null, "tags": []}, "family": {"name": "family", "description": "Name of the product family associated with this record. Product families are configured as picklists in the user interface. To obtain a list of valid values, call describeSObjects() and process the DescribeSObjectResult for the values associated with the Family field. Label is Product Family.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_active": {"name": "is_active", "description": "Indicates whether this record is active (true) or not (false). Inactive Product2 records are hidden in many areas in the user interface. You can change the IsActive flag on a Product2 object as often as necessary. Label is Active.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_archived": {"name": "is_archived", "description": "Describes whether the product is archived. The default value is false.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_deleted": {"name": "is_deleted", "description": "Indicates whether the object has been moved to the Recycle Bin (true) or not (false). Label is Deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_modified_by_id": {"name": "last_modified_by_id", "description": "Last Modified By ID", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_modified_date": {"name": "last_modified_date", "description": "Last Modified Date", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_referenced_date": {"name": "last_referenced_date", "description": "The timestamp when the current user last accessed this record, a record related to this record, or a list view.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_viewed_date": {"name": "last_viewed_date", "description": "The timestamp when the current user last viewed this record or list view. If this value is null, the user might have only accessed this record or list view (LastReferencedDate) but not viewed it.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Required. Default name of this record. Label is Product Name.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "number_of_quantity_installments": {"name": "number_of_quantity_installments", "description": "If the product has a quantity schedule, the number of installments.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "number_of_revenue_installments": {"name": "number_of_revenue_installments", "description": "If the product has a revenue schedule, the number of installments.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "product_code": {"name": "product_code", "description": "Default product code for this record. Your org defines the product code naming pattern.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "quantity_installment_period": {"name": "quantity_installment_period", "description": "If the product has a quantity schedule, the amount of time covered by the schedule.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "quantity_schedule_type": {"name": "quantity_schedule_type", "description": "The type of the quantity schedule, if the product has one.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "quantity_unit_of_measure": {"name": "quantity_unit_of_measure", "description": "Unit of the product; for example, kilograms, liters, or cases. This field comes with only one value, Each, so consider creating your own. The QuantityUnitOfMeasure field on ProductItem inherits this field\u2019s values.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "record_type_id": {"name": "record_type_id", "description": "ID of the record type assigned to this object.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "revenue_installment_period": {"name": "revenue_installment_period", "description": "If the product has a revenue schedule, the time period covered by the schedule.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "revenue_schedule_type": {"name": "revenue_schedule_type", "description": "The type of the revenue schedule, if the product has one.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "stock_keeping_unit": {"name": "stock_keeping_unit", "description": "The SKU for the product. Use in tandem with or instead of the ProductCode field. For example, you can track the manufacturer\u2019s identifying code in the Product Code field and assign the product a SKU when you resell it.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "system_modstamp": {"name": "system_modstamp", "description": "System Modstamp", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`fivetran`.`salesforce`.`product_2`", "created_at": 1655305162.152649}, "source.salesforce_source.salesforce.task": {"fqn": ["salesforce_source", "salesforce", "task"], "database": "fivetran", "schema": "salesforce", "unique_id": "source.salesforce_source.salesforce.task", "package_name": "salesforce_source", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/salesforce_source", "path": "models/src_salesforce.yml", "original_file_path": "models/src_salesforce.yml", "name": "task", "source_name": "salesforce", "source_description": "", "loader": "fivetran", "identifier": "task", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": null, "external": null, "description": "Represents a business activity such as making a phone call or other to-do items. In the user interface, Task and Event records are collectively referred to as activities.", "columns": {"id": {"name": "id", "description": "The unique, system-generated ID assigned during creation.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "The time at which fivetran last synced this record", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_active": {"name": "_fivetran_active", "description": "True if record is active, used to filter out only active records if History Mode is enabled", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Represents the ID of the related Account. The AccountId is determined as follows. If the value of WhatId is any of the following objects, then Salesforce uses that object\u2019s AccountId. Account Opportunity Contract Custom object that is a child of Account If the value of the WhatIdfield is any other object, and the value of the WhoId field is a Contact object, then Salesforce uses that contact\u2019s AccountId. (If your organization uses Shared Activities, then Salesforce uses the AccountId of the primary contact.) Otherwise, Salesforce sets the value of the AccountId field to null. This is a relationship field.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "activity_date": {"name": "activity_date", "description": "Represents the due date of the task. This field has a timestamp that is always set to midnight in the Coordinated Universal Time (UTC) time zone. The timestamp is not relevant; do not attempt to alter it to accommodate time zone differences. Label is Due Date.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "call_disposition": {"name": "call_disposition", "description": "Represents the result of a given call, for example, \u201cwe'll call back,\u201d or \u201ccall unsuccessful.\u201d Limit is 255 characters. Not subject to field-level security, available for any user in an organization with Salesforce CRM Call Center.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "call_duration_in_seconds": {"name": "call_duration_in_seconds", "description": "Duration of the call in seconds. Not subject to field-level security, available for any user in an organization with Salesforce CRM Call Center.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "call_object": {"name": "call_object", "description": "Name of a call center. Limit is 255 characters. Not subject to field-level security, available for any user in an organization with Salesforce CRM Call Center.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "call_type": {"name": "call_type", "description": "The type of call being answered: Inbound, Internal, or Outbound.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "completed_date_time": {"name": "completed_date_time", "description": "The date and time the task was saved with a Closed status. For insert, if the task is saved with a Closed status the field is set. If the task is saved with an Open status the field is set to NULL. For update, if the task is saved with a new Closed status, the field is reset. If the task is saved with a new non-closed status, the field is reset to NULL. If the task is saved with the same closed status (that is, unchanged) there is no change to the field.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_by_id": {"name": "created_by_id", "description": "Created By ID", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_date": {"name": "created_date", "description": "Created Date", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Contains a text description of the task.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_archived": {"name": "is_archived", "description": "Indicates whether the event has been archived.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_closed": {"name": "is_closed", "description": "Indicates whether the task has been completed (true) or not (false). Is only set indirectly via the Status picklist. Label is Closed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_deleted": {"name": "is_deleted", "description": "Deleted", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_high_priority": {"name": "is_high_priority", "description": "Indicates a high-priority task. This field is derived from the Priority field.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_recurrence": {"name": "is_recurrence", "description": "Indicates whether the task is scheduled to repeat itself (true) or only occurs once (false). This field is read-only on update, but not on create. If this field value is true, then RecurrenceStartDateOnly, RecurrenceEndDateOnly, RecurrenceType, and any recurrence fields associated with the given recurrence type must be populated. See Recurring Tasks.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_reminder_set": {"name": "is_reminder_set", "description": "Indicates whether a popup reminder has been set for the task (true) or not (false).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_modified_by_id": {"name": "last_modified_by_id", "description": "Last Modified By ID", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_modified_date": {"name": "last_modified_date", "description": "Last Modified Date", "meta": {}, "data_type": null, "quote": null, "tags": []}, "owner_id": {"name": "owner_id", "description": "ID of the User or Group who owns the record. Label is Assigned To ID. This field accepts Groups of type Queue only. In the user interface, Group IDs correspond with the queue\u2019s list view names. To create or update tasks assigned to Group, use v48.0 or later. This is a polymorphic relationship field.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "priority": {"name": "priority", "description": "Required. Indicates the importance or urgency of a task, such as high or low.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "record_type_id": {"name": "record_type_id", "description": "ID of the record type assigned to this object.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "recurrence_activity_id": {"name": "recurrence_activity_id", "description": "Read-only. Not required on create. ID of the main record of the recurring task. Subsequent occurrences have the same value in this field.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "recurrence_day_of_month": {"name": "recurrence_day_of_month", "description": "The day of the month in which the task repeats.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "recurrence_day_of_week_mask": {"name": "recurrence_day_of_week_mask", "description": "The day or days of the week on which the task repeats. This field contains a bitmask. The values are as follows: Sunday = 1 Monday = 2 Tuesday = 4 Wednesday = 8 Thursday = 16 Friday = 32 Saturday = 64 Multiple days are represented as the sum of their numerical values. For example, Tuesday and Thursday = 4 + 16 = 20.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "recurrence_end_date_only": {"name": "recurrence_end_date_only", "description": "The last date on which the task repeats. This field has a timestamp that is always set to midnight in the Coordinated Universal Time (UTC) time zone. The timestamp is not relevant; do not attempt to alter it to accommodate time zone differences. ", "meta": {}, "data_type": null, "quote": null, "tags": []}, "recurrence_instance": {"name": "recurrence_instance", "description": "The frequency of the recurring task. Possible values are: First\u20141st Fourth\u20144th Last\u2014last Second\u20142nd Third\u20143rd", "meta": {}, "data_type": null, "quote": null, "tags": []}, "recurrence_interval": {"name": "recurrence_interval", "description": "The interval between recurring tasks.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "recurrence_month_of_year": {"name": "recurrence_month_of_year", "description": "The month of the year in which the task repeats.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "recurrence_regenerated_type": {"name": "recurrence_regenerated_type", "description": "Represents what triggers a repeating task to repeat. Add this field to a page layout together with the RecurrenceInterval field, which determines the number of days between the triggering date (due date or close date) and the due date of the next repeating task in the series. Label is Repeat This Task. This field has the following picklist values: None: The task doesn\u2019t repeat. After due date: The next repeating task will be due the specified number of days after the current task\u2019s due date. After the task is closed: The next repeating task will be due the specified number of days after the current task is closed. (Task closed): This task, now closed, was opened as part of a repeating series. ", "meta": {}, "data_type": null, "quote": null, "tags": []}, "recurrence_start_date_only": {"name": "recurrence_start_date_only", "description": "The date when the recurring task begins. Must be a date and time before RecurrenceEndDateOnly.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "recurrence_time_zone_sid_key": {"name": "recurrence_time_zone_sid_key", "description": "The time zone associated with the recurring task. For example, \u201cUTC-8:00\u201d for Pacific Standard Time.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "recurrence_type": {"name": "recurrence_type", "description": "Indicates how often the task repeats. For example, daily, weekly, or every nth month (where \u201cnth\u201d is defined in RecurrenceInstance).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "reminder_date_time": {"name": "reminder_date_time", "description": "Represents the time when the reminder is scheduled to fire, if IsReminderSet is set to true. If IsReminderSet is set to false, then the user may have deselected the reminder checkbox in the Salesforce user interface, or the reminder has already fired at the time indicated by the value.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "status": {"name": "status", "description": "Required. The status of the task, such as In Progress or Completed. Each predefined Status field implies a value for the IsClosed flag. To obtain picklist values, query the TaskStatus object.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "subject": {"name": "subject", "description": "The subject line of the task, such as \u201cCall\u201d or \u201cSend Quote.\u201d", "meta": {}, "data_type": null, "quote": null, "tags": []}, "system_modstamp": {"name": "system_modstamp", "description": "System Modstamp", "meta": {}, "data_type": null, "quote": null, "tags": []}, "task_subtype": {"name": "task_subtype", "description": "Provides standard subtypes to facilitate creating and searching for specific task subtypes.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "type": {"name": "type", "description": "The type of task, such as Call or Meeting.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "what_count": {"name": "what_count", "description": "Available to organizations that have Shared Activities enabled. Count of related TaskRelations pertaining to WhatId. Count of the WhatId must be 1 or less.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "what_id": {"name": "what_id", "description": "The WhatId represents nonhuman objects such as accounts, opportunities, campaigns, cases, or custom objects. WhatIds are polymorphic. Polymorphic means a WhatId is equivalent to the ID of a related object. The label is Related To ID. This is a polymorphic relationship field.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "who_count": {"name": "who_count", "description": "Available to organizations that have Shared Activities enabled. Count of related TaskRelations pertaining to WhoId.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "who_id": {"name": "who_id", "description": "The WhoId represents a human such as a lead or a contact. WhoIds are polymorphic. Polymorphic means a WhoId is equivalent to a contact\u2019s ID or a lead\u2019s ID. The label is Name ID. If Shared Activities is enabled, the value of this field is the ID of the related lead or primary contact. If you add, update, or remove the WhoId field, you might encounter problems with triggers, workflows, and data validation rules that are associated with the record. The label is Name ID. Beginning in API version 37.0, if the contact or lead ID in the WhoId field is not in the TaskWhoIds list, no error occurs and the ID is added to the TaskWhoIds as the primary WhoId. If WhoId is set to null, an arbitrary ID from the existing TaskWhoIds list is promoted to the primary position.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`fivetran`.`salesforce`.`task`", "created_at": 1655305162.152879}, "source.salesforce_source.salesforce.fivetran_formula": {"fqn": ["salesforce_source", "salesforce", "fivetran_formula"], "database": "fivetran", "schema": "salesforce", "unique_id": "source.salesforce_source.salesforce.fivetran_formula", "package_name": "salesforce_source", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/salesforce_source", "path": "models/src_salesforce.yml", "original_file_path": "models/src_salesforce.yml", "name": "fivetran_formula", "source_name": "salesforce", "source_description": "", "loader": "fivetran", "identifier": "fivetran_formula", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "Holds the formula fields for each of your custom fields", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`fivetran`.`salesforce`.`fivetran_formula`", "created_at": 1655305162.153009}}, "macros": {"macro.dbt_bigquery.date_sharded_table": {"unique_id": "macro.dbt_bigquery.date_sharded_table", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/bigquery", "path": "macros/etc.sql", "original_file_path": "macros/etc.sql", "name": "date_sharded_table", "macro_sql": "{% macro date_sharded_table(base_name) %}\n {{ return(base_name ~ \"[DBT__PARTITION_DATE]\") }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.568661}, "macro.dbt_bigquery.grant_access_to": {"unique_id": "macro.dbt_bigquery.grant_access_to", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/bigquery", "path": "macros/etc.sql", "original_file_path": "macros/etc.sql", "name": "grant_access_to", "macro_sql": "{% macro grant_access_to(entity, entity_type, role, grant_target_dict) -%}\n {% do adapter.grant_access_to(entity, entity_type, role, grant_target_dict) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.569202}, "macro.dbt_bigquery.get_partitions_metadata": {"unique_id": "macro.dbt_bigquery.get_partitions_metadata", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/bigquery", "path": "macros/etc.sql", "original_file_path": "macros/etc.sql", "name": "get_partitions_metadata", "macro_sql": "\n\n{%- macro get_partitions_metadata(table) -%}\n {%- if execute -%}\n {%- set res = adapter.get_partitions_metadata(table) -%}\n {{- return(res) -}}\n {%- endif -%}\n {{- return(None) -}}\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.569841}, "macro.dbt_bigquery.bigquery__get_catalog": {"unique_id": "macro.dbt_bigquery.bigquery__get_catalog", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/bigquery", "path": "macros/catalog.sql", "original_file_path": "macros/catalog.sql", "name": "bigquery__get_catalog", "macro_sql": "{% macro bigquery__get_catalog(information_schema, schemas) -%}\n\n {%- if (schemas | length) == 0 -%}\n {# Hopefully nothing cares about the columns we return when there are no rows #}\n {%- set query = \"select 1 as id limit 0\" -%}\n {%- else -%}\n\n {%- set query -%}\n with tables as (\n select\n project_id as table_database,\n dataset_id as table_schema,\n table_id as original_table_name,\n\n concat(project_id, '.', dataset_id, '.', table_id) as relation_id,\n\n row_count,\n size_bytes as size_bytes,\n case\n when type = 1 then 'table'\n when type = 2 then 'view'\n else 'external'\n end as table_type,\n\n REGEXP_CONTAINS(table_id, '^.+[0-9]{8}$') and coalesce(type, 0) = 1 as is_date_shard,\n REGEXP_EXTRACT(table_id, '^(.+)[0-9]{8}$') as shard_base_name,\n REGEXP_EXTRACT(table_id, '^.+([0-9]{8})$') as shard_name\n\n from {{ information_schema.replace(information_schema_view='__TABLES__') }}\n where (\n {%- for schema in schemas -%}\n upper(dataset_id) = upper('{{ schema }}'){%- if not loop.last %} or {% endif -%}\n {%- endfor -%}\n )\n ),\n\n extracted as (\n\n select *,\n case\n when is_date_shard then shard_base_name\n else original_table_name\n end as table_name\n\n from tables\n\n ),\n\n unsharded_tables as (\n\n select\n table_database,\n table_schema,\n table_name,\n coalesce(table_type, 'external') as table_type,\n is_date_shard,\n\n struct(\n min(shard_name) as shard_min,\n max(shard_name) as shard_max,\n count(*) as shard_count\n ) as table_shards,\n\n sum(size_bytes) as size_bytes,\n sum(row_count) as row_count,\n\n max(relation_id) as relation_id\n\n from extracted\n group by 1,2,3,4,5\n\n ),\n\n info_schema_columns as (\n\n select\n concat(table_catalog, '.', table_schema, '.', table_name) as relation_id,\n table_catalog as table_database,\n table_schema,\n table_name,\n\n -- use the \"real\" column name from the paths query below\n column_name as base_column_name,\n ordinal_position as column_index,\n\n is_partitioning_column,\n clustering_ordinal_position\n\n from {{ information_schema.replace(information_schema_view='COLUMNS') }}\n where ordinal_position is not null\n\n ),\n\n info_schema_column_paths as (\n\n select\n concat(table_catalog, '.', table_schema, '.', table_name) as relation_id,\n field_path as column_name,\n data_type as column_type,\n column_name as base_column_name,\n description as column_comment\n\n from {{ information_schema.replace(information_schema_view='COLUMN_FIELD_PATHS') }}\n\n ),\n\n columns as (\n\n select * except (base_column_name)\n from info_schema_columns\n join info_schema_column_paths using (relation_id, base_column_name)\n\n ),\n\n column_stats as (\n\n select\n table_database,\n table_schema,\n table_name,\n max(relation_id) as relation_id,\n max(case when is_partitioning_column = 'YES' then 1 else 0 end) = 1 as is_partitioned,\n max(case when is_partitioning_column = 'YES' then column_name else null end) as partition_column,\n max(case when clustering_ordinal_position is not null then 1 else 0 end) = 1 as is_clustered,\n array_to_string(\n array_agg(\n case\n when clustering_ordinal_position is not null then column_name\n else null\n end ignore nulls\n order by clustering_ordinal_position\n ), ', '\n ) as clustering_columns\n\n from columns\n group by 1,2,3\n\n )\n\n select\n unsharded_tables.table_database,\n unsharded_tables.table_schema,\n case\n when is_date_shard then concat(unsharded_tables.table_name, '*')\n else unsharded_tables.table_name\n end as table_name,\n unsharded_tables.table_type,\n\n -- coalesce name and type for External tables - these columns are not\n -- present in the COLUMN_FIELD_PATHS resultset\n coalesce(columns.column_name, '') as column_name,\n -- invent a row number to account for nested fields -- BQ does\n -- not treat these nested properties as independent fields\n row_number() over (\n partition by relation_id\n order by columns.column_index, columns.column_name\n ) as column_index,\n coalesce(columns.column_type, '') as column_type,\n columns.column_comment,\n\n 'Shard count' as `stats__date_shards__label`,\n table_shards.shard_count as `stats__date_shards__value`,\n 'The number of date shards in this table' as `stats__date_shards__description`,\n is_date_shard as `stats__date_shards__include`,\n\n 'Shard (min)' as `stats__date_shard_min__label`,\n table_shards.shard_min as `stats__date_shard_min__value`,\n 'The first date shard in this table' as `stats__date_shard_min__description`,\n is_date_shard as `stats__date_shard_min__include`,\n\n 'Shard (max)' as `stats__date_shard_max__label`,\n table_shards.shard_max as `stats__date_shard_max__value`,\n 'The last date shard in this table' as `stats__date_shard_max__description`,\n is_date_shard as `stats__date_shard_max__include`,\n\n '# Rows' as `stats__num_rows__label`,\n row_count as `stats__num_rows__value`,\n 'Approximate count of rows in this table' as `stats__num_rows__description`,\n (unsharded_tables.table_type = 'table') as `stats__num_rows__include`,\n\n 'Approximate Size' as `stats__num_bytes__label`,\n size_bytes as `stats__num_bytes__value`,\n 'Approximate size of table as reported by BigQuery' as `stats__num_bytes__description`,\n (unsharded_tables.table_type = 'table') as `stats__num_bytes__include`,\n\n 'Partitioned By' as `stats__partitioning_type__label`,\n partition_column as `stats__partitioning_type__value`,\n 'The partitioning column for this table' as `stats__partitioning_type__description`,\n is_partitioned as `stats__partitioning_type__include`,\n\n 'Clustered By' as `stats__clustering_fields__label`,\n clustering_columns as `stats__clustering_fields__value`,\n 'The clustering columns for this table' as `stats__clustering_fields__description`,\n is_clustered as `stats__clustering_fields__include`\n\n -- join using relation_id (an actual relation, not a shard prefix) to make\n -- sure that column metadata is picked up through the join. This will only\n -- return the column information for the \"max\" table in a date-sharded table set\n from unsharded_tables\n left join columns using (relation_id)\n left join column_stats using (relation_id)\n {%- endset -%}\n\n {%- endif -%}\n\n {{ return(run_query(query)) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.replace", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.5757482}, "macro.dbt_bigquery.partition_by": {"unique_id": "macro.dbt_bigquery.partition_by", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "partition_by", "macro_sql": "{% macro partition_by(partition_config) -%}\n {%- if partition_config is none -%}\n {% do return('') %}\n {%- elif partition_config.data_type | lower in ('date','timestamp','datetime') -%}\n partition by {{ partition_config.render() }}\n {%- elif partition_config.data_type | lower in ('int64') -%}\n {%- set range = partition_config.range -%}\n partition by range_bucket(\n {{ partition_config.field }},\n generate_array({{ range.start}}, {{ range.end }}, {{ range.interval }})\n )\n {%- endif -%}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.584341}, "macro.dbt_bigquery.cluster_by": {"unique_id": "macro.dbt_bigquery.cluster_by", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "cluster_by", "macro_sql": "{% macro cluster_by(raw_cluster_by) %}\n {%- if raw_cluster_by is not none -%}\n cluster by {% if raw_cluster_by is string -%}\n {% set raw_cluster_by = [raw_cluster_by] %}\n {%- endif -%}\n {%- for cluster in raw_cluster_by -%}\n {{ cluster }}\n {%- if not loop.last -%}, {% endif -%}\n {%- endfor -%}\n\n {% endif %}\n\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.5852401}, "macro.dbt_bigquery.bigquery_options": {"unique_id": "macro.dbt_bigquery.bigquery_options", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery_options", "macro_sql": "{% macro bigquery_options(opts) %}\n {% set options -%}\n OPTIONS({% for opt_key, opt_val in opts.items() %}\n {{ opt_key }}={{ opt_val }}{{ \",\" if not loop.last }}\n {% endfor %})\n {%- endset %}\n {%- do return(options) -%}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.5860538}, "macro.dbt_bigquery.bigquery_table_options": {"unique_id": "macro.dbt_bigquery.bigquery_table_options", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery_table_options", "macro_sql": "{% macro bigquery_table_options(config, node, temporary) %}\n {% set opts = adapter.get_table_options(config, node, temporary) %}\n {%- do return(bigquery_options(opts)) -%}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery_options"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.586702}, "macro.dbt_bigquery.bigquery__create_table_as": {"unique_id": "macro.dbt_bigquery.bigquery__create_table_as", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery__create_table_as", "macro_sql": "{% macro bigquery__create_table_as(temporary, relation, sql) -%}\n {%- set raw_partition_by = config.get('partition_by', none) -%}\n {%- set raw_cluster_by = config.get('cluster_by', none) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {%- set partition_config = adapter.parse_partition_by(raw_partition_by) -%}\n\n {{ sql_header if sql_header is not none }}\n\n create or replace table {{ relation }}\n {{ partition_by(partition_config) }}\n {{ cluster_by(raw_cluster_by) }}\n {{ bigquery_table_options(config, model, temporary) }}\n as (\n {{ sql }}\n );\n\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.partition_by", "macro.dbt_bigquery.cluster_by", "macro.dbt_bigquery.bigquery_table_options"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.588189}, "macro.dbt_bigquery.bigquery_view_options": {"unique_id": "macro.dbt_bigquery.bigquery_view_options", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery_view_options", "macro_sql": "{% macro bigquery_view_options(config, node) %}\n {% set opts = adapter.get_view_options(config, node) %}\n {%- do return(bigquery_options(opts)) -%}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery_options"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.588743}, "macro.dbt_bigquery.bigquery__create_view_as": {"unique_id": "macro.dbt_bigquery.bigquery__create_view_as", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery__create_view_as", "macro_sql": "{% macro bigquery__create_view_as(relation, sql) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n\n create or replace view {{ relation }}\n {{ bigquery_view_options(config, model) }}\n as {{ sql }};\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery_view_options"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.5894752}, "macro.dbt_bigquery.bigquery__create_schema": {"unique_id": "macro.dbt_bigquery.bigquery__create_schema", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery__create_schema", "macro_sql": "{% macro bigquery__create_schema(relation) -%}\n {{ adapter.create_schema(relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.589783}, "macro.dbt_bigquery.bigquery__drop_schema": {"unique_id": "macro.dbt_bigquery.bigquery__drop_schema", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery__drop_schema", "macro_sql": "{% macro bigquery__drop_schema(relation) -%}\n {{ adapter.drop_schema(relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.590084}, "macro.dbt_bigquery.bigquery__drop_relation": {"unique_id": "macro.dbt_bigquery.bigquery__drop_relation", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery__drop_relation", "macro_sql": "{% macro bigquery__drop_relation(relation) -%}\n {% call statement('drop_relation') -%}\n drop {{ relation.type }} if exists {{ relation }}\n {%- endcall %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.590537}, "macro.dbt_bigquery.bigquery__get_columns_in_relation": {"unique_id": "macro.dbt_bigquery.bigquery__get_columns_in_relation", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery__get_columns_in_relation", "macro_sql": "{% macro bigquery__get_columns_in_relation(relation) -%}\n {{ return(adapter.get_columns_in_relation(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.590883}, "macro.dbt_bigquery.bigquery__list_relations_without_caching": {"unique_id": "macro.dbt_bigquery.bigquery__list_relations_without_caching", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery__list_relations_without_caching", "macro_sql": "{% macro bigquery__list_relations_without_caching(schema_relation) -%}\n {{ return(adapter.list_relations_without_caching(schema_relation)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.5912168}, "macro.dbt_bigquery.bigquery__current_timestamp": {"unique_id": "macro.dbt_bigquery.bigquery__current_timestamp", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery__current_timestamp", "macro_sql": "{% macro bigquery__current_timestamp() -%}\n CURRENT_TIMESTAMP()\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.591394}, "macro.dbt_bigquery.bigquery__snapshot_string_as_time": {"unique_id": "macro.dbt_bigquery.bigquery__snapshot_string_as_time", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery__snapshot_string_as_time", "macro_sql": "{% macro bigquery__snapshot_string_as_time(timestamp) -%}\n {%- set result = 'TIMESTAMP(\"' ~ timestamp ~ '\")' -%}\n {{ return(result) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.5918012}, "macro.dbt_bigquery.bigquery__list_schemas": {"unique_id": "macro.dbt_bigquery.bigquery__list_schemas", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery__list_schemas", "macro_sql": "{% macro bigquery__list_schemas(database) -%}\n {{ return(adapter.list_schemas(database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.592242}, "macro.dbt_bigquery.bigquery__check_schema_exists": {"unique_id": "macro.dbt_bigquery.bigquery__check_schema_exists", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery__check_schema_exists", "macro_sql": "{% macro bigquery__check_schema_exists(information_schema, schema) %}\n {{ return(adapter.check_schema_exists(information_schema.database, schema)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.592671}, "macro.dbt_bigquery.bigquery__persist_docs": {"unique_id": "macro.dbt_bigquery.bigquery__persist_docs", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery__persist_docs", "macro_sql": "{% macro bigquery__persist_docs(relation, model, for_relation, for_columns) -%}\n {% if for_columns and config.persist_column_docs() and model.columns %}\n {% do alter_column_comment(relation, model.columns) %}\n {% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.alter_column_comment"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.5933042}, "macro.dbt_bigquery.bigquery__alter_column_comment": {"unique_id": "macro.dbt_bigquery.bigquery__alter_column_comment", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery__alter_column_comment", "macro_sql": "{% macro bigquery__alter_column_comment(relation, column_dict) -%}\n {% do adapter.update_columns(relation, column_dict) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.593666}, "macro.dbt_bigquery.bigquery__rename_relation": {"unique_id": "macro.dbt_bigquery.bigquery__rename_relation", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery__rename_relation", "macro_sql": "{% macro bigquery__rename_relation(from_relation, to_relation) -%}\n {% do adapter.rename_relation(from_relation, to_relation) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.594024}, "macro.dbt_bigquery.bigquery__alter_relation_add_columns": {"unique_id": "macro.dbt_bigquery.bigquery__alter_relation_add_columns", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery__alter_relation_add_columns", "macro_sql": "{% macro bigquery__alter_relation_add_columns(relation, add_columns) %}\n \n {% set sql -%}\n \n alter {{ relation.type }} {{ relation }}\n {% for column in add_columns %}\n add column {{ column.name }} {{ column.data_type }}{{ ',' if not loop.last }}\n {% endfor %}\n \n {%- endset -%}\n\n {{ return(run_query(sql)) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.594997}, "macro.dbt_bigquery.bigquery__alter_relation_drop_columns": {"unique_id": "macro.dbt_bigquery.bigquery__alter_relation_drop_columns", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery__alter_relation_drop_columns", "macro_sql": "{% macro bigquery__alter_relation_drop_columns(relation, drop_columns) %}\n \n {% set sql -%}\n \n alter {{ relation.type }} {{ relation }}\n\n {% for column in drop_columns %}\n drop column {{ column.name }}{{ ',' if not loop.last }}\n {% endfor %}\n \n {%- endset -%}\n \n {{ return(run_query(sql)) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.595875}, "macro.dbt_bigquery.bigquery__alter_column_type": {"unique_id": "macro.dbt_bigquery.bigquery__alter_column_type", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery__alter_column_type", "macro_sql": "{% macro bigquery__alter_column_type(relation, column_name, new_column_type) -%}\n {#-- Changing a column's data type using a query requires you to scan the entire table.\n The query charges can be significant if the table is very large.\n\n https://cloud.google.com/bigquery/docs/manually-changing-schemas#changing_a_columns_data_type\n #}\n {% set relation_columns = get_columns_in_relation(relation) %}\n\n {% set sql %}\n select\n {%- for col in relation_columns -%}\n {% if col.column == column_name %}\n CAST({{ col.quoted }} AS {{ new_column_type }}) AS {{ col.quoted }}\n {%- else %}\n {{ col.quoted }}\n {%- endif %}\n {%- if not loop.last %},{% endif -%}\n {%- endfor %}\n from {{ relation }}\n {% endset %}\n\n {% call statement('alter_column_type') %}\n {{ create_table_as(False, relation, sql)}}\n {%- endcall %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_columns_in_relation", "macro.dbt.statement", "macro.dbt.create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.597434}, "macro.dbt_bigquery.bigquery__test_unique": {"unique_id": "macro.dbt_bigquery.bigquery__test_unique", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery__test_unique", "macro_sql": "{% macro bigquery__test_unique(model, column_name) %}\n\nwith dbt_test__target as (\n \n select {{ column_name }} as unique_field\n from {{ model }}\n where {{ column_name }} is not null\n \n)\n\nselect\n unique_field,\n count(*) as n_records\n\nfrom dbt_test__target\ngroup by unique_field\nhaving count(*) > 1\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.597825}, "macro.dbt_bigquery.bigquery__create_csv_table": {"unique_id": "macro.dbt_bigquery.bigquery__create_csv_table", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/bigquery", "path": "macros/materializations/seed.sql", "original_file_path": "macros/materializations/seed.sql", "name": "bigquery__create_csv_table", "macro_sql": "{% macro bigquery__create_csv_table(model, agate_table) %}\n -- no-op\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.598561}, "macro.dbt_bigquery.bigquery__reset_csv_table": {"unique_id": "macro.dbt_bigquery.bigquery__reset_csv_table", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/bigquery", "path": "macros/materializations/seed.sql", "original_file_path": "macros/materializations/seed.sql", "name": "bigquery__reset_csv_table", "macro_sql": "{% macro bigquery__reset_csv_table(model, full_refresh, old_relation, agate_table) %}\n {{ adapter.drop_relation(old_relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.5989308}, "macro.dbt_bigquery.bigquery__load_csv_rows": {"unique_id": "macro.dbt_bigquery.bigquery__load_csv_rows", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/bigquery", "path": "macros/materializations/seed.sql", "original_file_path": "macros/materializations/seed.sql", "name": "bigquery__load_csv_rows", "macro_sql": "{% macro bigquery__load_csv_rows(model, agate_table) %}\n\n {%- set column_override = model['config'].get('column_types', {}) -%}\n {{ adapter.load_dataframe(model['database'], model['schema'], model['alias'],\n \t\t\t\t\t\t\tagate_table, column_override) }}\n {% if config.persist_relation_docs() and 'description' in model %}\n\n \t{{ adapter.update_table_description(model['database'], model['schema'], model['alias'], model['description']) }}\n {% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.6002939}, "macro.dbt_bigquery.bigquery__handle_existing_table": {"unique_id": "macro.dbt_bigquery.bigquery__handle_existing_table", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/bigquery", "path": "macros/materializations/view.sql", "original_file_path": "macros/materializations/view.sql", "name": "bigquery__handle_existing_table", "macro_sql": "{% macro bigquery__handle_existing_table(full_refresh, old_relation) %}\n {%- if full_refresh -%}\n {{ adapter.drop_relation(old_relation) }}\n {%- else -%}\n {{ exceptions.relation_wrong_type(old_relation, 'view') }}\n {%- endif -%}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.601454}, "macro.dbt_bigquery.materialization_view_bigquery": {"unique_id": "macro.dbt_bigquery.materialization_view_bigquery", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/bigquery", "path": "macros/materializations/view.sql", "original_file_path": "macros/materializations/view.sql", "name": "materialization_view_bigquery", "macro_sql": "{% materialization view, adapter='bigquery' -%}\n {% set to_return = create_or_replace_view() %}\n\n {% set target_relation = this.incorporate(type='view') %}\n {% do persist_docs(target_relation, model) %}\n\n {% if config.get('grant_access_to') %}\n {% for grant_target_dict in config.get('grant_access_to') %}\n {% do adapter.grant_access_to(this, 'view', None, grant_target_dict) %}\n {% endfor %}\n {% endif %}\n\n {% do return(to_return) %}\n\n{%- endmaterialization %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.create_or_replace_view", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.602885}, "macro.dbt_bigquery.materialization_table_bigquery": {"unique_id": "macro.dbt_bigquery.materialization_table_bigquery", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/bigquery", "path": "macros/materializations/table.sql", "original_file_path": "macros/materializations/table.sql", "name": "materialization_table_bigquery", "macro_sql": "{% materialization table, adapter='bigquery' -%}\n\n {%- set identifier = model['alias'] -%}\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n {%- set exists_not_as_table = (old_relation is not none and not old_relation.is_table) -%}\n {%- set target_relation = api.Relation.create(database=database, schema=schema, identifier=identifier, type='table') -%}\n\n {{ run_hooks(pre_hooks) }}\n\n {#\n We only need to drop this thing if it is not a table.\n If it _is_ already a table, then we can overwrite it without downtime\n Unlike table -> view, no need for `--full-refresh`: dropping a view is no big deal\n #}\n {%- if exists_not_as_table -%}\n {{ adapter.drop_relation(old_relation) }}\n {%- endif -%}\n\n -- build model\n {%- set raw_partition_by = config.get('partition_by', none) -%}\n {%- set partition_by = adapter.parse_partition_by(raw_partition_by) -%}\n {%- set cluster_by = config.get('cluster_by', none) -%}\n {% if not adapter.is_replaceable(old_relation, partition_by, cluster_by) %}\n {% do log(\"Hard refreshing \" ~ old_relation ~ \" because it is not replaceable\") %}\n {% do adapter.drop_relation(old_relation) %}\n {% endif %}\n {% call statement('main') -%}\n {{ create_table_as(False, target_relation, sql) }}\n {% endcall -%}\n\n {{ run_hooks(post_hooks) }}\n\n {% do persist_docs(target_relation, model) %}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_hooks", "macro.dbt.statement", "macro.dbt.create_table_as", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.6067998}, "macro.dbt_bigquery.materialization_copy_bigquery": {"unique_id": "macro.dbt_bigquery.materialization_copy_bigquery", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/bigquery", "path": "macros/materializations/copy.sql", "original_file_path": "macros/materializations/copy.sql", "name": "materialization_copy_bigquery", "macro_sql": "{% materialization copy, adapter='bigquery' -%}\n\n {# Setup #}\n {{ run_hooks(pre_hooks) }}\n\n {% set destination = this.incorporate(type='table') %}\n\n {# there can be several ref() or source() according to BQ copy API docs #}\n {# cycle over ref() and source() to create source tables array #}\n {% set source_array = [] %}\n {% for ref_table in model.refs %}\n {{ source_array.append(ref(*ref_table)) }}\n {% endfor %}\n\n {% for src_table in model.sources %}\n {{ source_array.append(source(*src_table)) }}\n {% endfor %}\n\n {# Call adapter's copy_table function #}\n {%- set result_str = adapter.copy_table(\n source_array,\n destination,\n config.get('copy_materialization', default = 'table')) -%}\n\n {{ store_result('main', response=result_str) }}\n\n {# Clean up #}\n {{ run_hooks(post_hooks) }}\n {{ adapter.commit() }}\n\n {{ return({'relations': [destination]}) }}\n{%- endmaterialization %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_hooks"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.609438}, "macro.dbt_bigquery.declare_dbt_max_partition": {"unique_id": "macro.dbt_bigquery.declare_dbt_max_partition", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/bigquery", "path": "macros/materializations/incremental.sql", "original_file_path": "macros/materializations/incremental.sql", "name": "declare_dbt_max_partition", "macro_sql": "{% macro declare_dbt_max_partition(relation, partition_by, sql) %}\n\n {% if '_dbt_max_partition' in sql %}\n\n declare _dbt_max_partition {{ partition_by.data_type }} default (\n select max({{ partition_by.field }}) from {{ this }}\n where {{ partition_by.field }} is not null\n );\n \n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.613108}, "macro.dbt_bigquery.dbt_bigquery_validate_get_incremental_strategy": {"unique_id": "macro.dbt_bigquery.dbt_bigquery_validate_get_incremental_strategy", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/bigquery", "path": "macros/materializations/incremental.sql", "original_file_path": "macros/materializations/incremental.sql", "name": "dbt_bigquery_validate_get_incremental_strategy", "macro_sql": "{% macro dbt_bigquery_validate_get_incremental_strategy(config) %}\n {#-- Find and validate the incremental strategy #}\n {%- set strategy = config.get(\"incremental_strategy\", default=\"merge\") -%}\n\n {% set invalid_strategy_msg -%}\n Invalid incremental strategy provided: {{ strategy }}\n Expected one of: 'merge', 'insert_overwrite'\n {%- endset %}\n {% if strategy not in ['merge', 'insert_overwrite'] %}\n {% do exceptions.raise_compiler_error(invalid_strategy_msg) %}\n {% endif %}\n\n {% do return(strategy) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.6141288}, "macro.dbt_bigquery.bq_insert_overwrite": {"unique_id": "macro.dbt_bigquery.bq_insert_overwrite", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/bigquery", "path": "macros/materializations/incremental.sql", "original_file_path": "macros/materializations/incremental.sql", "name": "bq_insert_overwrite", "macro_sql": "{% macro bq_insert_overwrite(\n tmp_relation, target_relation, sql, unique_key, partition_by, partitions, dest_columns, tmp_relation_exists\n) %}\n\n {% if partitions is not none and partitions != [] %} {# static #}\n\n {% set predicate -%}\n {{ partition_by.render(alias='DBT_INTERNAL_DEST') }} in (\n {{ partitions | join (', ') }}\n )\n {%- endset %}\n\n {%- set source_sql -%}\n (\n {{sql}}\n )\n {%- endset -%}\n\n {{ get_insert_overwrite_merge_sql(target_relation, source_sql, dest_columns, [predicate], include_sql_header=true) }}\n\n {% else %} {# dynamic #}\n\n {% set predicate -%}\n {{ partition_by.render(alias='DBT_INTERNAL_DEST') }} in unnest(dbt_partitions_for_replacement)\n {%- endset %}\n\n {%- set source_sql -%}\n (\n select * from {{ tmp_relation }}\n )\n {%- endset -%}\n\n -- generated script to merge partitions into {{ target_relation }}\n declare dbt_partitions_for_replacement array<{{ partition_by.data_type }}>;\n\n {# have we already created the temp table to check for schema changes? #}\n {% if not tmp_relation_exists %}\n {{ declare_dbt_max_partition(this, partition_by, sql) }}\n \n -- 1. create a temp table\n {{ create_table_as(True, tmp_relation, sql) }}\n {% else %}\n -- 1. temp table already exists, we used it to check for schema changes\n {% endif %}\n\n -- 2. define partitions to update\n set (dbt_partitions_for_replacement) = (\n select as struct\n array_agg(distinct {{ partition_by.render() }})\n from {{ tmp_relation }}\n );\n\n {#\n TODO: include_sql_header is a hack; consider a better approach that includes\n the sql_header at the materialization-level instead\n #}\n -- 3. run the merge statement\n {{ get_insert_overwrite_merge_sql(target_relation, source_sql, dest_columns, [predicate], include_sql_header=false) }};\n\n -- 4. clean up the temp table\n drop table if exists {{ tmp_relation }}\n\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_insert_overwrite_merge_sql", "macro.dbt_bigquery.declare_dbt_max_partition", "macro.dbt.create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.617064}, "macro.dbt_bigquery.bq_generate_incremental_build_sql": {"unique_id": "macro.dbt_bigquery.bq_generate_incremental_build_sql", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/bigquery", "path": "macros/materializations/incremental.sql", "original_file_path": "macros/materializations/incremental.sql", "name": "bq_generate_incremental_build_sql", "macro_sql": "{% macro bq_generate_incremental_build_sql(\n strategy, tmp_relation, target_relation, sql, unique_key, partition_by, partitions, dest_columns, tmp_relation_exists\n) %}\n {#-- if partitioned, use BQ scripting to get the range of partition values to be updated --#}\n {% if strategy == 'insert_overwrite' %}\n\n {% set missing_partition_msg -%}\n The 'insert_overwrite' strategy requires the `partition_by` config.\n {%- endset %}\n {% if partition_by is none %}\n {% do exceptions.raise_compiler_error(missing_partition_msg) %}\n {% endif %}\n\n {% set build_sql = bq_insert_overwrite(\n tmp_relation, target_relation, sql, unique_key, partition_by, partitions, dest_columns, on_schema_change\n ) %}\n\n {% else %} {# strategy == 'merge' #}\n {%- set source_sql -%}\n {%- if tmp_relation_exists -%}\n (\n select * from {{ tmp_relation }}\n )\n {%- else -%} {#-- wrap sql in parens to make it a subquery --#}\n (\n {{sql}}\n )\n {%- endif -%}\n {%- endset -%}\n\n {% set build_sql = get_merge_sql(target_relation, source_sql, unique_key, dest_columns) %}\n\n {% endif %}\n\n {{ return(build_sql) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bq_insert_overwrite", "macro.dbt.get_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.619037}, "macro.dbt_bigquery.materialization_incremental_bigquery": {"unique_id": "macro.dbt_bigquery.materialization_incremental_bigquery", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/bigquery", "path": "macros/materializations/incremental.sql", "original_file_path": "macros/materializations/incremental.sql", "name": "materialization_incremental_bigquery", "macro_sql": "{% materialization incremental, adapter='bigquery' -%}\n\n {%- set unique_key = config.get('unique_key') -%}\n {%- set full_refresh_mode = (should_full_refresh()) -%}\n\n {%- set target_relation = this %}\n {%- set existing_relation = load_relation(this) %}\n {%- set tmp_relation = make_temp_relation(this) %}\n\n {#-- Validate early so we don't run SQL if the strategy is invalid --#}\n {% set strategy = dbt_bigquery_validate_get_incremental_strategy(config) -%}\n\n {%- set raw_partition_by = config.get('partition_by', none) -%}\n {%- set partition_by = adapter.parse_partition_by(raw_partition_by) -%}\n {%- set partitions = config.get('partitions', none) -%}\n {%- set cluster_by = config.get('cluster_by', none) -%}\n\n {% set on_schema_change = incremental_validate_on_schema_change(config.get('on_schema_change'), default='ignore') %}\n\n {{ run_hooks(pre_hooks) }}\n\n {% if existing_relation is none %}\n {% set build_sql = create_table_as(False, target_relation, sql) %}\n \n {% elif existing_relation.is_view %}\n {#-- There's no way to atomically replace a view with a table on BQ --#}\n {{ adapter.drop_relation(existing_relation) }}\n {% set build_sql = create_table_as(False, target_relation, sql) %}\n \n {% elif full_refresh_mode %}\n {#-- If the partition/cluster config has changed, then we must drop and recreate --#}\n {% if not adapter.is_replaceable(existing_relation, partition_by, cluster_by) %}\n {% do log(\"Hard refreshing \" ~ existing_relation ~ \" because it is not replaceable\") %}\n {{ adapter.drop_relation(existing_relation) }}\n {% endif %}\n {% set build_sql = create_table_as(False, target_relation, sql) %}\n \n {% else %}\n {% set tmp_relation_exists = false %}\n {% if on_schema_change != 'ignore' %} {# Check first, since otherwise we may not build a temp table #}\n {% do run_query(\n declare_dbt_max_partition(this, partition_by, sql) + create_table_as(True, tmp_relation, sql)\n ) %}\n {% set tmp_relation_exists = true %}\n {#-- Process schema changes. Returns dict of changes if successful. Use source columns for upserting/merging --#}\n {% set dest_columns = process_schema_changes(on_schema_change, tmp_relation, existing_relation) %}\n {% endif %}\n {% if not dest_columns %}\n {% set dest_columns = adapter.get_columns_in_relation(existing_relation) %}\n {% endif %}\n {% set build_sql = bq_generate_incremental_build_sql(\n strategy, tmp_relation, target_relation, sql, unique_key, partition_by, partitions, dest_columns, tmp_relation_exists\n ) %}\n\n {% endif %}\n\n {%- call statement('main') -%}\n {{ build_sql }}\n {% endcall %}\n\n {{ run_hooks(post_hooks) }}\n\n {% set target_relation = this.incorporate(type='table') %}\n\n {% do persist_docs(target_relation, model) %}\n\n {{ return({'relations': [target_relation]}) }}\n\n{%- endmaterialization %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.should_full_refresh", "macro.dbt.load_relation", "macro.dbt.make_temp_relation", "macro.dbt_bigquery.dbt_bigquery_validate_get_incremental_strategy", "macro.dbt.incremental_validate_on_schema_change", "macro.dbt.run_hooks", "macro.dbt.create_table_as", "macro.dbt.run_query", "macro.dbt_bigquery.declare_dbt_max_partition", "macro.dbt.process_schema_changes", "macro.dbt_bigquery.bq_generate_incremental_build_sql", "macro.dbt.statement", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.6248078}, "macro.dbt_bigquery.bigquery__snapshot_hash_arguments": {"unique_id": "macro.dbt_bigquery.bigquery__snapshot_hash_arguments", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/bigquery", "path": "macros/materializations/snapshot.sql", "original_file_path": "macros/materializations/snapshot.sql", "name": "bigquery__snapshot_hash_arguments", "macro_sql": "{% macro bigquery__snapshot_hash_arguments(args) -%}\n to_hex(md5(concat({%- for arg in args -%}\n coalesce(cast({{ arg }} as string), ''){% if not loop.last %}, '|',{% endif -%}\n {%- endfor -%}\n )))\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.625799}, "macro.dbt_bigquery.bigquery__create_columns": {"unique_id": "macro.dbt_bigquery.bigquery__create_columns", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/bigquery", "path": "macros/materializations/snapshot.sql", "original_file_path": "macros/materializations/snapshot.sql", "name": "bigquery__create_columns", "macro_sql": "{% macro bigquery__create_columns(relation, columns) %}\n {{ adapter.alter_table_add_columns(relation, columns) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.626163}, "macro.dbt_bigquery.bigquery__post_snapshot": {"unique_id": "macro.dbt_bigquery.bigquery__post_snapshot", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/bigquery", "path": "macros/materializations/snapshot.sql", "original_file_path": "macros/materializations/snapshot.sql", "name": "bigquery__post_snapshot", "macro_sql": "{% macro bigquery__post_snapshot(staging_relation) %}\n -- Clean up the snapshot temp table\n {% do drop_relation(staging_relation) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.drop_relation"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.62654}, "macro.dbt.run_hooks": {"unique_id": "macro.dbt.run_hooks", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "name": "run_hooks", "macro_sql": "{% macro run_hooks(hooks, inside_transaction=True) %}\n {% for hook in hooks | selectattr('transaction', 'equalto', inside_transaction) %}\n {% if not inside_transaction and loop.first %}\n {% call statement(auto_begin=inside_transaction) %}\n commit;\n {% endcall %}\n {% endif %}\n {% set rendered = render(hook.get('sql')) | trim %}\n {% if (rendered | length) > 0 %}\n {% call statement(auto_begin=inside_transaction) %}\n {{ rendered }}\n {% endcall %}\n {% endif %}\n {% endfor %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.628939}, "macro.dbt.make_hook_config": {"unique_id": "macro.dbt.make_hook_config", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "name": "make_hook_config", "macro_sql": "{% macro make_hook_config(sql, inside_transaction) %}\n {{ tojson({\"sql\": sql, \"transaction\": inside_transaction}) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.629389}, "macro.dbt.before_begin": {"unique_id": "macro.dbt.before_begin", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "name": "before_begin", "macro_sql": "{% macro before_begin(sql) %}\n {{ make_hook_config(sql, inside_transaction=False) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.6297321}, "macro.dbt.in_transaction": {"unique_id": "macro.dbt.in_transaction", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "name": "in_transaction", "macro_sql": "{% macro in_transaction(sql) %}\n {{ make_hook_config(sql, inside_transaction=True) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.630066}, "macro.dbt.after_commit": {"unique_id": "macro.dbt.after_commit", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "name": "after_commit", "macro_sql": "{% macro after_commit(sql) %}\n {{ make_hook_config(sql, inside_transaction=False) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.6303968}, "macro.dbt.set_sql_header": {"unique_id": "macro.dbt.set_sql_header", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "name": "set_sql_header", "macro_sql": "{% macro set_sql_header(config) -%}\n {{ config.set('sql_header', caller()) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.63126}, "macro.dbt.should_full_refresh": {"unique_id": "macro.dbt.should_full_refresh", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "name": "should_full_refresh", "macro_sql": "{% macro should_full_refresh() %}\n {% set config_full_refresh = config.get('full_refresh') %}\n {% if config_full_refresh is none %}\n {% set config_full_refresh = flags.FULL_REFRESH %}\n {% endif %}\n {% do return(config_full_refresh) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.63202}, "macro.dbt.should_store_failures": {"unique_id": "macro.dbt.should_store_failures", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "name": "should_store_failures", "macro_sql": "{% macro should_store_failures() %}\n {% set config_store_failures = config.get('store_failures') %}\n {% if config_store_failures is none %}\n {% set config_store_failures = flags.STORE_FAILURES %}\n {% endif %}\n {% do return(config_store_failures) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.632716}, "macro.dbt.snapshot_merge_sql": {"unique_id": "macro.dbt.snapshot_merge_sql", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshots/snapshot_merge.sql", "name": "snapshot_merge_sql", "macro_sql": "{% macro snapshot_merge_sql(target, source, insert_cols) -%}\n {{ adapter.dispatch('snapshot_merge_sql', 'dbt')(target, source, insert_cols) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__snapshot_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.6337001}, "macro.dbt.default__snapshot_merge_sql": {"unique_id": "macro.dbt.default__snapshot_merge_sql", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshots/snapshot_merge.sql", "name": "default__snapshot_merge_sql", "macro_sql": "{% macro default__snapshot_merge_sql(target, source, insert_cols) -%}\n {%- set insert_cols_csv = insert_cols | join(', ') -%}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on DBT_INTERNAL_SOURCE.dbt_scd_id = DBT_INTERNAL_DEST.dbt_scd_id\n\n when matched\n and DBT_INTERNAL_DEST.dbt_valid_to is null\n and DBT_INTERNAL_SOURCE.dbt_change_type in ('update', 'delete')\n then update\n set dbt_valid_to = DBT_INTERNAL_SOURCE.dbt_valid_to\n\n when not matched\n and DBT_INTERNAL_SOURCE.dbt_change_type = 'insert'\n then insert ({{ insert_cols_csv }})\n values ({{ insert_cols_csv }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.634311}, "macro.dbt.strategy_dispatch": {"unique_id": "macro.dbt.strategy_dispatch", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "strategy_dispatch", "macro_sql": "{% macro strategy_dispatch(name) -%}\n{% set original_name = name %}\n {% if '.' in name %}\n {% set package_name, name = name.split(\".\", 1) %}\n {% else %}\n {% set package_name = none %}\n {% endif %}\n\n {% if package_name is none %}\n {% set package_context = context %}\n {% elif package_name in context %}\n {% set package_context = context[package_name] %}\n {% else %}\n {% set error_msg %}\n Could not find package '{{package_name}}', called with '{{original_name}}'\n {% endset %}\n {{ exceptions.raise_compiler_error(error_msg | trim) }}\n {% endif %}\n\n {%- set search_name = 'snapshot_' ~ name ~ '_strategy' -%}\n\n {% if search_name not in package_context %}\n {% set error_msg %}\n The specified strategy macro '{{name}}' was not found in package '{{ package_name }}'\n {% endset %}\n {{ exceptions.raise_compiler_error(error_msg | trim) }}\n {% endif %}\n {{ return(package_context[search_name]) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.64033}, "macro.dbt.snapshot_hash_arguments": {"unique_id": "macro.dbt.snapshot_hash_arguments", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "snapshot_hash_arguments", "macro_sql": "{% macro snapshot_hash_arguments(args) -%}\n {{ adapter.dispatch('snapshot_hash_arguments', 'dbt')(args) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.640697}, "macro.dbt.default__snapshot_hash_arguments": {"unique_id": "macro.dbt.default__snapshot_hash_arguments", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "default__snapshot_hash_arguments", "macro_sql": "{% macro default__snapshot_hash_arguments(args) -%}\n md5({%- for arg in args -%}\n coalesce(cast({{ arg }} as varchar ), '')\n {% if not loop.last %} || '|' || {% endif %}\n {%- endfor -%})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.641193}, "macro.dbt.snapshot_get_time": {"unique_id": "macro.dbt.snapshot_get_time", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "snapshot_get_time", "macro_sql": "{% macro snapshot_get_time() -%}\n {{ adapter.dispatch('snapshot_get_time', 'dbt')() }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__snapshot_get_time"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.6415129}, "macro.dbt.default__snapshot_get_time": {"unique_id": "macro.dbt.default__snapshot_get_time", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "default__snapshot_get_time", "macro_sql": "{% macro default__snapshot_get_time() -%}\n {{ current_timestamp() }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.641731}, "macro.dbt.snapshot_timestamp_strategy": {"unique_id": "macro.dbt.snapshot_timestamp_strategy", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "snapshot_timestamp_strategy", "macro_sql": "{% macro snapshot_timestamp_strategy(node, snapshotted_rel, current_rel, config, target_exists) %}\n {% set primary_key = config['unique_key'] %}\n {% set updated_at = config['updated_at'] %}\n {% set invalidate_hard_deletes = config.get('invalidate_hard_deletes', false) %}\n\n {#/*\n The snapshot relation might not have an {{ updated_at }} value if the\n snapshot strategy is changed from `check` to `timestamp`. We\n should use a dbt-created column for the comparison in the snapshot\n table instead of assuming that the user-supplied {{ updated_at }}\n will be present in the historical data.\n\n See https://github.com/dbt-labs/dbt-core/issues/2350\n */ #}\n {% set row_changed_expr -%}\n ({{ snapshotted_rel }}.dbt_valid_from < {{ current_rel }}.{{ updated_at }})\n {%- endset %}\n\n {% set scd_id_expr = snapshot_hash_arguments([primary_key, updated_at]) %}\n\n {% do return({\n \"unique_key\": primary_key,\n \"updated_at\": updated_at,\n \"row_changed\": row_changed_expr,\n \"scd_id\": scd_id_expr,\n \"invalidate_hard_deletes\": invalidate_hard_deletes\n }) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.643967}, "macro.dbt.snapshot_string_as_time": {"unique_id": "macro.dbt.snapshot_string_as_time", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "snapshot_string_as_time", "macro_sql": "{% macro snapshot_string_as_time(timestamp) -%}\n {{ adapter.dispatch('snapshot_string_as_time', 'dbt')(timestamp) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__snapshot_string_as_time"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.644435}, "macro.dbt.default__snapshot_string_as_time": {"unique_id": "macro.dbt.default__snapshot_string_as_time", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "default__snapshot_string_as_time", "macro_sql": "{% macro default__snapshot_string_as_time(timestamp) %}\n {% do exceptions.raise_not_implemented(\n 'snapshot_string_as_time macro not implemented for adapter '+adapter.type()\n ) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.64481}, "macro.dbt.snapshot_check_all_get_existing_columns": {"unique_id": "macro.dbt.snapshot_check_all_get_existing_columns", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "snapshot_check_all_get_existing_columns", "macro_sql": "{% macro snapshot_check_all_get_existing_columns(node, target_exists) -%}\n {%- set query_columns = get_columns_in_query(node['compiled_sql']) -%}\n {%- if not target_exists -%}\n {# no table yet -> return whatever the query does #}\n {{ return([false, query_columns]) }}\n {%- endif -%}\n {# handle any schema changes #}\n {%- set target_table = node.get('alias', node.get('name')) -%}\n {%- set target_relation = adapter.get_relation(database=node.database, schema=node.schema, identifier=target_table) -%}\n {%- set existing_cols = get_columns_in_query('select * from ' ~ target_relation) -%}\n {%- set ns = namespace() -%} {# handle for-loop scoping with a namespace #}\n {%- set ns.column_added = false -%}\n\n {%- set intersection = [] -%}\n {%- for col in query_columns -%}\n {%- if col in existing_cols -%}\n {%- do intersection.append(col) -%}\n {%- else -%}\n {% set ns.column_added = true %}\n {%- endif -%}\n {%- endfor -%}\n {{ return([ns.column_added, intersection]) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_columns_in_query"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.6471171}, "macro.dbt.snapshot_check_strategy": {"unique_id": "macro.dbt.snapshot_check_strategy", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "snapshot_check_strategy", "macro_sql": "{% macro snapshot_check_strategy(node, snapshotted_rel, current_rel, config, target_exists) %}\n {% set check_cols_config = config['check_cols'] %}\n {% set primary_key = config['unique_key'] %}\n {% set invalidate_hard_deletes = config.get('invalidate_hard_deletes', false) %}\n \n {% set select_current_time -%}\n select {{ snapshot_get_time() }} as snapshot_start\n {%- endset %}\n\n {#-- don't access the column by name, to avoid dealing with casing issues on snowflake #}\n {%- set now = run_query(select_current_time)[0][0] -%}\n {% if now is none or now is undefined -%}\n {%- do exceptions.raise_compiler_error('Could not get a snapshot start time from the database') -%}\n {%- endif %}\n {% set updated_at = config.get('updated_at', snapshot_string_as_time(now)) %}\n\n {% set column_added = false %}\n\n {% if check_cols_config == 'all' %}\n {% set column_added, check_cols = snapshot_check_all_get_existing_columns(node, target_exists) %}\n {% elif check_cols_config is iterable and (check_cols_config | length) > 0 %}\n {% set check_cols = check_cols_config %}\n {% else %}\n {% do exceptions.raise_compiler_error(\"Invalid value for 'check_cols': \" ~ check_cols_config) %}\n {% endif %}\n\n {%- set row_changed_expr -%}\n (\n {%- if column_added -%}\n TRUE\n {%- else -%}\n {%- for col in check_cols -%}\n {{ snapshotted_rel }}.{{ col }} != {{ current_rel }}.{{ col }}\n or\n (\n (({{ snapshotted_rel }}.{{ col }} is null) and not ({{ current_rel }}.{{ col }} is null))\n or\n ((not {{ snapshotted_rel }}.{{ col }} is null) and ({{ current_rel }}.{{ col }} is null))\n )\n {%- if not loop.last %} or {% endif -%}\n {%- endfor -%}\n {%- endif -%}\n )\n {%- endset %}\n\n {% set scd_id_expr = snapshot_hash_arguments([primary_key, updated_at]) %}\n\n {% do return({\n \"unique_key\": primary_key,\n \"updated_at\": updated_at,\n \"row_changed\": row_changed_expr,\n \"scd_id\": scd_id_expr,\n \"invalidate_hard_deletes\": invalidate_hard_deletes\n }) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.snapshot_get_time", "macro.dbt.run_query", "macro.dbt.snapshot_string_as_time", "macro.dbt.snapshot_check_all_get_existing_columns", "macro.dbt.snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.651221}, "macro.dbt.create_columns": {"unique_id": "macro.dbt.create_columns", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "create_columns", "macro_sql": "{% macro create_columns(relation, columns) %}\n {{ adapter.dispatch('create_columns', 'dbt')(relation, columns) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__create_columns"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.6563141}, "macro.dbt.default__create_columns": {"unique_id": "macro.dbt.default__create_columns", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "default__create_columns", "macro_sql": "{% macro default__create_columns(relation, columns) %}\n {% for column in columns %}\n {% call statement() %}\n alter table {{ relation }} add column \"{{ column.name }}\" {{ column.data_type }};\n {% endcall %}\n {% endfor %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.656943}, "macro.dbt.post_snapshot": {"unique_id": "macro.dbt.post_snapshot", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "post_snapshot", "macro_sql": "{% macro post_snapshot(staging_relation) %}\n {{ adapter.dispatch('post_snapshot', 'dbt')(staging_relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__post_snapshot"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.657315}, "macro.dbt.default__post_snapshot": {"unique_id": "macro.dbt.default__post_snapshot", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "default__post_snapshot", "macro_sql": "{% macro default__post_snapshot(staging_relation) %}\n {# no-op #}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.657517}, "macro.dbt.snapshot_staging_table": {"unique_id": "macro.dbt.snapshot_staging_table", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "snapshot_staging_table", "macro_sql": "{% macro snapshot_staging_table(strategy, source_sql, target_relation) -%}\n {{ adapter.dispatch('snapshot_staging_table', 'dbt')(strategy, source_sql, target_relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__snapshot_staging_table"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.657974}, "macro.dbt.default__snapshot_staging_table": {"unique_id": "macro.dbt.default__snapshot_staging_table", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "default__snapshot_staging_table", "macro_sql": "{% macro default__snapshot_staging_table(strategy, source_sql, target_relation) -%}\n\n with snapshot_query as (\n\n {{ source_sql }}\n\n ),\n\n snapshotted_data as (\n\n select *,\n {{ strategy.unique_key }} as dbt_unique_key\n\n from {{ target_relation }}\n where dbt_valid_to is null\n\n ),\n\n insertions_source_data as (\n\n select\n *,\n {{ strategy.unique_key }} as dbt_unique_key,\n {{ strategy.updated_at }} as dbt_updated_at,\n {{ strategy.updated_at }} as dbt_valid_from,\n nullif({{ strategy.updated_at }}, {{ strategy.updated_at }}) as dbt_valid_to,\n {{ strategy.scd_id }} as dbt_scd_id\n\n from snapshot_query\n ),\n\n updates_source_data as (\n\n select\n *,\n {{ strategy.unique_key }} as dbt_unique_key,\n {{ strategy.updated_at }} as dbt_updated_at,\n {{ strategy.updated_at }} as dbt_valid_from,\n {{ strategy.updated_at }} as dbt_valid_to\n\n from snapshot_query\n ),\n\n {%- if strategy.invalidate_hard_deletes %}\n\n deletes_source_data as (\n\n select \n *,\n {{ strategy.unique_key }} as dbt_unique_key\n from snapshot_query\n ),\n {% endif %}\n\n insertions as (\n\n select\n 'insert' as dbt_change_type,\n source_data.*\n\n from insertions_source_data as source_data\n left outer join snapshotted_data on snapshotted_data.dbt_unique_key = source_data.dbt_unique_key\n where snapshotted_data.dbt_unique_key is null\n or (\n snapshotted_data.dbt_unique_key is not null\n and (\n {{ strategy.row_changed }}\n )\n )\n\n ),\n\n updates as (\n\n select\n 'update' as dbt_change_type,\n source_data.*,\n snapshotted_data.dbt_scd_id\n\n from updates_source_data as source_data\n join snapshotted_data on snapshotted_data.dbt_unique_key = source_data.dbt_unique_key\n where (\n {{ strategy.row_changed }}\n )\n )\n\n {%- if strategy.invalidate_hard_deletes -%}\n ,\n\n deletes as (\n \n select\n 'delete' as dbt_change_type,\n source_data.*,\n {{ snapshot_get_time() }} as dbt_valid_from,\n {{ snapshot_get_time() }} as dbt_updated_at,\n {{ snapshot_get_time() }} as dbt_valid_to,\n snapshotted_data.dbt_scd_id\n \n from snapshotted_data\n left join deletes_source_data as source_data on snapshotted_data.dbt_unique_key = source_data.dbt_unique_key\n where source_data.dbt_unique_key is null\n )\n {%- endif %}\n\n select * from insertions\n union all\n select * from updates\n {%- if strategy.invalidate_hard_deletes %}\n union all\n select * from deletes\n {%- endif %}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.snapshot_get_time"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.659841}, "macro.dbt.build_snapshot_table": {"unique_id": "macro.dbt.build_snapshot_table", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "build_snapshot_table", "macro_sql": "{% macro build_snapshot_table(strategy, sql) -%}\n {{ adapter.dispatch('build_snapshot_table', 'dbt')(strategy, sql) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__build_snapshot_table"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.660255}, "macro.dbt.default__build_snapshot_table": {"unique_id": "macro.dbt.default__build_snapshot_table", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "default__build_snapshot_table", "macro_sql": "{% macro default__build_snapshot_table(strategy, sql) %}\n\n select *,\n {{ strategy.scd_id }} as dbt_scd_id,\n {{ strategy.updated_at }} as dbt_updated_at,\n {{ strategy.updated_at }} as dbt_valid_from,\n nullif({{ strategy.updated_at }}, {{ strategy.updated_at }}) as dbt_valid_to\n from (\n {{ sql }}\n ) sbq\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.660815}, "macro.dbt.build_snapshot_staging_table": {"unique_id": "macro.dbt.build_snapshot_staging_table", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "build_snapshot_staging_table", "macro_sql": "{% macro build_snapshot_staging_table(strategy, sql, target_relation) %}\n {% set tmp_relation = make_temp_relation(target_relation) %}\n\n {% set select = snapshot_staging_table(strategy, sql, target_relation) %}\n\n {% call statement('build_snapshot_staging_relation') %}\n {{ create_table_as(True, tmp_relation, select) }}\n {% endcall %}\n\n {% do return(tmp_relation) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.make_temp_relation", "macro.dbt.snapshot_staging_table", "macro.dbt.statement", "macro.dbt.create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.661761}, "macro.dbt.materialization_snapshot_default": {"unique_id": "macro.dbt.materialization_snapshot_default", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/snapshot.sql", "original_file_path": "macros/materializations/snapshots/snapshot.sql", "name": "materialization_snapshot_default", "macro_sql": "{% materialization snapshot, default %}\n {%- set config = model['config'] -%}\n\n {%- set target_table = model.get('alias', model.get('name')) -%}\n\n {%- set strategy_name = config.get('strategy') -%}\n {%- set unique_key = config.get('unique_key') %}\n\n {% if not adapter.check_schema_exists(model.database, model.schema) %}\n {% do create_schema(model.database, model.schema) %}\n {% endif %}\n\n {% set target_relation_exists, target_relation = get_or_create_relation(\n database=model.database,\n schema=model.schema,\n identifier=target_table,\n type='table') -%}\n\n {%- if not target_relation.is_table -%}\n {% do exceptions.relation_wrong_type(target_relation, 'table') %}\n {%- endif -%}\n\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n {% set strategy_macro = strategy_dispatch(strategy_name) %}\n {% set strategy = strategy_macro(model, \"snapshotted_data\", \"source_data\", config, target_relation_exists) %}\n\n {% if not target_relation_exists %}\n\n {% set build_sql = build_snapshot_table(strategy, model['compiled_sql']) %}\n {% set final_sql = create_table_as(False, target_relation, build_sql) %}\n\n {% else %}\n\n {{ adapter.valid_snapshot_target(target_relation) }}\n\n {% set staging_table = build_snapshot_staging_table(strategy, sql, target_relation) %}\n\n -- this may no-op if the database does not require column expansion\n {% do adapter.expand_target_column_types(from_relation=staging_table,\n to_relation=target_relation) %}\n\n {% set missing_columns = adapter.get_missing_columns(staging_table, target_relation)\n | rejectattr('name', 'equalto', 'dbt_change_type')\n | rejectattr('name', 'equalto', 'DBT_CHANGE_TYPE')\n | rejectattr('name', 'equalto', 'dbt_unique_key')\n | rejectattr('name', 'equalto', 'DBT_UNIQUE_KEY')\n | list %}\n\n {% do create_columns(target_relation, missing_columns) %}\n\n {% set source_columns = adapter.get_columns_in_relation(staging_table)\n | rejectattr('name', 'equalto', 'dbt_change_type')\n | rejectattr('name', 'equalto', 'DBT_CHANGE_TYPE')\n | rejectattr('name', 'equalto', 'dbt_unique_key')\n | rejectattr('name', 'equalto', 'DBT_UNIQUE_KEY')\n | list %}\n\n {% set quoted_source_columns = [] %}\n {% for column in source_columns %}\n {% do quoted_source_columns.append(adapter.quote(column.name)) %}\n {% endfor %}\n\n {% set final_sql = snapshot_merge_sql(\n target = target_relation,\n source = staging_table,\n insert_cols = quoted_source_columns\n )\n %}\n\n {% endif %}\n\n {% call statement('main') %}\n {{ final_sql }}\n {% endcall %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if not target_relation_exists %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {{ adapter.commit() }}\n\n {% if staging_table is defined %}\n {% do post_snapshot(staging_table) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.create_schema", "macro.dbt.get_or_create_relation", "macro.dbt.run_hooks", "macro.dbt.strategy_dispatch", "macro.dbt.build_snapshot_table", "macro.dbt.create_table_as", "macro.dbt.build_snapshot_staging_table", "macro.dbt.create_columns", "macro.dbt.snapshot_merge_sql", "macro.dbt.statement", "macro.dbt.persist_docs", "macro.dbt.create_indexes", "macro.dbt.post_snapshot"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.6736152}, "macro.dbt.materialization_test_default": {"unique_id": "macro.dbt.materialization_test_default", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/materializations/tests/test.sql", "original_file_path": "macros/materializations/tests/test.sql", "name": "materialization_test_default", "macro_sql": "{%- materialization test, default -%}\n\n {% set relations = [] %}\n\n {% if should_store_failures() %}\n\n {% set identifier = model['alias'] %}\n {% set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) %}\n {% set target_relation = api.Relation.create(\n identifier=identifier, schema=schema, database=database, type='table') -%} %}\n \n {% if old_relation %}\n {% do adapter.drop_relation(old_relation) %}\n {% endif %}\n \n {% call statement(auto_begin=True) %}\n {{ create_table_as(False, target_relation, sql) }}\n {% endcall %}\n \n {% do relations.append(target_relation) %}\n \n {% set main_sql %}\n select *\n from {{ target_relation }}\n {% endset %}\n \n {{ adapter.commit() }}\n \n {% else %}\n\n {% set main_sql = sql %}\n \n {% endif %}\n\n {% set limit = config.get('limit') %}\n {% set fail_calc = config.get('fail_calc') %}\n {% set warn_if = config.get('warn_if') %}\n {% set error_if = config.get('error_if') %}\n\n {% call statement('main', fetch_result=True) -%}\n\n {{ get_test_sql(main_sql, fail_calc, warn_if, error_if, limit)}}\n\n {%- endcall %}\n \n {{ return({'relations': relations}) }}\n\n{%- endmaterialization -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.should_store_failures", "macro.dbt.statement", "macro.dbt.create_table_as", "macro.dbt.get_test_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.678815}, "macro.dbt.get_test_sql": {"unique_id": "macro.dbt.get_test_sql", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/materializations/tests/helpers.sql", "original_file_path": "macros/materializations/tests/helpers.sql", "name": "get_test_sql", "macro_sql": "{% macro get_test_sql(main_sql, fail_calc, warn_if, error_if, limit) -%}\n {{ adapter.dispatch('get_test_sql', 'dbt')(main_sql, fail_calc, warn_if, error_if, limit) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_test_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.679856}, "macro.dbt.default__get_test_sql": {"unique_id": "macro.dbt.default__get_test_sql", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/materializations/tests/helpers.sql", "original_file_path": "macros/materializations/tests/helpers.sql", "name": "default__get_test_sql", "macro_sql": "{% macro default__get_test_sql(main_sql, fail_calc, warn_if, error_if, limit) -%}\n select\n {{ fail_calc }} as failures,\n {{ fail_calc }} {{ warn_if }} as should_warn,\n {{ fail_calc }} {{ error_if }} as should_error\n from (\n {{ main_sql }}\n {{ \"limit \" ~ limit if limit != none }}\n ) dbt_internal_test\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.6805382}, "macro.dbt.get_where_subquery": {"unique_id": "macro.dbt.get_where_subquery", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/materializations/tests/where_subquery.sql", "original_file_path": "macros/materializations/tests/where_subquery.sql", "name": "get_where_subquery", "macro_sql": "{% macro get_where_subquery(relation) -%}\n {% do return(adapter.dispatch('get_where_subquery', 'dbt')(relation)) %}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_where_subquery"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.68137}, "macro.dbt.default__get_where_subquery": {"unique_id": "macro.dbt.default__get_where_subquery", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/materializations/tests/where_subquery.sql", "original_file_path": "macros/materializations/tests/where_subquery.sql", "name": "default__get_where_subquery", "macro_sql": "{% macro default__get_where_subquery(relation) -%}\n {% set where = config.get('where', '') %}\n {% if where %}\n {%- set filtered -%}\n (select * from {{ relation }} where {{ where }}) dbt_subquery\n {%- endset -%}\n {% do return(filtered) %}\n {%- else -%}\n {% do return(relation) %}\n {%- endif -%}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.682358}, "macro.dbt.get_quoted_csv": {"unique_id": "macro.dbt.get_quoted_csv", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "name": "get_quoted_csv", "macro_sql": "{% macro get_quoted_csv(column_names) %}\n \n {% set quoted = [] %}\n {% for col in column_names -%}\n {%- do quoted.append(adapter.quote(col)) -%}\n {%- endfor %}\n\n {%- set dest_cols_csv = quoted | join(', ') -%}\n {{ return(dest_cols_csv) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.684181}, "macro.dbt.diff_columns": {"unique_id": "macro.dbt.diff_columns", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "name": "diff_columns", "macro_sql": "{% macro diff_columns(source_columns, target_columns) %}\n\n {% set result = [] %}\n {% set source_names = source_columns | map(attribute = 'column') | list %}\n {% set target_names = target_columns | map(attribute = 'column') | list %}\n \n {# --check whether the name attribute exists in the target - this does not perform a data type check #}\n {% for sc in source_columns %}\n {% if sc.name not in target_names %}\n {{ result.append(sc) }}\n {% endif %}\n {% endfor %}\n \n {{ return(result) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.685366}, "macro.dbt.diff_column_data_types": {"unique_id": "macro.dbt.diff_column_data_types", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "name": "diff_column_data_types", "macro_sql": "{% macro diff_column_data_types(source_columns, target_columns) %}\n \n {% set result = [] %}\n {% for sc in source_columns %}\n {% set tc = target_columns | selectattr(\"name\", \"equalto\", sc.name) | list | first %}\n {% if tc %}\n {% if sc.data_type != tc.data_type %}\n {{ result.append( { 'column_name': tc.name, 'new_type': sc.data_type } ) }} \n {% endif %}\n {% endif %}\n {% endfor %}\n\n {{ return(result) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.686687}, "macro.dbt.get_merge_sql": {"unique_id": "macro.dbt.get_merge_sql", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "name": "get_merge_sql", "macro_sql": "{% macro get_merge_sql(target, source, unique_key, dest_columns, predicates=none) -%}\n {{ adapter.dispatch('get_merge_sql', 'dbt')(target, source, unique_key, dest_columns, predicates) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.691818}, "macro.dbt.default__get_merge_sql": {"unique_id": "macro.dbt.default__get_merge_sql", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "name": "default__get_merge_sql", "macro_sql": "{% macro default__get_merge_sql(target, source, unique_key, dest_columns, predicates) -%}\n {%- set predicates = [] if predicates is none else [] + predicates -%}\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n {%- set update_columns = config.get('merge_update_columns', default = dest_columns | map(attribute=\"quoted\") | list) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {% if unique_key %}\n {% set unique_key_match %}\n DBT_INTERNAL_SOURCE.{{ unique_key }} = DBT_INTERNAL_DEST.{{ unique_key }}\n {% endset %}\n {% do predicates.append(unique_key_match) %}\n {% else %}\n {% do predicates.append('FALSE') %}\n {% endif %}\n\n {{ sql_header if sql_header is not none }}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on {{ predicates | join(' and ') }}\n\n {% if unique_key %}\n when matched then update set\n {% for column_name in update_columns -%}\n {{ column_name }} = DBT_INTERNAL_SOURCE.{{ column_name }}\n {%- if not loop.last %}, {%- endif %}\n {%- endfor %}\n {% endif %}\n\n when not matched then insert\n ({{ dest_cols_csv }})\n values\n ({{ dest_cols_csv }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.694349}, "macro.dbt.get_delete_insert_merge_sql": {"unique_id": "macro.dbt.get_delete_insert_merge_sql", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "name": "get_delete_insert_merge_sql", "macro_sql": "{% macro get_delete_insert_merge_sql(target, source, unique_key, dest_columns) -%}\n {{ adapter.dispatch('get_delete_insert_merge_sql', 'dbt')(target, source, unique_key, dest_columns) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_delete_insert_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.694857}, "macro.dbt.default__get_delete_insert_merge_sql": {"unique_id": "macro.dbt.default__get_delete_insert_merge_sql", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "name": "default__get_delete_insert_merge_sql", "macro_sql": "{% macro default__get_delete_insert_merge_sql(target, source, unique_key, dest_columns) -%}\n\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n\n {% if unique_key is not none %}\n delete from {{ target }}\n where ({{ unique_key }}) in (\n select ({{ unique_key }})\n from {{ source }}\n );\n {% endif %}\n\n insert into {{ target }} ({{ dest_cols_csv }})\n (\n select {{ dest_cols_csv }}\n from {{ source }}\n )\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.695785}, "macro.dbt.get_insert_overwrite_merge_sql": {"unique_id": "macro.dbt.get_insert_overwrite_merge_sql", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "name": "get_insert_overwrite_merge_sql", "macro_sql": "{% macro get_insert_overwrite_merge_sql(target, source, dest_columns, predicates, include_sql_header=false) -%}\n {{ adapter.dispatch('get_insert_overwrite_merge_sql', 'dbt')(target, source, dest_columns, predicates, include_sql_header) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_insert_overwrite_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.6963542}, "macro.dbt.default__get_insert_overwrite_merge_sql": {"unique_id": "macro.dbt.default__get_insert_overwrite_merge_sql", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "name": "default__get_insert_overwrite_merge_sql", "macro_sql": "{% macro default__get_insert_overwrite_merge_sql(target, source, dest_columns, predicates, include_sql_header) -%}\n {%- set predicates = [] if predicates is none else [] + predicates -%}\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none and include_sql_header }}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on FALSE\n\n when not matched by source\n {% if predicates %} and {{ predicates | join(' and ') }} {% endif %}\n then delete\n\n when not matched then insert\n ({{ dest_cols_csv }})\n values\n ({{ dest_cols_csv }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.697699}, "macro.dbt.is_incremental": {"unique_id": "macro.dbt.is_incremental", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/is_incremental.sql", "original_file_path": "macros/materializations/models/incremental/is_incremental.sql", "name": "is_incremental", "macro_sql": "{% macro is_incremental() %}\n {#-- do not run introspective queries in parsing #}\n {% if not execute %}\n {{ return(False) }}\n {% else %}\n {% set relation = adapter.get_relation(this.database, this.schema, this.table) %}\n {{ return(relation is not none\n and relation.type == 'table'\n and model.config.materialized == 'incremental'\n and not should_full_refresh()) }}\n {% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.should_full_refresh"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.6992068}, "macro.dbt.materialization_incremental_default": {"unique_id": "macro.dbt.materialization_incremental_default", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/incremental.sql", "original_file_path": "macros/materializations/models/incremental/incremental.sql", "name": "materialization_incremental_default", "macro_sql": "{% materialization incremental, default -%}\n\n {% set unique_key = config.get('unique_key') %}\n\n {% set target_relation = this.incorporate(type='table') %}\n {% set existing_relation = load_relation(this) %}\n {% set tmp_relation = make_temp_relation(target_relation) %}\n {%- set full_refresh_mode = (should_full_refresh()) -%}\n\n {% set on_schema_change = incremental_validate_on_schema_change(config.get('on_schema_change'), default='ignore') %}\n\n {% set tmp_identifier = model['name'] + '__dbt_tmp' %}\n {% set backup_identifier = model['name'] + \"__dbt_backup\" %}\n\n -- the intermediate_ and backup_ relations should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation. This has to happen before\n -- BEGIN, in a separate transaction\n {% set preexisting_intermediate_relation = adapter.get_relation(identifier=tmp_identifier, \n schema=schema,\n database=database) %} \n {% set preexisting_backup_relation = adapter.get_relation(identifier=backup_identifier,\n schema=schema,\n database=database) %}\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n {% set to_drop = [] %}\n\n {# -- first check whether we want to full refresh for source view or config reasons #}\n {% set trigger_full_refresh = (full_refresh_mode or existing_relation.is_view) %}\n\n {% if existing_relation is none %}\n {% set build_sql = create_table_as(False, target_relation, sql) %}\n{% elif trigger_full_refresh %}\n {#-- Make sure the backup doesn't exist so we don't encounter issues with the rename below #}\n {% set tmp_identifier = model['name'] + '__dbt_tmp' %}\n {% set backup_identifier = model['name'] + '__dbt_backup' %}\n {% set intermediate_relation = existing_relation.incorporate(path={\"identifier\": tmp_identifier}) %}\n {% set backup_relation = existing_relation.incorporate(path={\"identifier\": backup_identifier}) %}\n\n {% set build_sql = create_table_as(False, intermediate_relation, sql) %}\n {% set need_swap = true %}\n {% do to_drop.append(backup_relation) %}\n {% else %}\n {% do run_query(create_table_as(True, tmp_relation, sql)) %}\n {% do adapter.expand_target_column_types(\n from_relation=tmp_relation,\n to_relation=target_relation) %}\n {#-- Process schema changes. Returns dict of changes if successful. Use source columns for upserting/merging --#}\n {% set dest_columns = process_schema_changes(on_schema_change, tmp_relation, existing_relation) %}\n {% if not dest_columns %}\n {% set dest_columns = adapter.get_columns_in_relation(existing_relation) %}\n {% endif %}\n {% set build_sql = get_delete_insert_merge_sql(target_relation, tmp_relation, unique_key, dest_columns) %}\n \n {% endif %}\n\n {% call statement(\"main\") %}\n {{ build_sql }}\n {% endcall %}\n\n {% if need_swap %} \n {% do adapter.rename_relation(target_relation, backup_relation) %} \n {% do adapter.rename_relation(intermediate_relation, target_relation) %} \n {% endif %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if existing_relation is none or existing_relation.is_view or should_full_refresh() %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n -- `COMMIT` happens here\n {% do adapter.commit() %}\n\n {% for rel in to_drop %}\n {% do adapter.drop_relation(rel) %}\n {% endfor %}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{%- endmaterialization %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.load_relation", "macro.dbt.make_temp_relation", "macro.dbt.should_full_refresh", "macro.dbt.incremental_validate_on_schema_change", "macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks", "macro.dbt.create_table_as", "macro.dbt.run_query", "macro.dbt.process_schema_changes", "macro.dbt.get_delete_insert_merge_sql", "macro.dbt.statement", "macro.dbt.persist_docs", "macro.dbt.create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.709155}, "macro.dbt.incremental_validate_on_schema_change": {"unique_id": "macro.dbt.incremental_validate_on_schema_change", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "name": "incremental_validate_on_schema_change", "macro_sql": "{% macro incremental_validate_on_schema_change(on_schema_change, default='ignore') %}\n \n {% if on_schema_change not in ['sync_all_columns', 'append_new_columns', 'fail', 'ignore'] %}\n \n {% set log_message = 'Invalid value for on_schema_change (%s) specified. Setting default value of %s.' % (on_schema_change, default) %}\n {% do log(log_message) %}\n \n {{ return(default) }}\n\n {% else %}\n\n {{ return(on_schema_change) }}\n \n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.717094}, "macro.dbt.check_for_schema_changes": {"unique_id": "macro.dbt.check_for_schema_changes", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "name": "check_for_schema_changes", "macro_sql": "{% macro check_for_schema_changes(source_relation, target_relation) %}\n \n {% set schema_changed = False %}\n \n {%- set source_columns = adapter.get_columns_in_relation(source_relation) -%}\n {%- set target_columns = adapter.get_columns_in_relation(target_relation) -%}\n {%- set source_not_in_target = diff_columns(source_columns, target_columns) -%}\n {%- set target_not_in_source = diff_columns(target_columns, source_columns) -%}\n\n {% set new_target_types = diff_column_data_types(source_columns, target_columns) %}\n\n {% if source_not_in_target != [] %}\n {% set schema_changed = True %}\n {% elif target_not_in_source != [] or new_target_types != [] %}\n {% set schema_changed = True %}\n {% elif new_target_types != [] %}\n {% set schema_changed = True %}\n {% endif %}\n \n {% set changes_dict = {\n 'schema_changed': schema_changed,\n 'source_not_in_target': source_not_in_target,\n 'target_not_in_source': target_not_in_source,\n 'source_columns': source_columns,\n 'target_columns': target_columns,\n 'new_target_types': new_target_types\n } %}\n\n {% set msg %}\n In {{ target_relation }}:\n Schema changed: {{ schema_changed }}\n Source columns not in target: {{ source_not_in_target }}\n Target columns not in source: {{ target_not_in_source }}\n New column types: {{ new_target_types }}\n {% endset %}\n \n {% do log(msg) %}\n\n {{ return(changes_dict) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.diff_columns", "macro.dbt.diff_column_data_types"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.7198012}, "macro.dbt.sync_column_schemas": {"unique_id": "macro.dbt.sync_column_schemas", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "name": "sync_column_schemas", "macro_sql": "{% macro sync_column_schemas(on_schema_change, target_relation, schema_changes_dict) %}\n \n {%- set add_to_target_arr = schema_changes_dict['source_not_in_target'] -%}\n\n {%- if on_schema_change == 'append_new_columns'-%}\n {%- if add_to_target_arr | length > 0 -%}\n {%- do alter_relation_add_remove_columns(target_relation, add_to_target_arr, none) -%}\n {%- endif -%}\n \n {% elif on_schema_change == 'sync_all_columns' %}\n {%- set remove_from_target_arr = schema_changes_dict['target_not_in_source'] -%}\n {%- set new_target_types = schema_changes_dict['new_target_types'] -%}\n \n {% if add_to_target_arr | length > 0 or remove_from_target_arr | length > 0 %} \n {%- do alter_relation_add_remove_columns(target_relation, add_to_target_arr, remove_from_target_arr) -%}\n {% endif %}\n\n {% if new_target_types != [] %}\n {% for ntt in new_target_types %}\n {% set column_name = ntt['column_name'] %}\n {% set new_type = ntt['new_type'] %}\n {% do alter_column_type(target_relation, column_name, new_type) %}\n {% endfor %}\n {% endif %}\n \n {% endif %}\n\n {% set schema_change_message %}\n In {{ target_relation }}:\n Schema change approach: {{ on_schema_change }}\n Columns added: {{ add_to_target_arr }}\n Columns removed: {{ remove_from_target_arr }}\n Data types changed: {{ new_target_types }}\n {% endset %}\n \n {% do log(schema_change_message) %}\n \n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.alter_relation_add_remove_columns", "macro.dbt.alter_column_type"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.722497}, "macro.dbt.process_schema_changes": {"unique_id": "macro.dbt.process_schema_changes", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "name": "process_schema_changes", "macro_sql": "{% macro process_schema_changes(on_schema_change, source_relation, target_relation) %}\n \n {% if on_schema_change == 'ignore' %}\n\n {{ return({}) }}\n\n {% else %}\n \n {% set schema_changes_dict = check_for_schema_changes(source_relation, target_relation) %}\n \n {% if schema_changes_dict['schema_changed'] %}\n \n {% if on_schema_change == 'fail' %}\n \n {% set fail_msg %}\n The source and target schemas on this incremental model are out of sync!\n They can be reconciled in several ways: \n - set the `on_schema_change` config to either append_new_columns or sync_all_columns, depending on your situation.\n - Re-run the incremental model with `full_refresh: True` to update the target schema.\n - update the schema manually and re-run the process.\n {% endset %}\n \n {% do exceptions.raise_compiler_error(fail_msg) %}\n \n {# -- unless we ignore, run the sync operation per the config #}\n {% else %}\n \n {% do sync_column_schemas(on_schema_change, target_relation, schema_changes_dict) %}\n \n {% endif %}\n \n {% endif %}\n\n {{ return(schema_changes_dict['source_columns']) }}\n \n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.check_for_schema_changes", "macro.dbt.sync_column_schemas"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.724024}, "macro.dbt.materialization_table_default": {"unique_id": "macro.dbt.materialization_table_default", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/materializations/models/table/table.sql", "original_file_path": "macros/materializations/models/table/table.sql", "name": "materialization_table_default", "macro_sql": "{% materialization table, default %}\n {%- set identifier = model['alias'] -%}\n {%- set tmp_identifier = model['name'] + '__dbt_tmp' -%}\n {%- set backup_identifier = model['name'] + '__dbt_backup' -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n {%- set target_relation = api.Relation.create(identifier=identifier,\n schema=schema,\n database=database,\n type='table') -%}\n {%- set intermediate_relation = api.Relation.create(identifier=tmp_identifier,\n schema=schema,\n database=database,\n type='table') -%}\n -- the intermediate_relation should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation\n {%- set preexisting_intermediate_relation = adapter.get_relation(identifier=tmp_identifier, \n schema=schema,\n database=database) -%}\n /*\n See ../view/view.sql for more information about this relation.\n */\n {%- set backup_relation_type = 'table' if old_relation is none else old_relation.type -%}\n {%- set backup_relation = api.Relation.create(identifier=backup_identifier,\n schema=schema,\n database=database,\n type=backup_relation_type) -%}\n -- as above, the backup_relation should not already exist\n {%- set preexisting_backup_relation = adapter.get_relation(identifier=backup_identifier,\n schema=schema,\n database=database) -%}\n\n\n -- drop the temp relations if they exist already in the database\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_table_as_sql(False, intermediate_relation, sql) }}\n {%- endcall %}\n\n -- cleanup\n {% if old_relation is not none %}\n {{ adapter.rename_relation(old_relation, backup_relation) }}\n {% endif %}\n\n {{ adapter.rename_relation(intermediate_relation, target_relation) }}\n\n {% do create_indexes(target_relation) %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {% do persist_docs(target_relation, model) %}\n\n -- `COMMIT` happens here\n {{ adapter.commit() }}\n\n -- finally, drop the existing/backup relation after the commit\n {{ drop_relation_if_exists(backup_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n{% endmaterialization %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks", "macro.dbt.statement", "macro.dbt.get_create_table_as_sql", "macro.dbt.create_indexes", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.730819}, "macro.dbt.get_create_table_as_sql": {"unique_id": "macro.dbt.get_create_table_as_sql", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/materializations/models/table/create_table_as.sql", "original_file_path": "macros/materializations/models/table/create_table_as.sql", "name": "get_create_table_as_sql", "macro_sql": "{% macro get_create_table_as_sql(temporary, relation, sql) -%}\n {{ adapter.dispatch('get_create_table_as_sql', 'dbt')(temporary, relation, sql) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_create_table_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.7317681}, "macro.dbt.default__get_create_table_as_sql": {"unique_id": "macro.dbt.default__get_create_table_as_sql", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/materializations/models/table/create_table_as.sql", "original_file_path": "macros/materializations/models/table/create_table_as.sql", "name": "default__get_create_table_as_sql", "macro_sql": "{% macro default__get_create_table_as_sql(temporary, relation, sql) -%}\n {{ return(create_table_as(temporary, relation, sql)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.732168}, "macro.dbt.create_table_as": {"unique_id": "macro.dbt.create_table_as", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/materializations/models/table/create_table_as.sql", "original_file_path": "macros/materializations/models/table/create_table_as.sql", "name": "create_table_as", "macro_sql": "{% macro create_table_as(temporary, relation, sql) -%}\n {{ adapter.dispatch('create_table_as', 'dbt')(temporary, relation, sql) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.73261}, "macro.dbt.default__create_table_as": {"unique_id": "macro.dbt.default__create_table_as", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/materializations/models/table/create_table_as.sql", "original_file_path": "macros/materializations/models/table/create_table_as.sql", "name": "default__create_table_as", "macro_sql": "{% macro default__create_table_as(temporary, relation, sql) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n \n {{ sql_header if sql_header is not none }}\n \n create {% if temporary: -%}temporary{%- endif %} table\n {{ relation.include(database=(not temporary), schema=(not temporary)) }}\n as (\n {{ sql }}\n );\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.733492}, "macro.dbt.materialization_view_default": {"unique_id": "macro.dbt.materialization_view_default", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/view.sql", "original_file_path": "macros/materializations/models/view/view.sql", "name": "materialization_view_default", "macro_sql": "{%- materialization view, default -%}\n\n {%- set identifier = model['alias'] -%}\n {%- set tmp_identifier = model['name'] + '__dbt_tmp' -%}\n {%- set backup_identifier = model['name'] + '__dbt_backup' -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n {%- set target_relation = api.Relation.create(identifier=identifier, schema=schema, database=database,\n type='view') -%}\n {%- set intermediate_relation = api.Relation.create(identifier=tmp_identifier,\n schema=schema, database=database, type='view') -%}\n -- the intermediate_relation should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation\n {%- set preexisting_intermediate_relation = adapter.get_relation(identifier=tmp_identifier, \n schema=schema,\n database=database) -%}\n /*\n This relation (probably) doesn't exist yet. If it does exist, it's a leftover from\n a previous run, and we're going to try to drop it immediately. At the end of this\n materialization, we're going to rename the \"old_relation\" to this identifier,\n and then we're going to drop it. In order to make sure we run the correct one of:\n - drop view ...\n - drop table ...\n\n We need to set the type of this relation to be the type of the old_relation, if it exists,\n or else \"view\" as a sane default if it does not. Note that if the old_relation does not\n exist, then there is nothing to move out of the way and subsequentally drop. In that case,\n this relation will be effectively unused.\n */\n {%- set backup_relation_type = 'view' if old_relation is none else old_relation.type -%}\n {%- set backup_relation = api.Relation.create(identifier=backup_identifier,\n schema=schema, database=database,\n type=backup_relation_type) -%}\n -- as above, the backup_relation should not already exist\n {%- set preexisting_backup_relation = adapter.get_relation(identifier=backup_identifier,\n schema=schema,\n database=database) -%}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- drop the temp relations if they exist already in the database\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% call statement('main') -%}\n {{ create_view_as(intermediate_relation, sql) }}\n {%- endcall %}\n\n -- cleanup\n -- move the existing view out of the way\n {% if old_relation is not none %}\n {{ adapter.rename_relation(old_relation, backup_relation) }}\n {% endif %}\n {{ adapter.rename_relation(intermediate_relation, target_relation) }}\n\n {% do persist_docs(target_relation, model) %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {{ adapter.commit() }}\n\n {{ drop_relation_if_exists(backup_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{%- endmaterialization -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_hooks", "macro.dbt.drop_relation_if_exists", "macro.dbt.statement", "macro.dbt.create_view_as", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.740617}, "macro.dbt.handle_existing_table": {"unique_id": "macro.dbt.handle_existing_table", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/helpers.sql", "original_file_path": "macros/materializations/models/view/helpers.sql", "name": "handle_existing_table", "macro_sql": "{% macro handle_existing_table(full_refresh, old_relation) %}\n {{ adapter.dispatch('handle_existing_table', 'dbt')(full_refresh, old_relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__handle_existing_table"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.741363}, "macro.dbt.default__handle_existing_table": {"unique_id": "macro.dbt.default__handle_existing_table", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/helpers.sql", "original_file_path": "macros/materializations/models/view/helpers.sql", "name": "default__handle_existing_table", "macro_sql": "{% macro default__handle_existing_table(full_refresh, old_relation) %}\n {{ log(\"Dropping relation \" ~ old_relation ~ \" because it is of type \" ~ old_relation.type) }}\n {{ adapter.drop_relation(old_relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.7418518}, "macro.dbt.create_or_replace_view": {"unique_id": "macro.dbt.create_or_replace_view", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/create_or_replace_view.sql", "original_file_path": "macros/materializations/models/view/create_or_replace_view.sql", "name": "create_or_replace_view", "macro_sql": "{% macro create_or_replace_view() %}\n {%- set identifier = model['alias'] -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n\n {%- set exists_as_view = (old_relation is not none and old_relation.is_view) -%}\n\n {%- set target_relation = api.Relation.create(\n identifier=identifier, schema=schema, database=database,\n type='view') -%}\n\n {{ run_hooks(pre_hooks) }}\n\n -- If there's a table with the same name and we weren't told to full refresh,\n -- that's an error. If we were told to full refresh, drop it. This behavior differs\n -- for Snowflake and BigQuery, so multiple dispatch is used.\n {%- if old_relation is not none and old_relation.is_table -%}\n {{ handle_existing_table(should_full_refresh(), old_relation) }}\n {%- endif -%}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_view_as_sql(target_relation, sql) }}\n {%- endcall %}\n\n {{ run_hooks(post_hooks) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_hooks", "macro.dbt.handle_existing_table", "macro.dbt.should_full_refresh", "macro.dbt.statement", "macro.dbt.get_create_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.744457}, "macro.dbt.get_create_view_as_sql": {"unique_id": "macro.dbt.get_create_view_as_sql", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/create_view_as.sql", "original_file_path": "macros/materializations/models/view/create_view_as.sql", "name": "get_create_view_as_sql", "macro_sql": "{% macro get_create_view_as_sql(relation, sql) -%}\n {{ adapter.dispatch('get_create_view_as_sql', 'dbt')(relation, sql) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_create_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.745882}, "macro.dbt.default__get_create_view_as_sql": {"unique_id": "macro.dbt.default__get_create_view_as_sql", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/create_view_as.sql", "original_file_path": "macros/materializations/models/view/create_view_as.sql", "name": "default__get_create_view_as_sql", "macro_sql": "{% macro default__get_create_view_as_sql(relation, sql) -%}\n {{ return(create_view_as(relation, sql)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.create_view_as"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.746237}, "macro.dbt.create_view_as": {"unique_id": "macro.dbt.create_view_as", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/create_view_as.sql", "original_file_path": "macros/materializations/models/view/create_view_as.sql", "name": "create_view_as", "macro_sql": "{% macro create_view_as(relation, sql) -%}\n {{ adapter.dispatch('create_view_as', 'dbt')(relation, sql) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__create_view_as"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.7466319}, "macro.dbt.default__create_view_as": {"unique_id": "macro.dbt.default__create_view_as", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/create_view_as.sql", "original_file_path": "macros/materializations/models/view/create_view_as.sql", "name": "default__create_view_as", "macro_sql": "{% macro default__create_view_as(relation, sql) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n create view {{ relation }} as (\n {{ sql }}\n );\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.747203}, "macro.dbt.materialization_seed_default": {"unique_id": "macro.dbt.materialization_seed_default", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/seed.sql", "original_file_path": "macros/materializations/seeds/seed.sql", "name": "materialization_seed_default", "macro_sql": "{% materialization seed, default %}\n\n {%- set identifier = model['alias'] -%}\n {%- set full_refresh_mode = (should_full_refresh()) -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n\n {%- set exists_as_table = (old_relation is not none and old_relation.is_table) -%}\n {%- set exists_as_view = (old_relation is not none and old_relation.is_view) -%}\n\n {%- set agate_table = load_agate_table() -%}\n {%- do store_result('agate_table', response='OK', agate_table=agate_table) -%}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% set create_table_sql = \"\" %}\n {% if exists_as_view %}\n {{ exceptions.raise_compiler_error(\"Cannot seed to '{}', it is a view\".format(old_relation)) }}\n {% elif exists_as_table %}\n {% set create_table_sql = reset_csv_table(model, full_refresh_mode, old_relation, agate_table) %}\n {% else %}\n {% set create_table_sql = create_csv_table(model, agate_table) %}\n {% endif %}\n\n {% set code = 'CREATE' if full_refresh_mode else 'INSERT' %}\n {% set rows_affected = (agate_table.rows | length) %}\n {% set sql = load_csv_rows(model, agate_table) %}\n\n {% call noop_statement('main', code ~ ' ' ~ rows_affected, code, rows_affected) %}\n {{ create_table_sql }};\n -- dbt seed --\n {{ sql }}\n {% endcall %}\n\n {% set target_relation = this.incorporate(type='table') %}\n {% do persist_docs(target_relation, model) %}\n\n {% if full_refresh_mode or not exists_as_table %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n -- `COMMIT` happens here\n {{ adapter.commit() }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.should_full_refresh", "macro.dbt.run_hooks", "macro.dbt.reset_csv_table", "macro.dbt.create_csv_table", "macro.dbt.load_csv_rows", "macro.dbt.noop_statement", "macro.dbt.persist_docs", "macro.dbt.create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.752867}, "macro.dbt.create_csv_table": {"unique_id": "macro.dbt.create_csv_table", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "create_csv_table", "macro_sql": "{% macro create_csv_table(model, agate_table) -%}\n {{ adapter.dispatch('create_csv_table', 'dbt')(model, agate_table) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__create_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.759657}, "macro.dbt.default__create_csv_table": {"unique_id": "macro.dbt.default__create_csv_table", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "default__create_csv_table", "macro_sql": "{% macro default__create_csv_table(model, agate_table) %}\n {%- set column_override = model['config'].get('column_types', {}) -%}\n {%- set quote_seed_column = model['config'].get('quote_columns', None) -%}\n\n {% set sql %}\n create table {{ this.render() }} (\n {%- for col_name in agate_table.column_names -%}\n {%- set inferred_type = adapter.convert_type(agate_table, loop.index0) -%}\n {%- set type = column_override.get(col_name, inferred_type) -%}\n {%- set column_name = (col_name | string) -%}\n {{ adapter.quote_seed_column(column_name, quote_seed_column) }} {{ type }} {%- if not loop.last -%}, {%- endif -%}\n {%- endfor -%}\n )\n {% endset %}\n\n {% call statement('_') -%}\n {{ sql }}\n {%- endcall %}\n\n {{ return(sql) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.761647}, "macro.dbt.reset_csv_table": {"unique_id": "macro.dbt.reset_csv_table", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "reset_csv_table", "macro_sql": "{% macro reset_csv_table(model, full_refresh, old_relation, agate_table) -%}\n {{ adapter.dispatch('reset_csv_table', 'dbt')(model, full_refresh, old_relation, agate_table) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__reset_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.7625961}, "macro.dbt.default__reset_csv_table": {"unique_id": "macro.dbt.default__reset_csv_table", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "default__reset_csv_table", "macro_sql": "{% macro default__reset_csv_table(model, full_refresh, old_relation, agate_table) %}\n {% set sql = \"\" %}\n {% if full_refresh %}\n {{ adapter.drop_relation(old_relation) }}\n {% set sql = create_csv_table(model, agate_table) %}\n {% else %}\n {{ adapter.truncate_relation(old_relation) }}\n {% set sql = \"truncate table \" ~ old_relation %}\n {% endif %}\n\n {{ return(sql) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.create_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.763797}, "macro.dbt.get_binding_char": {"unique_id": "macro.dbt.get_binding_char", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "get_binding_char", "macro_sql": "{% macro get_binding_char() -%}\n {{ adapter.dispatch('get_binding_char', 'dbt')() }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_binding_char"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.764121}, "macro.dbt.default__get_binding_char": {"unique_id": "macro.dbt.default__get_binding_char", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "default__get_binding_char", "macro_sql": "{% macro default__get_binding_char() %}\n {{ return('%s') }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.764383}, "macro.dbt.get_batch_size": {"unique_id": "macro.dbt.get_batch_size", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "get_batch_size", "macro_sql": "{% macro get_batch_size() -%}\n {{ return(adapter.dispatch('get_batch_size', 'dbt')()) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_batch_size"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.7648158}, "macro.dbt.default__get_batch_size": {"unique_id": "macro.dbt.default__get_batch_size", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "default__get_batch_size", "macro_sql": "{% macro default__get_batch_size() %}\n {{ return(10000) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.765155}, "macro.dbt.get_seed_column_quoted_csv": {"unique_id": "macro.dbt.get_seed_column_quoted_csv", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "get_seed_column_quoted_csv", "macro_sql": "{% macro get_seed_column_quoted_csv(model, column_names) %}\n {%- set quote_seed_column = model['config'].get('quote_columns', None) -%}\n {% set quoted = [] %}\n {% for col in column_names -%}\n {%- do quoted.append(adapter.quote_seed_column(col, quote_seed_column)) -%}\n {%- endfor %}\n\n {%- set dest_cols_csv = quoted | join(', ') -%}\n {{ return(dest_cols_csv) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.7661881}, "macro.dbt.load_csv_rows": {"unique_id": "macro.dbt.load_csv_rows", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "load_csv_rows", "macro_sql": "{% macro load_csv_rows(model, agate_table) -%}\n {{ adapter.dispatch('load_csv_rows', 'dbt')(model, agate_table) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__load_csv_rows"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.7666}, "macro.dbt.default__load_csv_rows": {"unique_id": "macro.dbt.default__load_csv_rows", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "default__load_csv_rows", "macro_sql": "{% macro default__load_csv_rows(model, agate_table) %}\n\n {% set batch_size = get_batch_size() %}\n\n {% set cols_sql = get_seed_column_quoted_csv(model, agate_table.column_names) %}\n {% set bindings = [] %}\n\n {% set statements = [] %}\n\n {% for chunk in agate_table.rows | batch(batch_size) %}\n {% set bindings = [] %}\n\n {% for row in chunk %}\n {% do bindings.extend(row) %}\n {% endfor %}\n\n {% set sql %}\n insert into {{ this.render() }} ({{ cols_sql }}) values\n {% for row in chunk -%}\n ({%- for column in agate_table.column_names -%}\n {{ get_binding_char() }}\n {%- if not loop.last%},{%- endif %}\n {%- endfor -%})\n {%- if not loop.last%},{%- endif %}\n {%- endfor %}\n {% endset %}\n\n {% do adapter.add_query(sql, bindings=bindings, abridge_sql_log=True) %}\n\n {% if loop.index0 == 0 %}\n {% do statements.append(sql) %}\n {% endif %}\n {% endfor %}\n\n {# Return SQL so we can render it out into the compiled files #}\n {{ return(statements[0]) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_batch_size", "macro.dbt.get_seed_column_quoted_csv", "macro.dbt.get_binding_char"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.7698638}, "macro.dbt.generate_alias_name": {"unique_id": "macro.dbt.generate_alias_name", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_alias.sql", "original_file_path": "macros/get_custom_name/get_custom_alias.sql", "name": "generate_alias_name", "macro_sql": "{% macro generate_alias_name(custom_alias_name=none, node=none) -%}\n {% do return(adapter.dispatch('generate_alias_name', 'dbt')(custom_alias_name, node)) %}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__generate_alias_name"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.7709281}, "macro.dbt.default__generate_alias_name": {"unique_id": "macro.dbt.default__generate_alias_name", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_alias.sql", "original_file_path": "macros/get_custom_name/get_custom_alias.sql", "name": "default__generate_alias_name", "macro_sql": "{% macro default__generate_alias_name(custom_alias_name=none, node=none) -%}\n\n {%- if custom_alias_name is none -%}\n\n {{ node.name }}\n\n {%- else -%}\n\n {{ custom_alias_name | trim }}\n\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.771426}, "macro.dbt.generate_schema_name": {"unique_id": "macro.dbt.generate_schema_name", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "name": "generate_schema_name", "macro_sql": "{% macro generate_schema_name(custom_schema_name=none, node=none) -%}\n {{ return(adapter.dispatch('generate_schema_name', 'dbt')(custom_schema_name, node)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__generate_schema_name"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.772555}, "macro.dbt.default__generate_schema_name": {"unique_id": "macro.dbt.default__generate_schema_name", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "name": "default__generate_schema_name", "macro_sql": "{% macro default__generate_schema_name(custom_schema_name, node) -%}\n\n {%- set default_schema = target.schema -%}\n {%- if custom_schema_name is none -%}\n\n {{ default_schema }}\n\n {%- else -%}\n\n {{ default_schema }}_{{ custom_schema_name | trim }}\n\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.773128}, "macro.dbt.generate_schema_name_for_env": {"unique_id": "macro.dbt.generate_schema_name_for_env", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "name": "generate_schema_name_for_env", "macro_sql": "{% macro generate_schema_name_for_env(custom_schema_name, node) -%}\n\n {%- set default_schema = target.schema -%}\n {%- if target.name == 'prod' and custom_schema_name is not none -%}\n\n {{ custom_schema_name | trim }}\n\n {%- else -%}\n\n {{ default_schema }}\n\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.773746}, "macro.dbt.generate_database_name": {"unique_id": "macro.dbt.generate_database_name", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_database.sql", "original_file_path": "macros/get_custom_name/get_custom_database.sql", "name": "generate_database_name", "macro_sql": "{% macro generate_database_name(custom_database_name=none, node=none) -%}\n {% do return(adapter.dispatch('generate_database_name', 'dbt')(custom_database_name, node)) %}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__generate_database_name"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.774642}, "macro.dbt.default__generate_database_name": {"unique_id": "macro.dbt.default__generate_database_name", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_database.sql", "original_file_path": "macros/get_custom_name/get_custom_database.sql", "name": "default__generate_database_name", "macro_sql": "{% macro default__generate_database_name(custom_database_name=none, node=none) -%}\n {%- set default_database = target.database -%}\n {%- if custom_database_name is none -%}\n\n {{ default_database }}\n\n {%- else -%}\n\n {{ custom_database_name }}\n\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.7752}, "macro.dbt.default__test_relationships": {"unique_id": "macro.dbt.default__test_relationships", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/generic_test_sql/relationships.sql", "original_file_path": "macros/generic_test_sql/relationships.sql", "name": "default__test_relationships", "macro_sql": "{% macro default__test_relationships(model, column_name, to, field) %}\n\nwith child as (\n select {{ column_name }} as from_field\n from {{ model }}\n where {{ column_name }} is not null\n),\n\nparent as (\n select {{ field }} as to_field\n from {{ to }}\n)\n\nselect\n from_field\n\nfrom child\nleft join parent\n on child.from_field = parent.to_field\n\nwhere parent.to_field is null\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.7760088}, "macro.dbt.default__test_not_null": {"unique_id": "macro.dbt.default__test_not_null", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/generic_test_sql/not_null.sql", "original_file_path": "macros/generic_test_sql/not_null.sql", "name": "default__test_not_null", "macro_sql": "{% macro default__test_not_null(model, column_name) %}\n\nselect *\nfrom {{ model }}\nwhere {{ column_name }} is null\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.776522}, "macro.dbt.default__test_unique": {"unique_id": "macro.dbt.default__test_unique", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/generic_test_sql/unique.sql", "original_file_path": "macros/generic_test_sql/unique.sql", "name": "default__test_unique", "macro_sql": "{% macro default__test_unique(model, column_name) %}\n\nselect\n {{ column_name }} as unique_field,\n count(*) as n_records\n\nfrom {{ model }}\nwhere {{ column_name }} is not null\ngroup by {{ column_name }}\nhaving count(*) > 1\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.777163}, "macro.dbt.default__test_accepted_values": {"unique_id": "macro.dbt.default__test_accepted_values", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/generic_test_sql/accepted_values.sql", "original_file_path": "macros/generic_test_sql/accepted_values.sql", "name": "default__test_accepted_values", "macro_sql": "{% macro default__test_accepted_values(model, column_name, values, quote=True) %}\n\nwith all_values as (\n\n select\n {{ column_name }} as value_field,\n count(*) as n_records\n\n from {{ model }}\n group by {{ column_name }}\n\n)\n\nselect *\nfrom all_values\nwhere value_field not in (\n {% for value in values -%}\n {% if quote -%}\n '{{ value }}'\n {%- else -%}\n {{ value }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {%- endfor %}\n)\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.779157}, "macro.dbt.statement": {"unique_id": "macro.dbt.statement", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "name": "statement", "macro_sql": "{% macro statement(name=None, fetch_result=False, auto_begin=True) -%}\n {%- if execute: -%}\n {%- set sql = caller() -%}\n\n {%- if name == 'main' -%}\n {{ log('Writing runtime SQL for node \"{}\"'.format(model['unique_id'])) }}\n {{ write(sql) }}\n {%- endif -%}\n\n {%- set res, table = adapter.execute(sql, auto_begin=auto_begin, fetch=fetch_result) -%}\n {%- if name is not none -%}\n {{ store_result(name, response=res, agate_table=table) }}\n {%- endif -%}\n\n {%- endif -%}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.781476}, "macro.dbt.noop_statement": {"unique_id": "macro.dbt.noop_statement", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "name": "noop_statement", "macro_sql": "{% macro noop_statement(name=None, message=None, code=None, rows_affected=None, res=None) -%}\n {%- set sql = caller() -%}\n\n {%- if name == 'main' -%}\n {{ log('Writing runtime SQL for node \"{}\"'.format(model['unique_id'])) }}\n {{ write(sql) }}\n {%- endif -%}\n\n {%- if name is not none -%}\n {{ store_raw_result(name, message=message, code=code, rows_affected=rows_affected, agate_table=res) }}\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.7827241}, "macro.dbt.run_query": {"unique_id": "macro.dbt.run_query", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "name": "run_query", "macro_sql": "{% macro run_query(sql) %}\n {% call statement(\"run_query_statement\", fetch_result=true, auto_begin=false) %}\n {{ sql }}\n {% endcall %}\n\n {% do return(load_result(\"run_query_statement\").table) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.783363}, "macro.dbt.convert_datetime": {"unique_id": "macro.dbt.convert_datetime", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "name": "convert_datetime", "macro_sql": "{% macro convert_datetime(date_str, date_fmt) %}\n\n {% set error_msg -%}\n The provided partition date '{{ date_str }}' does not match the expected format '{{ date_fmt }}'\n {%- endset %}\n\n {% set res = try_or_compiler_error(error_msg, modules.datetime.datetime.strptime, date_str.strip(), date_fmt) %}\n {{ return(res) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.786324}, "macro.dbt.dates_in_range": {"unique_id": "macro.dbt.dates_in_range", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "name": "dates_in_range", "macro_sql": "{% macro dates_in_range(start_date_str, end_date_str=none, in_fmt=\"%Y%m%d\", out_fmt=\"%Y%m%d\") %}\n {% set end_date_str = start_date_str if end_date_str is none else end_date_str %}\n\n {% set start_date = convert_datetime(start_date_str, in_fmt) %}\n {% set end_date = convert_datetime(end_date_str, in_fmt) %}\n\n {% set day_count = (end_date - start_date).days %}\n {% if day_count < 0 %}\n {% set msg -%}\n Partiton start date is after the end date ({{ start_date }}, {{ end_date }})\n {%- endset %}\n\n {{ exceptions.raise_compiler_error(msg, model) }}\n {% endif %}\n\n {% set date_list = [] %}\n {% for i in range(0, day_count + 1) %}\n {% set the_date = (modules.datetime.timedelta(days=i) + start_date) %}\n {% if not out_fmt %}\n {% set _ = date_list.append(the_date) %}\n {% else %}\n {% set _ = date_list.append(the_date.strftime(out_fmt)) %}\n {% endif %}\n {% endfor %}\n\n {{ return(date_list) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.convert_datetime"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.788953}, "macro.dbt.partition_range": {"unique_id": "macro.dbt.partition_range", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "name": "partition_range", "macro_sql": "{% macro partition_range(raw_partition_date, date_fmt='%Y%m%d') %}\n {% set partition_range = (raw_partition_date | string).split(\",\") %}\n\n {% if (partition_range | length) == 1 %}\n {% set start_date = partition_range[0] %}\n {% set end_date = none %}\n {% elif (partition_range | length) == 2 %}\n {% set start_date = partition_range[0] %}\n {% set end_date = partition_range[1] %}\n {% else %}\n {{ exceptions.raise_compiler_error(\"Invalid partition time. Expected format: {Start Date}[,{End Date}]. Got: \" ~ raw_partition_date) }}\n {% endif %}\n\n {{ return(dates_in_range(start_date, end_date, in_fmt=date_fmt)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.dates_in_range"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.791083}, "macro.dbt.py_current_timestring": {"unique_id": "macro.dbt.py_current_timestring", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "name": "py_current_timestring", "macro_sql": "{% macro py_current_timestring() %}\n {% set dt = modules.datetime.datetime.now() %}\n {% do return(dt.strftime(\"%Y%m%d%H%M%S%f\")) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.79159}, "macro.dbt.create_schema": {"unique_id": "macro.dbt.create_schema", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "name": "create_schema", "macro_sql": "{% macro create_schema(relation) -%}\n {{ adapter.dispatch('create_schema', 'dbt')(relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__create_schema"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.792536}, "macro.dbt.default__create_schema": {"unique_id": "macro.dbt.default__create_schema", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "name": "default__create_schema", "macro_sql": "{% macro default__create_schema(relation) -%}\n {%- call statement('create_schema') -%}\n create schema if not exists {{ relation.without_identifier() }}\n {% endcall %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.7929401}, "macro.dbt.drop_schema": {"unique_id": "macro.dbt.drop_schema", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "name": "drop_schema", "macro_sql": "{% macro drop_schema(relation) -%}\n {{ adapter.dispatch('drop_schema', 'dbt')(relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__drop_schema"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.793293}, "macro.dbt.default__drop_schema": {"unique_id": "macro.dbt.default__drop_schema", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "name": "default__drop_schema", "macro_sql": "{% macro default__drop_schema(relation) -%}\n {%- call statement('drop_schema') -%}\n drop schema if exists {{ relation.without_identifier() }} cascade\n {% endcall %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.793691}, "macro.dbt.get_create_index_sql": {"unique_id": "macro.dbt.get_create_index_sql", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "name": "get_create_index_sql", "macro_sql": "{% macro get_create_index_sql(relation, index_dict) -%}\n {{ return(adapter.dispatch('get_create_index_sql', 'dbt')(relation, index_dict)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_create_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.7946649}, "macro.dbt.default__get_create_index_sql": {"unique_id": "macro.dbt.default__get_create_index_sql", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "name": "default__get_create_index_sql", "macro_sql": "{% macro default__get_create_index_sql(relation, index_dict) -%}\n {% do return(None) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.794964}, "macro.dbt.create_indexes": {"unique_id": "macro.dbt.create_indexes", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "name": "create_indexes", "macro_sql": "{% macro create_indexes(relation) -%}\n {{ adapter.dispatch('create_indexes', 'dbt')(relation) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.7953112}, "macro.dbt.default__create_indexes": {"unique_id": "macro.dbt.default__create_indexes", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "name": "default__create_indexes", "macro_sql": "{% macro default__create_indexes(relation) -%}\n {%- set _indexes = config.get('indexes', default=[]) -%}\n\n {% for _index_dict in _indexes %}\n {% set create_index_sql = get_create_index_sql(relation, _index_dict) %}\n {% if create_index_sql %}\n {% do run_query(create_index_sql) %}\n {% endif %}\n {% endfor %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_create_index_sql", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.7961679}, "macro.dbt.make_temp_relation": {"unique_id": "macro.dbt.make_temp_relation", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "make_temp_relation", "macro_sql": "{% macro make_temp_relation(base_relation, suffix='__dbt_tmp') %}\n {{ return(adapter.dispatch('make_temp_relation', 'dbt')(base_relation, suffix))}}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__make_temp_relation"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.798829}, "macro.dbt.default__make_temp_relation": {"unique_id": "macro.dbt.default__make_temp_relation", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "default__make_temp_relation", "macro_sql": "{% macro default__make_temp_relation(base_relation, suffix) %}\n {% set tmp_identifier = base_relation.identifier ~ suffix %}\n {% set tmp_relation = base_relation.incorporate(\n path={\"identifier\": tmp_identifier}) -%}\n\n {% do return(tmp_relation) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.799489}, "macro.dbt.drop_relation": {"unique_id": "macro.dbt.drop_relation", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "drop_relation", "macro_sql": "{% macro drop_relation(relation) -%}\n {{ return(adapter.dispatch('drop_relation', 'dbt')(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__drop_relation"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.799883}, "macro.dbt.default__drop_relation": {"unique_id": "macro.dbt.default__drop_relation", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "default__drop_relation", "macro_sql": "{% macro default__drop_relation(relation) -%}\n {% call statement('drop_relation', auto_begin=False) -%}\n drop {{ relation.type }} if exists {{ relation }} cascade\n {%- endcall %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.8003972}, "macro.dbt.truncate_relation": {"unique_id": "macro.dbt.truncate_relation", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "truncate_relation", "macro_sql": "{% macro truncate_relation(relation) -%}\n {{ return(adapter.dispatch('truncate_relation', 'dbt')(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__truncate_relation"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.801141}, "macro.dbt.default__truncate_relation": {"unique_id": "macro.dbt.default__truncate_relation", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "default__truncate_relation", "macro_sql": "{% macro default__truncate_relation(relation) -%}\n {% call statement('truncate_relation') -%}\n truncate table {{ relation }}\n {%- endcall %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.8016949}, "macro.dbt.rename_relation": {"unique_id": "macro.dbt.rename_relation", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "rename_relation", "macro_sql": "{% macro rename_relation(from_relation, to_relation) -%}\n {{ return(adapter.dispatch('rename_relation', 'dbt')(from_relation, to_relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__rename_relation"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.802258}, "macro.dbt.default__rename_relation": {"unique_id": "macro.dbt.default__rename_relation", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "default__rename_relation", "macro_sql": "{% macro default__rename_relation(from_relation, to_relation) -%}\n {% set target_name = adapter.quote_as_configured(to_relation.identifier, 'identifier') %}\n {% call statement('rename_relation') -%}\n alter table {{ from_relation }} rename to {{ target_name }}\n {%- endcall %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.802868}, "macro.dbt.get_or_create_relation": {"unique_id": "macro.dbt.get_or_create_relation", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "get_or_create_relation", "macro_sql": "{% macro get_or_create_relation(database, schema, identifier, type) -%}\n {{ return(adapter.dispatch('get_or_create_relation', 'dbt')(database, schema, identifier, type)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_or_create_relation"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.803493}, "macro.dbt.default__get_or_create_relation": {"unique_id": "macro.dbt.default__get_or_create_relation", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "default__get_or_create_relation", "macro_sql": "{% macro default__get_or_create_relation(database, schema, identifier, type) %}\n {%- set target_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) %}\n\n {% if target_relation %}\n {% do return([true, target_relation]) %}\n {% endif %}\n\n {%- set new_relation = api.Relation.create(\n database=database,\n schema=schema,\n identifier=identifier,\n type=type\n ) -%}\n {% do return([false, new_relation]) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.804657}, "macro.dbt.load_relation": {"unique_id": "macro.dbt.load_relation", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "load_relation", "macro_sql": "{% macro load_relation(relation) %}\n {% do return(adapter.get_relation(\n database=relation.database,\n schema=relation.schema,\n identifier=relation.identifier\n )) -%}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.80514}, "macro.dbt.drop_relation_if_exists": {"unique_id": "macro.dbt.drop_relation_if_exists", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "drop_relation_if_exists", "macro_sql": "{% macro drop_relation_if_exists(relation) %}\n {% if relation is not none %}\n {{ adapter.drop_relation(relation) }}\n {% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.8055658}, "macro.dbt.current_timestamp": {"unique_id": "macro.dbt.current_timestamp", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "name": "current_timestamp", "macro_sql": "{% macro current_timestamp() -%}\n {{ adapter.dispatch('current_timestamp', 'dbt')() }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.bigquery__current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.80651}, "macro.dbt.default__current_timestamp": {"unique_id": "macro.dbt.default__current_timestamp", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "name": "default__current_timestamp", "macro_sql": "{% macro default__current_timestamp() -%}\n {{ exceptions.raise_not_implemented(\n 'current_timestamp macro not implemented for adapter '+adapter.type()) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.806828}, "macro.dbt.collect_freshness": {"unique_id": "macro.dbt.collect_freshness", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "name": "collect_freshness", "macro_sql": "{% macro collect_freshness(source, loaded_at_field, filter) %}\n {{ return(adapter.dispatch('collect_freshness', 'dbt')(source, loaded_at_field, filter))}}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__collect_freshness"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.807318}, "macro.dbt.default__collect_freshness": {"unique_id": "macro.dbt.default__collect_freshness", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "name": "default__collect_freshness", "macro_sql": "{% macro default__collect_freshness(source, loaded_at_field, filter) %}\n {% call statement('collect_freshness', fetch_result=True, auto_begin=False) -%}\n select\n max({{ loaded_at_field }}) as max_loaded_at,\n {{ current_timestamp() }} as snapshotted_at\n from {{ source }}\n {% if filter %}\n where {{ filter }}\n {% endif %}\n {% endcall %}\n {{ return(load_result('collect_freshness').table) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_utils.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.80829}, "macro.dbt.alter_column_comment": {"unique_id": "macro.dbt.alter_column_comment", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "name": "alter_column_comment", "macro_sql": "{% macro alter_column_comment(relation, column_dict) -%}\n {{ return(adapter.dispatch('alter_column_comment', 'dbt')(relation, column_dict)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__alter_column_comment"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.809609}, "macro.dbt.default__alter_column_comment": {"unique_id": "macro.dbt.default__alter_column_comment", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "name": "default__alter_column_comment", "macro_sql": "{% macro default__alter_column_comment(relation, column_dict) -%}\n {{ exceptions.raise_not_implemented(\n 'alter_column_comment macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.809974}, "macro.dbt.alter_relation_comment": {"unique_id": "macro.dbt.alter_relation_comment", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "name": "alter_relation_comment", "macro_sql": "{% macro alter_relation_comment(relation, relation_comment) -%}\n {{ return(adapter.dispatch('alter_relation_comment', 'dbt')(relation, relation_comment)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__alter_relation_comment"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.810415}, "macro.dbt.default__alter_relation_comment": {"unique_id": "macro.dbt.default__alter_relation_comment", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "name": "default__alter_relation_comment", "macro_sql": "{% macro default__alter_relation_comment(relation, relation_comment) -%}\n {{ exceptions.raise_not_implemented(\n 'alter_relation_comment macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.8107789}, "macro.dbt.persist_docs": {"unique_id": "macro.dbt.persist_docs", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "name": "persist_docs", "macro_sql": "{% macro persist_docs(relation, model, for_relation=true, for_columns=true) -%}\n {{ return(adapter.dispatch('persist_docs', 'dbt')(relation, model, for_relation, for_columns)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.811359}, "macro.dbt.default__persist_docs": {"unique_id": "macro.dbt.default__persist_docs", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "name": "default__persist_docs", "macro_sql": "{% macro default__persist_docs(relation, model, for_relation, for_columns) -%}\n {% if for_relation and config.persist_relation_docs() and model.description %}\n {% do run_query(alter_relation_comment(relation, model.description)) %}\n {% endif %}\n\n {% if for_columns and config.persist_column_docs() and model.columns %}\n {% do run_query(alter_column_comment(relation, model.columns)) %}\n {% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt.alter_relation_comment", "macro.dbt.alter_column_comment"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.812396}, "macro.dbt.get_catalog": {"unique_id": "macro.dbt.get_catalog", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "get_catalog", "macro_sql": "{% macro get_catalog(information_schema, schemas) -%}\n {{ return(adapter.dispatch('get_catalog', 'dbt')(information_schema, schemas)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__get_catalog"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.814782}, "macro.dbt.default__get_catalog": {"unique_id": "macro.dbt.default__get_catalog", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "default__get_catalog", "macro_sql": "{% macro default__get_catalog(information_schema, schemas) -%}\n\n {% set typename = adapter.type() %}\n {% set msg -%}\n get_catalog not implemented for {{ typename }}\n {%- endset %}\n\n {{ exceptions.raise_compiler_error(msg) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.815347}, "macro.dbt.information_schema_name": {"unique_id": "macro.dbt.information_schema_name", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "information_schema_name", "macro_sql": "{% macro information_schema_name(database) %}\n {{ return(adapter.dispatch('information_schema_name', 'dbt')(database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__information_schema_name"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.815753}, "macro.dbt.default__information_schema_name": {"unique_id": "macro.dbt.default__information_schema_name", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "default__information_schema_name", "macro_sql": "{% macro default__information_schema_name(database) -%}\n {%- if database -%}\n {{ database }}.INFORMATION_SCHEMA\n {%- else -%}\n INFORMATION_SCHEMA\n {%- endif -%}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.816096}, "macro.dbt.list_schemas": {"unique_id": "macro.dbt.list_schemas", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "list_schemas", "macro_sql": "{% macro list_schemas(database) -%}\n {{ return(adapter.dispatch('list_schemas', 'dbt')(database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__list_schemas"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.81649}, "macro.dbt.default__list_schemas": {"unique_id": "macro.dbt.default__list_schemas", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "default__list_schemas", "macro_sql": "{% macro default__list_schemas(database) -%}\n {% set sql %}\n select distinct schema_name\n from {{ information_schema_name(database) }}.SCHEMATA\n where catalog_name ilike '{{ database }}'\n {% endset %}\n {{ return(run_query(sql)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.information_schema_name", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.817019}, "macro.dbt.check_schema_exists": {"unique_id": "macro.dbt.check_schema_exists", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "check_schema_exists", "macro_sql": "{% macro check_schema_exists(information_schema, schema) -%}\n {{ return(adapter.dispatch('check_schema_exists', 'dbt')(information_schema, schema)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__check_schema_exists"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.817464}, "macro.dbt.default__check_schema_exists": {"unique_id": "macro.dbt.default__check_schema_exists", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "default__check_schema_exists", "macro_sql": "{% macro default__check_schema_exists(information_schema, schema) -%}\n {% set sql -%}\n select count(*)\n from {{ information_schema.replace(information_schema_view='SCHEMATA') }}\n where catalog_name='{{ information_schema.database }}'\n and schema_name='{{ schema }}'\n {%- endset %}\n {{ return(run_query(sql)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.replace", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.818233}, "macro.dbt.list_relations_without_caching": {"unique_id": "macro.dbt.list_relations_without_caching", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "list_relations_without_caching", "macro_sql": "{% macro list_relations_without_caching(schema_relation) %}\n {{ return(adapter.dispatch('list_relations_without_caching', 'dbt')(schema_relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__list_relations_without_caching"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.8187819}, "macro.dbt.default__list_relations_without_caching": {"unique_id": "macro.dbt.default__list_relations_without_caching", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "default__list_relations_without_caching", "macro_sql": "{% macro default__list_relations_without_caching(schema_relation) %}\n {{ exceptions.raise_not_implemented(\n 'list_relations_without_caching macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.819146}, "macro.dbt.get_columns_in_relation": {"unique_id": "macro.dbt.get_columns_in_relation", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "get_columns_in_relation", "macro_sql": "{% macro get_columns_in_relation(relation) -%}\n {{ return(adapter.dispatch('get_columns_in_relation', 'dbt')(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__get_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.8219368}, "macro.dbt.default__get_columns_in_relation": {"unique_id": "macro.dbt.default__get_columns_in_relation", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "default__get_columns_in_relation", "macro_sql": "{% macro default__get_columns_in_relation(relation) -%}\n {{ exceptions.raise_not_implemented(\n 'get_columns_in_relation macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.822287}, "macro.dbt.sql_convert_columns_in_relation": {"unique_id": "macro.dbt.sql_convert_columns_in_relation", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "sql_convert_columns_in_relation", "macro_sql": "{% macro sql_convert_columns_in_relation(table) -%}\n {% set columns = [] %}\n {% for row in table %}\n {% do columns.append(api.Column(*row)) %}\n {% endfor %}\n {{ return(columns) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.823167}, "macro.dbt.get_columns_in_query": {"unique_id": "macro.dbt.get_columns_in_query", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "get_columns_in_query", "macro_sql": "{% macro get_columns_in_query(select_sql) -%}\n {{ return(adapter.dispatch('get_columns_in_query', 'dbt')(select_sql)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_columns_in_query"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.8237991}, "macro.dbt.default__get_columns_in_query": {"unique_id": "macro.dbt.default__get_columns_in_query", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "default__get_columns_in_query", "macro_sql": "{% macro default__get_columns_in_query(select_sql) %}\n {% call statement('get_columns_in_query', fetch_result=True, auto_begin=False) -%}\n select * from (\n {{ select_sql }}\n ) as __dbt_sbq\n where false\n limit 0\n {% endcall %}\n\n {{ return(load_result('get_columns_in_query').table.columns | map(attribute='name') | list) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.824536}, "macro.dbt.alter_column_type": {"unique_id": "macro.dbt.alter_column_type", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "alter_column_type", "macro_sql": "{% macro alter_column_type(relation, column_name, new_column_type) -%}\n {{ return(adapter.dispatch('alter_column_type', 'dbt')(relation, column_name, new_column_type)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__alter_column_type"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.8250399}, "macro.dbt.default__alter_column_type": {"unique_id": "macro.dbt.default__alter_column_type", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "default__alter_column_type", "macro_sql": "{% macro default__alter_column_type(relation, column_name, new_column_type) -%}\n {#\n 1. Create a new column (w/ temp name and correct type)\n 2. Copy data over to it\n 3. Drop the existing column (cascade!)\n 4. Rename the new column to existing column\n #}\n {%- set tmp_column = column_name + \"__dbt_alter\" -%}\n\n {% call statement('alter_column_type') %}\n alter table {{ relation }} add column {{ adapter.quote(tmp_column) }} {{ new_column_type }};\n update {{ relation }} set {{ adapter.quote(tmp_column) }} = {{ adapter.quote(column_name) }};\n alter table {{ relation }} drop column {{ adapter.quote(column_name) }} cascade;\n alter table {{ relation }} rename column {{ adapter.quote(tmp_column) }} to {{ adapter.quote(column_name) }}\n {% endcall %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.826358}, "macro.dbt.alter_relation_add_remove_columns": {"unique_id": "macro.dbt.alter_relation_add_remove_columns", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "alter_relation_add_remove_columns", "macro_sql": "{% macro alter_relation_add_remove_columns(relation, add_columns = none, remove_columns = none) -%}\n {{ return(adapter.dispatch('alter_relation_add_remove_columns', 'dbt')(relation, add_columns, remove_columns)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__alter_relation_add_remove_columns"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.826956}, "macro.dbt.default__alter_relation_add_remove_columns": {"unique_id": "macro.dbt.default__alter_relation_add_remove_columns", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "default__alter_relation_add_remove_columns", "macro_sql": "{% macro default__alter_relation_add_remove_columns(relation, add_columns, remove_columns) %}\n \n {% if add_columns is none %}\n {% set add_columns = [] %}\n {% endif %}\n {% if remove_columns is none %}\n {% set remove_columns = [] %}\n {% endif %}\n \n {% set sql -%}\n \n alter {{ relation.type }} {{ relation }}\n \n {% for column in add_columns %}\n add column {{ column.name }} {{ column.data_type }}{{ ',' if not loop.last }}\n {% endfor %}{{ ',' if add_columns and remove_columns }}\n \n {% for column in remove_columns %}\n drop column {{ column.name }}{{ ',' if not loop.last }}\n {% endfor %}\n \n {%- endset -%}\n\n {% do run_query(sql) %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.8292532}, "macro.dbt.test_unique": {"unique_id": "macro.dbt.test_unique", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "name": "test_unique", "macro_sql": "{% test unique(model, column_name) %}\n {% set macro = adapter.dispatch('test_unique', 'dbt') %}\n {{ macro(model, column_name) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__test_unique"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.830407}, "macro.dbt.test_not_null": {"unique_id": "macro.dbt.test_not_null", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "name": "test_not_null", "macro_sql": "{% test not_null(model, column_name) %}\n {% set macro = adapter.dispatch('test_not_null', 'dbt') %}\n {{ macro(model, column_name) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__test_not_null"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.830923}, "macro.dbt.test_accepted_values": {"unique_id": "macro.dbt.test_accepted_values", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "name": "test_accepted_values", "macro_sql": "{% test accepted_values(model, column_name, values, quote=True) %}\n {% set macro = adapter.dispatch('test_accepted_values', 'dbt') %}\n {{ macro(model, column_name, values, quote) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__test_accepted_values"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.831558}, "macro.dbt.test_relationships": {"unique_id": "macro.dbt.test_relationships", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "name": "test_relationships", "macro_sql": "{% test relationships(model, column_name, to, field) %}\n {% set macro = adapter.dispatch('test_relationships', 'dbt') %}\n {{ macro(model, column_name, to, field) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__test_relationships"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.832163}, "macro.dbt_utils.except": {"unique_id": "macro.dbt_utils.except", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/except.sql", "original_file_path": "macros/cross_db_utils/except.sql", "name": "except", "macro_sql": "{% macro except() %}\n {{ return(adapter.dispatch('except', 'dbt_utils')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.bigquery__except"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.832833}, "macro.dbt_utils.default__except": {"unique_id": "macro.dbt_utils.default__except", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/except.sql", "original_file_path": "macros/cross_db_utils/except.sql", "name": "default__except", "macro_sql": "{% macro default__except() %}\n\n except\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.833007}, "macro.dbt_utils.bigquery__except": {"unique_id": "macro.dbt_utils.bigquery__except", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/except.sql", "original_file_path": "macros/cross_db_utils/except.sql", "name": "bigquery__except", "macro_sql": "{% macro bigquery__except() %}\n\n except distinct\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.833178}, "macro.dbt_utils.replace": {"unique_id": "macro.dbt_utils.replace", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/replace.sql", "original_file_path": "macros/cross_db_utils/replace.sql", "name": "replace", "macro_sql": "{% macro replace(field, old_chars, new_chars) -%}\n {{ return(adapter.dispatch('replace', 'dbt_utils') (field, old_chars, new_chars)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__replace"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.8340201}, "macro.dbt_utils.default__replace": {"unique_id": "macro.dbt_utils.default__replace", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/replace.sql", "original_file_path": "macros/cross_db_utils/replace.sql", "name": "default__replace", "macro_sql": "{% macro default__replace(field, old_chars, new_chars) %}\n\n replace(\n {{ field }},\n {{ old_chars }},\n {{ new_chars }}\n )\n \n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.834526}, "macro.dbt_utils.concat": {"unique_id": "macro.dbt_utils.concat", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/concat.sql", "original_file_path": "macros/cross_db_utils/concat.sql", "name": "concat", "macro_sql": "{% macro concat(fields) -%}\n {{ return(adapter.dispatch('concat', 'dbt_utils')(fields)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__concat"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.835948}, "macro.dbt_utils.default__concat": {"unique_id": "macro.dbt_utils.default__concat", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/concat.sql", "original_file_path": "macros/cross_db_utils/concat.sql", "name": "default__concat", "macro_sql": "{% macro default__concat(fields) -%}\n {{ fields|join(' || ') }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.8362272}, "macro.dbt_utils.type_string": {"unique_id": "macro.dbt_utils.type_string", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "type_string", "macro_sql": "\n\n{%- macro type_string() -%}\n {{ return(adapter.dispatch('type_string', 'dbt_utils')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.837606}, "macro.dbt_utils.default__type_string": {"unique_id": "macro.dbt_utils.default__type_string", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "default__type_string", "macro_sql": "{% macro default__type_string() %}\n string\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.837912}, "macro.dbt_utils.redshift__type_string": {"unique_id": "macro.dbt_utils.redshift__type_string", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "redshift__type_string", "macro_sql": "\n\n{%- macro redshift__type_string() -%}\n varchar\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.8380768}, "macro.dbt_utils.postgres__type_string": {"unique_id": "macro.dbt_utils.postgres__type_string", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "postgres__type_string", "macro_sql": "{% macro postgres__type_string() %}\n varchar\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.838242}, "macro.dbt_utils.snowflake__type_string": {"unique_id": "macro.dbt_utils.snowflake__type_string", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "snowflake__type_string", "macro_sql": "{% macro snowflake__type_string() %}\n varchar\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.838401}, "macro.dbt_utils.type_timestamp": {"unique_id": "macro.dbt_utils.type_timestamp", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "type_timestamp", "macro_sql": "\n\n{%- macro type_timestamp() -%}\n {{ return(adapter.dispatch('type_timestamp', 'dbt_utils')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.838751}, "macro.dbt_utils.default__type_timestamp": {"unique_id": "macro.dbt_utils.default__type_timestamp", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "default__type_timestamp", "macro_sql": "{% macro default__type_timestamp() %}\n timestamp\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.8389199}, "macro.dbt_utils.postgres__type_timestamp": {"unique_id": "macro.dbt_utils.postgres__type_timestamp", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "postgres__type_timestamp", "macro_sql": "{% macro postgres__type_timestamp() %}\n timestamp without time zone\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.8390841}, "macro.dbt_utils.snowflake__type_timestamp": {"unique_id": "macro.dbt_utils.snowflake__type_timestamp", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "snowflake__type_timestamp", "macro_sql": "{% macro snowflake__type_timestamp() %}\n timestamp_ntz\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.839246}, "macro.dbt_utils.type_float": {"unique_id": "macro.dbt_utils.type_float", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "type_float", "macro_sql": "\n\n{%- macro type_float() -%}\n {{ return(adapter.dispatch('type_float', 'dbt_utils')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.bigquery__type_float"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.839596}, "macro.dbt_utils.default__type_float": {"unique_id": "macro.dbt_utils.default__type_float", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "default__type_float", "macro_sql": "{% macro default__type_float() %}\n float\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.8397639}, "macro.dbt_utils.bigquery__type_float": {"unique_id": "macro.dbt_utils.bigquery__type_float", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "bigquery__type_float", "macro_sql": "{% macro bigquery__type_float() %}\n float64\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.8399282}, "macro.dbt_utils.type_numeric": {"unique_id": "macro.dbt_utils.type_numeric", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "type_numeric", "macro_sql": "\n\n{%- macro type_numeric() -%}\n {{ return(adapter.dispatch('type_numeric', 'dbt_utils')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.bigquery__type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.84028}, "macro.dbt_utils.default__type_numeric": {"unique_id": "macro.dbt_utils.default__type_numeric", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "default__type_numeric", "macro_sql": "{% macro default__type_numeric() %}\n numeric(28, 6)\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.840448}, "macro.dbt_utils.bigquery__type_numeric": {"unique_id": "macro.dbt_utils.bigquery__type_numeric", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "bigquery__type_numeric", "macro_sql": "{% macro bigquery__type_numeric() %}\n numeric\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.8406122}, "macro.dbt_utils.type_bigint": {"unique_id": "macro.dbt_utils.type_bigint", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "type_bigint", "macro_sql": "\n\n{%- macro type_bigint() -%}\n {{ return(adapter.dispatch('type_bigint', 'dbt_utils')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.bigquery__type_bigint"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.840959}, "macro.dbt_utils.default__type_bigint": {"unique_id": "macro.dbt_utils.default__type_bigint", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "default__type_bigint", "macro_sql": "{% macro default__type_bigint() %}\n bigint\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.841127}, "macro.dbt_utils.bigquery__type_bigint": {"unique_id": "macro.dbt_utils.bigquery__type_bigint", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "bigquery__type_bigint", "macro_sql": "{% macro bigquery__type_bigint() %}\n int64\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.8412921}, "macro.dbt_utils.type_int": {"unique_id": "macro.dbt_utils.type_int", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "type_int", "macro_sql": "\n\n{%- macro type_int() -%}\n {{ return(adapter.dispatch('type_int', 'dbt_utils')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.bigquery__type_int"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.841794}, "macro.dbt_utils.default__type_int": {"unique_id": "macro.dbt_utils.default__type_int", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "default__type_int", "macro_sql": "{% macro default__type_int() %}\n int\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.84196}, "macro.dbt_utils.bigquery__type_int": {"unique_id": "macro.dbt_utils.bigquery__type_int", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "bigquery__type_int", "macro_sql": "{% macro bigquery__type_int() %}\n int64\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.842122}, "macro.dbt_utils._is_relation": {"unique_id": "macro.dbt_utils._is_relation", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/_is_relation.sql", "original_file_path": "macros/cross_db_utils/_is_relation.sql", "name": "_is_relation", "macro_sql": "{% macro _is_relation(obj, macro) %}\n {%- if not (obj is mapping and obj.get('metadata', {}).get('type', '').endswith('Relation')) -%}\n {%- do exceptions.raise_compiler_error(\"Macro \" ~ macro ~ \" expected a Relation but received the value: \" ~ obj) -%}\n {%- endif -%}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.8431702}, "macro.dbt_utils.length": {"unique_id": "macro.dbt_utils.length", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/length.sql", "original_file_path": "macros/cross_db_utils/length.sql", "name": "length", "macro_sql": "{% macro length(expression) -%}\n {{ return(adapter.dispatch('length', 'dbt_utils') (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__length"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.843889}, "macro.dbt_utils.default__length": {"unique_id": "macro.dbt_utils.default__length", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/length.sql", "original_file_path": "macros/cross_db_utils/length.sql", "name": "default__length", "macro_sql": "{% macro default__length(expression) %}\n \n length(\n {{ expression }}\n )\n \n{%- endmacro -%}\n\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.844129}, "macro.dbt_utils.redshift__length": {"unique_id": "macro.dbt_utils.redshift__length", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/length.sql", "original_file_path": "macros/cross_db_utils/length.sql", "name": "redshift__length", "macro_sql": "{% macro redshift__length(expression) %}\n\n len(\n {{ expression }}\n )\n \n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.844361}, "macro.dbt_utils.dateadd": {"unique_id": "macro.dbt_utils.dateadd", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/dateadd.sql", "original_file_path": "macros/cross_db_utils/dateadd.sql", "name": "dateadd", "macro_sql": "{% macro dateadd(datepart, interval, from_date_or_timestamp) %}\n {{ return(adapter.dispatch('dateadd', 'dbt_utils')(datepart, interval, from_date_or_timestamp)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.bigquery__dateadd"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.845593}, "macro.dbt_utils.default__dateadd": {"unique_id": "macro.dbt_utils.default__dateadd", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/dateadd.sql", "original_file_path": "macros/cross_db_utils/dateadd.sql", "name": "default__dateadd", "macro_sql": "{% macro default__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n dateadd(\n {{ datepart }},\n {{ interval }},\n {{ from_date_or_timestamp }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.845956}, "macro.dbt_utils.bigquery__dateadd": {"unique_id": "macro.dbt_utils.bigquery__dateadd", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/dateadd.sql", "original_file_path": "macros/cross_db_utils/dateadd.sql", "name": "bigquery__dateadd", "macro_sql": "{% macro bigquery__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n datetime_add(\n cast( {{ from_date_or_timestamp }} as datetime),\n interval {{ interval }} {{ datepart }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.846314}, "macro.dbt_utils.postgres__dateadd": {"unique_id": "macro.dbt_utils.postgres__dateadd", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/dateadd.sql", "original_file_path": "macros/cross_db_utils/dateadd.sql", "name": "postgres__dateadd", "macro_sql": "{% macro postgres__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n {{ from_date_or_timestamp }} + ((interval '1 {{ datepart }}') * ({{ interval }}))\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.846666}, "macro.dbt_utils.redshift__dateadd": {"unique_id": "macro.dbt_utils.redshift__dateadd", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/dateadd.sql", "original_file_path": "macros/cross_db_utils/dateadd.sql", "name": "redshift__dateadd", "macro_sql": "{% macro redshift__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n {{ return(dbt_utils.default__dateadd(datepart, interval, from_date_or_timestamp)) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__dateadd"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.847223}, "macro.dbt_utils.intersect": {"unique_id": "macro.dbt_utils.intersect", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/intersect.sql", "original_file_path": "macros/cross_db_utils/intersect.sql", "name": "intersect", "macro_sql": "{% macro intersect() %}\n {{ return(adapter.dispatch('intersect', 'dbt_utils')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.bigquery__intersect"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.848447}, "macro.dbt_utils.default__intersect": {"unique_id": "macro.dbt_utils.default__intersect", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/intersect.sql", "original_file_path": "macros/cross_db_utils/intersect.sql", "name": "default__intersect", "macro_sql": "{% macro default__intersect() %}\n\n intersect\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.8486242}, "macro.dbt_utils.bigquery__intersect": {"unique_id": "macro.dbt_utils.bigquery__intersect", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/intersect.sql", "original_file_path": "macros/cross_db_utils/intersect.sql", "name": "bigquery__intersect", "macro_sql": "{% macro bigquery__intersect() %}\n\n intersect distinct\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.848792}, "macro.dbt_utils.escape_single_quotes": {"unique_id": "macro.dbt_utils.escape_single_quotes", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/escape_single_quotes.sql", "original_file_path": "macros/cross_db_utils/escape_single_quotes.sql", "name": "escape_single_quotes", "macro_sql": "{% macro escape_single_quotes(expression) %}\n {{ return(adapter.dispatch('escape_single_quotes', 'dbt_utils') (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.bigquery__escape_single_quotes"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.849611}, "macro.dbt_utils.default__escape_single_quotes": {"unique_id": "macro.dbt_utils.default__escape_single_quotes", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/escape_single_quotes.sql", "original_file_path": "macros/cross_db_utils/escape_single_quotes.sql", "name": "default__escape_single_quotes", "macro_sql": "{% macro default__escape_single_quotes(expression) -%}\n{{ expression | replace(\"'\",\"''\") }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.8499231}, "macro.dbt_utils.snowflake__escape_single_quotes": {"unique_id": "macro.dbt_utils.snowflake__escape_single_quotes", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/escape_single_quotes.sql", "original_file_path": "macros/cross_db_utils/escape_single_quotes.sql", "name": "snowflake__escape_single_quotes", "macro_sql": "{% macro snowflake__escape_single_quotes(expression) -%}\n{{ expression | replace(\"'\", \"\\\\'\") }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.850233}, "macro.dbt_utils.bigquery__escape_single_quotes": {"unique_id": "macro.dbt_utils.bigquery__escape_single_quotes", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/escape_single_quotes.sql", "original_file_path": "macros/cross_db_utils/escape_single_quotes.sql", "name": "bigquery__escape_single_quotes", "macro_sql": "{% macro bigquery__escape_single_quotes(expression) -%}\n{{ expression | replace(\"'\", \"\\\\'\") }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.85054}, "macro.dbt_utils.right": {"unique_id": "macro.dbt_utils.right", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/right.sql", "original_file_path": "macros/cross_db_utils/right.sql", "name": "right", "macro_sql": "{% macro right(string_text, length_expression) -%}\n {{ return(adapter.dispatch('right', 'dbt_utils') (string_text, length_expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.bigquery__right"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.851629}, "macro.dbt_utils.default__right": {"unique_id": "macro.dbt_utils.default__right", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/right.sql", "original_file_path": "macros/cross_db_utils/right.sql", "name": "default__right", "macro_sql": "{% macro default__right(string_text, length_expression) %}\n\n right(\n {{ string_text }},\n {{ length_expression }}\n )\n \n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.851934}, "macro.dbt_utils.bigquery__right": {"unique_id": "macro.dbt_utils.bigquery__right", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/right.sql", "original_file_path": "macros/cross_db_utils/right.sql", "name": "bigquery__right", "macro_sql": "{% macro bigquery__right(string_text, length_expression) %}\n\n case when {{ length_expression }} = 0 \n then ''\n else \n substr(\n {{ string_text }},\n -1 * ({{ length_expression }})\n )\n end\n\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.852284}, "macro.dbt_utils.snowflake__right": {"unique_id": "macro.dbt_utils.snowflake__right", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/right.sql", "original_file_path": "macros/cross_db_utils/right.sql", "name": "snowflake__right", "macro_sql": "{% macro snowflake__right(string_text, length_expression) %}\n\n case when {{ length_expression }} = 0 \n then ''\n else \n right(\n {{ string_text }},\n {{ length_expression }}\n )\n end\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.852632}, "macro.dbt_utils.listagg": {"unique_id": "macro.dbt_utils.listagg", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/listagg.sql", "original_file_path": "macros/cross_db_utils/listagg.sql", "name": "listagg", "macro_sql": "{% macro listagg(measure, delimiter_text=\"','\", order_by_clause=none, limit_num=none) -%}\n {{ return(adapter.dispatch('listagg', 'dbt_utils') (measure, delimiter_text, order_by_clause, limit_num)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.bigquery__listagg"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.856297}, "macro.dbt_utils.default__listagg": {"unique_id": "macro.dbt_utils.default__listagg", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/listagg.sql", "original_file_path": "macros/cross_db_utils/listagg.sql", "name": "default__listagg", "macro_sql": "{% macro default__listagg(measure, delimiter_text, order_by_clause, limit_num) -%}\n\n {% if limit_num -%}\n array_to_string(\n array_slice(\n array_agg(\n {{ measure }}\n ){% if order_by_clause -%}\n within group ({{ order_by_clause }})\n {%- endif %}\n ,0\n ,{{ limit_num }}\n ),\n {{ delimiter_text }}\n )\n {%- else %}\n listagg(\n {{ measure }},\n {{ delimiter_text }}\n )\n {% if order_by_clause -%}\n within group ({{ order_by_clause }})\n {%- endif %}\n {%- endif %}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.8581}, "macro.dbt_utils.bigquery__listagg": {"unique_id": "macro.dbt_utils.bigquery__listagg", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/listagg.sql", "original_file_path": "macros/cross_db_utils/listagg.sql", "name": "bigquery__listagg", "macro_sql": "{% macro bigquery__listagg(measure, delimiter_text, order_by_clause, limit_num) -%}\n\n string_agg(\n {{ measure }},\n {{ delimiter_text }}\n {% if order_by_clause -%}\n {{ order_by_clause }}\n {%- endif %}\n {% if limit_num -%}\n limit {{ limit_num }}\n {%- endif %}\n )\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.859037}, "macro.dbt_utils.postgres__listagg": {"unique_id": "macro.dbt_utils.postgres__listagg", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/listagg.sql", "original_file_path": "macros/cross_db_utils/listagg.sql", "name": "postgres__listagg", "macro_sql": "{% macro postgres__listagg(measure, delimiter_text, order_by_clause, limit_num) -%}\n \n {% if limit_num -%}\n array_to_string(\n (array_agg(\n {{ measure }}\n {% if order_by_clause -%}\n {{ order_by_clause }}\n {%- endif %}\n ))[1:{{ limit_num }}],\n {{ delimiter_text }}\n )\n {%- else %}\n string_agg(\n {{ measure }},\n {{ delimiter_text }}\n {% if order_by_clause -%}\n {{ order_by_clause }}\n {%- endif %}\n )\n {%- endif %}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.859908}, "macro.dbt_utils.redshift__listagg": {"unique_id": "macro.dbt_utils.redshift__listagg", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/listagg.sql", "original_file_path": "macros/cross_db_utils/listagg.sql", "name": "redshift__listagg", "macro_sql": "{% macro redshift__listagg(measure, delimiter_text, order_by_clause, limit_num) -%}\n\n {% if limit_num -%}\n {% set ns = namespace() %}\n {% set ns.delimiter_text_regex = delimiter_text|trim(\"'\") %}\n {% set special_chars %}\\,^,$,.,|,?,*,+,(,),[,],{,}{% endset %} \n {%- for char in special_chars.split(',') -%}\n {% set escape_char %}\\\\{{ char }}{% endset %}\n {% set ns.delimiter_text_regex = ns.delimiter_text_regex|replace(char,escape_char) %}\n {%- endfor -%}\n\n {% set regex %}'([^{{ ns.delimiter_text_regex }}]+{{ ns.delimiter_text_regex }}){1,{{ limit_num - 1}}}[^{{ ns.delimiter_text_regex }}]+'{% endset %}\n regexp_substr(\n listagg(\n {{ measure }},\n {{ delimiter_text }}\n )\n {% if order_by_clause -%}\n within group ({{ order_by_clause }})\n {%- endif %}\n ,{{ regex }}\n )\n {%- else %}\n listagg(\n {{ measure }},\n {{ delimiter_text }}\n )\n {% if order_by_clause -%}\n within group ({{ order_by_clause }})\n {%- endif %}\n {%- endif %}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.862126}, "macro.dbt_utils.datediff": {"unique_id": "macro.dbt_utils.datediff", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datediff.sql", "original_file_path": "macros/cross_db_utils/datediff.sql", "name": "datediff", "macro_sql": "{% macro datediff(first_date, second_date, datepart) %}\n {{ return(adapter.dispatch('datediff', 'dbt_utils')(first_date, second_date, datepart)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.bigquery__datediff"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.8666291}, "macro.dbt_utils.default__datediff": {"unique_id": "macro.dbt_utils.default__datediff", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datediff.sql", "original_file_path": "macros/cross_db_utils/datediff.sql", "name": "default__datediff", "macro_sql": "{% macro default__datediff(first_date, second_date, datepart) -%}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.866994}, "macro.dbt_utils.bigquery__datediff": {"unique_id": "macro.dbt_utils.bigquery__datediff", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datediff.sql", "original_file_path": "macros/cross_db_utils/datediff.sql", "name": "bigquery__datediff", "macro_sql": "{% macro bigquery__datediff(first_date, second_date, datepart) -%}\n\n datetime_diff(\n cast({{second_date}} as datetime),\n cast({{first_date}} as datetime),\n {{datepart}}\n )\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.8673549}, "macro.dbt_utils.postgres__datediff": {"unique_id": "macro.dbt_utils.postgres__datediff", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datediff.sql", "original_file_path": "macros/cross_db_utils/datediff.sql", "name": "postgres__datediff", "macro_sql": "{% macro postgres__datediff(first_date, second_date, datepart) -%}\n\n {% if datepart == 'year' %}\n (date_part('year', ({{second_date}})::date) - date_part('year', ({{first_date}})::date))\n {% elif datepart == 'quarter' %}\n ({{ dbt_utils.datediff(first_date, second_date, 'year') }} * 4 + date_part('quarter', ({{second_date}})::date) - date_part('quarter', ({{first_date}})::date))\n {% elif datepart == 'month' %}\n ({{ dbt_utils.datediff(first_date, second_date, 'year') }} * 12 + date_part('month', ({{second_date}})::date) - date_part('month', ({{first_date}})::date))\n {% elif datepart == 'day' %}\n (({{second_date}})::date - ({{first_date}})::date)\n {% elif datepart == 'week' %}\n ({{ dbt_utils.datediff(first_date, second_date, 'day') }} / 7 + case\n when date_part('dow', ({{first_date}})::timestamp) <= date_part('dow', ({{second_date}})::timestamp) then\n case when {{first_date}} <= {{second_date}} then 0 else -1 end\n else\n case when {{first_date}} <= {{second_date}} then 1 else 0 end\n end)\n {% elif datepart == 'hour' %}\n ({{ dbt_utils.datediff(first_date, second_date, 'day') }} * 24 + date_part('hour', ({{second_date}})::timestamp) - date_part('hour', ({{first_date}})::timestamp))\n {% elif datepart == 'minute' %}\n ({{ dbt_utils.datediff(first_date, second_date, 'hour') }} * 60 + date_part('minute', ({{second_date}})::timestamp) - date_part('minute', ({{first_date}})::timestamp))\n {% elif datepart == 'second' %}\n ({{ dbt_utils.datediff(first_date, second_date, 'minute') }} * 60 + floor(date_part('second', ({{second_date}})::timestamp)) - floor(date_part('second', ({{first_date}})::timestamp)))\n {% elif datepart == 'millisecond' %}\n ({{ dbt_utils.datediff(first_date, second_date, 'minute') }} * 60000 + floor(date_part('millisecond', ({{second_date}})::timestamp)) - floor(date_part('millisecond', ({{first_date}})::timestamp)))\n {% elif datepart == 'microsecond' %}\n ({{ dbt_utils.datediff(first_date, second_date, 'minute') }} * 60000000 + floor(date_part('microsecond', ({{second_date}})::timestamp)) - floor(date_part('microsecond', ({{first_date}})::timestamp)))\n {% else %}\n {{ exceptions.raise_compiler_error(\"Unsupported datepart for macro datediff in postgres: {!r}\".format(datepart)) }}\n {% endif %}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.datediff"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.87199}, "macro.dbt_utils.redshift__datediff": {"unique_id": "macro.dbt_utils.redshift__datediff", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datediff.sql", "original_file_path": "macros/cross_db_utils/datediff.sql", "name": "redshift__datediff", "macro_sql": "{% macro redshift__datediff(first_date, second_date, datepart) -%}\n\n {{ return(dbt_utils.default__datediff(first_date, second_date, datepart)) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__datediff"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.8724182}, "macro.dbt_utils.safe_cast": {"unique_id": "macro.dbt_utils.safe_cast", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/safe_cast.sql", "original_file_path": "macros/cross_db_utils/safe_cast.sql", "name": "safe_cast", "macro_sql": "{% macro safe_cast(field, type) %}\n {{ return(adapter.dispatch('safe_cast', 'dbt_utils') (field, type)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.bigquery__safe_cast"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.873318}, "macro.dbt_utils.default__safe_cast": {"unique_id": "macro.dbt_utils.default__safe_cast", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/safe_cast.sql", "original_file_path": "macros/cross_db_utils/safe_cast.sql", "name": "default__safe_cast", "macro_sql": "{% macro default__safe_cast(field, type) %}\n {# most databases don't support this function yet\n so we just need to use cast #}\n cast({{field}} as {{type}})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.873627}, "macro.dbt_utils.snowflake__safe_cast": {"unique_id": "macro.dbt_utils.snowflake__safe_cast", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/safe_cast.sql", "original_file_path": "macros/cross_db_utils/safe_cast.sql", "name": "snowflake__safe_cast", "macro_sql": "{% macro snowflake__safe_cast(field, type) %}\n try_cast({{field}} as {{type}})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.8739488}, "macro.dbt_utils.bigquery__safe_cast": {"unique_id": "macro.dbt_utils.bigquery__safe_cast", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/safe_cast.sql", "original_file_path": "macros/cross_db_utils/safe_cast.sql", "name": "bigquery__safe_cast", "macro_sql": "{% macro bigquery__safe_cast(field, type) %}\n safe_cast({{field}} as {{type}})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.874232}, "macro.dbt_utils.hash": {"unique_id": "macro.dbt_utils.hash", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/hash.sql", "original_file_path": "macros/cross_db_utils/hash.sql", "name": "hash", "macro_sql": "{% macro hash(field) -%}\n {{ return(adapter.dispatch('hash', 'dbt_utils') (field)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.bigquery__hash"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.874951}, "macro.dbt_utils.default__hash": {"unique_id": "macro.dbt_utils.default__hash", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/hash.sql", "original_file_path": "macros/cross_db_utils/hash.sql", "name": "default__hash", "macro_sql": "{% macro default__hash(field) -%}\n md5(cast({{field}} as {{dbt_utils.type_string()}}))\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.8752599}, "macro.dbt_utils.bigquery__hash": {"unique_id": "macro.dbt_utils.bigquery__hash", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/hash.sql", "original_file_path": "macros/cross_db_utils/hash.sql", "name": "bigquery__hash", "macro_sql": "{% macro bigquery__hash(field) -%}\n to_hex({{dbt_utils.default__hash(field)}})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__hash"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.875542}, "macro.dbt_utils.cast_bool_to_text": {"unique_id": "macro.dbt_utils.cast_bool_to_text", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/cast_bool_to_text.sql", "original_file_path": "macros/cross_db_utils/cast_bool_to_text.sql", "name": "cast_bool_to_text", "macro_sql": "{% macro cast_bool_to_text(field) %}\n {{ adapter.dispatch('cast_bool_to_text', 'dbt_utils') (field) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__cast_bool_to_text"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.876269}, "macro.dbt_utils.default__cast_bool_to_text": {"unique_id": "macro.dbt_utils.default__cast_bool_to_text", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/cast_bool_to_text.sql", "original_file_path": "macros/cross_db_utils/cast_bool_to_text.sql", "name": "default__cast_bool_to_text", "macro_sql": "{% macro default__cast_bool_to_text(field) %}\n cast({{ field }} as {{ dbt_utils.type_string() }})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.8765812}, "macro.dbt_utils.redshift__cast_bool_to_text": {"unique_id": "macro.dbt_utils.redshift__cast_bool_to_text", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/cast_bool_to_text.sql", "original_file_path": "macros/cross_db_utils/cast_bool_to_text.sql", "name": "redshift__cast_bool_to_text", "macro_sql": "{% macro redshift__cast_bool_to_text(field) %}\n case\n when {{ field }} is true then 'true'\n when {{ field }} is false then 'false'\n end::text\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.876859}, "macro.dbt_utils.identifier": {"unique_id": "macro.dbt_utils.identifier", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/identifier.sql", "original_file_path": "macros/cross_db_utils/identifier.sql", "name": "identifier", "macro_sql": "{% macro identifier(value) %}\t\n {%- set error_message = '\n Warning: the `identifier` macro is no longer supported and will be deprecated in a future release of dbt-utils. \\\n Use `adapter.quote` instead. The {}.{} model triggered this warning. \\\n '.format(model.package_name, model.name) -%}\n {%- do exceptions.warn(error_message) -%}\n {{ return(adapter.dispatch('identifier', 'dbt_utils') (value)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.bigquery__identifier"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.8779142}, "macro.dbt_utils.default__identifier": {"unique_id": "macro.dbt_utils.default__identifier", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/identifier.sql", "original_file_path": "macros/cross_db_utils/identifier.sql", "name": "default__identifier", "macro_sql": "{% macro default__identifier(value) -%}\t\n \"{{ value }}\"\t\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.8781471}, "macro.dbt_utils.bigquery__identifier": {"unique_id": "macro.dbt_utils.bigquery__identifier", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/identifier.sql", "original_file_path": "macros/cross_db_utils/identifier.sql", "name": "bigquery__identifier", "macro_sql": "{% macro bigquery__identifier(value) -%}\t\n `{{ value }}`\t\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.878381}, "macro.dbt_utils.any_value": {"unique_id": "macro.dbt_utils.any_value", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/any_value.sql", "original_file_path": "macros/cross_db_utils/any_value.sql", "name": "any_value", "macro_sql": "{% macro any_value(expression) -%}\n {{ return(adapter.dispatch('any_value', 'dbt_utils') (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__any_value"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.8791318}, "macro.dbt_utils.default__any_value": {"unique_id": "macro.dbt_utils.default__any_value", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/any_value.sql", "original_file_path": "macros/cross_db_utils/any_value.sql", "name": "default__any_value", "macro_sql": "{% macro default__any_value(expression) -%}\n \n any_value({{ expression }})\n \n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.87937}, "macro.dbt_utils.postgres__any_value": {"unique_id": "macro.dbt_utils.postgres__any_value", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/any_value.sql", "original_file_path": "macros/cross_db_utils/any_value.sql", "name": "postgres__any_value", "macro_sql": "{% macro postgres__any_value(expression) -%}\n {#- /*Postgres doesn't support any_value, so we're using min() to get the same result*/ -#}\n min({{ expression }})\n \n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.8796139}, "macro.dbt_utils.position": {"unique_id": "macro.dbt_utils.position", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/position.sql", "original_file_path": "macros/cross_db_utils/position.sql", "name": "position", "macro_sql": "{% macro position(substring_text, string_text) -%}\n {{ return(adapter.dispatch('position', 'dbt_utils') (substring_text, string_text)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.bigquery__position"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.8804438}, "macro.dbt_utils.default__position": {"unique_id": "macro.dbt_utils.default__position", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/position.sql", "original_file_path": "macros/cross_db_utils/position.sql", "name": "default__position", "macro_sql": "{% macro default__position(substring_text, string_text) %}\n\n position(\n {{ substring_text }} in {{ string_text }}\n )\n \n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.881092}, "macro.dbt_utils.bigquery__position": {"unique_id": "macro.dbt_utils.bigquery__position", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/position.sql", "original_file_path": "macros/cross_db_utils/position.sql", "name": "bigquery__position", "macro_sql": "{% macro bigquery__position(substring_text, string_text) %}\n\n strpos(\n {{ string_text }},\n {{ substring_text }}\n \n )\n \n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.881651}, "macro.dbt_utils.string_literal": {"unique_id": "macro.dbt_utils.string_literal", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/literal.sql", "original_file_path": "macros/cross_db_utils/literal.sql", "name": "string_literal", "macro_sql": "{%- macro string_literal(value) -%}\n {{ return(adapter.dispatch('string_literal', 'dbt_utils') (value)) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__string_literal"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.8826602}, "macro.dbt_utils.default__string_literal": {"unique_id": "macro.dbt_utils.default__string_literal", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/literal.sql", "original_file_path": "macros/cross_db_utils/literal.sql", "name": "default__string_literal", "macro_sql": "{% macro default__string_literal(value) -%}\n '{{ value }}'\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.8828921}, "macro.dbt_utils.current_timestamp": {"unique_id": "macro.dbt_utils.current_timestamp", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/cross_db_utils/current_timestamp.sql", "name": "current_timestamp", "macro_sql": "{% macro current_timestamp() -%}\n {{ return(adapter.dispatch('current_timestamp', 'dbt_utils')()) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.bigquery__current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.88398}, "macro.dbt_utils.default__current_timestamp": {"unique_id": "macro.dbt_utils.default__current_timestamp", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/cross_db_utils/current_timestamp.sql", "name": "default__current_timestamp", "macro_sql": "{% macro default__current_timestamp() %}\n current_timestamp::{{dbt_utils.type_timestamp()}}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.8842292}, "macro.dbt_utils.redshift__current_timestamp": {"unique_id": "macro.dbt_utils.redshift__current_timestamp", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/cross_db_utils/current_timestamp.sql", "name": "redshift__current_timestamp", "macro_sql": "{% macro redshift__current_timestamp() %}\n getdate()\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.884396}, "macro.dbt_utils.bigquery__current_timestamp": {"unique_id": "macro.dbt_utils.bigquery__current_timestamp", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/cross_db_utils/current_timestamp.sql", "name": "bigquery__current_timestamp", "macro_sql": "{% macro bigquery__current_timestamp() %}\n current_timestamp\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.8845592}, "macro.dbt_utils.current_timestamp_in_utc": {"unique_id": "macro.dbt_utils.current_timestamp_in_utc", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/cross_db_utils/current_timestamp.sql", "name": "current_timestamp_in_utc", "macro_sql": "{% macro current_timestamp_in_utc() -%}\n {{ return(adapter.dispatch('current_timestamp_in_utc', 'dbt_utils')()) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__current_timestamp_in_utc"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.8849}, "macro.dbt_utils.default__current_timestamp_in_utc": {"unique_id": "macro.dbt_utils.default__current_timestamp_in_utc", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/cross_db_utils/current_timestamp.sql", "name": "default__current_timestamp_in_utc", "macro_sql": "{% macro default__current_timestamp_in_utc() %}\n {{dbt_utils.current_timestamp()}}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.8851452}, "macro.dbt_utils.snowflake__current_timestamp_in_utc": {"unique_id": "macro.dbt_utils.snowflake__current_timestamp_in_utc", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/cross_db_utils/current_timestamp.sql", "name": "snowflake__current_timestamp_in_utc", "macro_sql": "{% macro snowflake__current_timestamp_in_utc() %}\n convert_timezone('UTC', {{dbt_utils.current_timestamp()}})::{{dbt_utils.type_timestamp()}}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.current_timestamp", "macro.dbt_utils.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.8854651}, "macro.dbt_utils.postgres__current_timestamp_in_utc": {"unique_id": "macro.dbt_utils.postgres__current_timestamp_in_utc", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/cross_db_utils/current_timestamp.sql", "name": "postgres__current_timestamp_in_utc", "macro_sql": "{% macro postgres__current_timestamp_in_utc() %}\n (current_timestamp at time zone 'utc')::{{dbt_utils.type_timestamp()}}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.8857112}, "macro.dbt_utils.redshift__current_timestamp_in_utc": {"unique_id": "macro.dbt_utils.redshift__current_timestamp_in_utc", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/cross_db_utils/current_timestamp.sql", "name": "redshift__current_timestamp_in_utc", "macro_sql": "{% macro redshift__current_timestamp_in_utc() %}\n {{ return(dbt_utils.default__current_timestamp_in_utc()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__current_timestamp_in_utc"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.885998}, "macro.dbt_utils.width_bucket": {"unique_id": "macro.dbt_utils.width_bucket", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/width_bucket.sql", "original_file_path": "macros/cross_db_utils/width_bucket.sql", "name": "width_bucket", "macro_sql": "{% macro width_bucket(expr, min_value, max_value, num_buckets) %}\n {{ return(adapter.dispatch('width_bucket', 'dbt_utils') (expr, min_value, max_value, num_buckets)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__width_bucket"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.88834}, "macro.dbt_utils.default__width_bucket": {"unique_id": "macro.dbt_utils.default__width_bucket", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/width_bucket.sql", "original_file_path": "macros/cross_db_utils/width_bucket.sql", "name": "default__width_bucket", "macro_sql": "{% macro default__width_bucket(expr, min_value, max_value, num_buckets) -%}\n\n {% set bin_size -%}\n (( {{ max_value }} - {{ min_value }} ) / {{ num_buckets }} )\n {%- endset %}\n (\n -- to break ties when the amount is eaxtly at the bucket egde\n case\n when\n mod(\n {{ dbt_utils.safe_cast(expr, dbt_utils.type_numeric() ) }},\n {{ dbt_utils.safe_cast(bin_size, dbt_utils.type_numeric() ) }}\n ) = 0\n then 1\n else 0\n end\n ) +\n -- Anything over max_value goes the N+1 bucket\n least(\n ceil(\n ({{ expr }} - {{ min_value }})/{{ bin_size }}\n ),\n {{ num_buckets }} + 1\n )\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.safe_cast", "macro.dbt_utils.type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.88933}, "macro.dbt_utils.redshift__width_bucket": {"unique_id": "macro.dbt_utils.redshift__width_bucket", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/width_bucket.sql", "original_file_path": "macros/cross_db_utils/width_bucket.sql", "name": "redshift__width_bucket", "macro_sql": "{% macro redshift__width_bucket(expr, min_value, max_value, num_buckets) -%}\n\n {% set bin_size -%}\n (( {{ max_value }} - {{ min_value }} ) / {{ num_buckets }} )\n {%- endset %}\n (\n -- to break ties when the amount is exactly at the bucket edge\n case\n when\n {{ dbt_utils.safe_cast(expr, dbt_utils.type_numeric() ) }} %\n {{ dbt_utils.safe_cast(bin_size, dbt_utils.type_numeric() ) }}\n = 0\n then 1\n else 0\n end\n ) +\n -- Anything over max_value goes the N+1 bucket\n least(\n ceil(\n ({{ expr }} - {{ min_value }})/{{ bin_size }}\n ),\n {{ num_buckets }} + 1\n )\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.safe_cast", "macro.dbt_utils.type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.890461}, "macro.dbt_utils.snowflake__width_bucket": {"unique_id": "macro.dbt_utils.snowflake__width_bucket", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/width_bucket.sql", "original_file_path": "macros/cross_db_utils/width_bucket.sql", "name": "snowflake__width_bucket", "macro_sql": "{% macro snowflake__width_bucket(expr, min_value, max_value, num_buckets) %}\n width_bucket({{ expr }}, {{ min_value }}, {{ max_value }}, {{ num_buckets }} )\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.891408}, "macro.dbt_utils.bool_or": {"unique_id": "macro.dbt_utils.bool_or", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/bool_or.sql", "original_file_path": "macros/cross_db_utils/bool_or.sql", "name": "bool_or", "macro_sql": "{% macro bool_or(expression) -%}\n {{ return(adapter.dispatch('bool_or', 'dbt_utils') (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.bigquery__bool_or"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.892363}, "macro.dbt_utils.default__bool_or": {"unique_id": "macro.dbt_utils.default__bool_or", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/bool_or.sql", "original_file_path": "macros/cross_db_utils/bool_or.sql", "name": "default__bool_or", "macro_sql": "{% macro default__bool_or(expression) -%}\n \n bool_or({{ expression }})\n \n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.892593}, "macro.dbt_utils.snowflake__bool_or": {"unique_id": "macro.dbt_utils.snowflake__bool_or", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/bool_or.sql", "original_file_path": "macros/cross_db_utils/bool_or.sql", "name": "snowflake__bool_or", "macro_sql": "{% macro snowflake__bool_or(expression) -%}\n \n boolor_agg({{ expression }})\n \n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.892819}, "macro.dbt_utils.bigquery__bool_or": {"unique_id": "macro.dbt_utils.bigquery__bool_or", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/bool_or.sql", "original_file_path": "macros/cross_db_utils/bool_or.sql", "name": "bigquery__bool_or", "macro_sql": "{% macro bigquery__bool_or(expression) -%}\n \n logical_or({{ expression }})\n \n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.893043}, "macro.dbt_utils.last_day": {"unique_id": "macro.dbt_utils.last_day", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/last_day.sql", "original_file_path": "macros/cross_db_utils/last_day.sql", "name": "last_day", "macro_sql": "{% macro last_day(date, datepart) %}\n {{ return(adapter.dispatch('last_day', 'dbt_utils') (date, datepart)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__last_day"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.894164}, "macro.dbt_utils.default_last_day": {"unique_id": "macro.dbt_utils.default_last_day", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/last_day.sql", "original_file_path": "macros/cross_db_utils/last_day.sql", "name": "default_last_day", "macro_sql": "\n\n\n{%- macro default_last_day(date, datepart) -%}\n cast(\n {{dbt_utils.dateadd('day', '-1',\n dbt_utils.dateadd(datepart, '1', dbt_utils.date_trunc(datepart, date))\n )}}\n as date)\n{%- endmacro -%}\n\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.dateadd", "macro.dbt_utils.date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.89485}, "macro.dbt_utils.default__last_day": {"unique_id": "macro.dbt_utils.default__last_day", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/last_day.sql", "original_file_path": "macros/cross_db_utils/last_day.sql", "name": "default__last_day", "macro_sql": "{% macro default__last_day(date, datepart) -%}\n {{dbt_utils.default_last_day(date, datepart)}}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default_last_day"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.89517}, "macro.dbt_utils.postgres__last_day": {"unique_id": "macro.dbt_utils.postgres__last_day", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/last_day.sql", "original_file_path": "macros/cross_db_utils/last_day.sql", "name": "postgres__last_day", "macro_sql": "{% macro postgres__last_day(date, datepart) -%}\n\n {%- if datepart == 'quarter' -%}\n -- postgres dateadd does not support quarter interval.\n cast(\n {{dbt_utils.dateadd('day', '-1',\n dbt_utils.dateadd('month', '3', dbt_utils.date_trunc(datepart, date))\n )}}\n as date)\n {%- else -%}\n {{dbt_utils.default_last_day(date, datepart)}}\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.dateadd", "macro.dbt_utils.date_trunc", "macro.dbt_utils.default_last_day"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.896003}, "macro.dbt_utils.redshift__last_day": {"unique_id": "macro.dbt_utils.redshift__last_day", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/last_day.sql", "original_file_path": "macros/cross_db_utils/last_day.sql", "name": "redshift__last_day", "macro_sql": "{% macro redshift__last_day(date, datepart) %}\n\n {{ return(dbt_utils.default__last_day(date, datepart)) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__last_day"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.89638}, "macro.dbt_utils.split_part": {"unique_id": "macro.dbt_utils.split_part", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/split_part.sql", "original_file_path": "macros/cross_db_utils/split_part.sql", "name": "split_part", "macro_sql": "{% macro split_part(string_text, delimiter_text, part_number) %}\n {{ return(adapter.dispatch('split_part', 'dbt_utils') (string_text, delimiter_text, part_number)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.bigquery__split_part"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.8987572}, "macro.dbt_utils.default__split_part": {"unique_id": "macro.dbt_utils.default__split_part", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/split_part.sql", "original_file_path": "macros/cross_db_utils/split_part.sql", "name": "default__split_part", "macro_sql": "{% macro default__split_part(string_text, delimiter_text, part_number) %}\n\n split_part(\n {{ string_text }},\n {{ delimiter_text }},\n {{ part_number }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.8991208}, "macro.dbt_utils._split_part_negative": {"unique_id": "macro.dbt_utils._split_part_negative", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/split_part.sql", "original_file_path": "macros/cross_db_utils/split_part.sql", "name": "_split_part_negative", "macro_sql": "{% macro _split_part_negative(string_text, delimiter_text, part_number) %}\n\n split_part(\n {{ string_text }},\n {{ delimiter_text }},\n length({{ string_text }}) \n - length(\n replace({{ string_text }}, {{ delimiter_text }}, '')\n ) + 2 {{ part_number }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.899613}, "macro.dbt_utils.postgres__split_part": {"unique_id": "macro.dbt_utils.postgres__split_part", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/split_part.sql", "original_file_path": "macros/cross_db_utils/split_part.sql", "name": "postgres__split_part", "macro_sql": "{% macro postgres__split_part(string_text, delimiter_text, part_number) %}\n\n {% if part_number >= 0 %}\n {{ dbt_utils.default__split_part(string_text, delimiter_text, part_number) }}\n {% else %}\n {{ dbt_utils._split_part_negative(string_text, delimiter_text, part_number) }}\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__split_part", "macro.dbt_utils._split_part_negative"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.900321}, "macro.dbt_utils.redshift__split_part": {"unique_id": "macro.dbt_utils.redshift__split_part", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/split_part.sql", "original_file_path": "macros/cross_db_utils/split_part.sql", "name": "redshift__split_part", "macro_sql": "{% macro redshift__split_part(string_text, delimiter_text, part_number) %}\n\n {% if part_number >= 0 %}\n {{ dbt_utils.default__split_part(string_text, delimiter_text, part_number) }}\n {% else %}\n {{ dbt_utils._split_part_negative(string_text, delimiter_text, part_number) }}\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__split_part", "macro.dbt_utils._split_part_negative"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.901032}, "macro.dbt_utils.bigquery__split_part": {"unique_id": "macro.dbt_utils.bigquery__split_part", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/split_part.sql", "original_file_path": "macros/cross_db_utils/split_part.sql", "name": "bigquery__split_part", "macro_sql": "{% macro bigquery__split_part(string_text, delimiter_text, part_number) %}\n\n {% if part_number >= 0 %}\n split(\n {{ string_text }},\n {{ delimiter_text }}\n )[safe_offset({{ part_number - 1 }})]\n {% else %}\n split(\n {{ string_text }},\n {{ delimiter_text }}\n )[safe_offset(\n length({{ string_text }}) \n - length(\n replace({{ string_text }}, {{ delimiter_text }}, '')\n ) + 1\n )]\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.902269}, "macro.dbt_utils.date_trunc": {"unique_id": "macro.dbt_utils.date_trunc", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/date_trunc.sql", "original_file_path": "macros/cross_db_utils/date_trunc.sql", "name": "date_trunc", "macro_sql": "{% macro date_trunc(datepart, date) -%}\n {{ return(adapter.dispatch('date_trunc', 'dbt_utils') (datepart, date)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.bigquery__date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.903667}, "macro.dbt_utils.default__date_trunc": {"unique_id": "macro.dbt_utils.default__date_trunc", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/date_trunc.sql", "original_file_path": "macros/cross_db_utils/date_trunc.sql", "name": "default__date_trunc", "macro_sql": "{% macro default__date_trunc(datepart, date) -%}\n date_trunc('{{datepart}}', {{date}})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.9039629}, "macro.dbt_utils.bigquery__date_trunc": {"unique_id": "macro.dbt_utils.bigquery__date_trunc", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/date_trunc.sql", "original_file_path": "macros/cross_db_utils/date_trunc.sql", "name": "bigquery__date_trunc", "macro_sql": "{% macro bigquery__date_trunc(datepart, date) -%}\n timestamp_trunc(\n cast({{date}} as timestamp),\n {{datepart}}\n )\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.904256}, "macro.dbt_utils._is_ephemeral": {"unique_id": "macro.dbt_utils._is_ephemeral", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/_is_ephemeral.sql", "original_file_path": "macros/cross_db_utils/_is_ephemeral.sql", "name": "_is_ephemeral", "macro_sql": "{% macro _is_ephemeral(obj, macro) %}\n {%- if obj.is_cte -%}\n {% set ephemeral_prefix = api.Relation.add_ephemeral_prefix('') %}\n {% if obj.name.startswith(ephemeral_prefix) %}\n {% set model_name = obj.name[(ephemeral_prefix|length):] %}\n {% else %}\n {% set model_name = obj.name %}\n {%- endif -%}\n {% set error_message %}\nThe `{{ macro }}` macro cannot be used with ephemeral models, as it relies on the information schema.\n\n`{{ model_name }}` is an ephemeral model. Consider making it a view or table instead.\n {% endset %}\n {%- do exceptions.raise_compiler_error(error_message) -%}\n {%- endif -%}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.906007}, "macro.dbt_utils.get_period_boundaries": {"unique_id": "macro.dbt_utils.get_period_boundaries", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/materializations/insert_by_period_materialization.sql", "original_file_path": "macros/materializations/insert_by_period_materialization.sql", "name": "get_period_boundaries", "macro_sql": "{% macro get_period_boundaries(target_schema, target_table, timestamp_field, start_date, stop_date, period) -%}\n {{ return(adapter.dispatch('get_period_boundaries', 'dbt_utils')(target_schema, target_table, timestamp_field, start_date, stop_date, period)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_period_boundaries"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.915433}, "macro.dbt_utils.default__get_period_boundaries": {"unique_id": "macro.dbt_utils.default__get_period_boundaries", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/materializations/insert_by_period_materialization.sql", "original_file_path": "macros/materializations/insert_by_period_materialization.sql", "name": "default__get_period_boundaries", "macro_sql": "{% macro default__get_period_boundaries(target_schema, target_table, timestamp_field, start_date, stop_date, period) -%}\n\n {% call statement('period_boundaries', fetch_result=True) -%}\n with data as (\n select\n coalesce(max(\"{{timestamp_field}}\"), '{{start_date}}')::timestamp as start_timestamp,\n coalesce(\n {{dbt_utils.dateadd('millisecond',\n -1,\n \"nullif('\" ~ stop_date ~ \"','')::timestamp\")}},\n {{dbt_utils.current_timestamp()}}\n ) as stop_timestamp\n from \"{{target_schema}}\".\"{{target_table}}\"\n )\n\n select\n start_timestamp,\n stop_timestamp,\n {{dbt_utils.datediff('start_timestamp',\n 'stop_timestamp',\n period)}} + 1 as num_periods\n from data\n {%- endcall %}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_utils.dateadd", "macro.dbt_utils.current_timestamp", "macro.dbt_utils.datediff"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.9165282}, "macro.dbt_utils.get_period_sql": {"unique_id": "macro.dbt_utils.get_period_sql", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/materializations/insert_by_period_materialization.sql", "original_file_path": "macros/materializations/insert_by_period_materialization.sql", "name": "get_period_sql", "macro_sql": "{% macro get_period_sql(target_cols_csv, sql, timestamp_field, period, start_timestamp, stop_timestamp, offset) -%}\n {{ return(adapter.dispatch('get_period_sql', 'dbt_utils')(target_cols_csv, sql, timestamp_field, period, start_timestamp, stop_timestamp, offset)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_period_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.917208}, "macro.dbt_utils.default__get_period_sql": {"unique_id": "macro.dbt_utils.default__get_period_sql", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/materializations/insert_by_period_materialization.sql", "original_file_path": "macros/materializations/insert_by_period_materialization.sql", "name": "default__get_period_sql", "macro_sql": "{% macro default__get_period_sql(target_cols_csv, sql, timestamp_field, period, start_timestamp, stop_timestamp, offset) -%}\n\n {%- set period_filter -%}\n (\"{{timestamp_field}}\" > '{{start_timestamp}}'::timestamp + interval '{{offset}} {{period}}' and\n \"{{timestamp_field}}\" <= '{{start_timestamp}}'::timestamp + interval '{{offset}} {{period}}' + interval '1 {{period}}' and\n \"{{timestamp_field}}\" < '{{stop_timestamp}}'::timestamp)\n {%- endset -%}\n\n {%- set filtered_sql = sql | replace(\"__PERIOD_FILTER__\", period_filter) -%}\n\n select\n {{target_cols_csv}}\n from (\n {{filtered_sql}}\n )\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.9182951}, "macro.dbt_utils.materialization_insert_by_period_default": {"unique_id": "macro.dbt_utils.materialization_insert_by_period_default", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/materializations/insert_by_period_materialization.sql", "original_file_path": "macros/materializations/insert_by_period_materialization.sql", "name": "materialization_insert_by_period_default", "macro_sql": "{% materialization insert_by_period, default -%}\n {%- set timestamp_field = config.require('timestamp_field') -%}\n {%- set start_date = config.require('start_date') -%}\n {%- set stop_date = config.get('stop_date') or '' -%}\n {%- set period = config.get('period') or 'week' -%}\n\n {%- if sql.find('__PERIOD_FILTER__') == -1 -%}\n {%- set error_message -%}\n Model '{{ model.unique_id }}' does not include the required string '__PERIOD_FILTER__' in its sql\n {%- endset -%}\n {{ exceptions.raise_compiler_error(error_message) }}\n {%- endif -%}\n\n {%- set identifier = model['name'] -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n {%- set target_relation = api.Relation.create(identifier=identifier, schema=schema, type='table') -%}\n\n {%- set non_destructive_mode = (flags.NON_DESTRUCTIVE == True) -%}\n {%- set full_refresh_mode = (flags.FULL_REFRESH == True) -%}\n\n {%- set exists_as_table = (old_relation is not none and old_relation.is_table) -%}\n {%- set exists_not_as_table = (old_relation is not none and not old_relation.is_table) -%}\n\n {%- set should_truncate = (non_destructive_mode and full_refresh_mode and exists_as_table) -%}\n {%- set should_drop = (not should_truncate and (full_refresh_mode or exists_not_as_table)) -%}\n {%- set force_create = (flags.FULL_REFRESH and not flags.NON_DESTRUCTIVE) -%}\n\n -- setup\n {% if old_relation is none -%}\n -- noop\n {%- elif should_truncate -%}\n {{adapter.truncate_relation(old_relation)}}\n {%- elif should_drop -%}\n {{adapter.drop_relation(old_relation)}}\n {%- set old_relation = none -%}\n {%- endif %}\n\n {{run_hooks(pre_hooks, inside_transaction=False)}}\n\n -- `begin` happens here, so `commit` after it to finish the transaction\n {{run_hooks(pre_hooks, inside_transaction=True)}}\n {% call statement() -%}\n begin; -- make extra sure we've closed out the transaction\n commit;\n {%- endcall %}\n\n -- build model\n {% if force_create or old_relation is none -%}\n {# Create an empty target table -#}\n {% call statement('main') -%}\n {%- set empty_sql = sql | replace(\"__PERIOD_FILTER__\", 'false') -%}\n {{create_table_as(False, target_relation, empty_sql)}}\n {%- endcall %}\n {%- endif %}\n\n {% set _ = dbt_utils.get_period_boundaries(schema,\n identifier,\n timestamp_field,\n start_date,\n stop_date,\n period) %}\n {%- set start_timestamp = load_result('period_boundaries')['data'][0][0] | string -%}\n {%- set stop_timestamp = load_result('period_boundaries')['data'][0][1] | string -%}\n {%- set num_periods = load_result('period_boundaries')['data'][0][2] | int -%}\n\n {% set target_columns = adapter.get_columns_in_relation(target_relation) %}\n {%- set target_cols_csv = target_columns | map(attribute='quoted') | join(', ') -%}\n {%- set loop_vars = {'sum_rows_inserted': 0} -%}\n\n -- commit each period as a separate transaction\n {% for i in range(num_periods) -%}\n {%- set msg = \"Running for \" ~ period ~ \" \" ~ (i + 1) ~ \" of \" ~ (num_periods) -%}\n {{ dbt_utils.log_info(msg) }}\n\n {%- set tmp_identifier = model['name'] ~ '__dbt_incremental_period' ~ i ~ '_tmp' -%}\n {%- set tmp_relation = api.Relation.create(identifier=tmp_identifier,\n schema=schema, type='table') -%}\n {% call statement() -%}\n {% set tmp_table_sql = dbt_utils.get_period_sql(target_cols_csv,\n sql,\n timestamp_field,\n period,\n start_timestamp,\n stop_timestamp,\n i) %}\n {{dbt.create_table_as(True, tmp_relation, tmp_table_sql)}}\n {%- endcall %}\n\n {{adapter.expand_target_column_types(from_relation=tmp_relation,\n to_relation=target_relation)}}\n {%- set name = 'main-' ~ i -%}\n {% call statement(name, fetch_result=True) -%}\n insert into {{target_relation}} ({{target_cols_csv}})\n (\n select\n {{target_cols_csv}}\n from {{tmp_relation.include(schema=False)}}\n );\n {%- endcall %}\n {% set result = load_result('main-' ~ i) %}\n {% if 'response' in result.keys() %} {# added in v0.19.0 #}\n {% set rows_inserted = result['response']['rows_affected'] %}\n {% else %} {# older versions #}\n {% set rows_inserted = result['status'].split(\" \")[2] | int %}\n {% endif %}\n \n {%- set sum_rows_inserted = loop_vars['sum_rows_inserted'] + rows_inserted -%}\n {%- if loop_vars.update({'sum_rows_inserted': sum_rows_inserted}) %} {% endif -%}\n\n {%- set msg = \"Ran for \" ~ period ~ \" \" ~ (i + 1) ~ \" of \" ~ (num_periods) ~ \"; \" ~ rows_inserted ~ \" records inserted\" -%}\n {{ dbt_utils.log_info(msg) }}\n\n {%- endfor %}\n\n {% call statement() -%}\n begin;\n {%- endcall %}\n\n {{run_hooks(post_hooks, inside_transaction=True)}}\n\n {% call statement() -%}\n commit;\n {%- endcall %}\n\n {{run_hooks(post_hooks, inside_transaction=False)}}\n\n {%- set status_string = \"INSERT \" ~ loop_vars['sum_rows_inserted'] -%}\n\n {% call noop_statement('main', status_string) -%}\n -- no-op\n {%- endcall %}\n\n -- Return the relations created in this materialization\n {{ return({'relations': [target_relation]}) }} \n\n{%- endmaterialization %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_hooks", "macro.dbt.statement", "macro.dbt.create_table_as", "macro.dbt_utils.get_period_boundaries", "macro.dbt_utils.log_info", "macro.dbt_utils.get_period_sql", "macro.dbt.noop_statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.930494}, "macro.dbt_utils.get_url_host": {"unique_id": "macro.dbt_utils.get_url_host", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/web/get_url_host.sql", "original_file_path": "macros/web/get_url_host.sql", "name": "get_url_host", "macro_sql": "{% macro get_url_host(field) -%}\n {{ return(adapter.dispatch('get_url_host', 'dbt_utils')(field)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_url_host"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.9314198}, "macro.dbt_utils.default__get_url_host": {"unique_id": "macro.dbt_utils.default__get_url_host", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/web/get_url_host.sql", "original_file_path": "macros/web/get_url_host.sql", "name": "default__get_url_host", "macro_sql": "{% macro default__get_url_host(field) -%}\n\n{%- set parsed =\n dbt_utils.split_part(\n dbt_utils.split_part(\n dbt_utils.replace(\n dbt_utils.replace(\n dbt_utils.replace(field, \"'android-app://'\", \"''\"\n ), \"'http://'\", \"''\"\n ), \"'https://'\", \"''\"\n ), \"'/'\", 1\n ), \"'?'\", 1\n )\n\n-%}\n\n\n {{ dbt_utils.safe_cast(\n parsed,\n dbt_utils.type_string()\n )}}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.split_part", "macro.dbt_utils.replace", "macro.dbt_utils.safe_cast", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.932425}, "macro.dbt_utils.get_url_path": {"unique_id": "macro.dbt_utils.get_url_path", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/web/get_url_path.sql", "original_file_path": "macros/web/get_url_path.sql", "name": "get_url_path", "macro_sql": "{% macro get_url_path(field) -%}\n {{ return(adapter.dispatch('get_url_path', 'dbt_utils')(field)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_url_path"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.9334242}, "macro.dbt_utils.default__get_url_path": {"unique_id": "macro.dbt_utils.default__get_url_path", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/web/get_url_path.sql", "original_file_path": "macros/web/get_url_path.sql", "name": "default__get_url_path", "macro_sql": "{% macro default__get_url_path(field) -%}\n\n {%- set stripped_url = \n dbt_utils.replace(\n dbt_utils.replace(field, \"'http://'\", \"''\"), \"'https://'\", \"''\")\n -%}\n\n {%- set first_slash_pos -%}\n coalesce(\n nullif({{dbt_utils.position(\"'/'\", stripped_url)}}, 0),\n {{dbt_utils.position(\"'?'\", stripped_url)}} - 1\n )\n {%- endset -%}\n\n {%- set parsed_path =\n dbt_utils.split_part(\n dbt_utils.right(\n stripped_url, \n dbt_utils.length(stripped_url) ~ \"-\" ~ first_slash_pos\n ), \n \"'?'\", 1\n )\n -%}\n\n {{ dbt_utils.safe_cast(\n parsed_path,\n dbt_utils.type_string()\n )}}\n \n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.replace", "macro.dbt_utils.position", "macro.dbt_utils.split_part", "macro.dbt_utils.right", "macro.dbt_utils.length", "macro.dbt_utils.safe_cast", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.934818}, "macro.dbt_utils.get_url_parameter": {"unique_id": "macro.dbt_utils.get_url_parameter", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/web/get_url_parameter.sql", "original_file_path": "macros/web/get_url_parameter.sql", "name": "get_url_parameter", "macro_sql": "{% macro get_url_parameter(field, url_parameter) -%}\n {{ return(adapter.dispatch('get_url_parameter', 'dbt_utils')(field, url_parameter)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.93589}, "macro.dbt_utils.default__get_url_parameter": {"unique_id": "macro.dbt_utils.default__get_url_parameter", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/web/get_url_parameter.sql", "original_file_path": "macros/web/get_url_parameter.sql", "name": "default__get_url_parameter", "macro_sql": "{% macro default__get_url_parameter(field, url_parameter) -%}\n\n{%- set formatted_url_parameter = \"'\" + url_parameter + \"='\" -%}\n\n{%- set split = dbt_utils.split_part(dbt_utils.split_part(field, formatted_url_parameter, 2), \"'&'\", 1) -%}\n\nnullif({{ split }},'')\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.split_part"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.9366589}, "macro.dbt_utils.test_fewer_rows_than": {"unique_id": "macro.dbt_utils.test_fewer_rows_than", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/generic_tests/fewer_rows_than.sql", "original_file_path": "macros/generic_tests/fewer_rows_than.sql", "name": "test_fewer_rows_than", "macro_sql": "{% test fewer_rows_than(model, compare_model) %}\n {{ return(adapter.dispatch('test_fewer_rows_than', 'dbt_utils')(model, compare_model)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_fewer_rows_than"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.937702}, "macro.dbt_utils.default__test_fewer_rows_than": {"unique_id": "macro.dbt_utils.default__test_fewer_rows_than", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/generic_tests/fewer_rows_than.sql", "original_file_path": "macros/generic_tests/fewer_rows_than.sql", "name": "default__test_fewer_rows_than", "macro_sql": "{% macro default__test_fewer_rows_than(model, compare_model) %}\n\n{{ config(fail_calc = 'coalesce(row_count_delta, 0)') }}\n\nwith a as (\n\n select count(*) as count_our_model from {{ model }}\n\n),\nb as (\n\n select count(*) as count_comparison_model from {{ compare_model }}\n\n),\ncounts as (\n\n select\n count_our_model,\n count_comparison_model\n from a\n cross join b\n\n),\nfinal as (\n\n select *,\n case\n -- fail the test if we have more rows than the reference model and return the row count delta\n when count_our_model > count_comparison_model then (count_our_model - count_comparison_model)\n -- fail the test if they are the same number\n when count_our_model = count_comparison_model then 1\n -- pass the test if the delta is positive (i.e. return the number 0)\n else 0\n end as row_count_delta\n from counts\n\n)\n\nselect * from final\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.938174}, "macro.dbt_utils.test_equal_rowcount": {"unique_id": "macro.dbt_utils.test_equal_rowcount", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/generic_tests/equal_rowcount.sql", "original_file_path": "macros/generic_tests/equal_rowcount.sql", "name": "test_equal_rowcount", "macro_sql": "{% test equal_rowcount(model, compare_model) %}\n {{ return(adapter.dispatch('test_equal_rowcount', 'dbt_utils')(model, compare_model)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_equal_rowcount"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.93904}, "macro.dbt_utils.default__test_equal_rowcount": {"unique_id": "macro.dbt_utils.default__test_equal_rowcount", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/generic_tests/equal_rowcount.sql", "original_file_path": "macros/generic_tests/equal_rowcount.sql", "name": "default__test_equal_rowcount", "macro_sql": "{% macro default__test_equal_rowcount(model, compare_model) %}\n\n{#-- Needs to be set at parse time, before we return '' below --#}\n{{ config(fail_calc = 'coalesce(diff_count, 0)') }}\n\n{#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n{%- if not execute -%}\n {{ return('') }}\n{% endif %}\n\nwith a as (\n\n select count(*) as count_a from {{ model }}\n\n),\nb as (\n\n select count(*) as count_b from {{ compare_model }}\n\n),\nfinal as (\n\n select\n count_a,\n count_b,\n abs(count_a - count_b) as diff_count\n from a\n cross join b\n\n)\n\nselect * from final\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.939678}, "macro.dbt_utils.test_relationships_where": {"unique_id": "macro.dbt_utils.test_relationships_where", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/generic_tests/relationships_where.sql", "original_file_path": "macros/generic_tests/relationships_where.sql", "name": "test_relationships_where", "macro_sql": "{% test relationships_where(model, column_name, to, field, from_condition=\"1=1\", to_condition=\"1=1\") %}\n {{ return(adapter.dispatch('test_relationships_where', 'dbt_utils')(model, column_name, to, field, from_condition, to_condition)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_relationships_where"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.9409611}, "macro.dbt_utils.default__test_relationships_where": {"unique_id": "macro.dbt_utils.default__test_relationships_where", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/generic_tests/relationships_where.sql", "original_file_path": "macros/generic_tests/relationships_where.sql", "name": "default__test_relationships_where", "macro_sql": "{% macro default__test_relationships_where(model, column_name, to, field, from_condition=\"1=1\", to_condition=\"1=1\") %}\n\n{# T-SQL has no boolean data type so we use 1=1 which returns TRUE #}\n{# ref https://stackoverflow.com/a/7170753/3842610 #}\n\nwith left_table as (\n\n select\n {{column_name}} as id\n\n from {{model}}\n\n where {{column_name}} is not null\n and {{from_condition}}\n\n),\n\nright_table as (\n\n select\n {{field}} as id\n\n from {{to}}\n\n where {{field}} is not null\n and {{to_condition}}\n\n),\n\nexceptions as (\n\n select\n left_table.id,\n right_table.id as right_id\n\n from left_table\n\n left join right_table\n on left_table.id = right_table.id\n\n where right_table.id is null\n\n)\n\nselect * from exceptions\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.941698}, "macro.dbt_utils.test_recency": {"unique_id": "macro.dbt_utils.test_recency", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/generic_tests/recency.sql", "original_file_path": "macros/generic_tests/recency.sql", "name": "test_recency", "macro_sql": "{% test recency(model, field, datepart, interval) %}\n {{ return(adapter.dispatch('test_recency', 'dbt_utils')(model, field, datepart, interval)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_recency"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.943106}, "macro.dbt_utils.default__test_recency": {"unique_id": "macro.dbt_utils.default__test_recency", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/generic_tests/recency.sql", "original_file_path": "macros/generic_tests/recency.sql", "name": "default__test_recency", "macro_sql": "{% macro default__test_recency(model, field, datepart, interval) %}\n\n{% set threshold = dbt_utils.dateadd(datepart, interval * -1, dbt_utils.current_timestamp()) %}\n\nwith recency as (\n\n select max({{field}}) as most_recent\n from {{ model }}\n\n)\n\nselect\n\n most_recent,\n {{ threshold }} as threshold\n\nfrom recency\nwhere most_recent < {{ threshold }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.dateadd", "macro.dbt_utils.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.9438138}, "macro.dbt_utils.test_not_constant": {"unique_id": "macro.dbt_utils.test_not_constant", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/generic_tests/not_constant.sql", "original_file_path": "macros/generic_tests/not_constant.sql", "name": "test_not_constant", "macro_sql": "{% test not_constant(model, column_name) %}\n {{ return(adapter.dispatch('test_not_constant', 'dbt_utils')(model, column_name)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_not_constant"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.944631}, "macro.dbt_utils.default__test_not_constant": {"unique_id": "macro.dbt_utils.default__test_not_constant", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/generic_tests/not_constant.sql", "original_file_path": "macros/generic_tests/not_constant.sql", "name": "default__test_not_constant", "macro_sql": "{% macro default__test_not_constant(model, column_name) %}\n\n\nselect\n {# In TSQL, subquery aggregate columns need aliases #}\n {# thus: a filler col name, 'filler_column' #}\n count(distinct {{ column_name }}) as filler_column\n\nfrom {{ model }}\n\nhaving count(distinct {{ column_name }}) = 1\n\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.945011}, "macro.dbt_utils.test_accepted_range": {"unique_id": "macro.dbt_utils.test_accepted_range", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/generic_tests/accepted_range.sql", "original_file_path": "macros/generic_tests/accepted_range.sql", "name": "test_accepted_range", "macro_sql": "{% test accepted_range(model, column_name, min_value=none, max_value=none, inclusive=true) %}\n {{ return(adapter.dispatch('test_accepted_range', 'dbt_utils')(model, column_name, min_value, max_value, inclusive)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_accepted_range"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.946468}, "macro.dbt_utils.default__test_accepted_range": {"unique_id": "macro.dbt_utils.default__test_accepted_range", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/generic_tests/accepted_range.sql", "original_file_path": "macros/generic_tests/accepted_range.sql", "name": "default__test_accepted_range", "macro_sql": "{% macro default__test_accepted_range(model, column_name, min_value=none, max_value=none, inclusive=true) %}\n\nwith meet_condition as(\n select *\n from {{ model }}\n),\n\nvalidation_errors as (\n select *\n from meet_condition\n where\n -- never true, defaults to an empty result set. Exists to ensure any combo of the `or` clauses below succeeds\n 1 = 2\n\n {%- if min_value is not none %}\n -- records with a value >= min_value are permitted. The `not` flips this to find records that don't meet the rule.\n or not {{ column_name }} > {{- \"=\" if inclusive }} {{ min_value }}\n {%- endif %}\n\n {%- if max_value is not none %}\n -- records with a value <= max_value are permitted. The `not` flips this to find records that don't meet the rule.\n or not {{ column_name }} < {{- \"=\" if inclusive }} {{ max_value }}\n {%- endif %}\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.947642}, "macro.dbt_utils.test_not_accepted_values": {"unique_id": "macro.dbt_utils.test_not_accepted_values", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/generic_tests/not_accepted_values.sql", "original_file_path": "macros/generic_tests/not_accepted_values.sql", "name": "test_not_accepted_values", "macro_sql": "{% test not_accepted_values(model, column_name, values, quote=True) %}\n {{ return(adapter.dispatch('test_not_accepted_values', 'dbt_utils')(model, column_name, values, quote)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_not_accepted_values"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.948916}, "macro.dbt_utils.default__test_not_accepted_values": {"unique_id": "macro.dbt_utils.default__test_not_accepted_values", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/generic_tests/not_accepted_values.sql", "original_file_path": "macros/generic_tests/not_accepted_values.sql", "name": "default__test_not_accepted_values", "macro_sql": "{% macro default__test_not_accepted_values(model, column_name, values, quote=True) %}\nwith all_values as (\n\n select distinct\n {{ column_name }} as value_field\n\n from {{ model }}\n\n),\n\nvalidation_errors as (\n\n select\n value_field\n\n from all_values\n where value_field in (\n {% for value in values -%}\n {% if quote -%}\n '{{ value }}'\n {%- else -%}\n {{ value }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {%- endfor %}\n )\n\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.950167}, "macro.dbt_utils.test_unique_where": {"unique_id": "macro.dbt_utils.test_unique_where", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/generic_tests/test_unique_where.sql", "original_file_path": "macros/generic_tests/test_unique_where.sql", "name": "test_unique_where", "macro_sql": "{% test unique_where(model, column_name) %}\r\n {%- set deprecation_warning = '\r\n Warning: `dbt_utils.unique_where` is no longer supported.\r\n Starting in dbt v0.20.0, the built-in `unique` test supports a `where` config.\r\n ' -%}\r\n {%- do exceptions.warn(deprecation_warning) -%}\r\n {{ return(adapter.dispatch('test_unique_where', 'dbt_utils')(model, column_name)) }}\r\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_unique_where"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.95121}, "macro.dbt_utils.default__test_unique_where": {"unique_id": "macro.dbt_utils.default__test_unique_where", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/generic_tests/test_unique_where.sql", "original_file_path": "macros/generic_tests/test_unique_where.sql", "name": "default__test_unique_where", "macro_sql": "{% macro default__test_unique_where(model, column_name) %}\r\n {{ return(test_unique(model, column_name)) }}\r\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.test_unique"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.95157}, "macro.dbt_utils.test_at_least_one": {"unique_id": "macro.dbt_utils.test_at_least_one", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/generic_tests/at_least_one.sql", "original_file_path": "macros/generic_tests/at_least_one.sql", "name": "test_at_least_one", "macro_sql": "{% test at_least_one(model, column_name) %}\n {{ return(adapter.dispatch('test_at_least_one', 'dbt_utils')(model, column_name)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_at_least_one"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.952346}, "macro.dbt_utils.default__test_at_least_one": {"unique_id": "macro.dbt_utils.default__test_at_least_one", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/generic_tests/at_least_one.sql", "original_file_path": "macros/generic_tests/at_least_one.sql", "name": "default__test_at_least_one", "macro_sql": "{% macro default__test_at_least_one(model, column_name) %}\n\nselect *\nfrom (\n select\n {# In TSQL, subquery aggregate columns need aliases #}\n {# thus: a filler col name, 'filler_column' #}\n count({{ column_name }}) as filler_column\n\n from {{ model }}\n\n having count({{ column_name }}) = 0\n\n) validation_errors\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.9527302}, "macro.dbt_utils.test_unique_combination_of_columns": {"unique_id": "macro.dbt_utils.test_unique_combination_of_columns", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/generic_tests/unique_combination_of_columns.sql", "original_file_path": "macros/generic_tests/unique_combination_of_columns.sql", "name": "test_unique_combination_of_columns", "macro_sql": "{% test unique_combination_of_columns(model, combination_of_columns, quote_columns=false) %}\n {{ return(adapter.dispatch('test_unique_combination_of_columns', 'dbt_utils')(model, combination_of_columns, quote_columns)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_unique_combination_of_columns"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.9539359}, "macro.dbt_utils.default__test_unique_combination_of_columns": {"unique_id": "macro.dbt_utils.default__test_unique_combination_of_columns", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/generic_tests/unique_combination_of_columns.sql", "original_file_path": "macros/generic_tests/unique_combination_of_columns.sql", "name": "default__test_unique_combination_of_columns", "macro_sql": "{% macro default__test_unique_combination_of_columns(model, combination_of_columns, quote_columns=false) %}\n\n{% if not quote_columns %}\n {%- set column_list=combination_of_columns %}\n{% elif quote_columns %}\n {%- set column_list=[] %}\n {% for column in combination_of_columns -%}\n {% set column_list = column_list.append( adapter.quote(column) ) %}\n {%- endfor %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`quote_columns` argument for unique_combination_of_columns test must be one of [True, False] Got: '\" ~ quote ~\"'.'\"\n ) }}\n{% endif %}\n\n{%- set columns_csv=column_list | join(', ') %}\n\n\nwith validation_errors as (\n\n select\n {{ columns_csv }}\n from {{ model }}\n group by {{ columns_csv }}\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.9553049}, "macro.dbt_utils.test_cardinality_equality": {"unique_id": "macro.dbt_utils.test_cardinality_equality", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/generic_tests/cardinality_equality.sql", "original_file_path": "macros/generic_tests/cardinality_equality.sql", "name": "test_cardinality_equality", "macro_sql": "{% test cardinality_equality(model, column_name, to, field) %}\n {{ return(adapter.dispatch('test_cardinality_equality', 'dbt_utils')(model, column_name, to, field)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_cardinality_equality"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.9564009}, "macro.dbt_utils.default__test_cardinality_equality": {"unique_id": "macro.dbt_utils.default__test_cardinality_equality", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/generic_tests/cardinality_equality.sql", "original_file_path": "macros/generic_tests/cardinality_equality.sql", "name": "default__test_cardinality_equality", "macro_sql": "{% macro default__test_cardinality_equality(model, column_name, to, field) %}\n\n{# T-SQL does not let you use numbers as aliases for columns #}\n{# Thus, no \"GROUP BY 1\" #}\n\nwith table_a as (\nselect\n {{ column_name }},\n count(*) as num_rows\nfrom {{ model }}\ngroup by {{ column_name }}\n),\n\ntable_b as (\nselect\n {{ field }},\n count(*) as num_rows\nfrom {{ to }}\ngroup by {{ field }}\n),\n\nexcept_a as (\n select *\n from table_a\n {{ dbt_utils.except() }}\n select *\n from table_b\n),\n\nexcept_b as (\n select *\n from table_b\n {{ dbt_utils.except() }}\n select *\n from table_a\n),\n\nunioned as (\n select *\n from except_a\n union all\n select *\n from except_b\n)\n\nselect *\nfrom unioned\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.except"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.9571369}, "macro.dbt_utils.test_expression_is_true": {"unique_id": "macro.dbt_utils.test_expression_is_true", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/generic_tests/expression_is_true.sql", "original_file_path": "macros/generic_tests/expression_is_true.sql", "name": "test_expression_is_true", "macro_sql": "{% test expression_is_true(model, expression, column_name=None, condition='1=1') %}\n{# T-SQL has no boolean data type so we use 1=1 which returns TRUE #}\n{# ref https://stackoverflow.com/a/7170753/3842610 #}\n {{ return(adapter.dispatch('test_expression_is_true', 'dbt_utils')(model, expression, column_name, condition)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.958165}, "macro.dbt_utils.default__test_expression_is_true": {"unique_id": "macro.dbt_utils.default__test_expression_is_true", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/generic_tests/expression_is_true.sql", "original_file_path": "macros/generic_tests/expression_is_true.sql", "name": "default__test_expression_is_true", "macro_sql": "{% macro default__test_expression_is_true(model, expression, column_name, condition) %}\n\nwith meet_condition as (\n select * from {{ model }} where {{ condition }}\n)\n\nselect\n *\nfrom meet_condition\n{% if column_name is none %}\nwhere not({{ expression }})\n{%- else %}\nwhere not({{ column_name }} {{ expression }})\n{%- endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.958802}, "macro.dbt_utils.test_not_null_proportion": {"unique_id": "macro.dbt_utils.test_not_null_proportion", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/generic_tests/not_null_proportion.sql", "original_file_path": "macros/generic_tests/not_null_proportion.sql", "name": "test_not_null_proportion", "macro_sql": "{% macro test_not_null_proportion(model) %}\n {{ return(adapter.dispatch('test_not_null_proportion', 'dbt_utils')(model, **kwargs)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_not_null_proportion"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.959813}, "macro.dbt_utils.default__test_not_null_proportion": {"unique_id": "macro.dbt_utils.default__test_not_null_proportion", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/generic_tests/not_null_proportion.sql", "original_file_path": "macros/generic_tests/not_null_proportion.sql", "name": "default__test_not_null_proportion", "macro_sql": "{% macro default__test_not_null_proportion(model) %}\n\n{% set column_name = kwargs.get('column_name', kwargs.get('arg')) %}\n{% set at_least = kwargs.get('at_least', kwargs.get('arg')) %}\n{% set at_most = kwargs.get('at_most', kwargs.get('arg', 1)) %}\n\nwith validation as (\n select\n sum(case when {{ column_name }} is null then 0 else 1 end) / cast(count(*) as numeric) as not_null_proportion\n from {{ model }}\n),\nvalidation_errors as (\n select\n not_null_proportion\n from validation\n where not_null_proportion < {{ at_least }} or not_null_proportion > {{ at_most }}\n)\nselect\n *\nfrom validation_errors\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.961001}, "macro.dbt_utils.test_sequential_values": {"unique_id": "macro.dbt_utils.test_sequential_values", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/generic_tests/sequential_values.sql", "original_file_path": "macros/generic_tests/sequential_values.sql", "name": "test_sequential_values", "macro_sql": "{% test sequential_values(model, column_name, interval=1, datepart=None) %}\n\n {{ return(adapter.dispatch('test_sequential_values', 'dbt_utils')(model, column_name, interval, datepart)) }}\n\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_sequential_values"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.962276}, "macro.dbt_utils.default__test_sequential_values": {"unique_id": "macro.dbt_utils.default__test_sequential_values", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/generic_tests/sequential_values.sql", "original_file_path": "macros/generic_tests/sequential_values.sql", "name": "default__test_sequential_values", "macro_sql": "{% macro default__test_sequential_values(model, column_name, interval=1, datepart=None) %}\n\n{% set previous_column_name = \"previous_\" ~ dbt_utils.slugify(column_name) %}\n\nwith windowed as (\n\n select\n {{ column_name }},\n lag({{ column_name }}) over (\n order by {{ column_name }}\n ) as {{ previous_column_name }}\n from {{ model }}\n),\n\nvalidation_errors as (\n select\n *\n from windowed\n {% if datepart %}\n where not(cast({{ column_name }} as {{ dbt_utils.type_timestamp() }})= cast({{ dbt_utils.dateadd(datepart, interval, previous_column_name) }} as {{ dbt_utils.type_timestamp() }}))\n {% else %}\n where not({{ column_name }} = {{ previous_column_name }} + {{ interval }})\n {% endif %}\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.slugify", "macro.dbt_utils.type_timestamp", "macro.dbt_utils.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.9636}, "macro.dbt_utils.test_not_null_where": {"unique_id": "macro.dbt_utils.test_not_null_where", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/generic_tests/test_not_null_where.sql", "original_file_path": "macros/generic_tests/test_not_null_where.sql", "name": "test_not_null_where", "macro_sql": "{% test not_null_where(model, column_name) %}\r\n {%- set deprecation_warning = '\r\n Warning: `dbt_utils.not_null_where` is no longer supported.\r\n Starting in dbt v0.20.0, the built-in `not_null` test supports a `where` config.\r\n ' -%}\r\n {%- do exceptions.warn(deprecation_warning) -%}\r\n {{ return(adapter.dispatch('test_not_null_where', 'dbt_utils')(model, column_name)) }}\r\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_not_null_where"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.964674}, "macro.dbt_utils.default__test_not_null_where": {"unique_id": "macro.dbt_utils.default__test_not_null_where", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/generic_tests/test_not_null_where.sql", "original_file_path": "macros/generic_tests/test_not_null_where.sql", "name": "default__test_not_null_where", "macro_sql": "{% macro default__test_not_null_where(model, column_name) %}\r\n {{ return(test_not_null(model, column_name)) }}\r\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.test_not_null"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.965035}, "macro.dbt_utils.test_equality": {"unique_id": "macro.dbt_utils.test_equality", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/generic_tests/equality.sql", "original_file_path": "macros/generic_tests/equality.sql", "name": "test_equality", "macro_sql": "{% test equality(model, compare_model, compare_columns=None) %}\n {{ return(adapter.dispatch('test_equality', 'dbt_utils')(model, compare_model, compare_columns)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_equality"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.966444}, "macro.dbt_utils.default__test_equality": {"unique_id": "macro.dbt_utils.default__test_equality", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/generic_tests/equality.sql", "original_file_path": "macros/generic_tests/equality.sql", "name": "default__test_equality", "macro_sql": "{% macro default__test_equality(model, compare_model, compare_columns=None) %}\n\n{% set set_diff %}\n count(*) + coalesce(abs(\n sum(case when which_diff = 'a_minus_b' then 1 else 0 end) -\n sum(case when which_diff = 'b_minus_a' then 1 else 0 end)\n ), 0)\n{% endset %}\n\n{#-- Needs to be set at parse time, before we return '' below --#}\n{{ config(fail_calc = set_diff) }}\n\n{#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n{%- if not execute -%}\n {{ return('') }}\n{% endif %}\n\n-- setup\n{%- do dbt_utils._is_relation(model, 'test_equality') -%}\n\n{#-\nIf the compare_cols arg is provided, we can run this test without querying the\ninformation schema\u00a0\u2014 this allows the model to be an ephemeral model\n-#}\n\n{%- if not compare_columns -%}\n {%- do dbt_utils._is_ephemeral(model, 'test_equality') -%}\n {%- set compare_columns = adapter.get_columns_in_relation(model) | map(attribute='quoted') -%}\n{%- endif -%}\n\n{% set compare_cols_csv = compare_columns | join(', ') %}\n\nwith a as (\n\n select * from {{ model }}\n\n),\n\nb as (\n\n select * from {{ compare_model }}\n\n),\n\na_minus_b as (\n\n select {{compare_cols_csv}} from a\n {{ dbt_utils.except() }}\n select {{compare_cols_csv}} from b\n\n),\n\nb_minus_a as (\n\n select {{compare_cols_csv}} from b\n {{ dbt_utils.except() }}\n select {{compare_cols_csv}} from a\n\n),\n\nunioned as (\n\n select 'a_minus_b' as which_diff, a_minus_b.* from a_minus_b\n union all\n select 'b_minus_a' as which_diff, b_minus_a.* from b_minus_a\n\n)\n\nselect * from unioned\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt_utils.except"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.9685261}, "macro.dbt_utils.test_mutually_exclusive_ranges": {"unique_id": "macro.dbt_utils.test_mutually_exclusive_ranges", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/generic_tests/mutually_exclusive_ranges.sql", "original_file_path": "macros/generic_tests/mutually_exclusive_ranges.sql", "name": "test_mutually_exclusive_ranges", "macro_sql": "{% test mutually_exclusive_ranges(model, lower_bound_column, upper_bound_column, partition_by=None, gaps='allowed', zero_length_range_allowed=False) %}\n {{ return(adapter.dispatch('test_mutually_exclusive_ranges', 'dbt_utils')(model, lower_bound_column, upper_bound_column, partition_by, gaps, zero_length_range_allowed)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_mutually_exclusive_ranges"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.973422}, "macro.dbt_utils.default__test_mutually_exclusive_ranges": {"unique_id": "macro.dbt_utils.default__test_mutually_exclusive_ranges", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/generic_tests/mutually_exclusive_ranges.sql", "original_file_path": "macros/generic_tests/mutually_exclusive_ranges.sql", "name": "default__test_mutually_exclusive_ranges", "macro_sql": "{% macro default__test_mutually_exclusive_ranges(model, lower_bound_column, upper_bound_column, partition_by=None, gaps='allowed', zero_length_range_allowed=False) %}\n{% if gaps == 'not_allowed' %}\n {% set allow_gaps_operator='=' %}\n {% set allow_gaps_operator_in_words='equal_to' %}\n{% elif gaps == 'allowed' %}\n {% set allow_gaps_operator='<=' %}\n {% set allow_gaps_operator_in_words='less_than_or_equal_to' %}\n{% elif gaps == 'required' %}\n {% set allow_gaps_operator='<' %}\n {% set allow_gaps_operator_in_words='less_than' %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`gaps` argument for mutually_exclusive_ranges test must be one of ['not_allowed', 'allowed', 'required'] Got: '\" ~ gaps ~\"'.'\"\n ) }}\n{% endif %}\n{% if not zero_length_range_allowed %}\n {% set allow_zero_length_operator='<' %}\n {% set allow_zero_length_operator_in_words='less_than' %}\n{% elif zero_length_range_allowed %}\n {% set allow_zero_length_operator='<=' %}\n {% set allow_zero_length_operator_in_words='less_than_or_equal_to' %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`zero_length_range_allowed` argument for mutually_exclusive_ranges test must be one of [true, false] Got: '\" ~ zero_length_range_allowed ~\"'.'\"\n ) }}\n{% endif %}\n\n{% set partition_clause=\"partition by \" ~ partition_by if partition_by else '' %}\n\nwith window_functions as (\n\n select\n {% if partition_by %}\n {{ partition_by }} as partition_by_col,\n {% endif %}\n {{ lower_bound_column }} as lower_bound,\n {{ upper_bound_column }} as upper_bound,\n\n lead({{ lower_bound_column }}) over (\n {{ partition_clause }}\n order by {{ lower_bound_column }}\n ) as next_lower_bound,\n\n row_number() over (\n {{ partition_clause }}\n order by {{ lower_bound_column }} desc\n ) = 1 as is_last_record\n\n from {{ model }}\n\n),\n\ncalc as (\n -- We want to return records where one of our assumptions fails, so we'll use\n -- the `not` function with `and` statements so we can write our assumptions nore cleanly\n select\n *,\n\n -- For each record: lower_bound should be < upper_bound.\n -- Coalesce it to return an error on the null case (implicit assumption\n -- these columns are not_null)\n coalesce(\n lower_bound {{ allow_zero_length_operator }} upper_bound,\n false\n ) as lower_bound_{{ allow_zero_length_operator_in_words }}_upper_bound,\n\n -- For each record: upper_bound {{ allow_gaps_operator }} the next lower_bound.\n -- Coalesce it to handle null cases for the last record.\n coalesce(\n upper_bound {{ allow_gaps_operator }} next_lower_bound,\n is_last_record,\n false\n ) as upper_bound_{{ allow_gaps_operator_in_words }}_next_lower_bound\n\n from window_functions\n\n),\n\nvalidation_errors as (\n\n select\n *\n from calc\n\n where not(\n -- THE FOLLOWING SHOULD BE TRUE --\n lower_bound_{{ allow_zero_length_operator_in_words }}_upper_bound\n and upper_bound_{{ allow_gaps_operator_in_words }}_next_lower_bound\n )\n)\n\nselect * from validation_errors\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.9765928}, "macro.dbt_utils.pretty_log_format": {"unique_id": "macro.dbt_utils.pretty_log_format", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/pretty_log_format.sql", "original_file_path": "macros/jinja_helpers/pretty_log_format.sql", "name": "pretty_log_format", "macro_sql": "{% macro pretty_log_format(message) %}\n {{ return(adapter.dispatch('pretty_log_format', 'dbt_utils')(message)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__pretty_log_format"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.991189}, "macro.dbt_utils.default__pretty_log_format": {"unique_id": "macro.dbt_utils.default__pretty_log_format", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/pretty_log_format.sql", "original_file_path": "macros/jinja_helpers/pretty_log_format.sql", "name": "default__pretty_log_format", "macro_sql": "{% macro default__pretty_log_format(message) %}\n {{ return( dbt_utils.pretty_time() ~ ' + ' ~ message) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.pretty_time"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.992028}, "macro.dbt_utils.pretty_time": {"unique_id": "macro.dbt_utils.pretty_time", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/pretty_time.sql", "original_file_path": "macros/jinja_helpers/pretty_time.sql", "name": "pretty_time", "macro_sql": "{% macro pretty_time(format='%H:%M:%S') %}\n {{ return(adapter.dispatch('pretty_time', 'dbt_utils')(format)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__pretty_time"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.99353}, "macro.dbt_utils.default__pretty_time": {"unique_id": "macro.dbt_utils.default__pretty_time", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/pretty_time.sql", "original_file_path": "macros/jinja_helpers/pretty_time.sql", "name": "default__pretty_time", "macro_sql": "{% macro default__pretty_time(format='%H:%M:%S') %}\n {{ return(modules.datetime.datetime.now().strftime(format)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.994254}, "macro.dbt_utils.log_info": {"unique_id": "macro.dbt_utils.log_info", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/log_info.sql", "original_file_path": "macros/jinja_helpers/log_info.sql", "name": "log_info", "macro_sql": "{% macro log_info(message) %}\n {{ return(adapter.dispatch('log_info', 'dbt_utils')(message)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__log_info"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.9953878}, "macro.dbt_utils.default__log_info": {"unique_id": "macro.dbt_utils.default__log_info", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/log_info.sql", "original_file_path": "macros/jinja_helpers/log_info.sql", "name": "default__log_info", "macro_sql": "{% macro default__log_info(message) %}\n {{ log(dbt_utils.pretty_log_format(message), info=True) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.pretty_log_format"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.996032}, "macro.dbt_utils.slugify": {"unique_id": "macro.dbt_utils.slugify", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/slugify.sql", "original_file_path": "macros/jinja_helpers/slugify.sql", "name": "slugify", "macro_sql": "{% macro slugify(string) %}\n\n{#- Lower case the string -#}\n{% set string = string | lower %}\n{#- Replace spaces and dashes with underscores -#}\n{% set string = modules.re.sub('[ -]+', '_', string) %}\n{#- Only take letters, numbers, and underscores -#}\n{% set string = modules.re.sub('[^a-z0-9_]+', '', string) %}\n\n{{ return(string) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.99774}, "macro.dbt_utils.get_intervals_between": {"unique_id": "macro.dbt_utils.get_intervals_between", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "name": "get_intervals_between", "macro_sql": "{% macro get_intervals_between(start_date, end_date, datepart) -%}\n {{ return(adapter.dispatch('get_intervals_between', 'dbt_utils')(start_date, end_date, datepart)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_intervals_between"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305159.999663}, "macro.dbt_utils.default__get_intervals_between": {"unique_id": "macro.dbt_utils.default__get_intervals_between", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "name": "default__get_intervals_between", "macro_sql": "{% macro default__get_intervals_between(start_date, end_date, datepart) -%}\n {%- call statement('get_intervals_between', fetch_result=True) %}\n\n select {{dbt_utils.datediff(start_date, end_date, datepart)}}\n\n {%- endcall -%}\n\n {%- set value_list = load_result('get_intervals_between') -%}\n\n {%- if value_list and value_list['data'] -%}\n {%- set values = value_list['data'] | map(attribute=0) | list %}\n {{ return(values[0]) }}\n {%- else -%}\n {{ return(1) }}\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_utils.datediff"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.0014641}, "macro.dbt_utils.date_spine": {"unique_id": "macro.dbt_utils.date_spine", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "name": "date_spine", "macro_sql": "{% macro date_spine(datepart, start_date, end_date) %}\n {{ return(adapter.dispatch('date_spine', 'dbt_utils')(datepart, start_date, end_date)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__date_spine"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.002916}, "macro.dbt_utils.default__date_spine": {"unique_id": "macro.dbt_utils.default__date_spine", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "name": "default__date_spine", "macro_sql": "{% macro default__date_spine(datepart, start_date, end_date) %}\n\n\n{# call as follows:\n\ndate_spine(\n \"day\",\n \"to_date('01/01/2016', 'mm/dd/yyyy')\",\n \"dateadd(week, 1, current_date)\"\n) #}\n\n\nwith rawdata as (\n\n {{dbt_utils.generate_series(\n dbt_utils.get_intervals_between(start_date, end_date, datepart)\n )}}\n\n),\n\nall_periods as (\n\n select (\n {{\n dbt_utils.dateadd(\n datepart,\n \"row_number() over (order by 1) - 1\",\n start_date\n )\n }}\n ) as date_{{datepart}}\n from rawdata\n\n),\n\nfiltered as (\n\n select *\n from all_periods\n where date_{{datepart}} <= {{ end_date }}\n\n)\n\nselect * from filtered\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.generate_series", "macro.dbt_utils.get_intervals_between", "macro.dbt_utils.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.004011}, "macro.dbt_utils.nullcheck_table": {"unique_id": "macro.dbt_utils.nullcheck_table", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/sql/nullcheck_table.sql", "original_file_path": "macros/sql/nullcheck_table.sql", "name": "nullcheck_table", "macro_sql": "{% macro nullcheck_table(relation) %}\n {{ return(adapter.dispatch('nullcheck_table', 'dbt_utils')(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__nullcheck_table"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.0051808}, "macro.dbt_utils.default__nullcheck_table": {"unique_id": "macro.dbt_utils.default__nullcheck_table", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/sql/nullcheck_table.sql", "original_file_path": "macros/sql/nullcheck_table.sql", "name": "default__nullcheck_table", "macro_sql": "{% macro default__nullcheck_table(relation) %}\n\n {%- do dbt_utils._is_relation(relation, 'nullcheck_table') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'nullcheck_table') -%}\n {% set cols = adapter.get_columns_in_relation(relation) %}\n\n select {{ dbt_utils.nullcheck(cols) }}\n from {{relation}}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt_utils.nullcheck"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.0062249}, "macro.dbt_utils.get_relations_by_pattern": {"unique_id": "macro.dbt_utils.get_relations_by_pattern", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/sql/get_relations_by_pattern.sql", "original_file_path": "macros/sql/get_relations_by_pattern.sql", "name": "get_relations_by_pattern", "macro_sql": "{% macro get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_relations_by_pattern', 'dbt_utils')(schema_pattern, table_pattern, exclude, database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_relations_by_pattern"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.008109}, "macro.dbt_utils.default__get_relations_by_pattern": {"unique_id": "macro.dbt_utils.default__get_relations_by_pattern", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/sql/get_relations_by_pattern.sql", "original_file_path": "macros/sql/get_relations_by_pattern.sql", "name": "default__get_relations_by_pattern", "macro_sql": "{% macro default__get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n {%- call statement('get_tables', fetch_result=True) %}\n\n {{ dbt_utils.get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude, database) }}\n\n {%- endcall -%}\n\n {%- set table_list = load_result('get_tables') -%}\n\n {%- if table_list and table_list['table'] -%}\n {%- set tbl_relations = [] -%}\n {%- for row in table_list['table'] -%}\n {%- set tbl_relation = api.Relation.create(\n database=database,\n schema=row.table_schema,\n identifier=row.table_name,\n type=row.table_type\n ) -%}\n {%- do tbl_relations.append(tbl_relation) -%}\n {%- endfor -%}\n\n {{ return(tbl_relations) }}\n {%- else -%}\n {{ return([]) }}\n {%- endif -%}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_utils.get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.010634}, "macro.dbt_utils.get_powers_of_two": {"unique_id": "macro.dbt_utils.get_powers_of_two", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "name": "get_powers_of_two", "macro_sql": "{% macro get_powers_of_two(upper_bound) %}\n {{ return(adapter.dispatch('get_powers_of_two', 'dbt_utils')(upper_bound)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.012604}, "macro.dbt_utils.default__get_powers_of_two": {"unique_id": "macro.dbt_utils.default__get_powers_of_two", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "name": "default__get_powers_of_two", "macro_sql": "{% macro default__get_powers_of_two(upper_bound) %}\n\n {% if upper_bound <= 0 %}\n {{ exceptions.raise_compiler_error(\"upper bound must be positive\") }}\n {% endif %}\n\n {% for _ in range(1, 100) %}\n {% if upper_bound <= 2 ** loop.index %}{{ return(loop.index) }}{% endif %}\n {% endfor %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.013726}, "macro.dbt_utils.generate_series": {"unique_id": "macro.dbt_utils.generate_series", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "name": "generate_series", "macro_sql": "{% macro generate_series(upper_bound) %}\n {{ return(adapter.dispatch('generate_series', 'dbt_utils')(upper_bound)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__generate_series"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.014241}, "macro.dbt_utils.default__generate_series": {"unique_id": "macro.dbt_utils.default__generate_series", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "name": "default__generate_series", "macro_sql": "{% macro default__generate_series(upper_bound) %}\n\n {% set n = dbt_utils.get_powers_of_two(upper_bound) %}\n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n {% for i in range(n) %}\n p{{i}}.generated_number * power(2, {{i}})\n {% if not loop.last %} + {% endif %}\n {% endfor %}\n + 1\n as generated_number\n\n from\n\n {% for i in range(n) %}\n p as p{{i}}\n {% if not loop.last %} cross join {% endif %}\n {% endfor %}\n\n )\n\n select *\n from unioned\n where generated_number <= {{upper_bound}}\n order by generated_number\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.0156329}, "macro.dbt_utils.get_relations_by_prefix": {"unique_id": "macro.dbt_utils.get_relations_by_prefix", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/sql/get_relations_by_prefix.sql", "original_file_path": "macros/sql/get_relations_by_prefix.sql", "name": "get_relations_by_prefix", "macro_sql": "{% macro get_relations_by_prefix(schema, prefix, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_relations_by_prefix', 'dbt_utils')(schema, prefix, exclude, database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_relations_by_prefix"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.017365}, "macro.dbt_utils.default__get_relations_by_prefix": {"unique_id": "macro.dbt_utils.default__get_relations_by_prefix", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/sql/get_relations_by_prefix.sql", "original_file_path": "macros/sql/get_relations_by_prefix.sql", "name": "default__get_relations_by_prefix", "macro_sql": "{% macro default__get_relations_by_prefix(schema, prefix, exclude='', database=target.database) %}\n\n {%- call statement('get_tables', fetch_result=True) %}\n\n {{ dbt_utils.get_tables_by_prefix_sql(schema, prefix, exclude, database) }}\n\n {%- endcall -%}\n\n {%- set table_list = load_result('get_tables') -%}\n\n {%- if table_list and table_list['table'] -%}\n {%- set tbl_relations = [] -%}\n {%- for row in table_list['table'] -%}\n {%- set tbl_relation = api.Relation.create(\n database=database,\n schema=row.table_schema,\n identifier=row.table_name,\n type=row.table_type\n ) -%}\n {%- do tbl_relations.append(tbl_relation) -%}\n {%- endfor -%}\n\n {{ return(tbl_relations) }}\n {%- else -%}\n {{ return([]) }}\n {%- endif -%}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_utils.get_tables_by_prefix_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.019618}, "macro.dbt_utils.get_tables_by_prefix_sql": {"unique_id": "macro.dbt_utils.get_tables_by_prefix_sql", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/sql/get_tables_by_prefix_sql.sql", "original_file_path": "macros/sql/get_tables_by_prefix_sql.sql", "name": "get_tables_by_prefix_sql", "macro_sql": "{% macro get_tables_by_prefix_sql(schema, prefix, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_tables_by_prefix_sql', 'dbt_utils')(schema, prefix, exclude, database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_tables_by_prefix_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.020844}, "macro.dbt_utils.default__get_tables_by_prefix_sql": {"unique_id": "macro.dbt_utils.default__get_tables_by_prefix_sql", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/sql/get_tables_by_prefix_sql.sql", "original_file_path": "macros/sql/get_tables_by_prefix_sql.sql", "name": "default__get_tables_by_prefix_sql", "macro_sql": "{% macro default__get_tables_by_prefix_sql(schema, prefix, exclude='', database=target.database) %}\n\n {{ dbt_utils.get_tables_by_pattern_sql(\n schema_pattern = schema,\n table_pattern = prefix ~ '%',\n exclude = exclude,\n database = database\n ) }}\n \n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.021676}, "macro.dbt_utils.star": {"unique_id": "macro.dbt_utils.star", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/sql/star.sql", "original_file_path": "macros/sql/star.sql", "name": "star", "macro_sql": "{% macro star(from, relation_alias=False, except=[], prefix='', suffix='') -%}\n {{ return(adapter.dispatch('star', 'dbt_utils')(from, relation_alias, except, prefix, suffix)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__star"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.023318}, "macro.dbt_utils.default__star": {"unique_id": "macro.dbt_utils.default__star", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/sql/star.sql", "original_file_path": "macros/sql/star.sql", "name": "default__star", "macro_sql": "{% macro default__star(from, relation_alias=False, except=[], prefix='', suffix='') -%}\n {%- do dbt_utils._is_relation(from, 'star') -%}\n {%- do dbt_utils._is_ephemeral(from, 'star') -%}\n\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n {%- if not execute -%}\n {{ return('*') }}\n {% endif %}\n\n {%- for col in dbt_utils.get_filtered_columns_in_relation(from, except) %}\n\n {%- if relation_alias %}{{ relation_alias }}.{% else %}{%- endif -%}{{ adapter.quote(col)|trim }} {%- if prefix!='' or suffix!='' %} as {{ adapter.quote(prefix ~ col ~ suffix)|trim }} {%- endif -%}\n {%- if not loop.last %},{{ '\\n ' }}{% endif %}\n\n {%- endfor -%}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt_utils.get_filtered_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.0255308}, "macro.dbt_utils.unpivot": {"unique_id": "macro.dbt_utils.unpivot", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/sql/unpivot.sql", "original_file_path": "macros/sql/unpivot.sql", "name": "unpivot", "macro_sql": "{% macro unpivot(relation=none, cast_to='varchar', exclude=none, remove=none, field_name='field_name', value_name='value', table=none) -%}\n {{ return(adapter.dispatch('unpivot', 'dbt_utils')(relation, cast_to, exclude, remove, field_name, value_name, table)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__unpivot"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.029141}, "macro.dbt_utils.default__unpivot": {"unique_id": "macro.dbt_utils.default__unpivot", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/sql/unpivot.sql", "original_file_path": "macros/sql/unpivot.sql", "name": "default__unpivot", "macro_sql": "{% macro default__unpivot(relation=none, cast_to='varchar', exclude=none, remove=none, field_name='field_name', value_name='value', table=none) -%}\n\n {% if table %}\n {%- set error_message = '\n Warning: the `unpivot` macro no longer accepts a `table` parameter. \\\n This parameter will be deprecated in a future release of dbt-utils. Use the `relation` parameter instead. \\\n The {}.{} model triggered this warning. \\\n '.format(model.package_name, model.name) -%}\n {%- do exceptions.warn(error_message) -%}\n {% endif %}\n\n {% if relation and table %}\n {{ exceptions.raise_compiler_error(\"Error: both the `relation` and `table` parameters were provided to `unpivot` macro. Choose one only (we recommend `relation`).\") }}\n {% elif not relation and table %}\n {% set relation=table %}\n {% elif not relation and not table %}\n {{ exceptions.raise_compiler_error(\"Error: argument `relation` is required for `unpivot` macro.\") }}\n {% endif %}\n\n {%- set exclude = exclude if exclude is not none else [] %}\n {%- set remove = remove if remove is not none else [] %}\n\n {%- set include_cols = [] %}\n\n {%- set table_columns = {} %}\n\n {%- do table_columns.update({relation: []}) %}\n\n {%- do dbt_utils._is_relation(relation, 'unpivot') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'unpivot') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) %}\n\n {%- for col in cols -%}\n {%- if col.column.lower() not in remove|map('lower') and col.column.lower() not in exclude|map('lower') -%}\n {% do include_cols.append(col) %}\n {%- endif %}\n {%- endfor %}\n\n\n {%- for col in include_cols -%}\n select\n {%- for exclude_col in exclude %}\n {{ exclude_col }},\n {%- endfor %}\n\n cast('{{ col.column }}' as {{ dbt_utils.type_string() }}) as {{ field_name }},\n cast( {% if col.data_type == 'boolean' %}\n {{ dbt_utils.cast_bool_to_text(col.column) }}\n {% else %}\n {{ col.column }}\n {% endif %}\n as {{ cast_to }}) as {{ value_name }}\n\n from {{ relation }}\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n {%- endfor -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt_utils.type_string", "macro.dbt_utils.cast_bool_to_text"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.034542}, "macro.dbt_utils.union_relations": {"unique_id": "macro.dbt_utils.union_relations", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/sql/union.sql", "original_file_path": "macros/sql/union.sql", "name": "union_relations", "macro_sql": "{%- macro union_relations(relations, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_relation', where=none) -%}\n {{ return(adapter.dispatch('union_relations', 'dbt_utils')(relations, column_override, include, exclude, source_column_name, where)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__union_relations"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.0392919}, "macro.dbt_utils.default__union_relations": {"unique_id": "macro.dbt_utils.default__union_relations", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/sql/union.sql", "original_file_path": "macros/sql/union.sql", "name": "default__union_relations", "macro_sql": "\n\n{%- macro default__union_relations(relations, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_relation', where=none) -%}\n\n {%- if exclude and include -%}\n {{ exceptions.raise_compiler_error(\"Both an exclude and include list were provided to the `union` macro. Only one is allowed\") }}\n {%- endif -%}\n\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. -#}\n {%- if not execute %}\n {{ return('') }}\n {% endif -%}\n\n {%- set column_override = column_override if column_override is not none else {} -%}\n\n {%- set relation_columns = {} -%}\n {%- set column_superset = {} -%}\n\n {%- for relation in relations -%}\n\n {%- do relation_columns.update({relation: []}) -%}\n\n {%- do dbt_utils._is_relation(relation, 'union_relations') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'union_relations') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) -%}\n {%- for col in cols -%}\n\n {#- If an exclude list was provided and the column is in the list, do nothing -#}\n {%- if exclude and col.column in exclude -%}\n\n {#- If an include list was provided and the column is not in the list, do nothing -#}\n {%- elif include and col.column not in include -%}\n\n {#- Otherwise add the column to the column superset -#}\n {%- else -%}\n\n {#- update the list of columns in this relation -#}\n {%- do relation_columns[relation].append(col.column) -%}\n\n {%- if col.column in column_superset -%}\n\n {%- set stored = column_superset[col.column] -%}\n {%- if col.is_string() and stored.is_string() and col.string_size() > stored.string_size() -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif %}\n\n {%- else -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif -%}\n\n {%- endif -%}\n\n {%- endfor -%}\n {%- endfor -%}\n\n {%- set ordered_column_names = column_superset.keys() -%}\n\n {% if (include | length > 0 or exclude | length > 0) and not column_superset.keys() %}\n {%- set relations_string -%}\n {%- for relation in relations -%}\n {{ relation.name }}\n {%- if not loop.last %}, {% endif -%}\n {%- endfor -%}\n {%- endset -%}\n\n {%- set error_message -%}\n There were no columns found to union for relations {{ relations_string }}\n {%- endset -%}\n\n {{ exceptions.raise_compiler_error(error_message) }}\n {%- endif -%}\n\n {%- for relation in relations %}\n\n (\n select\n\n cast({{ dbt_utils.string_literal(relation) }} as {{ dbt_utils.type_string() }}) as {{ source_column_name }},\n {% for col_name in ordered_column_names -%}\n\n {%- set col = column_superset[col_name] %}\n {%- set col_type = column_override.get(col.column, col.data_type) %}\n {%- set col_name = adapter.quote(col_name) if col_name in relation_columns[relation] else 'null' %}\n cast({{ col_name }} as {{ col_type }}) as {{ col.quoted }} {% if not loop.last %},{% endif -%}\n\n {%- endfor %}\n\n from {{ relation }}\n\n {% if where -%}\n where {{ where }}\n {%- endif %}\n )\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n\n {%- endfor -%}\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt_utils.string_literal", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.0465322}, "macro.dbt_utils.group_by": {"unique_id": "macro.dbt_utils.group_by", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/sql/groupby.sql", "original_file_path": "macros/sql/groupby.sql", "name": "group_by", "macro_sql": "{%- macro group_by(n) -%}\n {{ return(adapter.dispatch('group_by', 'dbt_utils')(n)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__group_by"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.047394}, "macro.dbt_utils.default__group_by": {"unique_id": "macro.dbt_utils.default__group_by", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/sql/groupby.sql", "original_file_path": "macros/sql/groupby.sql", "name": "default__group_by", "macro_sql": "\n\n{%- macro default__group_by(n) -%}\n\n group by {% for i in range(1, n + 1) -%}\n {{ i }}{{ ',' if not loop.last }} \n {%- endfor -%}\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.048043}, "macro.dbt_utils.deduplicate": {"unique_id": "macro.dbt_utils.deduplicate", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "name": "deduplicate", "macro_sql": "{%- macro deduplicate(relation, partition_by, order_by=none, relation_alias=none) -%}\n\n {%- set error_message_group_by -%}\nWarning: the `group_by` parameter of the `deduplicate` macro is no longer supported and will be deprecated in a future release of dbt-utils.\nUse `partition_by` instead.\nThe {{ model.package_name }}.{{ model.name }} model triggered this warning.\n {%- endset -%}\n\n {% if kwargs.get('group_by') %}\n {%- do exceptions.warn(error_message_group_by) -%}\n {%- endif -%}\n\n {%- set error_message_order_by -%}\nWarning: `order_by` as an optional parameter of the `deduplicate` macro is no longer supported and will be deprecated in a future release of dbt-utils.\nSupply a non-null value for `order_by` instead.\nThe {{ model.package_name }}.{{ model.name }} model triggered this warning.\n {%- endset -%}\n\n {% if not order_by %}\n {%- do exceptions.warn(error_message_order_by) -%}\n {%- endif -%}\n\n {%- set error_message_alias -%}\nWarning: the `relation_alias` parameter of the `deduplicate` macro is no longer supported and will be deprecated in a future release of dbt-utils.\nIf you were using `relation_alias` to point to a CTE previously then you can now pass the alias directly to `relation` instead.\nThe {{ model.package_name }}.{{ model.name }} model triggered this warning.\n {%- endset -%}\n\n {% if relation_alias %}\n {%- do exceptions.warn(error_message_alias) -%}\n {%- endif -%}\n\n {% set partition_by = partition_by or kwargs.get('group_by') %}\n {% set relation = relation_alias or relation %}\n {% set order_by = order_by or \"'1'\" %}\n\n {{ return(adapter.dispatch('deduplicate', 'dbt_utils')(relation, partition_by, order_by)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.bigquery__deduplicate"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.0528908}, "macro.dbt_utils.default__deduplicate": {"unique_id": "macro.dbt_utils.default__deduplicate", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "name": "default__deduplicate", "macro_sql": "\n\n{%- macro default__deduplicate(relation, partition_by, order_by) -%}\n\n with row_numbered as (\n select\n _inner.*,\n row_number() over (\n partition by {{ partition_by }}\n order by {{ order_by }}\n ) as rn\n from {{ relation }} as _inner\n )\n\n select\n distinct data.*\n from {{ relation }} as data\n {#\n -- Not all DBs will support natural joins but the ones that do include:\n -- Oracle, MySQL, SQLite, Redshift, Teradata, Materialize, Databricks\n -- Apache Spark, SingleStore, Vertica\n -- Those that do not appear to support natural joins include:\n -- SQLServer, Trino, Presto, Rockset, Athena\n #}\n natural join row_numbered\n where row_numbered.rn = 1\n\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.0533829}, "macro.dbt_utils.redshift__deduplicate": {"unique_id": "macro.dbt_utils.redshift__deduplicate", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "name": "redshift__deduplicate", "macro_sql": "{% macro redshift__deduplicate(relation, partition_by, order_by) -%}\n\n {{ return(dbt_utils.default__deduplicate(relation, partition_by, order_by=order_by)) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__deduplicate"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.054004}, "macro.dbt_utils.postgres__deduplicate": {"unique_id": "macro.dbt_utils.postgres__deduplicate", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "name": "postgres__deduplicate", "macro_sql": "\n{%- macro postgres__deduplicate(relation, partition_by, order_by) -%}\n\n select\n distinct on ({{ partition_by }}) *\n from {{ relation }}\n order by {{ partition_by }}{{ ',' ~ order_by }}\n\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.0544288}, "macro.dbt_utils.snowflake__deduplicate": {"unique_id": "macro.dbt_utils.snowflake__deduplicate", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "name": "snowflake__deduplicate", "macro_sql": "\n{%- macro snowflake__deduplicate(relation, partition_by, order_by) -%}\n\n select *\n from {{ relation }}\n qualify\n row_number() over (\n partition by {{ partition_by }}\n order by {{ order_by }}\n ) = 1\n\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.054803}, "macro.dbt_utils.bigquery__deduplicate": {"unique_id": "macro.dbt_utils.bigquery__deduplicate", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "name": "bigquery__deduplicate", "macro_sql": "\n{%- macro bigquery__deduplicate(relation, partition_by, order_by) -%}\n\n select unique.*\n from (\n select\n array_agg (\n original\n order by {{ order_by }}\n limit 1\n )[offset(0)] unique\n from {{ relation }} original\n group by {{ partition_by }}\n )\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.055181}, "macro.dbt_utils.surrogate_key": {"unique_id": "macro.dbt_utils.surrogate_key", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/sql/surrogate_key.sql", "original_file_path": "macros/sql/surrogate_key.sql", "name": "surrogate_key", "macro_sql": "{%- macro surrogate_key(field_list) -%}\n {# needed for safe_add to allow for non-keyword arguments see SO post #}\n {# https://stackoverflow.com/questions/13944751/args-kwargs-in-jinja2-macros #}\n {% set frustrating_jinja_feature = varargs %}\n {{ return(adapter.dispatch('surrogate_key', 'dbt_utils')(field_list, *varargs)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__surrogate_key"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.056393}, "macro.dbt_utils.default__surrogate_key": {"unique_id": "macro.dbt_utils.default__surrogate_key", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/sql/surrogate_key.sql", "original_file_path": "macros/sql/surrogate_key.sql", "name": "default__surrogate_key", "macro_sql": "\n\n{%- macro default__surrogate_key(field_list) -%}\n\n{%- if varargs|length >= 1 or field_list is string %}\n\n{%- set error_message = '\nWarning: the `surrogate_key` macro now takes a single list argument instead of \\\nmultiple string arguments. Support for multiple string arguments will be \\\ndeprecated in a future release of dbt-utils. The {}.{} model triggered this warning. \\\n'.format(model.package_name, model.name) -%}\n\n{%- do exceptions.warn(error_message) -%}\n\n{# first argument is not included in varargs, so add first element to field_list_xf #}\n{%- set field_list_xf = [field_list] -%}\n\n{%- for field in varargs %}\n{%- set _ = field_list_xf.append(field) -%}\n{%- endfor -%}\n\n{%- else -%}\n\n{# if using list, just set field_list_xf as field_list #}\n{%- set field_list_xf = field_list -%}\n\n{%- endif -%}\n\n\n{%- set fields = [] -%}\n\n{%- for field in field_list_xf -%}\n\n {%- set _ = fields.append(\n \"coalesce(cast(\" ~ field ~ \" as \" ~ dbt_utils.type_string() ~ \"), '')\"\n ) -%}\n\n {%- if not loop.last %}\n {%- set _ = fields.append(\"'-'\") -%}\n {%- endif -%}\n\n{%- endfor -%}\n\n{{dbt_utils.hash(dbt_utils.concat(fields))}}\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string", "macro.dbt_utils.hash", "macro.dbt_utils.concat"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.0583858}, "macro.dbt_utils.safe_add": {"unique_id": "macro.dbt_utils.safe_add", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/sql/safe_add.sql", "original_file_path": "macros/sql/safe_add.sql", "name": "safe_add", "macro_sql": "{%- macro safe_add() -%}\n {# needed for safe_add to allow for non-keyword arguments see SO post #}\n {# https://stackoverflow.com/questions/13944751/args-kwargs-in-jinja2-macros #}\n {% set frustrating_jinja_feature = varargs %}\n {{ return(adapter.dispatch('safe_add', 'dbt_utils')(*varargs)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__safe_add"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.05939}, "macro.dbt_utils.default__safe_add": {"unique_id": "macro.dbt_utils.default__safe_add", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/sql/safe_add.sql", "original_file_path": "macros/sql/safe_add.sql", "name": "default__safe_add", "macro_sql": "\n\n{%- macro default__safe_add() -%}\n\n{% set fields = [] %}\n\n{%- for field in varargs -%}\n\n {% do fields.append(\"coalesce(\" ~ field ~ \", 0)\") %}\n\n{%- endfor -%}\n\n{{ fields|join(' +\\n ') }}\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.060011}, "macro.dbt_utils.nullcheck": {"unique_id": "macro.dbt_utils.nullcheck", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/sql/nullcheck.sql", "original_file_path": "macros/sql/nullcheck.sql", "name": "nullcheck", "macro_sql": "{% macro nullcheck(cols) %}\n {{ return(adapter.dispatch('nullcheck', 'dbt_utils')(cols)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__nullcheck"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.060819}, "macro.dbt_utils.default__nullcheck": {"unique_id": "macro.dbt_utils.default__nullcheck", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/sql/nullcheck.sql", "original_file_path": "macros/sql/nullcheck.sql", "name": "default__nullcheck", "macro_sql": "{% macro default__nullcheck(cols) %}\n{%- for col in cols %}\n\n {% if col.is_string() -%}\n\n nullif({{col.name}},'') as {{col.name}}\n\n {%- else -%}\n\n {{col.name}}\n\n {%- endif -%}\n\n{%- if not loop.last -%} , {%- endif -%}\n\n{%- endfor -%}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.061557}, "macro.dbt_utils.get_tables_by_pattern_sql": {"unique_id": "macro.dbt_utils.get_tables_by_pattern_sql", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "name": "get_tables_by_pattern_sql", "macro_sql": "{% macro get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_tables_by_pattern_sql', 'dbt_utils')\n (schema_pattern, table_pattern, exclude, database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.bigquery__get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.064102}, "macro.dbt_utils.default__get_tables_by_pattern_sql": {"unique_id": "macro.dbt_utils.default__get_tables_by_pattern_sql", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "name": "default__get_tables_by_pattern_sql", "macro_sql": "{% macro default__get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n select distinct\n table_schema as \"table_schema\",\n table_name as \"table_name\",\n {{ dbt_utils.get_table_types_sql() }}\n from {{ database }}.information_schema.tables\n where table_schema ilike '{{ schema_pattern }}'\n and table_name ilike '{{ table_pattern }}'\n and table_name not ilike '{{ exclude }}'\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.064693}, "macro.dbt_utils.bigquery__get_tables_by_pattern_sql": {"unique_id": "macro.dbt_utils.bigquery__get_tables_by_pattern_sql", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "name": "bigquery__get_tables_by_pattern_sql", "macro_sql": "{% macro bigquery__get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n {% if '%' in schema_pattern %}\n {% set schemata=dbt_utils._bigquery__get_matching_schemata(schema_pattern, database) %}\n {% else %}\n {% set schemata=[schema_pattern] %}\n {% endif %}\n\n {% set sql %}\n {% for schema in schemata %}\n select distinct\n table_schema,\n table_name,\n {{ dbt_utils.get_table_types_sql() }}\n\n from {{ adapter.quote(database) }}.{{ schema }}.INFORMATION_SCHEMA.TABLES\n where lower(table_name) like lower ('{{ table_pattern }}')\n and lower(table_name) not like lower ('{{ exclude }}')\n\n {% if not loop.last %} union all {% endif %}\n\n {% endfor %}\n {% endset %}\n\n {{ return(sql) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._bigquery__get_matching_schemata", "macro.dbt_utils.get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.0663428}, "macro.dbt_utils._bigquery__get_matching_schemata": {"unique_id": "macro.dbt_utils._bigquery__get_matching_schemata", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "name": "_bigquery__get_matching_schemata", "macro_sql": "{% macro _bigquery__get_matching_schemata(schema_pattern, database) %}\n {% if execute %}\n\n {% set sql %}\n select schema_name from {{ adapter.quote(database) }}.INFORMATION_SCHEMA.SCHEMATA\n where lower(schema_name) like lower('{{ schema_pattern }}')\n {% endset %}\n\n {% set results=run_query(sql) %}\n\n {% set schemata=results.columns['schema_name'].values() %}\n\n {{ return(schemata) }}\n\n {% else %}\n\n {{ return([]) }}\n\n {% endif %}\n\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.067444}, "macro.dbt_utils.get_column_values": {"unique_id": "macro.dbt_utils.get_column_values", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/sql/get_column_values.sql", "original_file_path": "macros/sql/get_column_values.sql", "name": "get_column_values", "macro_sql": "{% macro get_column_values(table, column, order_by='count(*) desc', max_records=none, default=none, where=none) -%}\n {{ return(adapter.dispatch('get_column_values', 'dbt_utils')(table, column, order_by, max_records, default, where)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_column_values"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.069543}, "macro.dbt_utils.default__get_column_values": {"unique_id": "macro.dbt_utils.default__get_column_values", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/sql/get_column_values.sql", "original_file_path": "macros/sql/get_column_values.sql", "name": "default__get_column_values", "macro_sql": "{% macro default__get_column_values(table, column, order_by='count(*) desc', max_records=none, default=none, where=none) -%}\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n {%- if not execute -%}\n {% set default = [] if not default %}\n {{ return(default) }}\n {% endif %}\n\n {%- do dbt_utils._is_ephemeral(table, 'get_column_values') -%}\n\n {# Not all relations are tables. Renaming for internal clarity without breaking functionality for anyone using named arguments #}\n {# TODO: Change the method signature in a future 0.x.0 release #}\n {%- set target_relation = table -%}\n\n {# adapter.load_relation is a convenience wrapper to avoid building a Relation when we already have one #}\n {% set relation_exists = (load_relation(target_relation)) is not none %}\n\n {%- call statement('get_column_values', fetch_result=true) %}\n\n {%- if not relation_exists and default is none -%}\n\n {{ exceptions.raise_compiler_error(\"In get_column_values(): relation \" ~ target_relation ~ \" does not exist and no default value was provided.\") }}\n\n {%- elif not relation_exists and default is not none -%}\n\n {{ log(\"Relation \" ~ target_relation ~ \" does not exist. Returning the default value: \" ~ default) }}\n\n {{ return(default) }}\n\n {%- else -%}\n\n\n select\n {{ column }} as value\n\n from {{ target_relation }}\n\n {% if where is not none %}\n where {{ where }}\n {% endif %}\n\n group by {{ column }}\n order by {{ order_by }}\n\n {% if max_records is not none %}\n limit {{ max_records }}\n {% endif %}\n\n {% endif %}\n\n {%- endcall -%}\n\n {%- set value_list = load_result('get_column_values') -%}\n\n {%- if value_list and value_list['data'] -%}\n {%- set values = value_list['data'] | map(attribute=0) | list %}\n {{ return(values) }}\n {%- else -%}\n {{ return(default) }}\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_ephemeral", "macro.dbt.load_relation", "macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.072881}, "macro.dbt_utils.pivot": {"unique_id": "macro.dbt_utils.pivot", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/sql/pivot.sql", "original_file_path": "macros/sql/pivot.sql", "name": "pivot", "macro_sql": "{% macro pivot(column,\n values,\n alias=True,\n agg='sum',\n cmp='=',\n prefix='',\n suffix='',\n then_value=1,\n else_value=0,\n quote_identifiers=True,\n distinct=False) %}\n {{ return(adapter.dispatch('pivot', 'dbt_utils')(column, values, alias, agg, cmp, prefix, suffix, then_value, else_value, quote_identifiers, distinct)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__pivot"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.074903}, "macro.dbt_utils.default__pivot": {"unique_id": "macro.dbt_utils.default__pivot", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/sql/pivot.sql", "original_file_path": "macros/sql/pivot.sql", "name": "default__pivot", "macro_sql": "{% macro default__pivot(column,\n values,\n alias=True,\n agg='sum',\n cmp='=',\n prefix='',\n suffix='',\n then_value=1,\n else_value=0,\n quote_identifiers=True,\n distinct=False) %}\n {% for value in values %}\n {{ agg }}(\n {% if distinct %} distinct {% endif %}\n case\n when {{ column }} {{ cmp }} '{{ dbt_utils.escape_single_quotes(value) }}'\n then {{ then_value }}\n else {{ else_value }}\n end\n )\n {% if alias %}\n {% if quote_identifiers %}\n as {{ adapter.quote(prefix ~ value ~ suffix) }}\n {% else %}\n as {{ dbt_utils.slugify(prefix ~ value ~ suffix) }}\n {% endif %}\n {% endif %}\n {% if not loop.last %},{% endif %}\n {% endfor %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.escape_single_quotes", "macro.dbt_utils.slugify"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.07679}, "macro.dbt_utils.get_filtered_columns_in_relation": {"unique_id": "macro.dbt_utils.get_filtered_columns_in_relation", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/sql/get_filtered_columns_in_relation.sql", "original_file_path": "macros/sql/get_filtered_columns_in_relation.sql", "name": "get_filtered_columns_in_relation", "macro_sql": "{% macro get_filtered_columns_in_relation(from, except=[]) -%}\n {{ return(adapter.dispatch('get_filtered_columns_in_relation', 'dbt_utils')(from, except)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_filtered_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.077796}, "macro.dbt_utils.default__get_filtered_columns_in_relation": {"unique_id": "macro.dbt_utils.default__get_filtered_columns_in_relation", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/sql/get_filtered_columns_in_relation.sql", "original_file_path": "macros/sql/get_filtered_columns_in_relation.sql", "name": "default__get_filtered_columns_in_relation", "macro_sql": "{% macro default__get_filtered_columns_in_relation(from, except=[]) -%}\n {%- do dbt_utils._is_relation(from, 'get_filtered_columns_in_relation') -%}\n {%- do dbt_utils._is_ephemeral(from, 'get_filtered_columns_in_relation') -%}\n\n {# -- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n {%- if not execute -%}\n {{ return('') }}\n {% endif %}\n\n {%- set include_cols = [] %}\n {%- set cols = adapter.get_columns_in_relation(from) -%}\n {%- set except = except | map(\"lower\") | list %}\n {%- for col in cols -%}\n {%- if col.column|lower not in except -%}\n {% do include_cols.append(col.column) %}\n {%- endif %}\n {%- endfor %}\n\n {{ return(include_cols) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.079356}, "macro.dbt_utils.get_query_results_as_dict": {"unique_id": "macro.dbt_utils.get_query_results_as_dict", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/sql/get_query_results_as_dict.sql", "original_file_path": "macros/sql/get_query_results_as_dict.sql", "name": "get_query_results_as_dict", "macro_sql": "{% macro get_query_results_as_dict(query) %}\n {{ return(adapter.dispatch('get_query_results_as_dict', 'dbt_utils')(query)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_query_results_as_dict"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.080276}, "macro.dbt_utils.default__get_query_results_as_dict": {"unique_id": "macro.dbt_utils.default__get_query_results_as_dict", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/sql/get_query_results_as_dict.sql", "original_file_path": "macros/sql/get_query_results_as_dict.sql", "name": "default__get_query_results_as_dict", "macro_sql": "{% macro default__get_query_results_as_dict(query) %}\n\n{# This macro returns a dictionary of the form {column_name: (tuple_of_results)} #}\n\n {%- call statement('get_query_results', fetch_result=True,auto_begin=false) -%}\n\n {{ query }}\n\n {%- endcall -%}\n\n {% set sql_results={} %}\n\n {%- if execute -%}\n {% set sql_results_table = load_result('get_query_results').table.columns %}\n {% for column_name, column in sql_results_table.items() %}\n {% do sql_results.update({column_name: column.values()}) %}\n {% endfor %}\n {%- endif -%}\n\n {{ return(sql_results) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.081586}, "macro.dbt_utils.get_table_types_sql": {"unique_id": "macro.dbt_utils.get_table_types_sql", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "name": "get_table_types_sql", "macro_sql": "{%- macro get_table_types_sql() -%}\n {{ return(adapter.dispatch('get_table_types_sql', 'dbt_utils')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.bigquery__get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.0826108}, "macro.dbt_utils.default__get_table_types_sql": {"unique_id": "macro.dbt_utils.default__get_table_types_sql", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "name": "default__get_table_types_sql", "macro_sql": "{% macro default__get_table_types_sql() %}\n case table_type\n when 'BASE TABLE' then 'table'\n when 'EXTERNAL TABLE' then 'external'\n when 'MATERIALIZED VIEW' then 'materializedview'\n else lower(table_type)\n end as \"table_type\"\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.0828001}, "macro.dbt_utils.postgres__get_table_types_sql": {"unique_id": "macro.dbt_utils.postgres__get_table_types_sql", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "name": "postgres__get_table_types_sql", "macro_sql": "{% macro postgres__get_table_types_sql() %}\n case table_type\n when 'BASE TABLE' then 'table'\n when 'FOREIGN' then 'external'\n when 'MATERIALIZED VIEW' then 'materializedview'\n else lower(table_type)\n end as \"table_type\"\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.0829859}, "macro.dbt_utils.bigquery__get_table_types_sql": {"unique_id": "macro.dbt_utils.bigquery__get_table_types_sql", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "name": "bigquery__get_table_types_sql", "macro_sql": "{% macro bigquery__get_table_types_sql() %}\n case table_type\n when 'BASE TABLE' then 'table'\n when 'EXTERNAL TABLE' then 'external'\n when 'MATERIALIZED VIEW' then 'materializedview'\n else lower(table_type)\n end as `table_type`\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.083167}, "macro.dbt_utils.degrees_to_radians": {"unique_id": "macro.dbt_utils.degrees_to_radians", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "name": "degrees_to_radians", "macro_sql": "{% macro degrees_to_radians(degrees) -%}\n acos(-1) * {{degrees}} / 180\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.084915}, "macro.dbt_utils.haversine_distance": {"unique_id": "macro.dbt_utils.haversine_distance", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "name": "haversine_distance", "macro_sql": "{% macro haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n {{ return(adapter.dispatch('haversine_distance', 'dbt_utils')(lat1,lon1,lat2,lon2,unit)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.bigquery__haversine_distance"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.085523}, "macro.dbt_utils.default__haversine_distance": {"unique_id": "macro.dbt_utils.default__haversine_distance", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "name": "default__haversine_distance", "macro_sql": "{% macro default__haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n{%- if unit == 'mi' %}\n {% set conversion_rate = 1 %}\n{% elif unit == 'km' %}\n {% set conversion_rate = 1.60934 %}\n{% else %}\n {{ exceptions.raise_compiler_error(\"unit input must be one of 'mi' or 'km'. Got \" ~ unit) }}\n{% endif %}\n\n 2 * 3961 * asin(sqrt(power((sin(radians(({{ lat2 }} - {{ lat1 }}) / 2))), 2) +\n cos(radians({{lat1}})) * cos(radians({{lat2}})) *\n power((sin(radians(({{ lon2 }} - {{ lon1 }}) / 2))), 2))) * {{ conversion_rate }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.0867882}, "macro.dbt_utils.bigquery__haversine_distance": {"unique_id": "macro.dbt_utils.bigquery__haversine_distance", "package_name": "dbt_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "name": "bigquery__haversine_distance", "macro_sql": "{% macro bigquery__haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n{% set radians_lat1 = dbt_utils.degrees_to_radians(lat1) %}\n{% set radians_lat2 = dbt_utils.degrees_to_radians(lat2) %}\n{% set radians_lon1 = dbt_utils.degrees_to_radians(lon1) %}\n{% set radians_lon2 = dbt_utils.degrees_to_radians(lon2) %}\n{%- if unit == 'mi' %}\n {% set conversion_rate = 1 %}\n{% elif unit == 'km' %}\n {% set conversion_rate = 1.60934 %}\n{% else %}\n {{ exceptions.raise_compiler_error(\"unit input must be one of 'mi' or 'km'. Got \" ~ unit) }}\n{% endif %}\n 2 * 3961 * asin(sqrt(power(sin(({{ radians_lat2 }} - {{ radians_lat1 }}) / 2), 2) +\n cos({{ radians_lat1 }}) * cos({{ radians_lat2 }}) *\n power(sin(({{ radians_lon2 }} - {{ radians_lon1 }}) / 2), 2))) * {{ conversion_rate }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.degrees_to_radians"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.088657}, "macro.spark_utils.get_tables": {"unique_id": "macro.spark_utils.get_tables", "package_name": "spark_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/spark_utils", "path": "macros/maintenance_operation.sql", "original_file_path": "macros/maintenance_operation.sql", "name": "get_tables", "macro_sql": "{% macro get_tables(table_regex_pattern='.*') %}\n\n {% set tables = [] %}\n {% for database in spark__list_schemas('not_used') %}\n {% for table in spark__list_relations_without_caching(database[0]) %}\n {% set db_tablename = database[0] ~ \".\" ~ table[1] %}\n {% set is_match = modules.re.match(table_regex_pattern, db_tablename) %}\n {% if is_match %}\n {% call statement('table_detail', fetch_result=True) -%}\n describe extended {{ db_tablename }}\n {% endcall %}\n\n {% set table_type = load_result('table_detail').table|reverse|selectattr(0, 'in', ('type', 'TYPE', 'Type'))|first %}\n {% if table_type[1]|lower != 'view' %}\n {{ tables.append(db_tablename) }}\n {% endif %}\n {% endif %}\n {% endfor %}\n {% endfor %}\n {{ return(tables) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.09692}, "macro.spark_utils.get_delta_tables": {"unique_id": "macro.spark_utils.get_delta_tables", "package_name": "spark_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/spark_utils", "path": "macros/maintenance_operation.sql", "original_file_path": "macros/maintenance_operation.sql", "name": "get_delta_tables", "macro_sql": "{% macro get_delta_tables(table_regex_pattern='.*') %}\n\n {% set delta_tables = [] %}\n {% for db_tablename in get_tables(table_regex_pattern) %}\n {% call statement('table_detail', fetch_result=True) -%}\n describe extended {{ db_tablename }}\n {% endcall %}\n\n {% set table_type = load_result('table_detail').table|reverse|selectattr(0, 'in', ('provider', 'PROVIDER', 'Provider'))|first %}\n {% if table_type[1]|lower == 'delta' %}\n {{ delta_tables.append(db_tablename) }}\n {% endif %}\n {% endfor %}\n {{ return(delta_tables) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.spark_utils.get_tables", "macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.09853}, "macro.spark_utils.get_statistic_columns": {"unique_id": "macro.spark_utils.get_statistic_columns", "package_name": "spark_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/spark_utils", "path": "macros/maintenance_operation.sql", "original_file_path": "macros/maintenance_operation.sql", "name": "get_statistic_columns", "macro_sql": "{% macro get_statistic_columns(table) %}\n\n {% call statement('input_columns', fetch_result=True) %}\n SHOW COLUMNS IN {{ table }}\n {% endcall %}\n {% set input_columns = load_result('input_columns').table %}\n\n {% set output_columns = [] %}\n {% for column in input_columns %}\n {% call statement('column_information', fetch_result=True) %}\n DESCRIBE TABLE {{ table }} `{{ column[0] }}`\n {% endcall %}\n {% if not load_result('column_information').table[1][1].startswith('struct') and not load_result('column_information').table[1][1].startswith('array') %}\n {{ output_columns.append('`' ~ column[0] ~ '`') }}\n {% endif %}\n {% endfor %}\n {{ return(output_columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.1005929}, "macro.spark_utils.spark_optimize_delta_tables": {"unique_id": "macro.spark_utils.spark_optimize_delta_tables", "package_name": "spark_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/spark_utils", "path": "macros/maintenance_operation.sql", "original_file_path": "macros/maintenance_operation.sql", "name": "spark_optimize_delta_tables", "macro_sql": "{% macro spark_optimize_delta_tables(table_regex_pattern='.*') %}\n\n {% for table in get_delta_tables(table_regex_pattern) %}\n {% set start=modules.datetime.datetime.now() %}\n {% set message_prefix=loop.index ~ \" of \" ~ loop.length %}\n {{ dbt_utils.log_info(message_prefix ~ \" Optimizing \" ~ table) }}\n {% do run_query(\"optimize \" ~ table) %}\n {% set end=modules.datetime.datetime.now() %}\n {% set total_seconds = (end - start).total_seconds() | round(2) %}\n {{ dbt_utils.log_info(message_prefix ~ \" Finished \" ~ table ~ \" in \" ~ total_seconds ~ \"s\") }}\n {% endfor %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.spark_utils.get_delta_tables", "macro.dbt_utils.log_info", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.1021729}, "macro.spark_utils.spark_vacuum_delta_tables": {"unique_id": "macro.spark_utils.spark_vacuum_delta_tables", "package_name": "spark_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/spark_utils", "path": "macros/maintenance_operation.sql", "original_file_path": "macros/maintenance_operation.sql", "name": "spark_vacuum_delta_tables", "macro_sql": "{% macro spark_vacuum_delta_tables(table_regex_pattern='.*') %}\n\n {% for table in get_delta_tables(table_regex_pattern) %}\n {% set start=modules.datetime.datetime.now() %}\n {% set message_prefix=loop.index ~ \" of \" ~ loop.length %}\n {{ dbt_utils.log_info(message_prefix ~ \" Vacuuming \" ~ table) }}\n {% do run_query(\"vacuum \" ~ table) %}\n {% set end=modules.datetime.datetime.now() %}\n {% set total_seconds = (end - start).total_seconds() | round(2) %}\n {{ dbt_utils.log_info(message_prefix ~ \" Finished \" ~ table ~ \" in \" ~ total_seconds ~ \"s\") }}\n {% endfor %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.spark_utils.get_delta_tables", "macro.dbt_utils.log_info", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.103745}, "macro.spark_utils.spark_analyze_tables": {"unique_id": "macro.spark_utils.spark_analyze_tables", "package_name": "spark_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/spark_utils", "path": "macros/maintenance_operation.sql", "original_file_path": "macros/maintenance_operation.sql", "name": "spark_analyze_tables", "macro_sql": "{% macro spark_analyze_tables(table_regex_pattern='.*') %}\n\n {% for table in get_tables(table_regex_pattern) %}\n {% set start=modules.datetime.datetime.now() %}\n {% set columns = get_statistic_columns(table) | join(',') %}\n {% set message_prefix=loop.index ~ \" of \" ~ loop.length %}\n {{ dbt_utils.log_info(message_prefix ~ \" Analyzing \" ~ table) }}\n {% if columns != '' %}\n {% do run_query(\"analyze table \" ~ table ~ \" compute statistics for columns \" ~ columns) %}\n {% endif %}\n {% set end=modules.datetime.datetime.now() %}\n {% set total_seconds = (end - start).total_seconds() | round(2) %}\n {{ dbt_utils.log_info(message_prefix ~ \" Finished \" ~ table ~ \" in \" ~ total_seconds ~ \"s\") }}\n {% endfor %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.spark_utils.get_tables", "macro.spark_utils.get_statistic_columns", "macro.dbt_utils.log_info", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.106116}, "macro.spark_utils.spark__concat": {"unique_id": "macro.spark_utils.spark__concat", "package_name": "spark_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/spark_utils", "path": "macros/dbt_utils/cross_db_utils/concat.sql", "original_file_path": "macros/dbt_utils/cross_db_utils/concat.sql", "name": "spark__concat", "macro_sql": "{% macro spark__concat(fields) -%}\n concat({{ fields|join(', ') }})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.106645}, "macro.spark_utils.spark__type_numeric": {"unique_id": "macro.spark_utils.spark__type_numeric", "package_name": "spark_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/spark_utils", "path": "macros/dbt_utils/cross_db_utils/datatypes.sql", "original_file_path": "macros/dbt_utils/cross_db_utils/datatypes.sql", "name": "spark__type_numeric", "macro_sql": "{% macro spark__type_numeric() %}\n decimal(28, 6)\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.107014}, "macro.spark_utils.spark__dateadd": {"unique_id": "macro.spark_utils.spark__dateadd", "package_name": "spark_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/spark_utils", "path": "macros/dbt_utils/cross_db_utils/dateadd.sql", "original_file_path": "macros/dbt_utils/cross_db_utils/dateadd.sql", "name": "spark__dateadd", "macro_sql": "{% macro spark__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n {%- set clock_component -%}\n {# make sure the dates + timestamps are real, otherwise raise an error asap #}\n to_unix_timestamp({{ spark_utils.assert_not_null('to_timestamp', from_date_or_timestamp) }})\n - to_unix_timestamp({{ spark_utils.assert_not_null('date', from_date_or_timestamp) }})\n {%- endset -%}\n\n {%- if datepart in ['day', 'week'] -%}\n \n {%- set multiplier = 7 if datepart == 'week' else 1 -%}\n\n to_timestamp(\n to_unix_timestamp(\n date_add(\n {{ spark_utils.assert_not_null('date', from_date_or_timestamp) }},\n cast({{interval}} * {{multiplier}} as int)\n )\n ) + {{clock_component}}\n )\n\n {%- elif datepart in ['month', 'quarter', 'year'] -%}\n \n {%- set multiplier -%} \n {%- if datepart == 'month' -%} 1\n {%- elif datepart == 'quarter' -%} 3\n {%- elif datepart == 'year' -%} 12\n {%- endif -%}\n {%- endset -%}\n\n to_timestamp(\n to_unix_timestamp(\n add_months(\n {{ spark_utils.assert_not_null('date', from_date_or_timestamp) }},\n cast({{interval}} * {{multiplier}} as int)\n )\n ) + {{clock_component}}\n )\n\n {%- elif datepart in ('hour', 'minute', 'second', 'millisecond', 'microsecond') -%}\n \n {%- set multiplier -%} \n {%- if datepart == 'hour' -%} 3600\n {%- elif datepart == 'minute' -%} 60\n {%- elif datepart == 'second' -%} 1\n {%- elif datepart == 'millisecond' -%} (1/1000000)\n {%- elif datepart == 'microsecond' -%} (1/1000000)\n {%- endif -%}\n {%- endset -%}\n\n to_timestamp(\n {{ spark_utils.assert_not_null('to_unix_timestamp', from_date_or_timestamp) }}\n + cast({{interval}} * {{multiplier}} as int)\n )\n\n {%- else -%}\n\n {{ exceptions.raise_compiler_error(\"macro dateadd not implemented for datepart ~ '\" ~ datepart ~ \"' ~ on Spark\") }}\n\n {%- endif -%}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.spark_utils.assert_not_null"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.1125}, "macro.spark_utils.spark__datediff": {"unique_id": "macro.spark_utils.spark__datediff", "package_name": "spark_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/spark_utils", "path": "macros/dbt_utils/cross_db_utils/datediff.sql", "original_file_path": "macros/dbt_utils/cross_db_utils/datediff.sql", "name": "spark__datediff", "macro_sql": "{% macro spark__datediff(first_date, second_date, datepart) %}\n\n {%- if datepart in ['day', 'week', 'month', 'quarter', 'year'] -%}\n \n {# make sure the dates are real, otherwise raise an error asap #}\n {% set first_date = spark_utils.assert_not_null('date', first_date) %}\n {% set second_date = spark_utils.assert_not_null('date', second_date) %}\n \n {%- endif -%}\n \n {%- if datepart == 'day' -%}\n \n datediff({{second_date}}, {{first_date}})\n \n {%- elif datepart == 'week' -%}\n \n case when {{first_date}} < {{second_date}}\n then floor(datediff({{second_date}}, {{first_date}})/7)\n else ceil(datediff({{second_date}}, {{first_date}})/7)\n end\n \n -- did we cross a week boundary (Sunday)?\n + case\n when {{first_date}} < {{second_date}} and dayofweek({{second_date}}) < dayofweek({{first_date}}) then 1\n when {{first_date}} > {{second_date}} and dayofweek({{second_date}}) > dayofweek({{first_date}}) then -1\n else 0 end\n\n {%- elif datepart == 'month' -%}\n\n case when {{first_date}} < {{second_date}}\n then floor(months_between(date({{second_date}}), date({{first_date}})))\n else ceil(months_between(date({{second_date}}), date({{first_date}})))\n end\n \n -- did we cross a month boundary?\n + case\n when {{first_date}} < {{second_date}} and dayofmonth({{second_date}}) < dayofmonth({{first_date}}) then 1\n when {{first_date}} > {{second_date}} and dayofmonth({{second_date}}) > dayofmonth({{first_date}}) then -1\n else 0 end\n \n {%- elif datepart == 'quarter' -%}\n \n case when {{first_date}} < {{second_date}}\n then floor(months_between(date({{second_date}}), date({{first_date}}))/3)\n else ceil(months_between(date({{second_date}}), date({{first_date}}))/3)\n end\n \n -- did we cross a quarter boundary?\n + case\n when {{first_date}} < {{second_date}} and (\n (dayofyear({{second_date}}) - (quarter({{second_date}}) * 365/4))\n < (dayofyear({{first_date}}) - (quarter({{first_date}}) * 365/4))\n ) then 1\n when {{first_date}} > {{second_date}} and (\n (dayofyear({{second_date}}) - (quarter({{second_date}}) * 365/4))\n > (dayofyear({{first_date}}) - (quarter({{first_date}}) * 365/4))\n ) then -1\n else 0 end\n\n {%- elif datepart == 'year' -%}\n \n year({{second_date}}) - year({{first_date}})\n\n {%- elif datepart in ('hour', 'minute', 'second', 'millisecond', 'microsecond') -%}\n \n {%- set divisor -%} \n {%- if datepart == 'hour' -%} 3600\n {%- elif datepart == 'minute' -%} 60\n {%- elif datepart == 'second' -%} 1\n {%- elif datepart == 'millisecond' -%} (1/1000)\n {%- elif datepart == 'microsecond' -%} (1/1000000)\n {%- endif -%}\n {%- endset -%}\n\n case when {{first_date}} < {{second_date}}\n then ceil((\n {# make sure the timestamps are real, otherwise raise an error asap #}\n {{ spark_utils.assert_not_null('to_unix_timestamp', spark_utils.assert_not_null('to_timestamp', second_date)) }}\n - {{ spark_utils.assert_not_null('to_unix_timestamp', spark_utils.assert_not_null('to_timestamp', first_date)) }}\n ) / {{divisor}})\n else floor((\n {{ spark_utils.assert_not_null('to_unix_timestamp', spark_utils.assert_not_null('to_timestamp', second_date)) }}\n - {{ spark_utils.assert_not_null('to_unix_timestamp', spark_utils.assert_not_null('to_timestamp', first_date)) }}\n ) / {{divisor}})\n end\n \n {% if datepart == 'millisecond' %}\n + cast(date_format({{second_date}}, 'SSS') as int)\n - cast(date_format({{first_date}}, 'SSS') as int)\n {% endif %}\n \n {% if datepart == 'microsecond' %} \n {% set capture_str = '[0-9]{4}-[0-9]{2}-[0-9]{2}.[0-9]{2}:[0-9]{2}:[0-9]{2}.([0-9]{6})' %}\n -- Spark doesn't really support microseconds, so this is a massive hack!\n -- It will only work if the timestamp-string is of the format\n -- 'yyyy-MM-dd-HH mm.ss.SSSSSS'\n + cast(regexp_extract({{second_date}}, '{{capture_str}}', 1) as int)\n - cast(regexp_extract({{first_date}}, '{{capture_str}}', 1) as int) \n {% endif %}\n\n {%- else -%}\n\n {{ exceptions.raise_compiler_error(\"macro datediff not implemented for datepart ~ '\" ~ datepart ~ \"' ~ on Spark\") }}\n\n {%- endif -%}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.spark_utils.assert_not_null"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.125796}, "macro.spark_utils.spark__current_timestamp": {"unique_id": "macro.spark_utils.spark__current_timestamp", "package_name": "spark_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/spark_utils", "path": "macros/dbt_utils/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/dbt_utils/cross_db_utils/current_timestamp.sql", "name": "spark__current_timestamp", "macro_sql": "{% macro spark__current_timestamp() %}\n current_timestamp()\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.126275}, "macro.spark_utils.spark__current_timestamp_in_utc": {"unique_id": "macro.spark_utils.spark__current_timestamp_in_utc", "package_name": "spark_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/spark_utils", "path": "macros/dbt_utils/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/dbt_utils/cross_db_utils/current_timestamp.sql", "name": "spark__current_timestamp_in_utc", "macro_sql": "{% macro spark__current_timestamp_in_utc() %}\n unix_timestamp()\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.126456}, "macro.spark_utils.spark__split_part": {"unique_id": "macro.spark_utils.spark__split_part", "package_name": "spark_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/spark_utils", "path": "macros/dbt_utils/cross_db_utils/split_part.sql", "original_file_path": "macros/dbt_utils/cross_db_utils/split_part.sql", "name": "spark__split_part", "macro_sql": "{% macro spark__split_part(string_text, delimiter_text, part_number) %}\n\n {% set delimiter_expr %}\n \n -- escape if starts with a special character\n case when regexp_extract({{ delimiter_text }}, '([^A-Za-z0-9])(.*)', 1) != '_'\n then concat('\\\\', {{ delimiter_text }})\n else {{ delimiter_text }} end\n \n {% endset %}\n\n {% set split_part_expr %}\n \n split(\n {{ string_text }},\n {{ delimiter_expr }}\n )[({{ part_number - 1 }})]\n \n {% endset %}\n \n {{ return(split_part_expr) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.128303}, "macro.spark_utils.spark__get_relations_by_pattern": {"unique_id": "macro.spark_utils.spark__get_relations_by_pattern", "package_name": "spark_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/spark_utils", "path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "original_file_path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "name": "spark__get_relations_by_pattern", "macro_sql": "{% macro spark__get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n {%- call statement('get_tables', fetch_result=True) %}\n\n show table extended in {{ schema_pattern }} like '{{ table_pattern }}'\n\n {%- endcall -%}\n\n {%- set table_list = load_result('get_tables') -%}\n\n {%- if table_list and table_list['table'] -%}\n {%- set tbl_relations = [] -%}\n {%- for row in table_list['table'] -%}\n {%- set tbl_relation = api.Relation.create(\n database=None,\n schema=row[0],\n identifier=row[1],\n type=('view' if 'Type: VIEW' in row[3] else 'table')\n ) -%}\n {%- do tbl_relations.append(tbl_relation) -%}\n {%- endfor -%}\n\n {{ return(tbl_relations) }}\n {%- else -%}\n {{ return([]) }}\n {%- endif -%}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.131445}, "macro.spark_utils.spark__get_relations_by_prefix": {"unique_id": "macro.spark_utils.spark__get_relations_by_prefix", "package_name": "spark_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/spark_utils", "path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "original_file_path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "name": "spark__get_relations_by_prefix", "macro_sql": "{% macro spark__get_relations_by_prefix(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {% set table_pattern = table_pattern ~ '*' %}\n {{ return(spark_utils.spark__get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.spark_utils.spark__get_relations_by_pattern"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.132614}, "macro.spark_utils.spark__get_tables_by_pattern": {"unique_id": "macro.spark_utils.spark__get_tables_by_pattern", "package_name": "spark_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/spark_utils", "path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "original_file_path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "name": "spark__get_tables_by_pattern", "macro_sql": "{% macro spark__get_tables_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {{ return(spark_utils.spark__get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.spark_utils.spark__get_relations_by_pattern"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.133418}, "macro.spark_utils.spark__get_tables_by_prefix": {"unique_id": "macro.spark_utils.spark__get_tables_by_prefix", "package_name": "spark_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/spark_utils", "path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "original_file_path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "name": "spark__get_tables_by_prefix", "macro_sql": "{% macro spark__get_tables_by_prefix(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {{ return(spark_utils.spark__get_relations_by_prefix(schema_pattern, table_pattern, exclude='', database=target.database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.spark_utils.spark__get_relations_by_prefix"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.134088}, "macro.spark_utils.assert_not_null": {"unique_id": "macro.spark_utils.assert_not_null", "package_name": "spark_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/spark_utils", "path": "macros/etc/assert_not_null.sql", "original_file_path": "macros/etc/assert_not_null.sql", "name": "assert_not_null", "macro_sql": "{% macro assert_not_null(function, arg) -%}\n {{ return(adapter.dispatch('assert_not_null', 'spark_utils')(function, arg)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.spark_utils.default__assert_not_null"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.134928}, "macro.spark_utils.default__assert_not_null": {"unique_id": "macro.spark_utils.default__assert_not_null", "package_name": "spark_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/spark_utils", "path": "macros/etc/assert_not_null.sql", "original_file_path": "macros/etc/assert_not_null.sql", "name": "default__assert_not_null", "macro_sql": "{% macro default__assert_not_null(function, arg) %}\n\n coalesce({{function}}({{arg}}), nvl2({{function}}({{arg}}), assert_true({{function}}({{arg}}) is not null), null))\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.135376}, "macro.spark_utils.spark__convert_timezone": {"unique_id": "macro.spark_utils.spark__convert_timezone", "package_name": "spark_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/spark_utils", "path": "macros/snowplow/convert_timezone.sql", "original_file_path": "macros/snowplow/convert_timezone.sql", "name": "spark__convert_timezone", "macro_sql": "{% macro spark__convert_timezone(in_tz, out_tz, in_timestamp) %}\n from_utc_timestamp(to_utc_timestamp({{in_timestamp}}, {{in_tz}}), {{out_tz}})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.13595}, "macro.salesforce_formula_utils.sfdc_formula_view_sql": {"unique_id": "macro.salesforce_formula_utils.sfdc_formula_view_sql", "package_name": "salesforce_formula_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/salesforce_formula_utils", "path": "macros/sfdc_formula_view_sql.sql", "original_file_path": "macros/sfdc_formula_view_sql.sql", "name": "sfdc_formula_view_sql", "macro_sql": "{%- macro sfdc_formula_view_sql(join_to_table, source_name = 'salesforce', reserved_table_name=source_table, inclusion_fields=none, not_null_value=true) -%}\n\n --Generate the key value pair from the formula field table with the below macro.\n {%- set key_val = salesforce_formula_utils.sfdc_get_formula_column_values(source(source_name, 'fivetran_formula'), 'field', 'view_sql', join_to_table, not_null_value) -%}\n\n {%- set view_sql_ref = [] -%}\n\n --Only run the below code if the key_val for the view sql has data\n {% if key_val is not none %}\n {% for k, v in key_val if k in inclusion_fields %}\n\n --The select statement must explicitly query from and join from the source, not the target. The replace filters point the query to the source.\n {% if ' from ' in v %}\n {%- set v = v | replace(' from ',' from ' + source(source_name,'fivetran_formula') | string ) -%}\n {% if target.type == 'bigquery' %} {%- set v = v | replace('`fivetran_formula`','') -%} \n {% elif target.type == 'redshift' %} {%- set v = v | replace('\"fivetran_formula\"', '') -%} \n {% else %} {%- set v = v | replace('fivetran_formula','') -%} {% endif %}\n {% endif %}\n\n {% if ' left join ' in v %}\n {%- set v = v | replace(' left join ',' left join ' + source(source_name,'fivetran_formula') | string ) -%}\n {% if target.type == 'bigquery' %} {%- set v = v | replace('`fivetran_formula`','') -%} \n {% elif target.type == 'redshift' %} {%- set v = v | replace('\"fivetran_formula\"', '') -%} \n {% else %} {%- set v = v | replace('fivetran_formula','') -%} {% endif %}\n {% endif %}\n\n --To ensure the reference is unique across view sql the index of the loop is used in the reference name\n , ( {{ v }} ) as view_sql_{{ loop.index }}\n\n {{ view_sql_ref.append(loop.index | string )|default(\"\", True) }}\n {% endfor %}\n\n --A where clause is needed to properly leverage the view sql. The below joins the views to the base table using the base ID.\n {%- for lookup in view_sql_ref %}\n {% if loop.first %}where {% endif %} {{ join_to_table }}__table.id = view_sql_{{ lookup }}.id\n {% if not loop.last %}\n and {% endif %}\n {% endfor -%}\n {% endif %}\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.salesforce_formula_utils.sfdc_get_formula_column_values"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.142792}, "macro.salesforce_formula_utils.sfdc_formula_view_fields": {"unique_id": "macro.salesforce_formula_utils.sfdc_formula_view_fields", "package_name": "salesforce_formula_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/salesforce_formula_utils", "path": "macros/sfdc_formula_view_fields.sql", "original_file_path": "macros/sfdc_formula_view_fields.sql", "name": "sfdc_formula_view_fields", "macro_sql": "{%- macro sfdc_formula_view_fields(join_to_table, source_name = 'salesforce', inclusion_fields=none, not_null_value=true) -%}\n\n--Generate the key value pair from the view_sql field within the formula table with the below macro.\n{%- set key_val = salesforce_formula_utils.sfdc_get_formula_column_values(source(source_name, 'fivetran_formula'), 'field', 'view_sql', join_to_table, not_null_value) -%}\n\n--Only run the below code if the key_val for view_sql contains data\n{% if key_val is not none %}\n {%- for k, v in key_val if k in inclusion_fields %}\n , view_sql_{{ loop.index }}.{{ k }}\n {% endfor -%}\n{% endif %}\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.salesforce_formula_utils.sfdc_get_formula_column_values"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.14431}, "macro.salesforce_formula_utils.sfdc_formula_view": {"unique_id": "macro.salesforce_formula_utils.sfdc_formula_view", "package_name": "salesforce_formula_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/salesforce_formula_utils", "path": "macros/sfdc_formula_view.sql", "original_file_path": "macros/sfdc_formula_view.sql", "name": "sfdc_formula_view", "macro_sql": "{%- macro sfdc_formula_view(source_table, source_name='salesforce', reserved_table_name=source_table, fields_to_include=none) -%}\n\n-- Best practice for this model is to be materialized as view. That is why we have set that here.\n{{\n config(\n materialized = 'view'\n )\n}}\n\n/*\n The below sets the old_formula_fields variable to the results of the get_column_values results which queries the field column from the fivetran_formula table.\n The logic here is that the variable will be a list of all current salesforce formula field names. This list is then used within the dbt_utils.star operation to exclude them.\n This allows users with the Fivetran legacy Salesforce fields to ignore them and be replaced by the new fields.\n*/\n\n{%- set current_formula_fields = (salesforce_formula_utils.sfdc_current_formula_values(source(source_name, 'fivetran_formula'),'field',source_table)) | upper -%} --In Snowflake the fields are case sensitive in order to determine if there are duplicates.\n\n-- defaults to all formula fields if fields_to_include is none\n{% if fields_to_include is none %}\n {% set fields_to_include = current_formula_fields | lower %}\n{% endif %}\n\n select\n\n {{ salesforce_formula_utils.sfdc_star_exact(source(source_name,source_table), relation_alias=(source_table + \"__table\"), except=current_formula_fields) }} --Querying the source table and excluding the old formula fields if they are present.\n\n {{ salesforce_formula_utils.sfdc_formula_view_fields(join_to_table=source_table, source_name=source_name, inclusion_fields=fields_to_include) }} --Adds the field names for records that leverage the view_sql logic.\n\n {{ salesforce_formula_utils.sfdc_formula_pivot(join_to_table=source_table, source_name=source_name, added_inclusion_fields=fields_to_include) }} --Adds the results of the sfdc_formula_pivot macro as the remainder of the sql query.\n\n from {{ source(source_name,source_table) }} as {{ source_table }}__table\n\n {{ salesforce_formula_utils.sfdc_formula_view_sql(join_to_table=source_table, source_name=source_name, inclusion_fields=fields_to_include) }} --If view_sql logic is used, queries are inserted here as well as the where clause.\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.salesforce_formula_utils.sfdc_current_formula_values", "macro.salesforce_formula_utils.sfdc_star_exact", "macro.salesforce_formula_utils.sfdc_formula_view_fields", "macro.salesforce_formula_utils.sfdc_formula_pivot", "macro.salesforce_formula_utils.sfdc_formula_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.147548}, "macro.salesforce_formula_utils.sfdc_formula_pivot": {"unique_id": "macro.salesforce_formula_utils.sfdc_formula_pivot", "package_name": "salesforce_formula_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/salesforce_formula_utils", "path": "macros/sfdc_formula_pivot.sql", "original_file_path": "macros/sfdc_formula_pivot.sql", "name": "sfdc_formula_pivot", "macro_sql": "{%- macro sfdc_formula_pivot(join_to_table, source_name='salesforce', added_inclusion_fields=none) -%}\n\n-- The results generated from sfdc_formula_refactor are set to the key_val variable.\n{%- set key_val = salesforce_formula_utils.sfdc_formula_refactor(join_to_table, source_name) -%}\n\n-- k being the field name and v being the sql.\n{% for k, v in key_val if k in added_inclusion_fields %}\n , {%- if v == 'null_value' %}\n null as {{ k }} -- Switching the string null to a true null as we will no longer need to iterate through a nonetype.\n {% else -%}\n {{ v }} as {{ k }}\n {% endif -%}\n{% endfor %}\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.salesforce_formula_utils.sfdc_formula_refactor"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.148932}, "macro.salesforce_formula_utils.sfdc_get_formula_column_values": {"unique_id": "macro.salesforce_formula_utils.sfdc_get_formula_column_values", "package_name": "salesforce_formula_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/salesforce_formula_utils", "path": "macros/sfdc_get_formula_column_values.sql", "original_file_path": "macros/sfdc_get_formula_column_values.sql", "name": "sfdc_get_formula_column_values", "macro_sql": "{% macro sfdc_get_formula_column_values(fivetran_formula, key, value, join_to_table, no_nulls = false) -%}\n\n{#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n {%- if not execute -%}\n {{ return('') }}\n {% endif %}\n{#-- #}\n\n -- Operation to query from the source.\n {%- set target_relation = adapter.get_relation(database=fivetran_formula.database,\n schema=fivetran_formula.schema,\n identifier=fivetran_formula.identifier) -%}\n\n {%- call statement('get_column_values', fetch_result=true) %}\n\n {%- if not target_relation -%}\n -- exception raised if the source table defined does not exist\n {{ exceptions.raise_compiler_error(\"In get_column_values(): relation \" ~ fivetran_formula ~ \" does not exist and no default value was provided.\") }}\n\n {%- else -%}\n -- Query used to obtain the unique groupings for key (field) and value (sql) from the formula_field table\n select\n {{ key }} as key,\n case when {{ value }} is null\n then 'null_value' -- Since none type values cannot be iterated over in a dataframe, this is set to string 'null_value' and is changed later back to null.\n else {{ value }}\n end as value\n from {{ target_relation }}\n where lower(object) = lower('{{ join_to_table }}') -- This filters the query to only include the formula fields referenced by the source table.\n\n and {{ key }} not in {{ var('sfdc_exclude_formulas',\"('')\") }} -- Excludes any formula fields the user may have set within the sfdc_exclude_formulas variable. Default is an empty string.\n\n {% if no_nulls == true %}\n and {{ value }} is not null\n {% else %}\n and view_sql is null --We do not want to bring in records where the view_sql is populated\n {% endif %}\n group by 1, 2\n order by count(*) desc\n\n {% endif %}\n {%- endcall -%}\n\n -- Creates a new variable and sets the contents to the result of the above query.\n {%- set value_list = load_result('get_column_values') -%}\n\n -- Create another variable and loads the data contents as a list. This variable is then returned when the macro is called.\n {%- set values = value_list['data'] | list %}\n {{ return(values) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.153674}, "macro.salesforce_formula_utils.sfdc_formula_refactor": {"unique_id": "macro.salesforce_formula_utils.sfdc_formula_refactor", "package_name": "salesforce_formula_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/salesforce_formula_utils", "path": "macros/sfdc_formula_refactor.sql", "original_file_path": "macros/sfdc_formula_refactor.sql", "name": "sfdc_formula_refactor", "macro_sql": "{%- macro sfdc_formula_refactor(join_to_table, source_name = 'salesforce') -%}\n\n --Generate the key value pair from the formula field table with the below macro.\n {%- set key_val = salesforce_formula_utils.sfdc_get_formula_column_values(source(source_name, 'fivetran_formula'), 'field', 'sql', join_to_table) -%}\n\n --Creating a permanent array to be carried over after this macro.\n {%- set adjusted_key_val = [] -%}\n\n {%- for key, value in key_val %}\n \n {%- set temp_array = [] -%} --Creating a temporary array for the key (field name) and value (sql) pairs to be created within.\n {{ temp_array.append(key)|default(\"\", True) }} --The key will always be appended without additional adjustments.\n {{ temp_array.append(\" \" ~ value ~ \" \")|default(\"\", True) }} --The value will start off as being the original sql value with spaces on both ends to allow for string searching.\n\n {%- for field, sql in key_val -%}\n --If the last item in the list contains the another field then insert that sql into the sql and append a new item onto the list.\n {%- if \" \" ~ field ~ \" \" in temp_array[-1] -%}\n {{ temp_array.append( temp_array[-1] | replace(field,\"(\" ~ sql ~ \")\") )| default(\"\", True) }}\n {% endif %}\n\n --If a sql field contains the string'null_value' then replace it with a true null\n {%- if 'null_value' in temp_array[-1] -%}\n {{ temp_array.append( temp_array[-1] | replace('null_value','null') )| default(\"\", True) }}\n {% endif %}\n\n --One last for loop to perform recursive searching on all fields to allow for more dynamic referential formula capture\n {% for k,v in key_val %}\n {% if \" \" ~ k ~ \" \" in temp_array[-1] %} \n {{ temp_array.append( temp_array[-1] | replace(k,\"( \" ~ v ~ \" )\") )| default(\"\", True) }}\n {% endif %}\n {% endfor %}\n {%- endfor -%}\n\n --The key (formula field name) and latest value (sql) within the temporary array are appended to a permanent adjusted_key_val array.\n --This array is then used within the final sfdc_formula_view macro.\n {{ adjusted_key_val.append((temp_array[0],temp_array[-1]) ) }}\n {% endfor -%}\n\n --Create a new variable and set the value to the list generated from adjusted_key_val.\n --Return this variable to be used in the next macro\n {%- set adjusted_values = adjusted_key_val | list %}\n {{ return(adjusted_values) }}\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.salesforce_formula_utils.sfdc_get_formula_column_values"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.159323}, "macro.salesforce_formula_utils.sfdc_current_formula_values": {"unique_id": "macro.salesforce_formula_utils.sfdc_current_formula_values", "package_name": "salesforce_formula_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/salesforce_formula_utils", "path": "macros/sfdc_current_formula_fields.sql", "original_file_path": "macros/sfdc_current_formula_fields.sql", "name": "sfdc_current_formula_values", "macro_sql": "{% macro sfdc_current_formula_values(table, column, join_to_table, order_by='count(*) desc', max_records=none, default=none) -%}x\n\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n {%- if not execute -%}\n {{ return('') }}\n {% endif %}\n\n {%- set target_relation = table -%}\n\n {%- call statement('get_column_values', fetch_result=true) %}\n\n {%- if not target_relation and default is none -%}\n\n {{ exceptions.raise_compiler_error(\"In get_column_values(): relation \" ~ table ~ \" does not exist and no default value was provided.\") }}\n\n {%- elif not target_relation and default is not none -%}\n\n {{ log(\"Relation \" ~ table ~ \" does not exist. Returning the default value: \" ~ default) }}\n\n {{ return(default) }}\n\n {%- else -%}\n\n\n select\n {{ column }} as value\n\n from {{ target_relation }}\n where lower(object) = lower('{{ join_to_table }}')\n group by {{ column }}\n order by {{ order_by }}\n\n {% if max_records is not none %}\n limit {{ max_records }}\n {% endif %}\n\n {% endif %}\n\n {%- endcall -%}\n\n {%- set value_list = load_result('get_column_values') -%}\n\n {%- if value_list and value_list['data'] -%}\n {%- set values = value_list['data'] | map(attribute=0) | list %}\n {{ return(values) }}\n {%- else -%}\n {{ return(default) }}\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.1639118}, "macro.salesforce_formula_utils.sfdc_star_exact": {"unique_id": "macro.salesforce_formula_utils.sfdc_star_exact", "package_name": "salesforce_formula_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/salesforce_formula_utils", "path": "macros/sfdc_star_exact.sql", "original_file_path": "macros/sfdc_star_exact.sql", "name": "sfdc_star_exact", "macro_sql": "{% macro sfdc_star_exact(from, relation_alias=False, except=[]) -%}\n {%- do dbt_utils._is_relation(from, 'star') -%}\n {%- do dbt_utils._is_ephemeral(from, 'star') -%}\n\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n {%- if not execute -%}\n {{ return('') }}\n {% endif %}\n\n {%- set include_cols = [] %}\n {%- set cols = adapter.get_columns_in_relation(from) -%}\n\n {%- for col in cols -%}\n\n {%- set exact_col = \"'\" + col.column + \"'\" -%}\n {%- if exact_col not in except -%}\n {% do include_cols.append(col.column) %}\n\n {%- endif %}\n {%- endfor %}\n\n {%- for col in include_cols %}\n\n {%- if relation_alias %}{{ relation_alias }}.{% else %}{%- endif -%}{{ adapter.quote(col)|trim }}\n {%- if not loop.last %},{{ '\\n ' }}{% endif %}\n\n {%- endfor -%}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.167179}, "macro.fivetran_utils.enabled_vars": {"unique_id": "macro.fivetran_utils.enabled_vars", "package_name": "fivetran_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/fivetran_utils", "path": "macros/enabled_vars.sql", "original_file_path": "macros/enabled_vars.sql", "name": "enabled_vars", "macro_sql": "{% macro enabled_vars(vars) %}\n\n{% for v in vars %}\n \n {% if var(v, True) == False %}\n {{ return(False) }}\n {% endif %}\n\n{% endfor %}\n\n{{ return(True) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.16835}, "macro.fivetran_utils.percentile": {"unique_id": "macro.fivetran_utils.percentile", "package_name": "fivetran_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "name": "percentile", "macro_sql": "{% macro percentile(percentile_field, partition_field, percent) -%}\n\n{{ adapter.dispatch('percentile', 'fivetran_utils') (percentile_field, partition_field, percent) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.bigquery__percentile"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.170251}, "macro.fivetran_utils.default__percentile": {"unique_id": "macro.fivetran_utils.default__percentile", "package_name": "fivetran_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "name": "default__percentile", "macro_sql": "{% macro default__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percent }} )\n within group ( order by {{ percentile_field }} )\n over ( partition by {{ partition_field }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.1706932}, "macro.fivetran_utils.redshift__percentile": {"unique_id": "macro.fivetran_utils.redshift__percentile", "package_name": "fivetran_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "name": "redshift__percentile", "macro_sql": "{% macro redshift__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percent }} )\n within group ( order by {{ percentile_field }} )\n over ( partition by {{ partition_field }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.171131}, "macro.fivetran_utils.bigquery__percentile": {"unique_id": "macro.fivetran_utils.bigquery__percentile", "package_name": "fivetran_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "name": "bigquery__percentile", "macro_sql": "{% macro bigquery__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percentile_field }}, \n {{ percent }}) \n over (partition by {{ partition_field }} \n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.171562}, "macro.fivetran_utils.postgres__percentile": {"unique_id": "macro.fivetran_utils.postgres__percentile", "package_name": "fivetran_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "name": "postgres__percentile", "macro_sql": "{% macro postgres__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percent }} )\n within group ( order by {{ percentile_field }} )\n /* have to group by partition field */\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.172053}, "macro.fivetran_utils.spark__percentile": {"unique_id": "macro.fivetran_utils.spark__percentile", "package_name": "fivetran_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "name": "spark__percentile", "macro_sql": "{% macro spark__percentile(percentile_field, partition_field, percent) %}\n\n percentile( \n {{ percentile_field }}, \n {{ percent }}) \n over (partition by {{ partition_field }} \n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.172499}, "macro.fivetran_utils.pivot_json_extract": {"unique_id": "macro.fivetran_utils.pivot_json_extract", "package_name": "fivetran_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/fivetran_utils", "path": "macros/pivot_json_extract.sql", "original_file_path": "macros/pivot_json_extract.sql", "name": "pivot_json_extract", "macro_sql": "{% macro pivot_json_extract(string, list_of_properties) %}\n\n{%- for property in list_of_properties -%}\n\nreplace( {{ fivetran_utils.json_extract(string, property) }}, '\"', '') as {{ property | replace(' ', '_') | lower }}\n\n{%- if not loop.last -%},{%- endif %}\n{% endfor -%}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.json_extract"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.1737442}, "macro.fivetran_utils.persist_pass_through_columns": {"unique_id": "macro.fivetran_utils.persist_pass_through_columns", "package_name": "fivetran_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/fivetran_utils", "path": "macros/persist_pass_through_columns.sql", "original_file_path": "macros/persist_pass_through_columns.sql", "name": "persist_pass_through_columns", "macro_sql": "{% macro persist_pass_through_columns(pass_through_variable) %}\n\n{% if var(pass_through_variable, none) %}\n {% for field in var(pass_through_variable) %}\n , {{ field.alias if field.alias else field.name }}\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.1748931}, "macro.fivetran_utils.json_parse": {"unique_id": "macro.fivetran_utils.json_parse", "package_name": "fivetran_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "name": "json_parse", "macro_sql": "{% macro json_parse(string, string_path) -%}\n\n{{ adapter.dispatch('json_parse', 'fivetran_utils') (string, string_path) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.bigquery__json_parse"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.1771488}, "macro.fivetran_utils.default__json_parse": {"unique_id": "macro.fivetran_utils.default__json_parse", "package_name": "fivetran_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "name": "default__json_parse", "macro_sql": "{% macro default__json_parse(string, string_path) %}\n\n json_extract_path_text({{string}}, {%- for s in string_path -%}'{{ s }}'{%- if not loop.last -%},{%- endif -%}{%- endfor -%} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.177804}, "macro.fivetran_utils.redshift__json_parse": {"unique_id": "macro.fivetran_utils.redshift__json_parse", "package_name": "fivetran_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "name": "redshift__json_parse", "macro_sql": "{% macro redshift__json_parse(string, string_path) %}\n\n json_extract_path_text({{string}}, {%- for s in string_path -%}'{{ s }}'{%- if not loop.last -%},{%- endif -%}{%- endfor -%} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.178455}, "macro.fivetran_utils.bigquery__json_parse": {"unique_id": "macro.fivetran_utils.bigquery__json_parse", "package_name": "fivetran_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "name": "bigquery__json_parse", "macro_sql": "{% macro bigquery__json_parse(string, string_path) %}\n\n \n json_extract_scalar({{string}}, '$.{%- for s in string_path -%}{{ s }}{%- if not loop.last -%}.{%- endif -%}{%- endfor -%} ')\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.179243}, "macro.fivetran_utils.postgres__json_parse": {"unique_id": "macro.fivetran_utils.postgres__json_parse", "package_name": "fivetran_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "name": "postgres__json_parse", "macro_sql": "{% macro postgres__json_parse(string, string_path) %}\n\n {{string}}::json #>> '{ {%- for s in string_path -%}{{ s }}{%- if not loop.last -%},{%- endif -%}{%- endfor -%} }'\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.179931}, "macro.fivetran_utils.snowflake__json_parse": {"unique_id": "macro.fivetran_utils.snowflake__json_parse", "package_name": "fivetran_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "name": "snowflake__json_parse", "macro_sql": "{% macro snowflake__json_parse(string, string_path) %}\n\n parse_json( {{string}} ) {%- for s in string_path -%}{% if s is number %}[{{ s }}]{% else %}['{{ s }}']{% endif %}{%- endfor -%}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.180637}, "macro.fivetran_utils.spark__json_parse": {"unique_id": "macro.fivetran_utils.spark__json_parse", "package_name": "fivetran_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "name": "spark__json_parse", "macro_sql": "{% macro spark__json_parse(string, string_path) %}\n\n {{string}} : {%- for s in string_path -%}{% if s is number %}[{{ s }}]{% else %}['{{ s }}']{% endif %}{%- endfor -%}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.1813362}, "macro.fivetran_utils.max_bool": {"unique_id": "macro.fivetran_utils.max_bool", "package_name": "fivetran_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "name": "max_bool", "macro_sql": "{% macro max_bool(boolean_field) -%}\n\n{{ adapter.dispatch('max_bool', 'fivetran_utils') (boolean_field) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.bigquery__max_bool"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.1823559}, "macro.fivetran_utils.default__max_bool": {"unique_id": "macro.fivetran_utils.default__max_bool", "package_name": "fivetran_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "name": "default__max_bool", "macro_sql": "{% macro default__max_bool(boolean_field) %}\n\n bool_or( {{ boolean_field }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.1826298}, "macro.fivetran_utils.snowflake__max_bool": {"unique_id": "macro.fivetran_utils.snowflake__max_bool", "package_name": "fivetran_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "name": "snowflake__max_bool", "macro_sql": "{% macro snowflake__max_bool(boolean_field) %}\n\n max( {{ boolean_field }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.182904}, "macro.fivetran_utils.bigquery__max_bool": {"unique_id": "macro.fivetran_utils.bigquery__max_bool", "package_name": "fivetran_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "name": "bigquery__max_bool", "macro_sql": "{% macro bigquery__max_bool(boolean_field) %}\n\n max( {{ boolean_field }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.183168}, "macro.fivetran_utils.calculated_fields": {"unique_id": "macro.fivetran_utils.calculated_fields", "package_name": "fivetran_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/fivetran_utils", "path": "macros/calculated_fields.sql", "original_file_path": "macros/calculated_fields.sql", "name": "calculated_fields", "macro_sql": "{% macro calculated_fields(variable) -%}\n\n{% if var(variable, none) %}\n {% for field in var(variable) %}\n , {{ field.transform_sql }} as {{ field.name }} \n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.184256}, "macro.fivetran_utils.seed_data_helper": {"unique_id": "macro.fivetran_utils.seed_data_helper", "package_name": "fivetran_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/fivetran_utils", "path": "macros/seed_data_helper.sql", "original_file_path": "macros/seed_data_helper.sql", "name": "seed_data_helper", "macro_sql": "{% macro seed_data_helper(seed_name, warehouses) %}\n\n{% if target.type in warehouses %}\n {% for w in warehouses %}\n {% if target.type == w %}\n {{ return(ref(seed_name ~ \"_\" ~ w ~ \"\")) }}\n {% endif %}\n {% endfor %}\n{% else %}\n{{ return(ref(seed_name)) }}\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.185937}, "macro.fivetran_utils.fill_pass_through_columns": {"unique_id": "macro.fivetran_utils.fill_pass_through_columns", "package_name": "fivetran_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/fivetran_utils", "path": "macros/fill_pass_through_columns.sql", "original_file_path": "macros/fill_pass_through_columns.sql", "name": "fill_pass_through_columns", "macro_sql": "{% macro fill_pass_through_columns(pass_through_variable) %}\n\n{% if var(pass_through_variable) %}\n {% for field in var(pass_through_variable) %}\n {% if field.transform_sql %}\n , {{ field.transform_sql }} as {{ field.alias if field.alias else field.name }}\n {% else %}\n , {{ field.alias if field.alias else field.name }}\n {% endif %}\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.187762}, "macro.fivetran_utils.string_agg": {"unique_id": "macro.fivetran_utils.string_agg", "package_name": "fivetran_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "name": "string_agg", "macro_sql": "{% macro string_agg(field_to_agg, delimiter) -%}\n\n{{ adapter.dispatch('string_agg', 'fivetran_utils') (field_to_agg, delimiter) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__string_agg"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.1892118}, "macro.fivetran_utils.default__string_agg": {"unique_id": "macro.fivetran_utils.default__string_agg", "package_name": "fivetran_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "name": "default__string_agg", "macro_sql": "{% macro default__string_agg(field_to_agg, delimiter) %}\n string_agg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.189607}, "macro.fivetran_utils.snowflake__string_agg": {"unique_id": "macro.fivetran_utils.snowflake__string_agg", "package_name": "fivetran_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "name": "snowflake__string_agg", "macro_sql": "{% macro snowflake__string_agg(field_to_agg, delimiter) %}\n listagg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.1899729}, "macro.fivetran_utils.redshift__string_agg": {"unique_id": "macro.fivetran_utils.redshift__string_agg", "package_name": "fivetran_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "name": "redshift__string_agg", "macro_sql": "{% macro redshift__string_agg(field_to_agg, delimiter) %}\n listagg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.190331}, "macro.fivetran_utils.spark__string_agg": {"unique_id": "macro.fivetran_utils.spark__string_agg", "package_name": "fivetran_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "name": "spark__string_agg", "macro_sql": "{% macro spark__string_agg(field_to_agg, delimiter) %}\n -- collect set will remove duplicates\n replace(replace(replace(cast( collect_set({{ field_to_agg }}) as string), '[', ''), ']', ''), ', ', {{ delimiter }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.190699}, "macro.fivetran_utils.timestamp_diff": {"unique_id": "macro.fivetran_utils.timestamp_diff", "package_name": "fivetran_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "name": "timestamp_diff", "macro_sql": "{% macro timestamp_diff(first_date, second_date, datepart) %}\n {{ adapter.dispatch('timestamp_diff', 'fivetran_utils')(first_date, second_date, datepart) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.bigquery__timestamp_diff"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.1968472}, "macro.fivetran_utils.default__timestamp_diff": {"unique_id": "macro.fivetran_utils.default__timestamp_diff", "package_name": "fivetran_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "name": "default__timestamp_diff", "macro_sql": "{% macro default__timestamp_diff(first_date, second_date, datepart) %}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.1973052}, "macro.fivetran_utils.redshift__timestamp_diff": {"unique_id": "macro.fivetran_utils.redshift__timestamp_diff", "package_name": "fivetran_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "name": "redshift__timestamp_diff", "macro_sql": "{% macro redshift__timestamp_diff(first_date, second_date, datepart) %}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.197742}, "macro.fivetran_utils.bigquery__timestamp_diff": {"unique_id": "macro.fivetran_utils.bigquery__timestamp_diff", "package_name": "fivetran_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "name": "bigquery__timestamp_diff", "macro_sql": "{% macro bigquery__timestamp_diff(first_date, second_date, datepart) %}\n\n timestamp_diff(\n {{second_date}},\n {{first_date}},\n {{datepart}}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.1981702}, "macro.fivetran_utils.postgres__timestamp_diff": {"unique_id": "macro.fivetran_utils.postgres__timestamp_diff", "package_name": "fivetran_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "name": "postgres__timestamp_diff", "macro_sql": "{% macro postgres__timestamp_diff(first_date, second_date, datepart) %}\n\n {% if datepart == 'year' %}\n (date_part('year', ({{second_date}})::date) - date_part('year', ({{first_date}})::date))\n {% elif datepart == 'quarter' %}\n ({{ dbt_utils.datediff(first_date, second_date, 'year') }} * 4 + date_part('quarter', ({{second_date}})::date) - date_part('quarter', ({{first_date}})::date))\n {% elif datepart == 'month' %}\n ({{ dbt_utils.datediff(first_date, second_date, 'year') }} * 12 + date_part('month', ({{second_date}})::date) - date_part('month', ({{first_date}})::date))\n {% elif datepart == 'day' %}\n (({{second_date}})::date - ({{first_date}})::date)\n {% elif datepart == 'week' %}\n ({{ dbt_utils.datediff(first_date, second_date, 'day') }} / 7 + case\n when date_part('dow', ({{first_date}})::timestamp) <= date_part('dow', ({{second_date}})::timestamp) then\n case when {{first_date}} <= {{second_date}} then 0 else -1 end\n else\n case when {{first_date}} <= {{second_date}} then 1 else 0 end\n end)\n {% elif datepart == 'hour' %}\n ({{ dbt_utils.datediff(first_date, second_date, 'day') }} * 24 + date_part('hour', ({{second_date}})::timestamp) - date_part('hour', ({{first_date}})::timestamp))\n {% elif datepart == 'minute' %}\n ({{ dbt_utils.datediff(first_date, second_date, 'hour') }} * 60 + date_part('minute', ({{second_date}})::timestamp) - date_part('minute', ({{first_date}})::timestamp))\n {% elif datepart == 'second' %}\n ({{ dbt_utils.datediff(first_date, second_date, 'minute') }} * 60 + floor(date_part('second', ({{second_date}})::timestamp)) - floor(date_part('second', ({{first_date}})::timestamp)))\n {% elif datepart == 'millisecond' %}\n ({{ dbt_utils.datediff(first_date, second_date, 'minute') }} * 60000 + floor(date_part('millisecond', ({{second_date}})::timestamp)) - floor(date_part('millisecond', ({{first_date}})::timestamp)))\n {% elif datepart == 'microsecond' %}\n ({{ dbt_utils.datediff(first_date, second_date, 'minute') }} * 60000000 + floor(date_part('microsecond', ({{second_date}})::timestamp)) - floor(date_part('microsecond', ({{first_date}})::timestamp)))\n {% else %}\n {{ exceptions.raise_compiler_error(\"Unsupported datepart for macro datediff in postgres: {!r}\".format(datepart)) }}\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.datediff"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.203182}, "macro.fivetran_utils.try_cast": {"unique_id": "macro.fivetran_utils.try_cast", "package_name": "fivetran_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "name": "try_cast", "macro_sql": "{% macro try_cast(field, type) %}\n {{ adapter.dispatch('try_cast', 'fivetran_utils') (field, type) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.bigquery__try_cast"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.2052412}, "macro.fivetran_utils.default__safe_cast": {"unique_id": "macro.fivetran_utils.default__safe_cast", "package_name": "fivetran_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "name": "default__safe_cast", "macro_sql": "{% macro default__safe_cast(field, type) %}\n {# most databases don't support this function yet\n so we just need to use cast #}\n cast({{field}} as {{type}})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.205628}, "macro.fivetran_utils.redshift__try_cast": {"unique_id": "macro.fivetran_utils.redshift__try_cast", "package_name": "fivetran_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "name": "redshift__try_cast", "macro_sql": "{% macro redshift__try_cast(field, type) %}\n{%- if type == 'numeric' -%}\n\n case\n when trim({{field}}) ~ '^(0|[1-9][0-9]*)$' then trim({{field}})\n else null\n end::{{type}}\n\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"non-numeric datatypes are not currently supported\") }}\n\n{% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.2063758}, "macro.fivetran_utils.postgres__try_cast": {"unique_id": "macro.fivetran_utils.postgres__try_cast", "package_name": "fivetran_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "name": "postgres__try_cast", "macro_sql": "{% macro postgres__try_cast(field, type) %}\n{%- if type == 'numeric' -%}\n\n case\n when replace(cast({{field}} as varchar),cast(' ' as varchar),cast('' as varchar)) ~ '^(0|[1-9][0-9]*)$' \n then replace(cast({{field}} as varchar),cast(' ' as varchar),cast('' as varchar))\n else null\n end::{{type}}\n\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"non-numeric datatypes are not currently supported\") }}\n\n{% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.207137}, "macro.fivetran_utils.snowflake__try_cast": {"unique_id": "macro.fivetran_utils.snowflake__try_cast", "package_name": "fivetran_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "name": "snowflake__try_cast", "macro_sql": "{% macro snowflake__try_cast(field, type) %}\n try_cast(cast({{field}} as varchar) as {{type}})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.2076328}, "macro.fivetran_utils.bigquery__try_cast": {"unique_id": "macro.fivetran_utils.bigquery__try_cast", "package_name": "fivetran_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "name": "bigquery__try_cast", "macro_sql": "{% macro bigquery__try_cast(field, type) %}\n safe_cast({{field}} as {{type}})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.208014}, "macro.fivetran_utils.spark__try_cast": {"unique_id": "macro.fivetran_utils.spark__try_cast", "package_name": "fivetran_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "name": "spark__try_cast", "macro_sql": "{% macro spark__try_cast(field, type) %}\n try_cast({{field}} as {{type}})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.208371}, "macro.fivetran_utils.source_relation": {"unique_id": "macro.fivetran_utils.source_relation", "package_name": "fivetran_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/fivetran_utils", "path": "macros/source_relation.sql", "original_file_path": "macros/source_relation.sql", "name": "source_relation", "macro_sql": "{% macro source_relation(union_schema_variable='union_schemas', union_database_variable='union_databases') -%}\n\n{{ adapter.dispatch('source_relation', 'fivetran_utils') (union_schema_variable, union_database_variable) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__source_relation"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.209882}, "macro.fivetran_utils.default__source_relation": {"unique_id": "macro.fivetran_utils.default__source_relation", "package_name": "fivetran_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/fivetran_utils", "path": "macros/source_relation.sql", "original_file_path": "macros/source_relation.sql", "name": "default__source_relation", "macro_sql": "{% macro default__source_relation(union_schema_variable, union_database_variable) %}\n\n{% if var(union_schema_variable, none) %}\n, case\n {% for schema in var(union_schema_variable) %}\n when lower(replace(replace(_dbt_source_relation,'\"',''),'`','')) like '%.{{ schema|lower }}.%' then '{{ schema|lower }}'\n {% endfor %}\n end as source_relation\n{% elif var(union_database_variable, none) %}\n, case\n {% for database in var(union_database_variable) %}\n when lower(replace(replace(_dbt_source_relation,'\"',''),'`','')) like '%{{ database|lower }}.%' then '{{ database|lower }}'\n {% endfor %}\n end as source_relation\n{% else %}\n, cast('' as {{ dbt_utils.type_string() }}) as source_relation\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.211477}, "macro.fivetran_utils.first_value": {"unique_id": "macro.fivetran_utils.first_value", "package_name": "fivetran_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "name": "first_value", "macro_sql": "{% macro first_value(first_value_field, partition_field, order_by_field, order=\"asc\") -%}\n\n{{ adapter.dispatch('first_value', 'fivetran_utils') (first_value_field, partition_field, order_by_field, order) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__first_value"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.212857}, "macro.fivetran_utils.default__first_value": {"unique_id": "macro.fivetran_utils.default__first_value", "package_name": "fivetran_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "name": "default__first_value", "macro_sql": "{% macro default__first_value(first_value_field, partition_field, order_by_field, order=\"asc\") %}\n\n first_value( {{ first_value_field }} ignore nulls ) over (partition by {{ partition_field }} order by {{ order_by_field }} {{ order }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.213423}, "macro.fivetran_utils.redshift__first_value": {"unique_id": "macro.fivetran_utils.redshift__first_value", "package_name": "fivetran_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "name": "redshift__first_value", "macro_sql": "{% macro redshift__first_value(first_value_field, partition_field, order_by_field, order=\"asc\") %}\n\n first_value( {{ first_value_field }} ignore nulls ) over (partition by {{ partition_field }} order by {{ order_by_field }} {{ order }} , {{ partition_field }} rows unbounded preceding )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.2140532}, "macro.fivetran_utils.add_dbt_source_relation": {"unique_id": "macro.fivetran_utils.add_dbt_source_relation", "package_name": "fivetran_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/fivetran_utils", "path": "macros/add_dbt_source_relation.sql", "original_file_path": "macros/add_dbt_source_relation.sql", "name": "add_dbt_source_relation", "macro_sql": "{% macro add_dbt_source_relation() %}\n\n{% if var('union_schemas', none) or var('union_databases', none) %}\n, _dbt_source_relation\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.214942}, "macro.fivetran_utils.add_pass_through_columns": {"unique_id": "macro.fivetran_utils.add_pass_through_columns", "package_name": "fivetran_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/fivetran_utils", "path": "macros/add_pass_through_columns.sql", "original_file_path": "macros/add_pass_through_columns.sql", "name": "add_pass_through_columns", "macro_sql": "{% macro add_pass_through_columns(base_columns, pass_through_var) %}\n\n {% if pass_through_var %}\n\n {% for column in pass_through_var %}\n\n {% if column.alias %}\n\n {% do base_columns.append({ \"name\": column.name, \"alias\": column.alias, \"datatype\": column.datatype if column.datatype else dbt_utils.type_string()}) %}\n\n {% else %}\n\n {% do base_columns.append({ \"name\": column.name, \"datatype\": column.datatype if column.datatype else dbt_utils.type_string()}) %}\n \n {% endif %}\n\n {% endfor %}\n\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.2173069}, "macro.fivetran_utils.union_relations": {"unique_id": "macro.fivetran_utils.union_relations", "package_name": "fivetran_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/fivetran_utils", "path": "macros/union_relations.sql", "original_file_path": "macros/union_relations.sql", "name": "union_relations", "macro_sql": "{%- macro union_relations(relations, aliases=none, column_override=none, include=[], exclude=[], source_column_name=none) -%}\n\n {%- if exclude and include -%}\n {{ exceptions.raise_compiler_error(\"Both an exclude and include list were provided to the `union` macro. Only one is allowed\") }}\n {%- endif -%}\n\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. -#}\n {%- if not execute %}\n {{ return('') }}\n {% endif -%}\n\n {%- set column_override = column_override if column_override is not none else {} -%}\n {%- set source_column_name = source_column_name if source_column_name is not none else '_dbt_source_relation' -%}\n\n {%- set relation_columns = {} -%}\n {%- set column_superset = {} -%}\n\n {%- for relation in relations -%}\n\n {%- do relation_columns.update({relation: []}) -%}\n\n {%- do dbt_utils._is_relation(relation, 'union_relations') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) -%}\n {%- for col in cols -%}\n\n {#- If an exclude list was provided and the column is in the list, do nothing -#}\n {%- if exclude and col.column in exclude -%}\n\n {#- If an include list was provided and the column is not in the list, do nothing -#}\n {%- elif include and col.column not in include -%}\n\n {#- Otherwise add the column to the column superset -#}\n {%- else -%}\n\n {#- update the list of columns in this relation -#}\n {%- do relation_columns[relation].append(col.column) -%}\n\n {%- if col.column in column_superset -%}\n\n {%- set stored = column_superset[col.column] -%}\n {%- if col.is_string() and stored.is_string() and col.string_size() > stored.string_size() -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif %}\n\n {%- else -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif -%}\n\n {%- endif -%}\n\n {%- endfor -%}\n {%- endfor -%}\n\n {%- set ordered_column_names = column_superset.keys() -%}\n\n {%- for relation in relations %}\n\n (\n select\n\n cast({{ dbt_utils.string_literal(relation) }} as {{ dbt_utils.type_string() }}) as {{ source_column_name }},\n {% for col_name in ordered_column_names -%}\n\n {%- set col = column_superset[col_name] %}\n {%- set col_type = column_override.get(col.column, col.data_type) %}\n {%- set col_name = adapter.quote(col_name) if col_name in relation_columns[relation] else 'null' %}\n cast({{ col_name }} as {{ col_type }}) as {{ col.quoted }} {% if not loop.last %},{% endif -%}\n\n {%- endfor %}\n\n from {{ aliases[loop.index0] if aliases else relation }}\n )\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n\n {%- endfor -%}\n\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils.string_literal", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.264655}, "macro.fivetran_utils.union_tables": {"unique_id": "macro.fivetran_utils.union_tables", "package_name": "fivetran_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/fivetran_utils", "path": "macros/union_relations.sql", "original_file_path": "macros/union_relations.sql", "name": "union_tables", "macro_sql": "{%- macro union_tables(tables, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_table') -%}\n\n {%- do exceptions.warn(\"Warning: the `union_tables` macro is no longer supported and will be deprecated in a future release of dbt-utils. Use the `union_relations` macro instead\") -%}\n\n {{ return(dbt_utils.union_relations(tables, column_override, include, exclude, source_column_name)) }}\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.union_relations"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.265959}, "macro.fivetran_utils.snowflake_seed_data": {"unique_id": "macro.fivetran_utils.snowflake_seed_data", "package_name": "fivetran_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/fivetran_utils", "path": "macros/snowflake_seed_data.sql", "original_file_path": "macros/snowflake_seed_data.sql", "name": "snowflake_seed_data", "macro_sql": "{% macro snowflake_seed_data(seed_name) %}\n\n{% if target.type == 'snowflake' %}\n{{ return(ref(seed_name ~ '_snowflake')) }}\n{% else %}\n{{ return(ref(seed_name)) }}\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.2802181}, "macro.fivetran_utils.fill_staging_columns": {"unique_id": "macro.fivetran_utils.fill_staging_columns", "package_name": "fivetran_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/fivetran_utils", "path": "macros/fill_staging_columns.sql", "original_file_path": "macros/fill_staging_columns.sql", "name": "fill_staging_columns", "macro_sql": "{% macro fill_staging_columns(source_columns, staging_columns) -%}\n\n{%- set source_column_names = source_columns|map(attribute='name')|map('lower')|list -%}\n\n{%- for column in staging_columns %}\n {% if column.name|lower in source_column_names -%}\n {{ fivetran_utils.quote_column(column) }} as \n {%- if 'alias' in column %} {{ column.alias }} {% else %} {{ fivetran_utils.quote_column(column) }} {%- endif -%}\n {%- else -%}\n cast(null as {{ column.datatype }})\n {%- if 'alias' in column %} as {{ column.alias }} {% else %} as {{ fivetran_utils.quote_column(column) }} {% endif -%}\n {%- endif -%}\n {%- if not loop.last -%} , {% endif -%}\n{% endfor %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.quote_column"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.2848918}, "macro.fivetran_utils.quote_column": {"unique_id": "macro.fivetran_utils.quote_column", "package_name": "fivetran_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/fivetran_utils", "path": "macros/fill_staging_columns.sql", "original_file_path": "macros/fill_staging_columns.sql", "name": "quote_column", "macro_sql": "{% macro quote_column(column) %}\n {% if 'quote' in column %}\n {% if column.quote %}\n {% if target.type in ('bigquery', 'spark') %}\n `{{ column.name }}`\n {% elif target.type == 'snowflake' %}\n \"{{ column.name | upper }}\"\n {% else %}\n \"{{ column.name }}\"\n {% endif %}\n {% else %}\n {{ column.name }}\n {% endif %}\n {% else %}\n {{ column.name }}\n {% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.286761}, "macro.fivetran_utils.json_extract": {"unique_id": "macro.fivetran_utils.json_extract", "package_name": "fivetran_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "name": "json_extract", "macro_sql": "{% macro json_extract(string, string_path) -%}\n\n{{ adapter.dispatch('json_extract', 'fivetran_utils') (string, string_path) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.bigquery__json_extract"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.2885172}, "macro.fivetran_utils.default__json_extract": {"unique_id": "macro.fivetran_utils.default__json_extract", "package_name": "fivetran_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "name": "default__json_extract", "macro_sql": "{% macro default__json_extract(string, string_path) %}\n\n json_extract_path_text({{string}}, {{ \"'\" ~ string_path ~ \"'\" }} )\n \n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.289037}, "macro.fivetran_utils.snowflake__json_extract": {"unique_id": "macro.fivetran_utils.snowflake__json_extract", "package_name": "fivetran_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "name": "snowflake__json_extract", "macro_sql": "{% macro snowflake__json_extract(string, string_path) %}\n\n json_extract_path_text(try_parse_json( {{string}} ), {{ \"'\" ~ string_path ~ \"'\" }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.289546}, "macro.fivetran_utils.redshift__json_extract": {"unique_id": "macro.fivetran_utils.redshift__json_extract", "package_name": "fivetran_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "name": "redshift__json_extract", "macro_sql": "{% macro redshift__json_extract(string, string_path) %}\n\n case when is_valid_json( {{string}} ) then json_extract_path_text({{string}}, {{ \"'\" ~ string_path ~ \"'\" }} ) else null end\n \n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.290112}, "macro.fivetran_utils.bigquery__json_extract": {"unique_id": "macro.fivetran_utils.bigquery__json_extract", "package_name": "fivetran_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "name": "bigquery__json_extract", "macro_sql": "{% macro bigquery__json_extract(string, string_path) %}\n\n json_extract_scalar({{string}}, {{ \"'$.\" ~ string_path ~ \"'\" }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.2906141}, "macro.fivetran_utils.postgres__json_extract": {"unique_id": "macro.fivetran_utils.postgres__json_extract", "package_name": "fivetran_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "name": "postgres__json_extract", "macro_sql": "{% macro postgres__json_extract(string, string_path) %}\n\n {{string}}::json->>{{\"'\" ~ string_path ~ \"'\" }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.291127}, "macro.fivetran_utils.collect_freshness": {"unique_id": "macro.fivetran_utils.collect_freshness", "package_name": "fivetran_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/fivetran_utils", "path": "macros/collect_freshness.sql", "original_file_path": "macros/collect_freshness.sql", "name": "collect_freshness", "macro_sql": "{% macro collect_freshness(source, loaded_at_field, filter) %}\n {{ return(adapter.dispatch('collect_freshness')(source, loaded_at_field, filter))}}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__collect_freshness"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.2931268}, "macro.fivetran_utils.default__collect_freshness": {"unique_id": "macro.fivetran_utils.default__collect_freshness", "package_name": "fivetran_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/fivetran_utils", "path": "macros/collect_freshness.sql", "original_file_path": "macros/collect_freshness.sql", "name": "default__collect_freshness", "macro_sql": "{% macro default__collect_freshness(source, loaded_at_field, filter) %}\n {% call statement('collect_freshness', fetch_result=True, auto_begin=False) -%}\n\n {%- set enabled_array = [] -%}\n {% for node in graph.sources.values() %}\n {% if node.identifier == source.identifier %}\n {% if (node.meta['is_enabled'] | default(true)) %}\n {%- do enabled_array.append(1) -%}\n {% endif %}\n {% endif %}\n {% endfor %}\n {% set is_enabled = (enabled_array != []) %}\n\n select\n {% if is_enabled %}\n max({{ loaded_at_field }})\n {% else %} \n {{ current_timestamp() }} {% endif %} as max_loaded_at,\n {{ current_timestamp() }} as snapshotted_at\n\n {% if is_enabled %}\n from {{ source }}\n {% if filter %}\n where {{ filter }}\n {% endif %}\n {% endif %}\n\n {% endcall %}\n {{ return(load_result('collect_freshness').table) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_utils.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.29625}, "macro.fivetran_utils.timestamp_add": {"unique_id": "macro.fivetran_utils.timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "name": "timestamp_add", "macro_sql": "{% macro timestamp_add(datepart, interval, from_timestamp) -%}\n\n{{ adapter.dispatch('timestamp_add', 'fivetran_utils') (datepart, interval, from_timestamp) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.bigquery__timestamp_add"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.2982268}, "macro.fivetran_utils.default__timestamp_add": {"unique_id": "macro.fivetran_utils.default__timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "name": "default__timestamp_add", "macro_sql": "{% macro default__timestamp_add(datepart, interval, from_timestamp) %}\n\n timestampadd(\n {{ datepart }},\n {{ interval }},\n {{ from_timestamp }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.298769}, "macro.fivetran_utils.bigquery__timestamp_add": {"unique_id": "macro.fivetran_utils.bigquery__timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "name": "bigquery__timestamp_add", "macro_sql": "{% macro bigquery__timestamp_add(datepart, interval, from_timestamp) %}\n\n timestamp_add({{ from_timestamp }}, interval {{ interval }} {{ datepart }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.299295}, "macro.fivetran_utils.redshift__timestamp_add": {"unique_id": "macro.fivetran_utils.redshift__timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "name": "redshift__timestamp_add", "macro_sql": "{% macro redshift__timestamp_add(datepart, interval, from_timestamp) %}\n\n dateadd(\n {{ datepart }},\n {{ interval }},\n {{ from_timestamp }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.299822}, "macro.fivetran_utils.postgres__timestamp_add": {"unique_id": "macro.fivetran_utils.postgres__timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "name": "postgres__timestamp_add", "macro_sql": "{% macro postgres__timestamp_add(datepart, interval, from_timestamp) %}\n\n {{ from_timestamp }} + ((interval '1 {{ datepart }}') * ({{ interval }}))\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.3003452}, "macro.fivetran_utils.spark__timestamp_add": {"unique_id": "macro.fivetran_utils.spark__timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "name": "spark__timestamp_add", "macro_sql": "{% macro spark__timestamp_add(datepart, interval, from_timestamp) %}\n\n {{ dbt_utils.dateadd(datepart, interval, from_timestamp) }}\n \n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.300905}, "macro.fivetran_utils.ceiling": {"unique_id": "macro.fivetran_utils.ceiling", "package_name": "fivetran_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "name": "ceiling", "macro_sql": "{% macro ceiling(num) -%}\n\n{{ adapter.dispatch('ceiling', 'fivetran_utils') (num) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__ceiling"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.301844}, "macro.fivetran_utils.default__ceiling": {"unique_id": "macro.fivetran_utils.default__ceiling", "package_name": "fivetran_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "name": "default__ceiling", "macro_sql": "{% macro default__ceiling(num) %}\n ceiling({{ num }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.3021739}, "macro.fivetran_utils.snowflake__ceiling": {"unique_id": "macro.fivetran_utils.snowflake__ceiling", "package_name": "fivetran_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "name": "snowflake__ceiling", "macro_sql": "{% macro snowflake__ceiling(num) %}\n ceil({{ num }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.302496}, "macro.fivetran_utils.remove_prefix_from_columns": {"unique_id": "macro.fivetran_utils.remove_prefix_from_columns", "package_name": "fivetran_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/fivetran_utils", "path": "macros/remove_prefix_from_columns.sql", "original_file_path": "macros/remove_prefix_from_columns.sql", "name": "remove_prefix_from_columns", "macro_sql": "{% macro remove_prefix_from_columns(columns, prefix='', exclude=[]) %}\n\n {%- for col in columns if col.name not in exclude -%}\n {%- if col.name[:prefix|length]|lower == prefix -%}\n {{ col.name }} as {{ col.name[prefix|length:] }}\n {%- else -%}\n {{ col.name }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {% endfor -%}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.3047402}, "macro.fivetran_utils.union_data": {"unique_id": "macro.fivetran_utils.union_data", "package_name": "fivetran_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/fivetran_utils", "path": "macros/union_data.sql", "original_file_path": "macros/union_data.sql", "name": "union_data", "macro_sql": "{% macro union_data(table_identifier, database_variable, schema_variable, default_database, default_schema, default_variable, union_schema_variable='union_schemas', union_database_variable='union_databases') -%}\n\n{{ adapter.dispatch('union_data', 'fivetran_utils') (\n table_identifier, \n database_variable, \n schema_variable, \n default_database, \n default_schema, \n default_variable,\n union_schema_variable,\n union_database_variable\n ) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__union_data"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.307581}, "macro.fivetran_utils.default__union_data": {"unique_id": "macro.fivetran_utils.default__union_data", "package_name": "fivetran_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/fivetran_utils", "path": "macros/union_data.sql", "original_file_path": "macros/union_data.sql", "name": "default__union_data", "macro_sql": "{% macro default__union_data(\n table_identifier, \n database_variable, \n schema_variable, \n default_database, \n default_schema, \n default_variable,\n union_schema_variable,\n union_database_variable\n ) %}\n\n{% if var(union_schema_variable, none) %}\n\n {% set relations = [] %}\n \n {% if var(union_schema_variable) is string %}\n {% set trimmed = var(union_schema_variable)|trim('[')|trim(']') %}\n {% set schemas = trimmed.split(',')|map('trim',\" \")|map('trim','\"')|map('trim',\"'\") %}\n {% else %}\n {% set schemas = var(union_schema_variable) %}\n {% endif %}\n\n {% for schema in var(union_schema_variable) %}\n\n {% set relation=adapter.get_relation(\n database=var(database_variable, default_database),\n schema=schema,\n identifier=table_identifier\n ) -%}\n \n {% set relation_exists=relation is not none %}\n\n {% if relation_exists %}\n\n {% do relations.append(relation) %}\n \n {% endif %}\n\n {% endfor %}\n\n {{ dbt_utils.union_relations(relations) }}\n\n{% elif var(union_database_variable, none) %}\n\n {% set relations = [] %}\n\n {% for database in var(union_database_variable) %}\n\n {% set relation=adapter.get_relation(\n database=database,\n schema=var(schema_variable, default_schema),\n identifier=table_identifier\n ) -%}\n\n {% set relation_exists=relation is not none %}\n\n {% if relation_exists %}\n\n {% do relations.append(relation) %}\n \n {% endif %}\n\n {% endfor %}\n\n {{ dbt_utils.union_relations(relations) }}\n\n{% else %}\n\n select * \n from {{ var(default_variable) }}\n\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.union_relations"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.3121438}, "macro.fivetran_utils.dummy_coalesce_value": {"unique_id": "macro.fivetran_utils.dummy_coalesce_value", "package_name": "fivetran_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/fivetran_utils", "path": "macros/dummy_coalesce_value.sql", "original_file_path": "macros/dummy_coalesce_value.sql", "name": "dummy_coalesce_value", "macro_sql": "{% macro dummy_coalesce_value(column) %}\n\n{% set coalesce_value = {\n 'STRING': \"'DUMMY_STRING'\",\n 'BOOLEAN': 'null',\n 'INT': 999999999,\n 'FLOAT': 999999999.99,\n 'TIMESTAMP': 'cast(\"2099-12-31\" as timestamp)',\n 'DATE': 'cast(\"2099-12-31\" as date)',\n} %}\n\n{% if column.is_float() %}\n{{ return(coalesce_value['FLOAT']) }}\n\n{% elif column.is_numeric() %}\n{{ return(coalesce_value['INT']) }}\n\n{% elif column.is_string() %}\n{{ return(coalesce_value['STRING']) }}\n\n{% elif column.data_type|lower == 'boolean' %}\n{{ return(coalesce_value['BOOLEAN']) }}\n\n{% elif 'timestamp' in column.data_type|lower %}\n{{ return(coalesce_value['TIMESTAMP']) }}\n\n{% elif 'date' in column.data_type|lower %}\n{{ return(coalesce_value['DATE']) }}\n\n{% elif 'int' in column.data_type|lower %}\n{{ return(coalesce_value['INT']) }}\n\n{% endif %}\n\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.315787}, "macro.fivetran_utils.array_agg": {"unique_id": "macro.fivetran_utils.array_agg", "package_name": "fivetran_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "name": "array_agg", "macro_sql": "{% macro array_agg(field_to_agg) -%}\n\n{{ adapter.dispatch('array_agg', 'fivetran_utils') (field_to_agg) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__array_agg"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.3166132}, "macro.fivetran_utils.default__array_agg": {"unique_id": "macro.fivetran_utils.default__array_agg", "package_name": "fivetran_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "name": "default__array_agg", "macro_sql": "{% macro default__array_agg(field_to_agg) %}\n array_agg({{ field_to_agg }})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.316895}, "macro.fivetran_utils.redshift__array_agg": {"unique_id": "macro.fivetran_utils.redshift__array_agg", "package_name": "fivetran_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "name": "redshift__array_agg", "macro_sql": "{% macro redshift__array_agg(field_to_agg) %}\n listagg({{ field_to_agg }}, ',')\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.317169}, "macro.fivetran_utils.empty_variable_warning": {"unique_id": "macro.fivetran_utils.empty_variable_warning", "package_name": "fivetran_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/fivetran_utils", "path": "macros/empty_variable_warning.sql", "original_file_path": "macros/empty_variable_warning.sql", "name": "empty_variable_warning", "macro_sql": "{% macro empty_variable_warning(variable, downstream_model) %}\n\n{% if not var(variable) %}\n{{ log(\n \"\"\"\n Warning: You have passed an empty list to the \"\"\" ~ variable ~ \"\"\".\n As a result, you won't see the history of any columns in the \"\"\" ~ downstream_model ~ \"\"\" model.\n \"\"\",\n info=True\n) }}\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.3183172}, "macro.fivetran_utils.enabled_vars_one_true": {"unique_id": "macro.fivetran_utils.enabled_vars_one_true", "package_name": "fivetran_utils", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/fivetran_utils", "path": "macros/enabled_vars_one_true.sql", "original_file_path": "macros/enabled_vars_one_true.sql", "name": "enabled_vars_one_true", "macro_sql": "{% macro enabled_vars_one_true(vars) %}\n\n{% for v in vars %}\n \n {% if var(v, False) == True %}\n {{ return(True) }}\n {% endif %}\n\n{% endfor %}\n\n{{ return(False) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.3194802}, "macro.salesforce_source.get_contact_columns": {"unique_id": "macro.salesforce_source.get_contact_columns", "package_name": "salesforce_source", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/salesforce_source", "path": "macros/get_contact_columns.sql", "original_file_path": "macros/get_contact_columns.sql", "name": "get_contact_columns", "macro_sql": "{% macro get_contact_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"assistant_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"assistant_phone\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"birthdate\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"department\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"description\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"do_not_call\", \"datatype\": \"boolean\"},\n {\"name\": \"email\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"email_bounced_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"email_bounced_reason\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"fax\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"first_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"has_opted_out_of_email\", \"datatype\": \"boolean\"},\n {\"name\": \"has_opted_out_of_fax\", \"datatype\": \"boolean\"},\n {\"name\": \"home_phone\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"individual_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"is_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"is_email_bounced\", \"datatype\": \"boolean\"},\n {\"name\": \"jigsaw\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"jigsaw_contact_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"last_activity_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"last_curequest_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"last_cuupdate_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"last_modified_by_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"last_modified_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"last_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"last_referenced_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"last_viewed_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"lead_source\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"mailing_city\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"mailing_country\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"mailing_country_code\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"mailing_geocode_accuracy\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"mailing_latitude\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"mailing_longitude\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"mailing_postal_code\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"mailing_state\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"mailing_state_code\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"mailing_street\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"master_record_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"mobile_phone\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"other_city\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"other_country\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"other_geocode_accuracy\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"other_latitude\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"other_longitude\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"other_phone\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"other_postal_code\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"other_state\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"other_street\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"owner_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"phone\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"photo_url\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"reports_to_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"salutation\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"system_modstamp\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"title\", \"datatype\": dbt_utils.type_string()},\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string", "macro.dbt_utils.type_float"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.33548}, "macro.salesforce_source.get_account_columns": {"unique_id": "macro.salesforce_source.get_account_columns", "package_name": "salesforce_source", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/salesforce_source", "path": "macros/get_account_columns.sql", "original_file_path": "macros/get_account_columns.sql", "name": "get_account_columns", "macro_sql": "{% macro get_account_columns() %}\n\n{% set columns = [\n\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"account_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"account_source\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"annual_revenue\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"billing_city\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"billing_country\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"billing_postal_code\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"billing_state\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"billing_state_code\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"billing_street\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"description\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"industry\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"is_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"last_activity_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"last_referenced_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"last_viewed_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"master_record_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"number_of_employees\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"owner_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"ownership\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"parent_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"rating\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"record_type_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"shipping_city\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"shipping_country\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"shipping_country_code\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"shipping_postal_code\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"shipping_state\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"shipping_state_code\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"shipping_street\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"website\", \"datatype\": dbt_utils.type_string()},\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string", "macro.dbt_utils.type_float", "macro.dbt_utils.type_int"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.3439932}, "macro.salesforce_source.get_user_role_columns": {"unique_id": "macro.salesforce_source.get_user_role_columns", "package_name": "salesforce_source", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/salesforce_source", "path": "macros/get_user_role_columns.sql", "original_file_path": "macros/get_user_role_columns.sql", "name": "get_user_role_columns", "macro_sql": "{% macro get_user_role_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"developer_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"opportunity_access_for_account_owner\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"parent_role_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"rollup_description\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.355714}, "macro.salesforce_source.get_user_columns": {"unique_id": "macro.salesforce_source.get_user_columns", "package_name": "salesforce_source", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/salesforce_source", "path": "macros/get_user_columns.sql", "original_file_path": "macros/get_user_columns.sql", "name": "get_user_columns", "macro_sql": "{% macro get_user_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"alias\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"city\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"company_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"contact_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"country\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"country_code\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"department\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"email\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"first_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"individual_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"is_active\", \"datatype\": \"boolean\"},\n {\"name\": \"last_login_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"last_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"last_referenced_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"last_viewed_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"manager_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"postal_code\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"profile_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"state\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"state_code\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"street\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"title\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"user_role_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"user_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"username\", \"datatype\": dbt_utils.type_string()},\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.3730822}, "macro.salesforce_source.get_opportunity_columns": {"unique_id": "macro.salesforce_source.get_opportunity_columns", "package_name": "salesforce_source", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/salesforce_source", "path": "macros/get_opportunity_columns.sql", "original_file_path": "macros/get_opportunity_columns.sql", "name": "get_opportunity_columns", "macro_sql": "{% macro get_opportunity_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"campaign_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"close_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"created_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"description\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"expected_revenue\", \"datatype\": dbt_utils.type_numeric()},\n {\"name\": \"fiscal\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"fiscal_quarter\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"fiscal_year\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"forecast_category\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"forecast_category_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"has_open_activity\", \"datatype\": \"boolean\"},\n {\"name\": \"has_opportunity_line_item\", \"datatype\": \"boolean\"},\n {\"name\": \"has_overdue_task\", \"datatype\": \"boolean\"},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"is_closed\", \"datatype\": \"boolean\"},\n {\"name\": \"is_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"is_won\", \"datatype\": \"boolean\"},\n {\"name\": \"last_activity_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"last_referenced_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"last_viewed_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"lead_source\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"next_step\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"owner_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"probability\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"record_type_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"stage_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"synced_quote_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"type\", \"datatype\": dbt_utils.type_string()},\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string", "macro.dbt_utils.type_float", "macro.dbt_utils.type_numeric", "macro.dbt_utils.type_int"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.3866088}, "macro.salesforce_source.get_event_columns": {"unique_id": "macro.salesforce_source.get_event_columns", "package_name": "salesforce_source", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/salesforce_source", "path": "macros/get_event_columns.sql", "original_file_path": "macros/get_event_columns.sql", "name": "get_event_columns", "macro_sql": "{% macro get_event_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"activity_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"activity_date_time\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"created_by_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"created_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"description\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"duration_in_minutes\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"end_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"end_date_time\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"event_subtype\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"group_event_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"is_archived\", \"datatype\": \"boolean\"},\n {\"name\": \"is_child\", \"datatype\": \"boolean\"},\n {\"name\": \"is_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"is_group_event\", \"datatype\": \"boolean\"},\n {\"name\": \"is_private\", \"datatype\": \"boolean\"},\n {\"name\": \"is_recurrence\", \"datatype\": \"boolean\"},\n {\"name\": \"is_recurrence_2\", \"datatype\": \"boolean\"},\n {\"name\": \"is_recurrence_2_exception\", \"datatype\": \"boolean\"},\n {\"name\": \"is_recurrence_2_exclusion\", \"datatype\": \"boolean\"},\n {\"name\": \"is_reminder_set\", \"datatype\": \"boolean\"},\n {\"name\": \"last_modified_by_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"last_modified_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"location\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"owner_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"recurrence_2_pattern_start_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"recurrence_2_pattern_text\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"recurrence_2_pattern_time_zone\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"recurrence_2_pattern_version\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"recurrence_activity_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"recurrence_day_of_month\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"recurrence_day_of_week_mask\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"recurrence_end_date_only\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"recurrence_instance\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"recurrence_interval\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"recurrence_month_of_year\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"recurrence_start_date_time\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"recurrence_time_zone_sid_key\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"recurrence_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"reminder_date_time\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"show_as\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"start_date_time\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"subject\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"system_modstamp\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"what_count\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"what_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"who_count\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"who_id\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string", "macro.dbt_utils.type_int"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.397689}, "macro.salesforce_source.get_lead_columns": {"unique_id": "macro.salesforce_source.get_lead_columns", "package_name": "salesforce_source", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/salesforce_source", "path": "macros/get_lead_columns.sql", "original_file_path": "macros/get_lead_columns.sql", "name": "get_lead_columns", "macro_sql": "{% macro get_lead_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"annual_revenue\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"city\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"company\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"converted_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"converted_contact_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"converted_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"converted_opportunity_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"country\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"country_code\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"created_by_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"created_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"description\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"email\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"email_bounced_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"email_bounced_reason\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"fax\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"first_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"geocode_accuracy\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"has_opted_out_of_email\", \"datatype\": \"boolean\"},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"individual_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"industry\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"is_converted\", \"datatype\": \"boolean\"},\n {\"name\": \"is_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"is_unread_by_owner\", \"datatype\": \"boolean\"},\n {\"name\": \"jigsaw_contact_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"last_activity_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"last_modified_by_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"last_modified_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"last_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"last_referenced_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"last_viewed_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"latitude\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"lead_source\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"longitude\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"master_record_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"mobile_phone\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"number_of_employees\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"owner_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"phone\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"photo_url\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"postal_code\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"salutation\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"state\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"state_code\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"street\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"system_modstamp\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"title\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"website\", \"datatype\": dbt_utils.type_string()},\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_float", "macro.dbt_utils.type_string", "macro.dbt_utils.type_int"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655305160.409164}, "macro.salesforce_source.get_order_columns": {"unique_id": "macro.salesforce_source.get_order_columns", "package_name": "salesforce_source", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/salesforce_source", "path": "macros/get_order_columns.sql", "original_file_path": "macros/get_order_columns.sql", "name": "get_order_columns", "macro_sql": "{% macro get_order_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"activated_by_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"activated_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"billing_city\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"billing_country\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"billing_country_code\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"billing_geocode_accuracy\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"billing_latitude\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"billing_longitude\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"billing_postal_code\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"billing_state\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"billing_state_code\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"billing_street\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"company_authorized_by_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"contract_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"created_by_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"created_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"customer_authorized_by_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"description\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"effective_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"end_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"is_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"is_reduction_order\", \"datatype\": \"boolean\"},\n {\"name\": \"last_modified_by_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"last_modified_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"last_referenced_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"last_viewed_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"opportunity_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"order_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"original_order_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"owner_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"pricebook_2_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"shipping_city\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"shipping_country\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"shipping_country_code\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"shipping_geocode_accuracy\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"shipping_latitude\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"shipping_longitude\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"shipping_postal_code\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"shipping_state\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"shipping_state_code\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"shipping_street\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"status_code\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"system_modstamp\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"total_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"type\", \"datatype\": dbt_utils.type_string()},\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string", "macro.dbt_utils.type_float"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655314319.392339}, "macro.salesforce_source.get_opportunity_line_item_columns": {"unique_id": "macro.salesforce_source.get_opportunity_line_item_columns", "package_name": "salesforce_source", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/salesforce_source", "path": "macros/get_opportunity_line_item_columns.sql", "original_file_path": "macros/get_opportunity_line_item_columns.sql", "name": "get_opportunity_line_item_columns", "macro_sql": "{% macro get_opportunity_line_item_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"created_by_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"created_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"description\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"discount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"has_quantity_schedule\", \"datatype\": \"boolean\"},\n {\"name\": \"has_revenue_schedule\", \"datatype\": \"boolean\"},\n {\"name\": \"has_schedule\", \"datatype\": \"boolean\"},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"is_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"last_modified_by_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"last_modified_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"last_referenced_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"last_viewed_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"list_price\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"opportunity_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"pricebook_entry_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"product_2_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"product_code\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"quantity\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"service_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"sort_order\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"system_modstamp\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"total_price\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"unit_price\", \"datatype\": dbt_utils.type_float()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string", "macro.dbt_utils.type_float", "macro.dbt_utils.type_int"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655314319.400185}, "macro.salesforce_source.get_product_2_columns": {"unique_id": "macro.salesforce_source.get_product_2_columns", "package_name": "salesforce_source", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/salesforce_source", "path": "macros/get_product_2_columns.sql", "original_file_path": "macros/get_product_2_columns.sql", "name": "get_product_2_columns", "macro_sql": "{% macro get_product_2_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"created_by_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"created_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"description\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"display_url\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"external_data_source_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"external_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"family\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"is_active\", \"datatype\": \"boolean\"},\n {\"name\": \"is_archived\", \"datatype\": \"boolean\"},\n {\"name\": \"is_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"last_modified_by_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"last_modified_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"last_referenced_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"last_viewed_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"number_of_quantity_installments\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"number_of_revenue_installments\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"product_code\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"quantity_installment_period\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"quantity_schedule_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"quantity_unit_of_measure\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"record_type_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"revenue_installment_period\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"revenue_schedule_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"stock_keeping_unit\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"system_modstamp\", \"datatype\": dbt_utils.type_timestamp()},\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string", "macro.dbt_utils.type_int"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655314319.408383}, "macro.salesforce_source.get_task_columns": {"unique_id": "macro.salesforce_source.get_task_columns", "package_name": "salesforce_source", "root_path": "/Users/renee.li/Documents/dbt/salesforce/develop/dbt_packages/salesforce_source", "path": "macros/get_task_columns.sql", "original_file_path": "macros/get_task_columns.sql", "name": "get_task_columns", "macro_sql": "{% macro get_task_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"activity_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"call_disposition\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"call_duration_in_seconds\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"call_object\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"call_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"completed_date_time\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"created_by_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"created_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"description\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"is_archived\", \"datatype\": \"boolean\"},\n {\"name\": \"is_closed\", \"datatype\": \"boolean\"},\n {\"name\": \"is_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"is_high_priority\", \"datatype\": \"boolean\"},\n {\"name\": \"is_recurrence\", \"datatype\": \"boolean\"},\n {\"name\": \"is_reminder_set\", \"datatype\": \"boolean\"},\n {\"name\": \"last_modified_by_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"last_modified_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"owner_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"priority\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"record_type_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"recurrence_activity_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"recurrence_day_of_month\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"recurrence_day_of_week_mask\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"recurrence_end_date_only\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"recurrence_instance\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"recurrence_interval\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"recurrence_month_of_year\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"recurrence_regenerated_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"recurrence_start_date_only\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"recurrence_time_zone_sid_key\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"recurrence_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"reminder_date_time\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"subject\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"system_modstamp\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"task_subtype\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"what_count\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"what_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"who_count\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"who_id\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string", "macro.dbt_utils.type_int"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1655314319.420547}}, "docs": {"dbt.__overview__": {"unique_id": "dbt.__overview__", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dbt/include/global_project", "path": "overview.md", "original_file_path": "docs/overview.md", "name": "__overview__", "block_contents": "### Welcome!\n\nWelcome to the auto-generated documentation for your dbt project!\n\n### Navigation\n\nYou can use the `Project` and `Database` navigation tabs on the left side of the window to explore the models\nin your project.\n\n#### Project Tab\nThe `Project` tab mirrors the directory structure of your dbt project. In this tab, you can see all of the\nmodels defined in your dbt project, as well as models imported from dbt packages.\n\n#### Database Tab\nThe `Database` tab also exposes your models, but in a format that looks more like a database explorer. This view\nshows relations (tables and views) grouped into database schemas. Note that ephemeral models are _not_ shown\nin this interface, as they do not exist in the database.\n\n### Graph Exploration\nYou can click the blue icon on the bottom-right corner of the page to view the lineage graph of your models.\n\nOn model pages, you'll see the immediate parents and children of the model you're exploring. By clicking the `Expand`\nbutton at the top-right of this lineage pane, you'll be able to see all of the models that are used to build,\nor are built from, the model you're exploring.\n\nOnce expanded, you'll be able to use the `--select` and `--exclude` model selection syntax to filter the\nmodels in the graph. For more information on model selection, check out the [dbt docs](https://docs.getdbt.com/docs/model-selection-syntax).\n\nNote that you can also right-click on models to interactively filter and explore the graph.\n\n---\n\n### More information\n\n- [What is dbt](https://docs.getdbt.com/docs/overview)?\n- Read the [dbt viewpoint](https://docs.getdbt.com/docs/viewpoint)\n- [Installation](https://docs.getdbt.com/docs/installation)\n- Join the [dbt Community](https://www.getdbt.com/community/) for questions and discussion"}}, "exposures": {}, "metrics": {}, "selectors": {}, "disabled": {}, "parent_map": {"model.develop.opportunity_formula": ["source.salesforce_source.salesforce.fivetran_formula", "source.salesforce_source.salesforce.fivetran_formula", "source.salesforce_source.salesforce.fivetran_formula", "source.salesforce_source.salesforce.fivetran_formula", "source.salesforce_source.salesforce.opportunity", "source.salesforce_source.salesforce.opportunity"], "model.salesforce_source.stg_salesforce__opportunity": ["model.salesforce_source.stg_salesforce__opportunity_tmp", "model.salesforce_source.stg_salesforce__opportunity_tmp"], "model.salesforce_source.stg_salesforce__user_role": ["model.salesforce_source.stg_salesforce__user_role_tmp", "model.salesforce_source.stg_salesforce__user_role_tmp"], "model.salesforce_source.stg_salesforce__contact": ["model.salesforce_source.stg_salesforce__contact_tmp", "model.salesforce_source.stg_salesforce__contact_tmp"], "model.salesforce_source.stg_salesforce__account": ["model.salesforce_source.stg_salesforce__account_tmp", "model.salesforce_source.stg_salesforce__account_tmp"], "model.salesforce_source.stg_salesforce__lead": ["model.salesforce_source.stg_salesforce__lead_tmp", "model.salesforce_source.stg_salesforce__lead_tmp"], "model.salesforce_source.stg_salesforce__event": ["model.salesforce_source.stg_salesforce__event_tmp", "model.salesforce_source.stg_salesforce__event_tmp"], "model.salesforce_source.stg_salesforce__user": ["model.salesforce_source.stg_salesforce__user_tmp", "model.salesforce_source.stg_salesforce__user_tmp"], "model.salesforce_source.stg_salesforce__user_tmp": ["source.salesforce_source.salesforce.user"], "model.salesforce_source.stg_salesforce__product_2_tmp": ["source.salesforce_source.salesforce.product_2"], "model.salesforce_source.stg_salesforce__lead_tmp": ["source.salesforce_source.salesforce.lead"], "model.salesforce_source.stg_salesforce__opportunity_tmp": ["model.develop.opportunity_formula"], "model.salesforce_source.stg_salesforce__task_tmp": ["source.salesforce_source.salesforce.task"], "model.salesforce_source.stg_salesforce__opportunity_line_item_tmp": ["source.salesforce_source.salesforce.opportunity_line_item"], "model.salesforce_source.stg_salesforce__contact_tmp": ["source.salesforce_source.salesforce.contact"], "model.salesforce_source.stg_salesforce__account_tmp": ["source.salesforce_source.salesforce.account"], "model.salesforce_source.stg_salesforce__user_role_tmp": ["source.salesforce_source.salesforce.user_role"], "test.salesforce_source.not_null_stg_salesforce__account_account_id.1e0ff361d4": ["model.salesforce_source.stg_salesforce__account"], "test.salesforce_source.unique_stg_salesforce__account_account_id.6d58a39ba7": ["model.salesforce_source.stg_salesforce__account"], "test.salesforce_source.not_null_stg_salesforce__opportunity_opportunity_id.234c5e60bd": ["model.salesforce_source.stg_salesforce__opportunity"], "test.salesforce_source.unique_stg_salesforce__opportunity_opportunity_id.367b0f577a": ["model.salesforce_source.stg_salesforce__opportunity"], "test.salesforce_source.not_null_stg_salesforce__user_user_id.ac0ab26d65": ["model.salesforce_source.stg_salesforce__user"], "test.salesforce_source.unique_stg_salesforce__user_user_id.9a29b41152": ["model.salesforce_source.stg_salesforce__user"], "test.salesforce_source.not_null_stg_salesforce__user_role_user_role_id.949036e9bd": ["model.salesforce_source.stg_salesforce__user_role"], "test.salesforce_source.unique_stg_salesforce__user_role_user_role_id.1259050718": ["model.salesforce_source.stg_salesforce__user_role"], "test.salesforce_source.not_null_stg_salesforce__contact_contact_id.d7c02bef78": ["model.salesforce_source.stg_salesforce__contact"], "test.salesforce_source.unique_stg_salesforce__contact_contact_id.0cc2c0609e": ["model.salesforce_source.stg_salesforce__contact"], "test.salesforce_source.not_null_stg_salesforce__event_event_id.e964b30db8": ["model.salesforce_source.stg_salesforce__event"], "test.salesforce_source.unique_stg_salesforce__event_event_id.13f7c8c0d9": ["model.salesforce_source.stg_salesforce__event"], "test.salesforce_source.not_null_stg_salesforce__lead_lead_id.e2ba6b2026": ["model.salesforce_source.stg_salesforce__lead"], "test.salesforce_source.unique_stg_salesforce__lead_lead_id.ba8b21e282": ["model.salesforce_source.stg_salesforce__lead"], "model.salesforce_source.stg_salesforce__order": ["model.salesforce_source.stg_salesforce__order_tmp", "model.salesforce_source.stg_salesforce__order_tmp"], "model.salesforce_source.stg_salesforce__opportunity_line_item": ["model.salesforce_source.stg_salesforce__opportunity_line_item_tmp", "model.salesforce_source.stg_salesforce__opportunity_line_item_tmp"], "model.salesforce_source.stg_salesforce__order_tmp": ["source.salesforce_source.salesforce.order"], "model.salesforce_source.stg_salesforce__product_2": ["model.salesforce_source.stg_salesforce__product_2_tmp", "model.salesforce_source.stg_salesforce__product_2_tmp"], "model.salesforce_source.stg_salesforce__event_tmp": ["source.salesforce_source.salesforce.event"], "model.salesforce_source.stg_salesforce__task": ["model.salesforce_source.stg_salesforce__task_tmp", "model.salesforce_source.stg_salesforce__task_tmp"], "test.salesforce_source.not_null_stg_salesforce__order_order_id.4782f3b34f": ["model.salesforce_source.stg_salesforce__order"], "test.salesforce_source.unique_stg_salesforce__order_order_id.12a96b4e3c": ["model.salesforce_source.stg_salesforce__order"], "test.salesforce_source.not_null_stg_salesforce__opportunity_line_item_opportunity_line_item_id.b5d2465072": ["model.salesforce_source.stg_salesforce__opportunity_line_item"], "test.salesforce_source.unique_stg_salesforce__opportunity_line_item_opportunity_line_item_id.c18042d902": ["model.salesforce_source.stg_salesforce__opportunity_line_item"], "test.salesforce_source.not_null_stg_salesforce__product_2_product_2_id.84aed29e8a": ["model.salesforce_source.stg_salesforce__product_2"], "test.salesforce_source.unique_stg_salesforce__product_2_product_2_id.b4bc489d61": ["model.salesforce_source.stg_salesforce__product_2"], "test.salesforce_source.not_null_stg_salesforce__task_task_id.aabe11a5d9": ["model.salesforce_source.stg_salesforce__task"], "test.salesforce_source.unique_stg_salesforce__task_task_id.73684ed605": ["model.salesforce_source.stg_salesforce__task"], "source.salesforce_source.salesforce.account": [], "source.salesforce_source.salesforce.opportunity": [], "source.salesforce_source.salesforce.user": [], "source.salesforce_source.salesforce.user_role": [], "source.salesforce_source.salesforce.contact": [], "source.salesforce_source.salesforce.event": [], "source.salesforce_source.salesforce.lead": [], "source.salesforce_source.salesforce.opportunity_line_item": [], "source.salesforce_source.salesforce.order": [], "source.salesforce_source.salesforce.product_2": [], "source.salesforce_source.salesforce.task": [], "source.salesforce_source.salesforce.fivetran_formula": []}, "child_map": {"model.develop.opportunity_formula": ["model.salesforce_source.stg_salesforce__opportunity_tmp"], "model.salesforce_source.stg_salesforce__opportunity": ["test.salesforce_source.not_null_stg_salesforce__opportunity_opportunity_id.234c5e60bd", "test.salesforce_source.unique_stg_salesforce__opportunity_opportunity_id.367b0f577a"], "model.salesforce_source.stg_salesforce__user_role": ["test.salesforce_source.not_null_stg_salesforce__user_role_user_role_id.949036e9bd", "test.salesforce_source.unique_stg_salesforce__user_role_user_role_id.1259050718"], "model.salesforce_source.stg_salesforce__contact": ["test.salesforce_source.not_null_stg_salesforce__contact_contact_id.d7c02bef78", "test.salesforce_source.unique_stg_salesforce__contact_contact_id.0cc2c0609e"], "model.salesforce_source.stg_salesforce__account": ["test.salesforce_source.not_null_stg_salesforce__account_account_id.1e0ff361d4", "test.salesforce_source.unique_stg_salesforce__account_account_id.6d58a39ba7"], "model.salesforce_source.stg_salesforce__lead": ["test.salesforce_source.not_null_stg_salesforce__lead_lead_id.e2ba6b2026", "test.salesforce_source.unique_stg_salesforce__lead_lead_id.ba8b21e282"], "model.salesforce_source.stg_salesforce__event": ["test.salesforce_source.not_null_stg_salesforce__event_event_id.e964b30db8", "test.salesforce_source.unique_stg_salesforce__event_event_id.13f7c8c0d9"], "model.salesforce_source.stg_salesforce__user": ["test.salesforce_source.not_null_stg_salesforce__user_user_id.ac0ab26d65", "test.salesforce_source.unique_stg_salesforce__user_user_id.9a29b41152"], "model.salesforce_source.stg_salesforce__user_tmp": ["model.salesforce_source.stg_salesforce__user", "model.salesforce_source.stg_salesforce__user"], "model.salesforce_source.stg_salesforce__product_2_tmp": ["model.salesforce_source.stg_salesforce__product_2", "model.salesforce_source.stg_salesforce__product_2"], "model.salesforce_source.stg_salesforce__lead_tmp": ["model.salesforce_source.stg_salesforce__lead", "model.salesforce_source.stg_salesforce__lead"], "model.salesforce_source.stg_salesforce__opportunity_tmp": ["model.salesforce_source.stg_salesforce__opportunity", "model.salesforce_source.stg_salesforce__opportunity"], "model.salesforce_source.stg_salesforce__task_tmp": ["model.salesforce_source.stg_salesforce__task", "model.salesforce_source.stg_salesforce__task"], "model.salesforce_source.stg_salesforce__opportunity_line_item_tmp": ["model.salesforce_source.stg_salesforce__opportunity_line_item", "model.salesforce_source.stg_salesforce__opportunity_line_item"], "model.salesforce_source.stg_salesforce__contact_tmp": ["model.salesforce_source.stg_salesforce__contact", "model.salesforce_source.stg_salesforce__contact"], "model.salesforce_source.stg_salesforce__account_tmp": ["model.salesforce_source.stg_salesforce__account", "model.salesforce_source.stg_salesforce__account"], "model.salesforce_source.stg_salesforce__user_role_tmp": ["model.salesforce_source.stg_salesforce__user_role", "model.salesforce_source.stg_salesforce__user_role"], "test.salesforce_source.not_null_stg_salesforce__account_account_id.1e0ff361d4": [], "test.salesforce_source.unique_stg_salesforce__account_account_id.6d58a39ba7": [], "test.salesforce_source.not_null_stg_salesforce__opportunity_opportunity_id.234c5e60bd": [], "test.salesforce_source.unique_stg_salesforce__opportunity_opportunity_id.367b0f577a": [], "test.salesforce_source.not_null_stg_salesforce__user_user_id.ac0ab26d65": [], "test.salesforce_source.unique_stg_salesforce__user_user_id.9a29b41152": [], "test.salesforce_source.not_null_stg_salesforce__user_role_user_role_id.949036e9bd": [], "test.salesforce_source.unique_stg_salesforce__user_role_user_role_id.1259050718": [], "test.salesforce_source.not_null_stg_salesforce__contact_contact_id.d7c02bef78": [], "test.salesforce_source.unique_stg_salesforce__contact_contact_id.0cc2c0609e": [], "test.salesforce_source.not_null_stg_salesforce__event_event_id.e964b30db8": [], "test.salesforce_source.unique_stg_salesforce__event_event_id.13f7c8c0d9": [], "test.salesforce_source.not_null_stg_salesforce__lead_lead_id.e2ba6b2026": [], "test.salesforce_source.unique_stg_salesforce__lead_lead_id.ba8b21e282": [], "model.salesforce_source.stg_salesforce__order": ["test.salesforce_source.not_null_stg_salesforce__order_order_id.4782f3b34f", "test.salesforce_source.unique_stg_salesforce__order_order_id.12a96b4e3c"], "model.salesforce_source.stg_salesforce__opportunity_line_item": ["test.salesforce_source.not_null_stg_salesforce__opportunity_line_item_opportunity_line_item_id.b5d2465072", "test.salesforce_source.unique_stg_salesforce__opportunity_line_item_opportunity_line_item_id.c18042d902"], "model.salesforce_source.stg_salesforce__order_tmp": ["model.salesforce_source.stg_salesforce__order", "model.salesforce_source.stg_salesforce__order"], "model.salesforce_source.stg_salesforce__product_2": ["test.salesforce_source.not_null_stg_salesforce__product_2_product_2_id.84aed29e8a", "test.salesforce_source.unique_stg_salesforce__product_2_product_2_id.b4bc489d61"], "model.salesforce_source.stg_salesforce__event_tmp": ["model.salesforce_source.stg_salesforce__event", "model.salesforce_source.stg_salesforce__event"], "model.salesforce_source.stg_salesforce__task": ["test.salesforce_source.not_null_stg_salesforce__task_task_id.aabe11a5d9", "test.salesforce_source.unique_stg_salesforce__task_task_id.73684ed605"], "test.salesforce_source.not_null_stg_salesforce__order_order_id.4782f3b34f": [], "test.salesforce_source.unique_stg_salesforce__order_order_id.12a96b4e3c": [], "test.salesforce_source.not_null_stg_salesforce__opportunity_line_item_opportunity_line_item_id.b5d2465072": [], "test.salesforce_source.unique_stg_salesforce__opportunity_line_item_opportunity_line_item_id.c18042d902": [], "test.salesforce_source.not_null_stg_salesforce__product_2_product_2_id.84aed29e8a": [], "test.salesforce_source.unique_stg_salesforce__product_2_product_2_id.b4bc489d61": [], "test.salesforce_source.not_null_stg_salesforce__task_task_id.aabe11a5d9": [], "test.salesforce_source.unique_stg_salesforce__task_task_id.73684ed605": [], "source.salesforce_source.salesforce.account": ["model.salesforce_source.stg_salesforce__account_tmp"], "source.salesforce_source.salesforce.opportunity": ["model.develop.opportunity_formula", "model.develop.opportunity_formula"], "source.salesforce_source.salesforce.user": ["model.salesforce_source.stg_salesforce__user_tmp"], "source.salesforce_source.salesforce.user_role": ["model.salesforce_source.stg_salesforce__user_role_tmp"], "source.salesforce_source.salesforce.contact": ["model.salesforce_source.stg_salesforce__contact_tmp"], "source.salesforce_source.salesforce.event": ["model.salesforce_source.stg_salesforce__event_tmp"], "source.salesforce_source.salesforce.lead": ["model.salesforce_source.stg_salesforce__lead_tmp"], "source.salesforce_source.salesforce.opportunity_line_item": ["model.salesforce_source.stg_salesforce__opportunity_line_item_tmp"], "source.salesforce_source.salesforce.order": ["model.salesforce_source.stg_salesforce__order_tmp"], "source.salesforce_source.salesforce.product_2": ["model.salesforce_source.stg_salesforce__product_2_tmp"], "source.salesforce_source.salesforce.task": ["model.salesforce_source.stg_salesforce__task_tmp"], "source.salesforce_source.salesforce.fivetran_formula": ["model.develop.opportunity_formula", "model.develop.opportunity_formula", "model.develop.opportunity_formula", "model.develop.opportunity_formula"]}} \ No newline at end of file diff --git a/docs/run_results.json b/docs/run_results.json index e7c490d..b080058 100644 --- a/docs/run_results.json +++ b/docs/run_results.json @@ -1 +1 @@ -{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/run-results/v2.json", "dbt_version": "0.20.0", "generated_at": "2021-08-05T22:00:50.632603Z", "invocation_id": "bf32e716-f8ec-4901-b5fd-4c158e73903f", "env": {}}, "results": [{"status": "success", "timing": [{"name": "compile", "started_at": "2021-08-05T22:00:50.328339Z", "completed_at": "2021-08-05T22:00:50.336518Z"}, {"name": "execute", "started_at": "2021-08-05T22:00:50.338460Z", "completed_at": "2021-08-05T22:00:50.338492Z"}], "thread_id": "Thread-1", "execution_time": 0.012089967727661133, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.salesforce_source_integration_tests.account_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-08-05T22:00:50.328703Z", "completed_at": "2021-08-05T22:00:50.338244Z"}, {"name": "execute", "started_at": "2021-08-05T22:00:50.338900Z", "completed_at": "2021-08-05T22:00:50.338908Z"}], "thread_id": "Thread-2", "execution_time": 0.012320995330810547, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.salesforce_source_integration_tests.opportunity_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-08-05T22:00:50.328826Z", "completed_at": "2021-08-05T22:00:50.338346Z"}, {"name": "execute", "started_at": "2021-08-05T22:00:50.339087Z", "completed_at": "2021-08-05T22:00:50.339092Z"}], "thread_id": "Thread-3", "execution_time": 0.012258052825927734, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.salesforce_source_integration_tests.user_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-08-05T22:00:50.332464Z", "completed_at": "2021-08-05T22:00:50.338590Z"}, {"name": "execute", "started_at": "2021-08-05T22:00:50.339677Z", "completed_at": "2021-08-05T22:00:50.339683Z"}], "thread_id": "Thread-4", "execution_time": 0.012320280075073242, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.salesforce_source_integration_tests.user_role_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-08-05T22:00:50.342532Z", "completed_at": "2021-08-05T22:00:50.354577Z"}, {"name": "execute", "started_at": "2021-08-05T22:00:50.355227Z", "completed_at": "2021-08-05T22:00:50.355235Z"}], "thread_id": "Thread-1", "execution_time": 0.014194011688232422, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.salesforce_source.stg_salesforce__account_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-08-05T22:00:50.342935Z", "completed_at": "2021-08-05T22:00:50.355422Z"}, {"name": "execute", "started_at": "2021-08-05T22:00:50.356086Z", "completed_at": "2021-08-05T22:00:50.356091Z"}], "thread_id": "Thread-3", "execution_time": 0.014738798141479492, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.salesforce_source.stg_salesforce__user_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-08-05T22:00:50.346783Z", "completed_at": "2021-08-05T22:00:50.355510Z"}, {"name": "execute", "started_at": "2021-08-05T22:00:50.356198Z", "completed_at": "2021-08-05T22:00:50.356203Z"}], "thread_id": "Thread-4", "execution_time": 0.014808893203735352, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.salesforce_source.stg_salesforce__user_role_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-08-05T22:00:50.342841Z", "completed_at": "2021-08-05T22:00:50.362759Z"}, {"name": "execute", "started_at": "2021-08-05T22:00:50.368748Z", "completed_at": "2021-08-05T22:00:50.368753Z"}], "thread_id": "Thread-2", "execution_time": 0.03268694877624512, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.salesforce_source.stg_salesforce__opportunity_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-08-05T22:00:50.368858Z", "completed_at": "2021-08-05T22:00:50.531834Z"}, {"name": "execute", "started_at": "2021-08-05T22:00:50.531964Z", "completed_at": "2021-08-05T22:00:50.531974Z"}], "thread_id": "Thread-4", "execution_time": 0.16929101943969727, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.salesforce_source.stg_salesforce__user_role"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-08-05T22:00:50.532858Z", "completed_at": "2021-08-05T22:00:50.553869Z"}, {"name": "execute", "started_at": "2021-08-05T22:00:50.560613Z", "completed_at": "2021-08-05T22:00:50.560622Z"}], "thread_id": "Thread-4", "execution_time": 0.028735876083374023, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.salesforce_source.not_null_stg_salesforce__user_role_user_role_id.d64248cb03"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-08-05T22:00:50.362026Z", "completed_at": "2021-08-05T22:00:50.559451Z"}, {"name": "execute", "started_at": "2021-08-05T22:00:50.560824Z", "completed_at": "2021-08-05T22:00:50.560830Z"}], "thread_id": "Thread-1", "execution_time": 0.2007579803466797, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.salesforce_source.stg_salesforce__account"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-08-05T22:00:50.368379Z", "completed_at": "2021-08-05T22:00:50.561002Z"}, {"name": "execute", "started_at": "2021-08-05T22:00:50.561917Z", "completed_at": "2021-08-05T22:00:50.561939Z"}], "thread_id": "Thread-3", "execution_time": 0.20055508613586426, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.salesforce_source.stg_salesforce__user"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-08-05T22:00:50.382685Z", "completed_at": "2021-08-05T22:00:50.562295Z"}, {"name": "execute", "started_at": "2021-08-05T22:00:50.563366Z", "completed_at": "2021-08-05T22:00:50.563373Z"}], "thread_id": "Thread-2", "execution_time": 0.18206572532653809, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.salesforce_source.stg_salesforce__opportunity"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-08-05T22:00:50.563861Z", "completed_at": "2021-08-05T22:00:50.580417Z"}, {"name": "execute", "started_at": "2021-08-05T22:00:50.581875Z", "completed_at": "2021-08-05T22:00:50.581883Z"}], "thread_id": "Thread-4", "execution_time": 0.022812843322753906, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.salesforce_source.unique_stg_salesforce__user_role_user_role_id.75675c5628"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-08-05T22:00:50.564400Z", "completed_at": "2021-08-05T22:00:50.582124Z"}, {"name": "execute", "started_at": "2021-08-05T22:00:50.586126Z", "completed_at": "2021-08-05T22:00:50.586133Z"}], "thread_id": "Thread-1", "execution_time": 0.02373194694519043, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.salesforce_source.not_null_stg_salesforce__account_account_id.318c3c43de"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-08-05T22:00:50.575766Z", "completed_at": "2021-08-05T22:00:50.586347Z"}, {"name": "execute", "started_at": "2021-08-05T22:00:50.587411Z", "completed_at": "2021-08-05T22:00:50.587417Z"}], "thread_id": "Thread-3", "execution_time": 0.023808956146240234, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.salesforce_source.unique_stg_salesforce__account_account_id.9cc8cf6f0c"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-08-05T22:00:50.580241Z", "completed_at": "2021-08-05T22:00:50.587559Z"}, {"name": "execute", "started_at": "2021-08-05T22:00:50.588478Z", "completed_at": "2021-08-05T22:00:50.588483Z"}], "thread_id": "Thread-2", "execution_time": 0.013266801834106445, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.salesforce_source.not_null_stg_salesforce__user_user_id.d79e41e4fa"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-08-05T22:00:50.588586Z", "completed_at": "2021-08-05T22:00:50.597722Z"}, {"name": "execute", "started_at": "2021-08-05T22:00:50.601691Z", "completed_at": "2021-08-05T22:00:50.601697Z"}], "thread_id": "Thread-4", "execution_time": 0.014390230178833008, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.salesforce_source.unique_stg_salesforce__user_user_id.a9ff648ec8"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-08-05T22:00:50.592915Z", "completed_at": "2021-08-05T22:00:50.602332Z"}, {"name": "execute", "started_at": "2021-08-05T22:00:50.602462Z", "completed_at": "2021-08-05T22:00:50.602467Z"}], "thread_id": "Thread-1", "execution_time": 0.014124870300292969, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.salesforce_source.not_null_stg_salesforce__opportunity_opportunity_id.221d465e3f"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-08-05T22:00:50.597270Z", "completed_at": "2021-08-05T22:00:50.603127Z"}, {"name": "execute", "started_at": "2021-08-05T22:00:50.603246Z", "completed_at": "2021-08-05T22:00:50.603251Z"}], "thread_id": "Thread-3", "execution_time": 0.010525941848754883, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.salesforce_source.unique_stg_salesforce__opportunity_opportunity_id.16d671bdcd"}], "elapsed_time": 1.673110008239746, "args": {"log_format": "default", "write_json": true, "use_experimental_parser": false, "profiles_dir": "/Users/joseph.markiewicz/.dbt", "target": "bigquery", "use_cache": true, "compile": true, "version_check": true, "which": "generate", "rpc_method": "docs.generate"}} \ No newline at end of file +{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/run-results/v4.json", "dbt_version": "1.0.0", "generated_at": "2022-06-15T17:32:06.402736Z", "invocation_id": "a85f65ad-6696-4ef3-b19d-81973cd36798", "env": {}}, "results": [{"status": "success", "timing": [{"name": "compile", "started_at": "2022-06-15T17:32:00.228350Z", "completed_at": "2022-06-15T17:32:00.267381Z"}, {"name": "execute", "started_at": "2022-06-15T17:32:00.267918Z", "completed_at": "2022-06-15T17:32:00.267941Z"}], "thread_id": "Thread-3", "execution_time": 0.0426788330078125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.salesforce_source.stg_salesforce__contact_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-06-15T17:32:00.228157Z", "completed_at": "2022-06-15T17:32:00.267760Z"}, {"name": "execute", "started_at": "2022-06-15T17:32:00.269402Z", "completed_at": "2022-06-15T17:32:00.269414Z"}], "thread_id": "Thread-2", "execution_time": 0.045091867446899414, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.salesforce_source.stg_salesforce__account_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-06-15T17:32:00.240383Z", "completed_at": "2022-06-15T17:32:00.268704Z"}, {"name": "execute", "started_at": "2022-06-15T17:32:00.271343Z", "completed_at": "2022-06-15T17:32:00.271353Z"}], "thread_id": "Thread-4", "execution_time": 0.04526519775390625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.salesforce_source.stg_salesforce__event_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-06-15T17:32:00.273359Z", "completed_at": "2022-06-15T17:32:00.288138Z"}, {"name": "execute", "started_at": "2022-06-15T17:32:00.288867Z", "completed_at": "2022-06-15T17:32:00.288879Z"}], "thread_id": "Thread-3", "execution_time": 0.018023967742919922, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.salesforce_source.stg_salesforce__lead_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-06-15T17:32:00.283688Z", "completed_at": "2022-06-15T17:32:00.288685Z"}, {"name": "execute", "started_at": "2022-06-15T17:32:00.289760Z", "completed_at": "2022-06-15T17:32:00.289768Z"}], "thread_id": "Thread-4", "execution_time": 0.016594886779785156, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.salesforce_source.stg_salesforce__order_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-06-15T17:32:00.279006Z", "completed_at": "2022-06-15T17:32:00.289250Z"}, {"name": "execute", "started_at": "2022-06-15T17:32:00.290869Z", "completed_at": "2022-06-15T17:32:00.290878Z"}], "thread_id": "Thread-2", "execution_time": 0.01906585693359375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.salesforce_source.stg_salesforce__opportunity_line_item_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-06-15T17:32:00.292946Z", "completed_at": "2022-06-15T17:32:00.304274Z"}, {"name": "execute", "started_at": "2022-06-15T17:32:00.310139Z", "completed_at": "2022-06-15T17:32:00.310155Z"}], "thread_id": "Thread-3", "execution_time": 0.01944899559020996, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.salesforce_source.stg_salesforce__product_2_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-06-15T17:32:00.303807Z", "completed_at": "2022-06-15T17:32:00.312520Z"}, {"name": "execute", "started_at": "2022-06-15T17:32:00.317774Z", "completed_at": "2022-06-15T17:32:00.317786Z"}], "thread_id": "Thread-2", "execution_time": 0.02503204345703125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.salesforce_source.stg_salesforce__user_role_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-06-15T17:32:00.298312Z", "completed_at": "2022-06-15T17:32:00.312898Z"}, {"name": "execute", "started_at": "2022-06-15T17:32:00.318076Z", "completed_at": "2022-06-15T17:32:00.318086Z"}], "thread_id": "Thread-4", "execution_time": 0.02659893035888672, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.salesforce_source.stg_salesforce__task_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-06-15T17:32:00.312706Z", "completed_at": "2022-06-15T17:32:00.319083Z"}, {"name": "execute", "started_at": "2022-06-15T17:32:00.321074Z", "completed_at": "2022-06-15T17:32:00.321086Z"}], "thread_id": "Thread-3", "execution_time": 0.009876012802124023, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.salesforce_source.stg_salesforce__user_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-06-15T17:32:00.340780Z", "completed_at": "2022-06-15T17:32:00.689361Z"}, {"name": "execute", "started_at": "2022-06-15T17:32:00.689904Z", "completed_at": "2022-06-15T17:32:00.689914Z"}], "thread_id": "Thread-3", "execution_time": 0.35198187828063965, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.salesforce_source.stg_salesforce__event"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-06-15T17:32:00.321978Z", "completed_at": "2022-06-15T17:32:00.791746Z"}, {"name": "execute", "started_at": "2022-06-15T17:32:00.792250Z", "completed_at": "2022-06-15T17:32:00.792260Z"}], "thread_id": "Thread-2", "execution_time": 0.4723219871520996, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.salesforce_source.stg_salesforce__contact"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-06-15T17:32:00.322143Z", "completed_at": "2022-06-15T17:32:00.841639Z"}, {"name": "execute", "started_at": "2022-06-15T17:32:00.841927Z", "completed_at": "2022-06-15T17:32:00.841937Z"}], "thread_id": "Thread-4", "execution_time": 0.521460771560669, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.salesforce_source.stg_salesforce__account"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-06-15T17:32:00.691636Z", "completed_at": "2022-06-15T17:32:00.948400Z"}, {"name": "execute", "started_at": "2022-06-15T17:32:00.948742Z", "completed_at": "2022-06-15T17:32:00.948752Z"}], "thread_id": "Thread-3", "execution_time": 0.25798892974853516, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.salesforce_source.stg_salesforce__lead"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-06-15T17:32:00.795454Z", "completed_at": "2022-06-15T17:32:01.038405Z"}, {"name": "execute", "started_at": "2022-06-15T17:32:01.038746Z", "completed_at": "2022-06-15T17:32:01.038759Z"}], "thread_id": "Thread-2", "execution_time": 0.24431300163269043, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.salesforce_source.stg_salesforce__order"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-06-15T17:32:00.842843Z", "completed_at": "2022-06-15T17:32:01.087394Z"}, {"name": "execute", "started_at": "2022-06-15T17:32:01.087967Z", "completed_at": "2022-06-15T17:32:01.087986Z"}], "thread_id": "Thread-4", "execution_time": 0.24601292610168457, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.salesforce_source.stg_salesforce__opportunity_line_item"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-06-15T17:32:00.949661Z", "completed_at": "2022-06-15T17:32:01.253317Z"}, {"name": "execute", "started_at": "2022-06-15T17:32:01.253692Z", "completed_at": "2022-06-15T17:32:01.253706Z"}], "thread_id": "Thread-3", "execution_time": 0.30471277236938477, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.salesforce_source.stg_salesforce__product_2"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-06-15T17:32:01.039884Z", "completed_at": "2022-06-15T17:32:01.295431Z"}, {"name": "execute", "started_at": "2022-06-15T17:32:01.295782Z", "completed_at": "2022-06-15T17:32:01.295794Z"}], "thread_id": "Thread-2", "execution_time": 0.25665903091430664, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.salesforce_source.stg_salesforce__user_role"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-06-15T17:32:01.297153Z", "completed_at": "2022-06-15T17:32:01.309910Z"}, {"name": "execute", "started_at": "2022-06-15T17:32:01.310278Z", "completed_at": "2022-06-15T17:32:01.310290Z"}], "thread_id": "Thread-2", "execution_time": 0.014113187789916992, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.salesforce_source.not_null_stg_salesforce__event_event_id.e964b30db8"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-06-15T17:32:01.311417Z", "completed_at": "2022-06-15T17:32:01.319656Z"}, {"name": "execute", "started_at": "2022-06-15T17:32:01.320039Z", "completed_at": "2022-06-15T17:32:01.320052Z"}], "thread_id": "Thread-2", "execution_time": 0.009384870529174805, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.salesforce_source.unique_stg_salesforce__event_event_id.13f7c8c0d9"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-06-15T17:32:01.321371Z", "completed_at": "2022-06-15T17:32:01.325931Z"}, {"name": "execute", "started_at": "2022-06-15T17:32:01.326271Z", "completed_at": "2022-06-15T17:32:01.326281Z"}], "thread_id": "Thread-2", "execution_time": 0.005667924880981445, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.salesforce_source.not_null_stg_salesforce__contact_contact_id.d7c02bef78"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-06-15T17:32:01.327371Z", "completed_at": "2022-06-15T17:32:01.339057Z"}, {"name": "execute", "started_at": "2022-06-15T17:32:01.341734Z", "completed_at": "2022-06-15T17:32:01.341751Z"}], "thread_id": "Thread-2", "execution_time": 0.015339851379394531, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.salesforce_source.unique_stg_salesforce__contact_contact_id.0cc2c0609e"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-06-15T17:32:01.344743Z", "completed_at": "2022-06-15T17:32:01.351393Z"}, {"name": "execute", "started_at": "2022-06-15T17:32:01.351992Z", "completed_at": "2022-06-15T17:32:01.352005Z"}], "thread_id": "Thread-2", "execution_time": 0.008363008499145508, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.salesforce_source.not_null_stg_salesforce__account_account_id.1e0ff361d4"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-06-15T17:32:01.354302Z", "completed_at": "2022-06-15T17:32:01.361578Z"}, {"name": "execute", "started_at": "2022-06-15T17:32:01.361938Z", "completed_at": "2022-06-15T17:32:01.361949Z"}], "thread_id": "Thread-2", "execution_time": 0.008415699005126953, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.salesforce_source.unique_stg_salesforce__account_account_id.6d58a39ba7"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-06-15T17:32:01.364817Z", "completed_at": "2022-06-15T17:32:01.372380Z"}, {"name": "execute", "started_at": "2022-06-15T17:32:01.373235Z", "completed_at": "2022-06-15T17:32:01.373249Z"}], "thread_id": "Thread-2", "execution_time": 0.009677886962890625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.salesforce_source.not_null_stg_salesforce__lead_lead_id.e2ba6b2026"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-06-15T17:32:01.375643Z", "completed_at": "2022-06-15T17:32:01.381186Z"}, {"name": "execute", "started_at": "2022-06-15T17:32:01.381542Z", "completed_at": "2022-06-15T17:32:01.381553Z"}], "thread_id": "Thread-2", "execution_time": 0.006682872772216797, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.salesforce_source.unique_stg_salesforce__lead_lead_id.ba8b21e282"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-06-15T17:32:01.383823Z", "completed_at": "2022-06-15T17:32:01.390489Z"}, {"name": "execute", "started_at": "2022-06-15T17:32:01.391362Z", "completed_at": "2022-06-15T17:32:01.391375Z"}], "thread_id": "Thread-2", "execution_time": 0.009282112121582031, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.salesforce_source.not_null_stg_salesforce__order_order_id.4782f3b34f"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-06-15T17:32:01.393678Z", "completed_at": "2022-06-15T17:32:01.400896Z"}, {"name": "execute", "started_at": "2022-06-15T17:32:01.401568Z", "completed_at": "2022-06-15T17:32:01.401581Z"}], "thread_id": "Thread-2", "execution_time": 0.00919485092163086, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.salesforce_source.unique_stg_salesforce__order_order_id.12a96b4e3c"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-06-15T17:32:01.404432Z", "completed_at": "2022-06-15T17:32:01.411388Z"}, {"name": "execute", "started_at": "2022-06-15T17:32:01.411748Z", "completed_at": "2022-06-15T17:32:01.411759Z"}], "thread_id": "Thread-2", "execution_time": 0.008918046951293945, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.salesforce_source.not_null_stg_salesforce__opportunity_line_item_opportunity_line_item_id.b5d2465072"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-06-15T17:32:01.413283Z", "completed_at": "2022-06-15T17:32:01.420700Z"}, {"name": "execute", "started_at": "2022-06-15T17:32:01.421354Z", "completed_at": "2022-06-15T17:32:01.421368Z"}], "thread_id": "Thread-2", "execution_time": 0.009264230728149414, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.salesforce_source.unique_stg_salesforce__opportunity_line_item_opportunity_line_item_id.c18042d902"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-06-15T17:32:01.422615Z", "completed_at": "2022-06-15T17:32:01.428334Z"}, {"name": "execute", "started_at": "2022-06-15T17:32:01.428742Z", "completed_at": "2022-06-15T17:32:01.428755Z"}], "thread_id": "Thread-2", "execution_time": 0.006991147994995117, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.salesforce_source.not_null_stg_salesforce__product_2_product_2_id.84aed29e8a"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-06-15T17:32:01.089988Z", "completed_at": "2022-06-15T17:32:01.429267Z"}, {"name": "execute", "started_at": "2022-06-15T17:32:01.430295Z", "completed_at": "2022-06-15T17:32:01.430305Z"}], "thread_id": "Thread-4", "execution_time": 0.3416481018066406, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.salesforce_source.stg_salesforce__task"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-06-15T17:32:01.431010Z", "completed_at": "2022-06-15T17:32:01.443054Z"}, {"name": "execute", "started_at": "2022-06-15T17:32:01.444046Z", "completed_at": "2022-06-15T17:32:01.444062Z"}], "thread_id": "Thread-2", "execution_time": 0.014545917510986328, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.salesforce_source.unique_stg_salesforce__product_2_product_2_id.b4bc489d61"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-06-15T17:32:01.437664Z", "completed_at": "2022-06-15T17:32:01.444936Z"}, {"name": "execute", "started_at": "2022-06-15T17:32:01.471636Z", "completed_at": "2022-06-15T17:32:01.471650Z"}], "thread_id": "Thread-4", "execution_time": 0.03693509101867676, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.salesforce_source.not_null_stg_salesforce__user_role_user_role_id.949036e9bd"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-06-15T17:32:01.472026Z", "completed_at": "2022-06-15T17:32:01.479518Z"}, {"name": "execute", "started_at": "2022-06-15T17:32:01.484948Z", "completed_at": "2022-06-15T17:32:01.484962Z"}], "thread_id": "Thread-2", "execution_time": 0.03493022918701172, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.salesforce_source.unique_stg_salesforce__user_role_user_role_id.1259050718"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-06-15T17:32:01.479374Z", "completed_at": "2022-06-15T17:32:01.486505Z"}, {"name": "execute", "started_at": "2022-06-15T17:32:01.489274Z", "completed_at": "2022-06-15T17:32:01.489285Z"}], "thread_id": "Thread-4", "execution_time": 0.01169586181640625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.salesforce_source.not_null_stg_salesforce__task_task_id.aabe11a5d9"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-06-15T17:32:01.489642Z", "completed_at": "2022-06-15T17:32:01.496173Z"}, {"name": "execute", "started_at": "2022-06-15T17:32:01.496815Z", "completed_at": "2022-06-15T17:32:01.496834Z"}], "thread_id": "Thread-2", "execution_time": 0.010484933853149414, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.salesforce_source.unique_stg_salesforce__task_task_id.73684ed605"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-06-15T17:32:01.254838Z", "completed_at": "2022-06-15T17:32:01.530949Z"}, {"name": "execute", "started_at": "2022-06-15T17:32:01.531273Z", "completed_at": "2022-06-15T17:32:01.531283Z"}], "thread_id": "Thread-3", "execution_time": 0.27715396881103516, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.salesforce_source.stg_salesforce__user"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-06-15T17:32:01.532558Z", "completed_at": "2022-06-15T17:32:01.541235Z"}, {"name": "execute", "started_at": "2022-06-15T17:32:01.541569Z", "completed_at": "2022-06-15T17:32:01.541578Z"}], "thread_id": "Thread-4", "execution_time": 0.009720802307128906, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.salesforce_source.not_null_stg_salesforce__user_user_id.ac0ab26d65"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-06-15T17:32:01.537377Z", "completed_at": "2022-06-15T17:32:01.542196Z"}, {"name": "execute", "started_at": "2022-06-15T17:32:01.542518Z", "completed_at": "2022-06-15T17:32:01.542525Z"}], "thread_id": "Thread-2", "execution_time": 0.0059320926666259766, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.salesforce_source.unique_stg_salesforce__user_user_id.9a29b41152"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-06-15T17:32:00.227741Z", "completed_at": "2022-06-15T17:32:06.075112Z"}, {"name": "execute", "started_at": "2022-06-15T17:32:06.075472Z", "completed_at": "2022-06-15T17:32:06.075484Z"}], "thread_id": "Thread-1", "execution_time": 5.850748777389526, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.develop.opportunity_formula"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-06-15T17:32:06.077422Z", "completed_at": "2022-06-15T17:32:06.082403Z"}, {"name": "execute", "started_at": "2022-06-15T17:32:06.082736Z", "completed_at": "2022-06-15T17:32:06.082745Z"}], "thread_id": "Thread-3", "execution_time": 0.006061077117919922, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.salesforce_source.stg_salesforce__opportunity_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-06-15T17:32:06.084135Z", "completed_at": "2022-06-15T17:32:06.389870Z"}, {"name": "execute", "started_at": "2022-06-15T17:32:06.390248Z", "completed_at": "2022-06-15T17:32:06.390259Z"}], "thread_id": "Thread-2", "execution_time": 0.30687808990478516, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.salesforce_source.stg_salesforce__opportunity"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-06-15T17:32:06.391784Z", "completed_at": "2022-06-15T17:32:06.399117Z"}, {"name": "execute", "started_at": "2022-06-15T17:32:06.399979Z", "completed_at": "2022-06-15T17:32:06.399990Z"}], "thread_id": "Thread-4", "execution_time": 0.009231805801391602, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.salesforce_source.not_null_stg_salesforce__opportunity_opportunity_id.234c5e60bd"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-06-15T17:32:06.395832Z", "completed_at": "2022-06-15T17:32:06.399658Z"}, {"name": "execute", "started_at": "2022-06-15T17:32:06.400628Z", "completed_at": "2022-06-15T17:32:06.400634Z"}], "thread_id": "Thread-3", "execution_time": 0.009117841720581055, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.salesforce_source.unique_stg_salesforce__opportunity_opportunity_id.367b0f577a"}], "elapsed_time": 6.559572219848633, "args": {"write_json": true, "use_colors": true, "printer_width": 80, "version_check": true, "partial_parse": true, "static_parser": true, "profiles_dir": "/Users/renee.li/.dbt", "send_anonymous_usage_stats": true, "event_buffer_size": 100000, "compile": true, "which": "generate", "rpc_method": "docs.generate", "indirect_selection": "eager"}} \ No newline at end of file diff --git a/integration_tests/ci/sample.profiles.yml b/integration_tests/ci/sample.profiles.yml index 29043c6..37e0417 100644 --- a/integration_tests/ci/sample.profiles.yml +++ b/integration_tests/ci/sample.profiles.yml @@ -7,34 +7,8 @@ config: use_colors: True integration_tests: - target: snowflake + target: bigquery outputs: - redshift: - type: redshift - host: "{{ env_var('CI_REDSHIFT_DBT_HOST') }}" - user: "{{ env_var('CI_REDSHIFT_DBT_USER') }}" - pass: "{{ env_var('CI_REDSHIFT_DBT_PASS') }}" - dbname: "{{ env_var('CI_REDSHIFT_DBT_DBNAME') }}" - port: 5439 - schema: salesforce_source_integration_tests - threads: 8 - bigquery: - type: bigquery - method: service-account - keyfile: "{{ env_var('GCLOUD_SERVICE_KEY_PATH') }}" - project: 'dbt-package-testing' - schema: salesforce_source_integration_tests - threads: 8 - snowflake: - type: snowflake - account: "{{ env_var('CI_SNOWFLAKE_DBT_ACCOUNT') }}" - user: "{{ env_var('CI_SNOWFLAKE_DBT_USER') }}" - password: "{{ env_var('CI_SNOWFLAKE_DBT_PASS') }}" - role: "{{ env_var('CI_SNOWFLAKE_DBT_ROLE') }}" - database: "{{ env_var('CI_SNOWFLAKE_DBT_DATABASE') }}" - warehouse: "{{ env_var('CI_SNOWFLAKE_DBT_WAREHOUSE') }}" - schema: salesforce_source_integration_tests_2 - threads: 8 postgres: type: postgres host: "{{ env_var('CI_POSTGRES_DBT_HOST') }}" @@ -42,12 +16,12 @@ integration_tests: pass: "{{ env_var('CI_POSTGRES_DBT_PASS') }}" dbname: "{{ env_var('CI_POSTGRES_DBT_DBNAME') }}" port: 5432 - schema: salesforce_source_integration_tests + schema: salesforce_source_integration_tests_1 threads: 8 spark: type: spark method: http - schema: salesforce_source_integration_tests + schema: salesforce_source_integration_tests_1 host: "{{ env_var('CI_SPARK_DBT_HOST') }}" organization: "{{ env_var('CI_SPARK_DBT_ORGANIZATION') }}" token: "{{ env_var('CI_SPARK_DBT_TOKEN') }}" @@ -55,4 +29,30 @@ integration_tests: port: 443 connect_timeout: 60 connect_retries: 5 - threads: 4 \ No newline at end of file + threads: 4 + redshift: + type: redshift + host: "{{ env_var('CI_REDSHIFT_DBT_HOST') }}" + user: "{{ env_var('CI_REDSHIFT_DBT_USER') }}" + pass: "{{ env_var('CI_REDSHIFT_DBT_PASS') }}" + dbname: "{{ env_var('CI_REDSHIFT_DBT_DBNAME') }}" + port: 5439 + schema: salesforce_source_integration_tests_1 + threads: 8 + snowflake: + type: snowflake + account: "{{ env_var('CI_SNOWFLAKE_DBT_ACCOUNT') }}" + user: "{{ env_var('CI_SNOWFLAKE_DBT_USER') }}" + password: "{{ env_var('CI_SNOWFLAKE_DBT_PASS') }}" + role: "{{ env_var('CI_SNOWFLAKE_DBT_ROLE') }}" + database: "{{ env_var('CI_SNOWFLAKE_DBT_DATABASE') }}" + warehouse: "{{ env_var('CI_SNOWFLAKE_DBT_WAREHOUSE') }}" + schema: salesforce_source_integration_tests_1 + threads: 8 + bigquery: + type: bigquery + method: service-account + keyfile: "{{ env_var('GCLOUD_SERVICE_KEY_PATH') }}" + project: 'dbt-package-testing' + schema: salesforce_source_integration_tests_1 + threads: 8 \ No newline at end of file diff --git a/integration_tests/dbt_project.yml b/integration_tests/dbt_project.yml index 85b3866..7e2004f 100644 --- a/integration_tests/dbt_project.yml +++ b/integration_tests/dbt_project.yml @@ -1,5 +1,5 @@ name: 'salesforce_source_integration_tests' -version: '0.4.2' +version: '0.5.0' config-version: 2 @@ -7,18 +7,26 @@ profile: 'integration_tests' vars: salesforce_source: - account: "{{ ref('account_data') }}" - opportunity: "{{ ref('opportunity_data') }}" - user: "{{ ref('user_data') }}" - user_role: "{{ ref('user_role_data') }}" - salesforce_schema: salesforce_source_integration_tests + salesforce_account_identifier: "sf_account_data" + salesforce_opportunity_identifier: "sf_opportunity_data" + salesforce_user_identifier: "sf_user_data" + salesforce_user_role_identifier: "sf_user_role_data" + salesforce_contact_identifier: "sf_contact_data" + salesforce_lead_identifier: "sf_lead_data" + salesforce_task_identifier: "sf_task_data" + salesforce_event_identifier: "sf_event_data" + salesforce_product_2_identifier: "sf_product_2_data" + salesforce_order_identifier: "sf_order_data" + salesforce_opportunity_line_item_identifier: "sf_opportunity_line_item_data" + salesforce_schema: salesforce_source_integration_tests_1 seeds: salesforce_source_integration_tests: +quote_columns: "{{ true if target.type in ('redshift', 'postgres') else false }}" +column_types: _fivetran_synced: timestamp - account_data: + _fivetran_active: boolean + sf_account_data: +column_types: last_activity_date: timestamp last_referenced_date: timestamp @@ -28,7 +36,7 @@ seeds: billing_longitude: float shipping_latitude: float shipping_longitude: float - opportunity_data: + sf_opportunity_data: +column_types: close_date: timestamp created_date: timestamp @@ -37,7 +45,7 @@ seeds: last_viewed_date: timestamp amount: float probability: float - user_data: + sf_user_data: +column_types: last_login_date: timestamp last_referenced_date: timestamp @@ -45,6 +53,92 @@ seeds: offline_trial_expiration_date: timestamp latitude: float longitude: float + sf_user_data: + +column_types: + last_login_date: timestamp + last_referenced_date: timestamp + last_viewed_date: timestamp + offline_trial_expiration_date: timestamp + latitude: float + longitude: float + sf_contact_data: + +column_types: + birthdate: timestamp + created_date: timestamp + email_bounced_date: timestamp + last_activity_date: timestamp + last_curequest_date: timestamp + last_cuupdate_date: timestamp + last_modified_date: timestamp + last_referenced_date: timestamp + last_viewed_date: timestamp + system_modstamp: timestamp + is_deleted: boolean + sf_lead_data: + +column_types: + converted_date: timestamp + created_date: timestamp + email_bounced_date: timestamp + last_activity_date: timestamp + last_modified_date: timestamp + last_referenced_date: timestamp + last_viewed_date: timestamp + system_modstamp: timestamp + is_deleted: boolean + sf_task_data: + +column_types: + activity_date: timestamp + completed_date_time: timestamp + created_date: timestamp + last_modified_date: timestamp + recurrence_end_date_only: timestamp + recurrence_start_date_only: timestamp + reminder_date_time: timestamp + system_modstamp: timestamp + is_deleted: boolean + sf_event_data: + +column_types: + activity_date: timestamp + activity_date_time: timestamp + created_date: timestamp + end_date: timestamp + end_date_time: timestamp + last_modified_date : timestamp + recurrence_2_pattern_start_date : timestamp + recurrence_end_date_only: timestamp + recurrence_start_date_time: timestamp + reminder_date_time: timestamp + start_date_time: timestamp + system_modstamp: timestamp + is_deleted: boolean + sf_product_2_data: + +column_types: + created_date: timestamp + last_modified_date: timestamp + last_referenced_date: timestamp + last_viewed_date: timestamp + system_modstamp: timestamp + is_deleted: boolean + sf_order_data: + +column_types: + activated_date: timestamp + created_date: timestamp + effective_date: timestamp + end_date: timestamp + last_modified_date: timestamp + last_referenced_date: timestamp + last_viewed_date: timestamp + system_modstamp: timestamp + is_deleted: boolean + sf_opportunity_line_item_data: + +column_types: + created_date: timestamp + last_modified_date: timestamp + last_referenced_date: timestamp + last_viewed_date: timestamp + service_date: timestamp + system_modstamp: timestamp + is_deleted: boolean dispatch: - macro_namespace: dbt_utils diff --git a/integration_tests/seeds/opportunity_data.csv b/integration_tests/seeds/opportunity_data.csv deleted file mode 100644 index 7dc70da..0000000 --- a/integration_tests/seeds/opportunity_data.csv +++ /dev/null @@ -1,11 +0,0 @@ -_fivetran_synced,account_id,amount,campaign_id,close_date,created_date,description,expected_revenue,fiscal,fiscal_quarter,fiscal_year,forecast_category,forecast_category_name,has_open_activity,has_opportunity_line_item,has_overdue_task,id,is_closed,is_deleted,is_excluded_from_territory_2_filter,is_won,last_activity_date,last_referenced_date,last_viewed_date,lead_source,name,next_step,owner_id,pricebook_2_id,probability,record_type_id,stage_name,synced_quote_id,territory_2_id,type,_fivetran_active -2019-04-04 18:47:01,9CcfAt8qtZvCTwFvwOFLcg==,2412000.0,,2018-12-19 00:00:00,2018-12-19 19:51:13,,,JxJ3Au0JjyhOOUE/UvIeOw==,4,2018,A/SkeDD5c3ejUyEFFoUHHg==,A/SkeDD5c3ejUyEFFoUHHg==,false,true,false,006q000000HddohAAB,true,true,,true,,,,TDK+SgtPSM3Vk67zX9aeRA==,$1m deal,,rQhle3uwQbFgFmLTF1WByg==,lNUPfU1ue2nQimeN6QVNKQ==,100.0,3QOHd+Q7F28PJtnwztV09Q==,GavUFuuf4DrnQAoiRGlWpQ==,,,+Gkf6SQ2fhAONAiFelNKVw==,true -2019-04-04 18:47:01,wfQo3+JVfsNIdcz/mUkZkA==,,,2018-12-18 00:00:00,2018-12-18 21:21:17,,,JxJ3Au0JjyhOOUE/UvIeOw==,4,2018,A/SkeDD5c3ejUyEFFoUHHg==,A/SkeDD5c3ejUyEFFoUHHg==,false,false,false,006q000000HdPzpAAF,true,true,,true,,,,Fbu50LvyXo0peN4RaMdJ3A==,Testing Opp Close,,nqxS50kwRjtOYb9ZB4/PoQ==,,100.0,3QOHd+Q7F28PJtnwztV09Q==,GavUFuuf4DrnQAoiRGlWpQ==,,,+Gkf6SQ2fhAONAiFelNKVw==,true -2018-12-18 18:20:30.829,wIXkC/s93lDAT+HVkwv6+A==,,,2018-12-18 00:00:00,2018-12-10 17:03:22,,,JxJ3Au0JjyhOOUE/UvIeOw==,4,2018,A/SkeDD5c3ejUyEFFoUHHg==,A/SkeDD5c3ejUyEFFoUHHg==,false,false,false,006q000000Hbmd1AAB,true,true,,true,,,,TDK+SgtPSM3Vk67zX9aeRA==,Test,,dVDxbGz10nJ2mKU213GZRQ==,,100.0,14mxIBMk0YX2Gz0r1Ktsuw==,GavUFuuf4DrnQAoiRGlWpQ==,,,+Gkf6SQ2fhAONAiFelNKVw==,true -2019-04-04 18:47:01,78HpxISq4/eSw+ycDPqSwA==,,,2018-12-13 00:00:00,2018-12-13 18:02:55,,,JxJ3Au0JjyhOOUE/UvIeOw==,4,2018,A/SkeDD5c3ejUyEFFoUHHg==,A/SkeDD5c3ejUyEFFoUHHg==,false,false,false,006q000000HcZXrAAN,true,true,,true,,,,pOz8cFdDlJkM8XvYPfSZ9w==,lu test 3,,9B1r0vK1wAVGaERpMleKGg==,,100.0,14mxIBMk0YX2Gz0r1Ktsuw==,GavUFuuf4DrnQAoiRGlWpQ==,,,+Gkf6SQ2fhAONAiFelNKVw==,true -2019-04-04 18:47:01,wfQo3+JVfsNIdcz/mUkZkA==,,,2018-12-07 00:00:00,2018-12-19 20:22:58,,,JxJ3Au0JjyhOOUE/UvIeOw==,4,2018,A/SkeDD5c3ejUyEFFoUHHg==,A/SkeDD5c3ejUyEFFoUHHg==,false,false,false,006q000000HddueAAB,true,true,,true,,,,dSJC2EuRkC62f+UuBPQeVg==,Chewbaca,,nqxS50kwRjtOYb9ZB4/PoQ==,,100.0,3QOHd+Q7F28PJtnwztV09Q==,GavUFuuf4DrnQAoiRGlWpQ==,,,dSJC2EuRkC62f+UuBPQeVg==,true -2019-04-04 18:47:01,TK5MTSsiOYoDQoJiSbkugA==,20000.0,,2018-11-21 00:00:00,2018-11-14 19:12:53,,,JxJ3Au0JjyhOOUE/UvIeOw==,4,2018,AloDHjNI+wntE4Eetriz+w==,AloDHjNI+wntE4Eetriz+w==,false,false,false,006q000000HK8jdAAD,true,true,,false,,,,MfuqnemFQBY2RwqM7YBkKA==,Evergreen Test,,QEaGoY7B8nGfro2vhOCMvA==,,0.0,14mxIBMk0YX2Gz0r1Ktsuw==,tXi3M8u3iPxq0ggxTSxMKw==,,,+Gkf6SQ2fhAONAiFelNKVw==,true -2019-04-04 18:47:01,78HpxISq4/eSw+ycDPqSwA==,,,2018-12-13 00:00:00,2018-12-13 18:00:11,,,JxJ3Au0JjyhOOUE/UvIeOw==,4,2018,AloDHjNI+wntE4Eetriz+w==,AloDHjNI+wntE4Eetriz+w==,false,false,false,006q000000HcZXXAA3,true,true,,false,,,,UN2fttk8geFc7Db/xJzQ+A==,lu test 1,,9B1r0vK1wAVGaERpMleKGg==,,0.0,14mxIBMk0YX2Gz0r1Ktsuw==,tXi3M8u3iPxq0ggxTSxMKw==,,,+Gkf6SQ2fhAONAiFelNKVw==,false -2019-04-04 18:47:01,tZX+Z0iWzZHHjNvRnCJzwg==,1.0,,2018-10-31 00:00:00,2018-10-31 17:43:42,,,JxJ3Au0JjyhOOUE/UvIeOw==,4,2018,AloDHjNI+wntE4Eetriz+w==,AloDHjNI+wntE4Eetriz+w==,false,false,false,006q000000GoP76AAF,true,true,,false,,,,,Blue Test -,,TLZtnkcZltX8lijWYSQqRg==,,0.0,14mxIBMk0YX2Gz0r1Ktsuw==,tXi3M8u3iPxq0ggxTSxMKw==,,,+Gkf6SQ2fhAONAiFelNKVw==,true -2019-04-04 18:47:01,78HpxISq4/eSw+ycDPqSwA==,,,2018-12-13 00:00:00,2018-12-13 18:01:22,,,JxJ3Au0JjyhOOUE/UvIeOw==,4,2018,AloDHjNI+wntE4Eetriz+w==,AloDHjNI+wntE4Eetriz+w==,false,false,false,006q000000HcZXcAAN,true,true,,false,,,,pOz8cFdDlJkM8XvYPfSZ9w==,lu test 2,,AwxR76rxgr77EfSnTHH57Q==,,0.0,14mxIBMk0YX2Gz0r1Ktsuw==,tXi3M8u3iPxq0ggxTSxMKw==,,,9Q0PuStPWLYgxG/8kpvo5g==,true -2019-04-04 18:47:01,wIXkC/s93lDAT+HVkwv6+A==,21000.0,,2018-12-19 00:00:00,2018-12-18 17:56:05,,,JxJ3Au0JjyhOOUE/UvIeOw==,4,2018,rq6uxRtOa4gSLxCtlqjecg==,rq6uxRtOa4gSLxCtlqjecg==,false,true,false,006q000000HdOhuAAF,false,true,,false,,,,Fbu50LvyXo0peN4RaMdJ3A==,Testing Order from Process,,dVDxbGz10nJ2mKU213GZRQ==,5x2qfGToAOo3bmSNM8fPjg==,65.0,3QOHd+Q7F28PJtnwztV09Q==,9RN9J3tlxr89gDctReax5w==,,,+Gkf6SQ2fhAONAiFelNKVw==,false diff --git a/integration_tests/seeds/account_data.csv b/integration_tests/seeds/sf_account_data.csv similarity index 100% rename from integration_tests/seeds/account_data.csv rename to integration_tests/seeds/sf_account_data.csv diff --git a/integration_tests/seeds/sf_contact_data.csv b/integration_tests/seeds/sf_contact_data.csv new file mode 100644 index 0000000..c7aa28b --- /dev/null +++ b/integration_tests/seeds/sf_contact_data.csv @@ -0,0 +1,5 @@ +id,_fivetran_synced,account_id,cbit_clearbit_c,cbit_clearbit_ready_c,created_by_id,created_date,department,email,email_bounced_date,email_bounced_reason,fax,first_name,is_deleted,is_email_bounced,jigsaw_contact_id,last_activity_date,last_curequest_date,last_cuupdate_date,last_modified_by_id,last_modified_date,last_name,last_referenced_date,last_viewed_date,mailing_city,mailing_country,mailing_country_code,mailing_geocode_accuracy,mailing_latitude,mailing_longitude,mailing_postal_code,mailing_state,mailing_state_code,mailing_street,master_record_id,mc_4_sf_mc_subscriber_c,mobile_phone,name,owner_id,phone,photo_url,reports_to_id,salutation,system_modstamp,title,email_bounced_c,email_quality_unknown_c,gclid_c,referral_account_c,referral_contact_c,has_opted_out_of_email,act_on_lead_score_c,cbit_created_by_clearbit_c,fivetran_user_id_c,no_longer_at_company_c,pi_campaign_c,pi_comments_c,pi_conversion_date_c,pi_conversion_object_name_c,pi_conversion_object_type_c,pi_created_date_c,pi_first_activity_c,pi_first_search_term_c,pi_first_search_type_c,pi_first_touch_url_c,pi_grade_c,pi_last_activity_c,pi_needs_score_synced_c,pi_notes_c,pi_pardot_hard_bounced_c,pi_pardot_last_scored_at_c,pi_score_c,pi_url_c,pi_utm_campaign_c,pi_utm_content_c,pi_utm_medium_c,pi_utm_source_c,pi_utm_term_c,lead_source,contact_status_c,region_c,competitor_c,bt_stripe_gender_c,bt_stripe_ssn_last_4_encrypted_c,bt_stripe_personal_id_number_c,bt_stripe_personal_id_number_encrypted_c,bt_stripe_maiden_name_c,bt_stripe_languages_c,bt_stripe_default_payment_method_c,bt_stripe_ssn_last_4_c,bt_stripe_personal_id_type_c,bt_stripe_default_payment_gateway_c,bt_stripe_level_c,lean_data_routing_action_c,lean_data_matched_buyer_persona_c,lean_data_ld_segment_c,lean_data_tag_c,lean_data_modified_score_c,do_not_route_lead_c,technical_contact_c,allbound_id_c,notes_c,netsuite_conn_sync_in_progress_c,netsuite_conn_celigo_update_c,netsuite_conn_net_suite_id_c,netsuite_conn_net_suite_sync_err_c,netsuite_conn_push_to_net_suite_c,netsuite_conn_pushed_from_opportunity_c,description,lid_linked_in_company_id_c,lid_linked_in_member_token_c,is_eu_resident_c,do_not_call,sales_loft_1_most_recent_cadence_next_step_due_date_c,sales_loft_1_most_recent_last_completed_step_c,sales_loft_1_most_recent_cadence_name_c,source_detail_c,utm_source_c,utm_content_c,utm_term_c,utm_medium_c,utm_campaign_c,network_c,matchtype_c,device_c,creative_c,adgroupid_c,keyword_c,campaignid_c,partner_rep_email_c,partner_rep_name_c,contact_type_c,old_lead_source_c,old_lead_source_detail_c,contact_stage_c,original_utm_campaign_c,original_utm_content_c,original_utm_medium_c,original_utm_source_c,original_utm_term_c,es_app_escreated_timestamp_c,es_app_esecid_c,es_app_esenriched_c,es_app_esenriched_timestamp_c,es_app_esintent_aggregate_score_c,es_app_esintent_timestamp_c,es_app_esintent_topics_c,es_app_esoverall_fit_score_c,es_app_essource_c,individual_id,marketing_process_c,automation_tracking_c,user_gems_has_changed_job_c,email_opt_in_explicit_c,email_opt_in_implicit_c,gdpr_opt_in_explicit_c,user_gems_is_a_user_gem_c,user_gems_past_account_c,user_gems_past_company_c,user_gems_past_contact_c,user_gems_past_title_c,partner_contact_c,promotion_id_c,referral_exists_c,referral_first_name_c,referral_last_name_c,mkto_71_contact_acquisition_date_c,mkto_71_contact_acquisition_program_c,mkto_71_contact_acquisition_program_id_c,mkto_71_contact_inferred_city_c,mkto_71_contact_inferred_company_c,mkto_71_contact_inferred_country_c,mkto_71_contact_inferred_metropolitan_a_c,mkto_71_contact_inferred_phone_area_cod_c,mkto_71_contact_inferred_postal_code_c,mkto_71_contact_inferred_state_region_c,mkto_71_contact_lead_score_c,mkto_71_contact_original_referrer_c,mkto_71_contact_original_search_engine_c,mkto_71_contact_original_search_phrase_c,mkto_71_contact_original_source_info_c,mkto_71_contact_original_source_type_c,mkto_si_hide_date_c,mkto_si_last_interesting_moment_date_c,mkto_si_last_interesting_moment_desc_c,mkto_si_last_interesting_moment_source_c,mkto_si_last_interesting_moment_type_c,mkto_si_mkto_lead_score_c,mkto_si_priority_c,mkto_si_relative_score_value_c,mkto_si_urgency_value_c,cloudingo_agent_ces_c,cloudingo_agent_mar_c,cloudingo_agent_mas_c,cloudingo_agent_mav_c,cloudingo_agent_mrdi_c,cloudingo_agent_mtz_c,cloudingo_agent_oar_c,cloudingo_agent_oas_c,cloudingo_agent_oav_c,cloudingo_agent_ordi_c,cloudingo_agent_otz_c,do_not_sync_marketo_c,phone_extension_c,job_function_c,job_level_c,direct_office_c,city_c,country_c,state_c,secondary_email_c,es_seniority_c,source_last_lead_source_c,source_last_lead_source_category_c,source_last_lead_source_detail_c,drift_cql_c,hot_contact_c,behavioral_score_c,unique_email_c,is_emea_event_routing_c,csi_code_c,clearbit_role_c,clearbit_seniority_c,clearbit_sub_role_c,rh_2_currency_test_c,rh_2_describe_c,rh_2_integer_test_c,created_by_role_c,demographic_score_c,country_code_c,state_code_c,attended_event_c,zoominfo_technologies_c,mql_date_c,user_gems_user_gems_id_c,dozisf_zoom_info_company_id_c,dozisf_zoom_info_first_updated_c,dozisf_zoom_info_id_c,dozisf_zoom_info_last_updated_c,lean_data_manual_route_trigger_c,first_mql_date_c,active_relationship_c,clarus_date_c,clarus_editor_c,clarus_notes_c,clarus_project_c,clarus_status_c,historical_contact_status_c,fivetran_account_association_date_c,fivetran_account_user_role_s_c,mql_reason_c,attempting_contact_date_time_c,linked_in_url_c,trial_contact_start_date_c,contact_holdover_c,bill_to_contact_hidden_c,enrichment_request_c,meta_data_create_date_c,primary_se_c,unqualified_reason_c,opp_handoff_ae_c,marketing_connector_interest_c,recent_marketing_campaign_status_c,salesloft_cadence_trigger_c,last_ae_activity_owner_c,last_bdr_activity_owner_c,last_manual_ae_activity_date_c,last_manual_bdr_activity_date_c,leandata_contact_owner_override_c,potential_fivetran_use_case_c,lean_data_router_completion_date_time_c,partner_territory_c,partner_company_c,bizible_2_ad_campaign_name_ft_c,bizible_2_ad_campaign_name_lc_c,bizible_2_bizible_id_c,bizible_2_landing_page_ft_c,bizible_2_landing_page_lc_c,bizible_2_marketing_channel_ft_c,bizible_2_marketing_channel_lc_c,bizible_2_touchpoint_date_ft_c,bizible_2_touchpoint_date_lc_c,bizible_2_touchpoint_source_ft_c,bizible_2_touchpoint_source_lc_c,sales_email_opt_out_c,sales_email_opt_out_date_time_c,celigo_sfnsio_net_suite_id_c,celigo_sfnsio_net_suite_record_c,celigo_sfnsio_net_suite_sync_error_c,celigo_sfnsio_skip_export_to_net_suite_c,celigo_sfnsio_test_mode_record_c,ironclad_workflow_c,last_sales_activity_date_time_c,user_activity_logged_by_c,first_activity_after_mql_date_c,last_sdr_activity_owner_c,last_sdr_activity_date_c,beta_connector_interest_c,first_manual_activity_after_mql_date_c,user_gems_ug_past_infos_c,user_gems_ug_current_infos_c,user_gems_ug_created_by_ug_c,free_trial_email_confirmed_date_c,routed_from_manual_bdr_ae_activity_c,dnboptimizer_dn_bcontact_record_c,i_sell_avention_id_c,persona_c,last_marketing_interesting_moment_date_c,verified_c,salesloft_owner_c,salesloft_owner_sf_c,email_opt_out_date_time_c,pbf_startup_primary_role_c,pbf_startup_certify_eligibility_c,engagio_intent_minutes_last_30_days_c,engagio_engagement_minutes_last_3_months_c,engagio_engagement_minutes_last_7_days_c,engagio_first_engagement_date_c,engagio_department_c,engagio_role_c,mql_date_changed_c,first_activity_after_mql_changed_c,birthdate,legacy_hvr_id_c,has_opted_out_of_fax,other_latitude,username_c,assistant_name,created_at_c,partner_contact_deprecate_c,other_street,other_state,home_phone,other_city,company_c,opportunity_c,hvr_update_c,other_phone,other_geocode_accuracy,other_postal_code,other_country,assistant_phone,jigsaw,avatar_c,other_longitude,lean_data_status_info_c,analytics_id_c,dnb_primary_address_postal_code_c,dnb_contact_phone_c,dnb_email_deliverability_score_c,dnb_job_title_c,dnb_email_c,dnb_primary_address_city_c,dnb_phone_accuracy_score_c,dnb_primary_address_state_province_c,dnb_primary_address_state_province_abbre_c,dnb_primary_address_country_region_code_c,email_opt_in_double_c,phone_number_catch_all_c,contact_owners_manager_stamped_c,fivetran_account_id_c,contacts_domain_exists_c,utm_id_c,self_service_routing_c,no_geo_data_c,to_be_deleted_salesloft_backfill_c,do_not_sync_reason_marketo_c,_fivetran_active +0033700000JmrFPAA,2017-08-24 12:51:56,,,,,2019-11-11 17:23:34,,,,,,,,,,,,,,2019-11-11 17:23:34,,,,,,,,,,,,,,,,,,,,,,,2019-11-11 17:23:34,,,,,,,,,,,,,,,,,2019-11-11 17:23:34,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, +0031G00000q9jPQAQ,2018-11-12 19:53:00,0011G00000eM9wvQAC,,FALSE,00537000004jeWMAAY,2019-11-11 17:23:34,,,,,,x,,FALSE,,,,,0051G000005MreQAC,2019-11-11 17:23:34,G,,,,Unied Saes,US,,,,,,,,,,,Janet Yellen,0051G000005MreQAC,(555) 555-5555,/services/images/phoo/0031G00000q9jPQAQ,,,2019-11-11 17:23:34,Daa Science Direcor,FALSE,FALSE,,,,FALSE,,FALSE,,FALSE,,,,,,2019-11-11 17:23:34,,,,,,,FALSE,,FALSE,,,,,,,,,oominfo,Aemping Conac,,,,,,,,,,,,,,convered - new accoun,,,,,FALSE,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, +0031G00000rfAvuQAE,2019-04-04 17:44:47,0011G00000f8NwQAU,,FALSE,00537000004jeWMAAY,2019-11-11 17:23:34,,,,,,x,,FALSE,,,,,0051G000005MreQAC,2019-11-11 17:23:34,G,,,,Unied Saes,US,,,,,,,,,,,Jerome Powell,0051G000005MreQAC,,/services/images/phoo/0031G00000rfAvuQAE,,,2019-11-11 17:23:34,"Direcor, Business Insighs & Sraegy",FALSE,FALSE,,,,FALSE,,FALSE,,FALSE,,,,,,2019-11-11 17:23:34,,,,,,,FALSE,,FALSE,,,,,,,,,Vendor Lis,Aemping Conac,,,,,,,,,,,,,,convered,,,,,FALSE,,,,FALSE,FALSE,,,FALSE,FALSE,"Buy our things.",,,FALSE,FALSE,,,,ryProspec,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, +0031G00000qAfq1QAC,2019-01-03 19:53:01,0011G00000eNyiXQAS,a2G1G000000pJs8UAE,,00537000004jeWMAAY,2019-11-11 17:23:34,,hi@google.com,,,,x,,FALSE,,,,,0051G000005MreQAC,2019-11-11 17:23:34,G,,,Chicago,Unied Saes,US,,,,55555,Illinois,IL,123 Ave,,,,Jerome,0051G000005MreQAC,(555) 555-5555,/services/images/phoo/0031G00000qAfq1QAC,,,2019-11-11 17:23:34,Markeing Direcor,FALSE,FALSE,,,,FALSE,,FALSE,,FALSE,Salesforce Creaed,,,,,2019-11-11 17:23:34,,,,,,,FALSE,,FALSE,,,hp://pi.pardo.com/prospec/read?id=396093715,,,,,,oominfo,Aemping Conac,,,,,,,,,,,,,,convered,,,,,FALSE,,,,FALSE,FALSE,,,FALSE,FALSE,"Buy more.",,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, \ No newline at end of file diff --git a/integration_tests/seeds/sf_event_data.csv b/integration_tests/seeds/sf_event_data.csv new file mode 100644 index 0000000..e2e3498 --- /dev/null +++ b/integration_tests/seeds/sf_event_data.csv @@ -0,0 +1,11 @@ +id,_fivetran_synced,account_id,activity_date,activity_date_time,created_by_id,created_date,description,duration_in_minutes,end_date_time,event_subtype,group_event_type,invitee_uuid_c,is_child,is_deleted,is_group_event,is_private,is_recurrence,is_reminder_set,last_modified_by_id,last_modified_date,location,no_show_c,owner_id,recurrence_activity_id,recurrence_day_of_month,recurrence_day_of_week_mask,recurrence_end_date_only,recurrence_instance,recurrence_interval,recurrence_month_of_year,recurrence_start_date_time,recurrence_time_zone_sid_key,recurrence_type,referral_account_c,referral_contact_c,reminder_date_time,show_as,start_date_time,subject,system_modstamp,type,what_count,what_id,who_count,who_id,first_meeting_held_c,associated_sdr_c,first_meeting_c,call_recording_c,affectlayer_chorus_call_id_c,affectlayer_affect_layer_call_id_c,last_rep_activity_date_c,lid_url_c,lid_date_sent_c,sales_loft_step_id_c,sales_loft_step_name_c,sales_loft_step_type_c,sales_loft_email_template_id_c,sales_loft_external_identifier_c,sales_loft_cadence_id_c,sales_loft_clicked_count_c,sales_loft_cadence_name_c,sales_loft_reply_count_c,call_disposition_c,sales_loft_email_template_title_c,sales_loft_step_day_new_c,call_disposition_2_c,sales_loft_viewed_count_c,sales_loft_1_sales_loft_step_day_c,sales_loft_1_sales_loft_clicked_count_c,sales_loft_1_sales_loft_view_count_c,sales_loft_1_call_disposition_c,sales_loft_1_sales_loft_replies_count_c,sales_loft_1_sales_loft_cadence_name_c,sales_loft_1_call_sentiment_c,sales_loft_1_sales_loft_email_template_title_c,is_recurrence_2,is_recurrence_2_exception,is_recurrence_2_exclusion,recurrence_2_pattern_start_date,recurrence_2_pattern_text,recurrence_2_pattern_time_zone,recurrence_2_pattern_version,co_selling_activity_c,is_a_co_sell_activity_c,partner_contact_c,description_c,campaign_c,event_name_c,partner_account_c,topic_c,attendance_number_c,partner_activity_type_c,how_did_you_bring_value_or_create_trust_c,proof_of_referral_c,how_did_you_bring_value_or_earn_trust_c,duration_in_minutes_c,vidyard_c,collections_hold_c,execute_collections_plan_activity_c,expected_payment_date_c,end_date,opportunity_c,meeting_type_c,meeting_name_c,bizible_2_bizible_id_c,bizible_2_bizible_touchpoint_date_c,assigned_to_role_c,assigned_to_name_c,legacy_hvr_id_c,is_archived,_fivetran_active +00U1G00000DEaypUAD,2019-11-11 17:23:34,0011G00000eLwuWQAS,2019-11-11 17:23:34,2019-11-11 17:23:34,0051G000007Ez4XQAS,2019-11-11 17:23:34,description,15,2019-11-11 17:23:34,Event,1,,FALSE,FALSE,TRUE,FALSE,FALSE,FALSE,0051G000007Ez4XQAS,2019-11-11 17:23:34,,FALSE,0051G000007Ez4XQAS,,,,,,,,,,,,,,Busy,2019-11-11 17:23:34,subject,2019-11-11 17:23:34,Call,1,0011G00000eLwuWQAS,1,0031G00001Pji7ZQAR,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,FALSE,FALSE,FALSE,,,,,,,,,,,,,,,,,,,FALSE,FALSE,FALSE,,2019-11-11 17:23:34,,,,,,,,,FALSE, +00U1G00000DEaxXUAT,2019-11-11 17:23:34,0011G00000gXz9HQAS,2019-11-11 17:23:34,2019-11-11 17:23:34,0051G000007EpSPQA0,2019-11-11 17:23:34,description,30,2019-11-11 17:23:34,Event,1,,FALSE,FALSE,TRUE,FALSE,FALSE,FALSE,0051G000007EpSPQA0,2019-11-11 17:23:34,,FALSE,0051G000007EpSPQA0,,,,,,,,,,,,,,Busy,2019-11-11 17:23:34,subject,2019-11-11 17:23:34,Call,0,,1,0031G00000xRXHBQA4,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,FALSE,FALSE,FALSE,,,,,,,,,,,,,,,,,,,FALSE,FALSE,FALSE,,2019-11-11 17:23:34,,,,,,,,,FALSE, +00U1G00000DEQNmUAP,2019-11-11 17:23:34,0011G00000f8MOkQAM,2019-11-11 17:23:34,2019-11-11 17:23:34,0051G0000060zsHQAQ,2019-11-11 17:23:34,description,30,2019-11-11 17:23:34,Event,,,FALSE,FALSE,FALSE,FALSE,FALSE,FALSE,0051G0000060zsHQAQ,2019-11-11 17:23:34,,FALSE,0051G000007F8lCQAS,,,,,,,,,,,,,,Busy,2019-11-11 17:23:34,subject,2019-11-11 17:23:34,Meeting,0,,1,0031G00001QY4G5QAL,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,FALSE,FALSE,FALSE,,,,,,,,,,,,,,,,,,,FALSE,FALSE,FALSE,,2019-11-11 17:23:34,,,,,,,,,FALSE, +00U1G00000DEQP2UAP,2019-11-11 17:23:34,0011G00000vVDWsQAO,2019-11-11 17:23:34,2019-11-11 17:23:34,0051G0000060zsHQAQ,2019-11-11 17:23:34,description,30,2019-11-11 17:23:34,Event,,,FALSE,FALSE,FALSE,FALSE,FALSE,FALSE,0051G0000060zsHQAQ,2019-11-11 17:23:34,,FALSE,0051G000007F8lCQAS,,,,,,,,,,,,,,Busy,2019-11-11 17:23:34,subject,2019-11-11 17:23:34,Meeting,0,,1,0031G00001QXl7WQAT,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,FALSE,FALSE,FALSE,,,,,,,,,,,,,,,,,,,FALSE,FALSE,FALSE,,2019-11-11 17:23:34,,,,,,,,,FALSE, +00U1G00000DEQYxUAP,2019-11-11 17:23:34,0011G00000vVSANQA4,2019-11-11 17:23:34,2019-11-11 17:23:34,0051G000007F94iQAC,2019-11-11 17:23:34,description,15,2019-11-11 17:23:34,Event,1,,FALSE,FALSE,TRUE,FALSE,FALSE,FALSE,0051G000007F94iQAC,2019-11-11 17:23:34,,FALSE,0051G000007F94iQAC,,,,,,,,,,,,,,Busy,2019-11-11 17:23:34,subject,2019-11-11 17:23:34,Call,1,0011G00000vVSANQA4,1,0031G00001QY6c0QAD,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,FALSE,FALSE,FALSE,,,,,,,,,,,,,,,,,,,FALSE,FALSE,FALSE,,2019-11-11 17:23:34,,,,,,,,,FALSE, +00U1G00000DEQYEUA5,2019-11-11 17:23:34,0011G00000vVS79QAG,2019-11-11 17:23:34,2019-11-11 17:23:34,0051G000007F94iQAC,2019-11-11 17:23:34,description,15,2019-11-11 17:23:34,Event,1,,FALSE,FALSE,TRUE,FALSE,FALSE,FALSE,0051G000007F94iQAC,2019-11-11 17:23:34,,FALSE,0051G000007F94iQAC,,,,,,,,,,,,,,Busy,2019-11-11 17:23:34,subject,2019-11-11 17:23:34,Call,1,0011G00000vVS79QAG,1,0031G00001QY5TTQA1,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,FALSE,FALSE,FALSE,,,,,,,,,,,,,,,,,,,FALSE,FALSE,FALSE,,2019-11-11 17:23:34,,,,,,,,,FALSE, +00U1G00000DEQL7UAP,2019-11-11 17:23:34,0013700000JwwRJAAZ,2019-11-11 17:23:34,2019-11-11 17:23:34,0051G0000060zsHQAQ,2019-11-11 17:23:34,description,30,2019-11-11 17:23:34,Event,,,FALSE,FALSE,FALSE,FALSE,FALSE,FALSE,0051G0000060zsHQAQ,2019-11-11 17:23:34,,FALSE,0051G000007F8lCQAS,,,,,,,,,,,,,,Busy,2019-11-11 17:23:34,subject,2019-11-11 17:23:34,Meeting,0,,1,0031G00001QY3kmQAD,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,FALSE,FALSE,FALSE,,,,,,,,,,,,,,,,,,,FALSE,FALSE,FALSE,,2019-11-11 17:23:34,,,,,,,,,FALSE, +00U1G00000DEQM0UAP,2019-11-11 17:23:34,0011G00000gX8tDQAS,2019-11-11 17:23:34,2019-11-11 17:23:34,0051G0000060zsHQAQ,2019-11-11 17:23:34,description,15,2019-11-11 17:23:34,Event,,,FALSE,FALSE,FALSE,FALSE,FALSE,FALSE,0051G000007F2JGQA0,2019-11-11 17:23:34,,FALSE,0051G000007F94iQAC,,,,,,,,,,,,,,Busy,2019-11-11 17:23:34,subject,2019-11-11 17:23:34,Meeting,0,,1,0031G00001QXdxXQAT,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,FALSE,FALSE,FALSE,,,,,,,,,,,,,,,,,,,FALSE,FALSE,FALSE,,2019-11-11 17:23:34,,,,,,,,,FALSE, +00U1G00000DEQLvUAP,2019-11-11 17:23:34,0011G00000vVPbgQAG,2019-11-11 17:23:34,2019-11-11 17:23:34,0051G000007F94iQAC,2019-11-11 17:23:34,description,15,2019-11-11 17:23:34,Event,1,,FALSE,FALSE,TRUE,FALSE,FALSE,FALSE,0051G000007F94iQAC,2019-11-11 17:23:34,,FALSE,0051G000007F94iQAC,,,,,,,,,,,,,,Busy,2019-11-11 17:23:34,subject,2019-11-11 17:23:34,Call,1,0011G00000vVPbgQAG,1,0031G00001QXbgEQAT,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,FALSE,FALSE,FALSE,,,,,,,,,,,,,,,,,,,FALSE,FALSE,FALSE,,2019-11-11 17:23:34,,,,,,,,,FALSE, +00U1G00000DEQMtUAP,2019-11-11 17:23:34,0011G00000vVPhAQAW,2019-11-11 17:23:34,2019-11-11 17:23:34,0051G000007F94iQAC,2019-11-11 17:23:34,description,15,2019-11-11 17:23:34,Event,1,,FALSE,FALSE,TRUE,FALSE,FALSE,FALSE,0051G000007F94iQAC,2019-11-11 17:23:34,,FALSE,0051G000007F94iQAC,,,,,,,,,,,,,,Busy,2019-11-11 17:23:34,subject,2019-11-11 17:23:34,Call,1,0011G00000vVPhAQAW,1,0031G00001QXeBJQA1,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,FALSE,FALSE,FALSE,,,,,,,,,,,,,,,,,,,FALSE,FALSE,FALSE,,2019-11-11 17:23:34,,,,,,,,,FALSE, \ No newline at end of file diff --git a/integration_tests/seeds/sf_lead_data.csv b/integration_tests/seeds/sf_lead_data.csv new file mode 100644 index 0000000..c7ea011 --- /dev/null +++ b/integration_tests/seeds/sf_lead_data.csv @@ -0,0 +1,2 @@ +country,email_bounced_reason,email_bounced_date,owner_id,secondary_email_c,lead_source,converted_date,last_modified_date,master_record_id,last_modified_by_id,system_modstamp,geocode_accuracy,converted_contact_id,up_region_c,id,photo_url,state,longitude,last_referenced_date,up_district_c,last_activity_date,country_code,phone,mc_4_sf_mc_subscriber_c,name,jigsaw_contact_id,lead_source_detail_c,created_by_id,salutation,is_converted,state_code,is_unread_by_owner,status,city,latitude,cbit_clearbit_c,industry,title,_fivetran_synced,last_viewed_date,converted_opportunity_id,is_deleted,street,company,first_name,email,website,last_name,number_of_employees,up_territory_c,created_date,gclid_c,active_in_sequence_c,postal_code,cbit_clearbit_ready_c,has_opted_out_of_email,converted_account_id,mobile_phone,calendly_created_c,account_c,all_connectors_c,all_data_warehouses_c,bi_tools_c,competitors_c,annual_revenue,connectors_products_c,contact_c,data_warehouse_products_c,notes_c,timeframe_c,account_all_products_c,account_bi_tools_c,account_data_warehouses_c,opportunity_competitors_c,opportunity_products_c,description,referral_account_c,referral_contact_c,volume_in_millions_c,feature_requests_c,lead_number_c,demo_scheduled_by_calenderly_c,to_delete_c,bounced_email_c,email_quality_c,email_quality_catchall_c,old_lead_source_c,email_bounced_c,old_lead_source_detail_c,utm_medium_c,utm_source_c,utm_campaign_c,utm_content_c,utm_term_c,act_on_lead_score_c,cbit_created_by_clearbit_c,fivetran_user_id_c,geo_state_acton_c,actoncountry_c,actoncity_c,actoncountrycode_c,actonpostalcode_c,actonreferrer_c,actonstate_c,geo_city_c,geo_country_c,geo_country_code_c,geo_postal_code_c,geo_state_c,company_type_c,pi_campaign_c,pi_comments_c,pi_conversion_date_c,pi_conversion_object_name_c,pi_conversion_object_type_c,pi_created_date_c,pi_first_activity_c,pi_first_search_term_c,pi_first_search_type_c,pi_first_touch_url_c,pi_grade_c,pi_last_activity_c,pi_needs_score_synced_c,pi_notes_c,pi_pardot_hard_bounced_c,pi_pardot_last_scored_at_c,pi_score_c,pi_url_c,pi_utm_campaign_c,pi_utm_content_c,pi_utm_medium_c,pi_utm_source_c,pi_utm_term_c,fax,region_c,competitor_c,source_detail_c,fivetran_account_stage_c,fivetran_account_id_c,lean_data_router_status_c,lean_data_matched_lead_c,lean_data_routing_action_c,lean_data_search_index_c,lean_data_reporting_matched_account_c,lean_data_reporting_timestamp_c,lean_data_ld_segment_c,lean_data_marketing_sys_created_date_c,lean_data_matched_account_c,lean_data_a_2_b_account_c,lean_data_search_c,lean_data_routing_status_c,lean_data_a_2_b_group_c,lean_data_matched_buyer_persona_c,lean_data_tag_c,lean_data_status_info_c,lean_data_modified_score_c,do_not_route_lead_c,partner_type_c,allbound_id_c,lid_linked_in_company_id_c,lid_linked_in_member_token_c,lean_data_re_route_c,sales_loft_1_most_recent_cadence_next_step_due_date_c,sales_loft_1_most_recent_last_completed_step_c,sales_loft_1_most_recent_cadence_name_c,network_c,matchtype_c,device_c,creative_c,adgroupid_c,keyword_c,campaignid_c,partner_rep_email_c,partner_rep_name_c,lead_type_c,contact_stage_c,original_utm_campaign_c,original_utm_content_c,original_utm_medium_c,original_utm_source_c,original_utm_term_c,es_app_esalexa_rank_c,es_app_esaudience_names_c,es_app_escity_c,es_app_escompany_phone_c,es_app_escountry_c,es_app_escreated_timestamp_c,es_app_esecid_c,es_app_esemployees_c,es_app_esenriched_c,es_app_esenriched_timestamp_c,es_app_esfacebook_c,es_app_esindustry_c,es_app_esintent_aggregate_score_c,es_app_esintent_timestamp_c,es_app_esintent_topics_c,es_app_eskeywords_c,es_app_eslinked_in_c,es_app_esoverall_fit_score_c,es_app_esrevenue_c,es_app_essource_c,es_app_esstate_c,es_app_esstreet_c,es_app_estechnologies_c,es_app_estwitter_c,es_app_eszipcode_c,marketing_prospect_routing_rules_c,individual_id,marketing_process_c,automation_tracking_c,user_gems_has_changed_job_c,user_gems_linked_in_c,email_opt_in_c,email_opt_in_explicit_c,email_opt_in_implicit_c,gdpr_opt_in_explicit_c,user_gems_is_a_user_gem_c,user_gems_past_account_c,user_gems_past_company_c,user_gems_past_contact_c,user_gems_past_title_c,promotion_id_c,previous_customer_c,referral_contact_email_c,referral_firstname_c,referral_last_name_c,mkto_71_lead_score_c,mkto_71_acquisition_date_c,mkto_71_acquisition_program_id_c,mkto_acquisition_program_c,mkto_71_inferred_city_c,mkto_71_inferred_company_c,mkto_71_inferred_country_c,mkto_71_inferred_metropolitan_area_c,mkto_71_inferred_phone_area_code_c,mkto_71_inferred_postal_code_c,mkto_71_inferred_state_region_c,mkto_71_original_referrer_c,mkto_71_original_search_engine_c,mkto_71_original_search_phrase_c,mkto_71_original_source_info_c,mkto_71_original_source_type_c,mkto_si_hide_date_c,mkto_si_last_interesting_moment_date_c,mkto_si_last_interesting_moment_desc_c,mkto_si_last_interesting_moment_source_c,mkto_si_last_interesting_moment_type_c,mkto_si_msicontact_id_c,mkto_si_priority_c,mkto_si_relative_score_value_c,mkto_si_urgency_value_c,cloudingo_agent_ar_c,cloudingo_agent_ardi_c,cloudingo_agent_as_c,cloudingo_agent_atz_c,cloudingo_agent_av_c,cloudingo_agent_les_c,do_not_sync_marketo_c,source_every_utm_campaign_c,source_every_utm_content_c,source_every_utm_medium_c,source_every_utm_source_c,source_every_utm_term_c,source_first_utm_campaign_c,source_first_utm_content_c,source_first_utm_medium_c,source_first_utm_source_c,source_first_utm_term_c,source_last_utm_campaign_c,source_last_utm_content_c,source_last_utm_medium_c,source_last_utm_source_c,source_last_utm_term_c,direct_office_c,city_c,country_c,state_c,source_first_lead_source_category_c,source_last_lead_source_c,source_last_lead_source_category_c,source_last_lead_source_detail_c,source_every_lead_source_c,source_every_lead_source_category_c,source_every_lead_source_detail_c,source_first_lead_source_c,source_first_lead_source_detail_c,behavioral_score_c,demographic_score_c,drift_cql_c,unique_email_c,is_emea_event_routing_c,csi_code_c,csi_description_c,converted_date_time_c,lead_created_date_time_reporting_c,lead_iq_country_c,lead_iq_employee_count_c,lead_iq_employee_range_c,lead_iq_state_c,lead_iq_zip_code_c,zoominfo_country_c,zoominfo_employee_count_c,zoominfo_state_c,zoominfo_technologies_c,zoominfo_zip_code_c,attended_event_c,mql_date_c,user_gems_user_gems_id_c,dozisf_zoom_info_company_id_c,dozisf_zoom_info_first_updated_c,dozisf_zoom_info_id_c,dozisf_zoom_info_last_updated_c,lean_data_manual_route_trigger_c,first_mql_date_c,fivetran_account_association_date_c,fivetran_account_user_role_s_c,mql_reason_c,trial_contact_start_date_c,enrichment_request_c,meta_data_create_date_c,clarus_date_c,clarus_editor_c,clarus_notes_c,clarus_project_c,clarus_status_c,marketing_connector_interest_c,recent_marketing_campaign_status_c,salesloft_cadence_trigger_c,datawarehouse_used_c,contact_status_c,leandata_contact_owner_override_c,potential_fivetran_use_case_c,bizible_2_account_c,bizible_2_ad_campaign_name_ft_c,bizible_2_ad_campaign_name_lc_c,bizible_2_bizible_id_c,bizible_2_landing_page_ft_c,bizible_2_landing_page_lc_c,bizible_2_marketing_channel_ft_c,bizible_2_marketing_channel_lc_c,bizible_2_touchpoint_date_ft_c,bizible_2_touchpoint_date_lc_c,bizible_2_touchpoint_source_ft_c,bizible_2_touchpoint_source_lc_c,sales_email_opt_out_c,sales_email_opt_out_date_time_c,bombora_app_bombora_surge_record_count_c,bombora_app_bombora_last_date_time_updated_c,bombora_app_bombora_total_composite_score_c,linked_in_url_c,beta_connector_interest_c,user_gems_ug_past_infos_c,user_gems_ug_current_infos_c,user_gems_ug_created_by_ug_c,free_trial_email_confirmed_date_c,dnboptimizer_dn_bcontact_record_c,dnboptimizer_dn_bcompany_record_c,dnboptimizer_dnb_d_u_n_s_number_c,i_sell_oskey_id_c,verified_c,email_opt_out_date_time_c,pbf_startup_c,pbf_startup_certify_eligibility_c,engagio_intent_minutes_last_30_days_c,engagio_engagement_minutes_last_3_months_c,engagio_engagement_minutes_last_7_days_c,engagio_matched_account_c,engagio_first_engagement_date_c,engagio_match_time_c,engagio_department_c,engagio_role_c,legacy_hvr_id_c,hvr_channel_c,email_opt_in_double_c,phone_number_catch_all_c,contacts_domain_exists_c,utm_id_c,source_every_utm_id_c,source_last_utm_id_c,source_first_utm_id_c,do_not_sync_reason_marketo_c,_fivetran_active +,,,00537000003tmTnAAI,,,2019-11-11 17:23:34,2019-11-11 17:23:34,,0051G000007F2JGQA0,2019-11-11 17:23:34,,0031G00001QtDPlQAN,,00Q1G00000nDnM5UAK,/services/images/photo/00Q1G00000nDnM5UAK,,,,,,,,,h,,,0051G0000060XhiQAE,,TRUE,,FALSE,Converted,,,,Internet Software & Services,,2019-11-11 17:23:34,,,FALSE,,Z,H,h@gmail.com,,Croc,,,2019-11-11 17:23:34,,FALSE,,FALSE,FALSE,0011G00000tLWKnQAO,,,,,,,,280522000,,,,,,,,,,,,,,0,,1305025,FALSE,FALSE,,FALSE,,,FALSE,,,,,,,,FALSE,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,FALSE,,,,,,converted,geomecyvdvhj amazon,0011G00000fV7vHQAS,2019-11-11 17:23:34,,,,,,converted,,,,,,FALSE,,,,,,,,,,,,,,,,,,,Prospect,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,FALSE,,,,,,,TRUE,FALSE,FALSE,FALSE,,,,,,,,,,,,,,,,,,,,,,,,,,,2019-11-11 17:23:34,Metadata Lead Conversion - 04 ADS-2022-MetadataADS-Q1Y22-EMEA-DACH-ETLTools,Lead action,Milestone,,60,,3,,,0,,,0,FALSE,,,,,,,,,,,Q122-EMEA-DACH-ETLTools_SFDC,LinkedIn,paid_social,metadata,Q122 EMEA_Germany-SFDC,,,,,,,,,,,,,,0,,,,FALSE,,RAW,2019-11-11 17:23:34,2019-11-11 17:23:34,,,,,,,,,,,FALSE,,,,,,,FALSE,,,,Website,,FALSE,2019-11-11 17:23:34,,,,,,,,,,,,Unknown,,,,,,,,,,,,,FALSE,,,,,,,,,FALSE,,,,,,FALSE,,,FALSE,,,,,,,,,,,FALSE,,,,,,,, \ No newline at end of file diff --git a/integration_tests/seeds/sf_opportunity_data.csv b/integration_tests/seeds/sf_opportunity_data.csv new file mode 100644 index 0000000..4619439 --- /dev/null +++ b/integration_tests/seeds/sf_opportunity_data.csv @@ -0,0 +1,11 @@ +_fivetran_synced,account_id,amount,campaign_id,close_date,created_date,description,expected_revenue,fiscal,fiscal_quarter,fiscal_year,forecast_category,forecast_category_name,has_open_activity,has_opportunity_line_item,has_overdue_task,id,is_closed,is_deleted,is_excluded_from_territory_2_filter,is_won,last_activity_date,last_referenced_date,last_viewed_date,lead_source,name,next_step,owner_id,pricebook_2_id,probability,record_type_id,stage_name,synced_quote_id,territory_2_id,type,_fivetran_active +2019-04-04 18:47:01,9CcfAt8qtZvCTwFvwOFLcg==,24120000,,2018-12-19 00:00:00,2018-12-19 19:51:13,,,JxJ3Au0JjyhOOUE/UvIeOw==,4,2018,A/SkeDD5c3ejUyEFFoUHHg==,A/SkeDD5c3ejUyEFFoUHHg==,false,true,false,006q000000HddohAAB,true,true,,true,,,,TDK+SgtPSM3Vk67zX9aeRA==,$1m deal,,rQhle3uwQbFgFmLTF1WByg==,lNUPfU1ue2nQimeN6QVNKQ==,1000,3QOHd+Q7F28PJtnwztV09Q==,GavUFuuf4DrnQAoiRGlWpQ==,,,+Gkf6SQ2fhAONAiFelNKVw==,true +2019-04-04 18:47:01,wfQo3+JVfsNIdcz/mUkZkA==,,,2018-12-18 00:00:00,2018-12-18 21:21:17,,,JxJ3Au0JjyhOOUE/UvIeOw==,4,2018,A/SkeDD5c3ejUyEFFoUHHg==,A/SkeDD5c3ejUyEFFoUHHg==,false,false,false,006q000000HdPzpAAF,true,true,,true,,,,Fbu50LvyXo0peN4RaMdJ3A==,Testing Opp Close,,nqxS50kwRjtOYb9ZB4/PoQ==,,100,3QOHd+Q7F28PJtnwztV09Q==,GavUFuuf4DrnQAoiRGlWpQ==,,,+Gkf6SQ2fhAONAiFelNKVw==,true +2018-12-18 18:20:30.829,wIXkC/s93lDAT+HVkwv6+A==,,,2018-12-18 00:00:00,2018-12-10 17:03:22,,,JxJ3Au0JjyhOOUE/UvIeOw==,4,2018,A/SkeDD5c3ejUyEFFoUHHg==,A/SkeDD5c3ejUyEFFoUHHg==,false,false,false,006q000000Hbmd1AAB,true,true,,true,,,,TDK+SgtPSM3Vk67zX9aeRA==,Test,,dVDxbGz10nJ2mKU213GZRQ==,,100,14mxIBMk0YX2Gz0r1Ktsuw==,GavUFuuf4DrnQAoiRGlWpQ==,,,+Gkf6SQ2fhAONAiFelNKVw==,true +2019-04-04 18:47:01,78HpxISq4/eSw+ycDPqSwA==,,,2018-12-13 00:00:00,2018-12-13 18:02:55,,,JxJ3Au0JjyhOOUE/UvIeOw==,4,2018,A/SkeDD5c3ejUyEFFoUHHg==,A/SkeDD5c3ejUyEFFoUHHg==,false,false,false,006q000000HcZXrAAN,true,true,,true,,,,pOz8cFdDlJkM8XvYPfSZ9w==,lu test 3,,9B1r0vK1wAVGaERpMleKGg==,,100,14mxIBMk0YX2Gz0r1Ktsuw==,GavUFuuf4DrnQAoiRGlWpQ==,,,+Gkf6SQ2fhAONAiFelNKVw==,true +2019-04-04 18:47:01,wfQo3+JVfsNIdcz/mUkZkA==,,,2018-12-07 00:00:00,2018-12-19 20:22:58,,,JxJ3Au0JjyhOOUE/UvIeOw==,4,2018,A/SkeDD5c3ejUyEFFoUHHg==,A/SkeDD5c3ejUyEFFoUHHg==,false,false,false,006q000000HddueAAB,true,true,,true,,,,dSJC2EuRkC62f+UuBPQeVg==,Chewbaca,,nqxS50kwRjtOYb9ZB4/PoQ==,,100,3QOHd+Q7F28PJtnwztV09Q==,GavUFuuf4DrnQAoiRGlWpQ==,,,dSJC2EuRkC62f+UuBPQeVg==,true +2019-04-04 18:47:01,TK5MTSsiOYoDQoJiSbkugA==,200000,,2018-11-21 00:00:00,2018-11-14 19:12:53,,,JxJ3Au0JjyhOOUE/UvIeOw==,4,2018,AloDHjNI+wntE4Eetriz+w==,AloDHjNI+wntE4Eetriz+w==,false,false,false,006q000000HK8jdAAD,true,true,,false,,,,MfuqnemFQBY2RwqM7YBkKA==,Evergreen Test,,QEaGoY7B8nGfro2vhOCMvA==,,0,14mxIBMk0YX2Gz0r1Ktsuw==,tXi3M8u3iPxq0ggxTSxMKw==,,,+Gkf6SQ2fhAONAiFelNKVw==,true +2019-04-04 18:47:01,78HpxISq4/eSw+ycDPqSwA==,,,2018-12-13 00:00:00,2018-12-13 18:00:11,,,JxJ3Au0JjyhOOUE/UvIeOw==,4,2018,AloDHjNI+wntE4Eetriz+w==,AloDHjNI+wntE4Eetriz+w==,false,false,false,006q000000HcZXXAA3,true,true,,false,,,,UN2fttk8geFc7Db/xJzQ+A==,lu test 1,,9B1r0vK1wAVGaERpMleKGg==,,0,14mxIBMk0YX2Gz0r1Ktsuw==,tXi3M8u3iPxq0ggxTSxMKw==,,,+Gkf6SQ2fhAONAiFelNKVw==,false +2019-04-04 18:47:01,tZX+Z0iWzZHHjNvRnCJzwg==,1,,2018-10-31 00:00:00,2018-10-31 17:43:42,,,JxJ3Au0JjyhOOUE/UvIeOw==,4,2018,AloDHjNI+wntE4Eetriz+w==,AloDHjNI+wntE4Eetriz+w==,false,false,false,006q000000GoP76AAF,true,true,,false,,,,,Blue Test -,,TLZtnkcZltX8lijWYSQqRg==,,0,14mxIBMk0YX2Gz0r1Ktsuw==,tXi3M8u3iPxq0ggxTSxMKw==,,,+Gkf6SQ2fhAONAiFelNKVw==,true +2019-04-04 18:47:01,78HpxISq4/eSw+ycDPqSwA==,,,2018-12-13 00:00:00,2018-12-13 18:01:22,,,JxJ3Au0JjyhOOUE/UvIeOw==,4,2018,AloDHjNI+wntE4Eetriz+w==,AloDHjNI+wntE4Eetriz+w==,false,false,false,006q000000HcZXcAAN,true,true,,false,,,,pOz8cFdDlJkM8XvYPfSZ9w==,lu test 2,,AwxR76rxgr77EfSnTHH57Q==,,0,14mxIBMk0YX2Gz0r1Ktsuw==,tXi3M8u3iPxq0ggxTSxMKw==,,,9Q0PuStPWLYgxG/8kpvo5g==,true +2019-04-04 18:47:01,wIXkC/s93lDAT+HVkwv6+A==,210000,,2018-12-19 00:00:00,2018-12-18 17:56:05,,,JxJ3Au0JjyhOOUE/UvIeOw==,4,2018,rq6uxRtOa4gSLxCtlqjecg==,rq6uxRtOa4gSLxCtlqjecg==,false,true,false,006q000000HdOhuAAF,false,true,,false,,,,Fbu50LvyXo0peN4RaMdJ3A==,Testing Order from Process,,dVDxbGz10nJ2mKU213GZRQ==,5x2qfGToAOo3bmSNM8fPjg==,65,3QOHd+Q7F28PJtnwztV09Q==,9RN9J3tlxr89gDctReax5w==,,,+Gkf6SQ2fhAONAiFelNKVw==,false diff --git a/integration_tests/seeds/sf_opportunity_line_item_data.csv b/integration_tests/seeds/sf_opportunity_line_item_data.csv new file mode 100644 index 0000000..f2401b1 --- /dev/null +++ b/integration_tests/seeds/sf_opportunity_line_item_data.csv @@ -0,0 +1,11 @@ +product_2_id,quantity,total_price,description,discount,last_modified_date,list_price,product_code,unit_price,_fivetran_synced,is_deleted,opportunity_id,last_modified_by_id,service_date,system_modstamp,name,id,created_by_id,created_date,sort_order,pricebook_entry_id,one_saas_app_included_c,one_saas_app_quantity_invoiced_c,one_saas_app_quantity_not_invoiced_c,has_quantity_schedule,has_revenue_schedule,has_schedule,event_volume_c,roadmap_connections_c,row_volume_c,months_c,netsuite_conn_term_contract_pricing_type_c,netsuite_conn_discount_item_c,netsuite_conn_user_entered_sales_price_c,netsuite_conn_item_category_c,netsuite_conn_terms_c,netsuite_conn_net_suite_item_key_id_c,netsuite_conn_pushed_from_net_suite_c,netsuite_conn_end_date_c,netsuite_conn_list_rate_c,netsuite_conn_from_contract_item_id_c,netsuite_conn_start_date_c,netsuite_conn_net_suite_item_id_import_c,sbqq_parent_id_c,sbqq_quote_line_c,sbqq_subscription_type_c,product_family_c,last_referenced_date,last_viewed_date,celigo_sfnsio_contract_item_id_c,celigo_sfnsio_contract_term_c,celigo_sfnsio_end_date_c,celigo_sfnsio_list_rate_c,celigo_sfnsio_net_suite_line_id_c,celigo_sfnsio_start_date_c,product_code_stamped_c,hvr_use_case_c,_fivetran_active +01 1G000000bUE8QAM,1,0,,,2019-11-11 17:23:34,0,a,0,2019-11-11 17:23:34,FALSE,0061G00000Ja7B6QAJ,0051G000005MumpQAC,,2019-11-11 17:23:34,plan a,00k1G00000A3iyqQAB,0051G0000060rqhQAA,2019-11-11 17:23:34,,01u1G000002Ks75QAC,,,,,,,,,,12,,,,,,,FALSE,,,,,,,a4R1G000000S2a6UAC,X,Usage,,,,,,,,,,FALSE, +01 1G000000bH0WQAU,6,5100,,,2019-11-11 17:23:34,1000,b,850,2019-11-11 17:23:34,,0061G00000HhviAQAR,0051G000005MumuQAC,,2019-11-11 17:23:34,plan b,00k1G000009ar5IQAQ,0051G000005MumuQAC,2019-11-11 17:23:34,,01u1G000002Kbu5QAC,,,,,,,,,,12,,,,,,,FALSE,,,,,,,a4R1G000000XqhrUAC,X,,,,,,,,,,,, +01 1G000000bH0bQAE,50,38093,,,2019-11-11 17:23:34,1500,d,761.86,2019-11-11 17:23:34,,0061G00000HhviAQAR,0051G000005MumuQAC,,2019-11-11 17:23:34,self serve,00k1G000009a jwQAA,0051G000005MumuQAC,2019-11-11 17:23:34,,01u1G000002KbuAQAS,,,,,,,,,,12,,,,,,,FALSE,,,,,,,a4R1G000000XsCJUA0,Renewable,,,,,,,,,,,, +01 1G000000bH0bQAE,66,84250.32,,,2019-11-11 17:23:34,1500,e,1276.52,2019-11-11 17:23:34,,0061G00000HhviAQAR,0051G000005MumuQAC,,2019-11-11 17:23:34,sof serve,00k1G000009ar5JQAQ,0051G000005MumuQAC,2019-11-11 17:23:34,,01u1G000002KbuAQAS,,,,,,,,,,12,,,,,,,FALSE,,,,,,,a4R1G000000XqhsUAC,Renewable,,,,,,,,,,,, +01 1G000000bH1NQAU,4,4000,,,2019-11-11 17:23:34,1000,f,1000,2019-11-11 17:23:34,,0061G00000HhviAQAR,0051G000005MumuQAC,,2019-11-11 17:23:34,sof ware,00k1G000009ar5GQAQ,0051G000005MumuQAC,2019-11-11 17:23:34,,01u1G000002KbuwQAC,,,,,,,,,,12,,,,,,,FALSE,,,,,,,a4R1G000000XqhoUAC,Renewable,,,,,,,,,,,, +01 1G000000bH05QAE,18,162000,,,2019-11-11 17:23:34,12000,p,9000,2019-11-11 17:23:34,,0061G00000HhviAQAR,0051G000005MumuQAC,,2019-11-11 17:23:34,plan d,00k1G000009ar5HQAQ,0051G000005MumuQAC,2019-11-11 17:23:34,,01u1G000002KbvfQAC,,,,,,,,,,12,,,,,,,FALSE,,,,,,,a4R1G000000XqhqUAC,Renewable,,,,,,,,,,,, +01 1G000000bH pQAE,1,0,,,2019-11-11 17:23:34,0,l,0,2019-11-11 17:23:34,,0061G00000Is1 QAJ,0051G000005MumuQAC,,2019-11-11 17:23:34,plan e,00k1G000009al6CQAQ,0051G000005MumuQAC,2019-11-11 17:23:34,,01u1G000002Kc PQAS,,,,,,,,,,12,,,,,,,FALSE,,,,,,,a4R1G000000Xr kUAK,Renewable,,,,,,,,,,,, +01 1G000000bH pQAE,1,0,,,2019-11-11 17:23:34,0,m,0,2019-11-11 17:23:34,,0061G00000HhviAQAR,0051G000005MumuQAC,,2019-11-11 17:23:34,plan f,00k1G000009aYhMQAU,0051G000005MumuQAC,2019-11-11 17:23:34,,01u1G000002Kc PQAS,,,,,,,,,,12,,,,,,,FALSE,,,,,,,a4R1G000000XqhmUAC,Renewable,,,,,,,,,,,, +01 1G000000bH pQAE,1,0,,,2019-11-11 17:23:34,0,n,0,2019-11-11 17:23:34,,0061G00000IsgqwQAB,0051G000005MumuQAC,,2019-11-11 17:23:34,plan g,00k1G000009auVBQAY,0051G000005MumuQAC,2019-11-11 17:23:34,,01u1G000002Kc PQAS,,,,,,,,,,12,,,,,,,FALSE,,,,,,,a4R1G000000XsYWUA0,Renewable,,,,,,,,,,,, +01 1G000000bH0yQAE,1,2045.45,,,2019-11-11 17:23:34,2000,s,2045.45,2019-11-11 17:23:34,,0061G00000I L0vQAF,0051G000005MumuQAC,,2019-11-11 17:23:34,plan h,00k1G000009b6cCQAQ,0051G000005MumuQAC,2019-11-11 17:23:34,,01u1G000002Kc qQAC,,,,,,,,,,12,,,,,,,FALSE,,,,,,00k1G000009b6cAQAQ,a4R1G000000X xmUAC,Renewable,,,,,,,,,,,, \ No newline at end of file diff --git a/integration_tests/seeds/sf_order_data.csv b/integration_tests/seeds/sf_order_data.csv new file mode 100644 index 0000000..2142801 --- /dev/null +++ b/integration_tests/seeds/sf_order_data.csv @@ -0,0 +1,11 @@ +id,_fivetran_synced,account_id,activated_by_id,activated_date,billing_city,billing_country,billing_country_code,billing_geocode_accuracy,billing_latitude,billing_longitude,billing_postal_code,billing_state,billing_state_code,billing_street,company_authorized_by_id,contract_id,created_by_id,created_date,customer_authorized_by_id,description,effective_date,end_date,is_deleted,is_reduction_order,last_modified_by_id,last_modified_date,last_referenced_date,last_viewed_date,order_number,original_order_id,owner_id,pricebook_2_id,shipping_city,shipping_country,shipping_country_code,shipping_geocode_accuracy,shipping_latitude,shipping_longitude,shipping_postal_code,shipping_state,shipping_state_code,shipping_street,status,status_code,system_modstamp,total_amount,type,netsuite_conn_celigo_update_c,netsuite_conn_net_suite_id_c,netsuite_conn_net_suite_sync_err_c,netsuite_conn_pushed_from_net_suite_c,netsuite_conn_opportunity_c,netsuite_conn_net_suite_order_status_c,netsuite_conn_sync_in_progress_c,netsuite_conn_tax_total_c,netsuite_conn_tracking_numbers_c,netsuite_conn_push_to_net_suite_c,netsuite_conn_document_id_c,netsuite_conn_subtotal_c,netsuite_conn_discount_total_c,netsuite_conn_total_c,netsuite_conn_net_suite_order_date_c,netsuite_conn_ship_date_c,netsuite_conn_quote_c,netsuite_conn_net_suite_order_number_c,sbqq_contracted_c,sbqq_contracting_method_c,sbqq_payment_term_c,sbqq_price_calc_status_c,sbqq_price_calc_status_message_c,sbqq_quote_c,sbqq_renewal_term_c,sbqq_renewal_uplift_rate_c,ava_sfcpq_ava_tax_message_c,ava_sfcpq_entity_use_code_c,ava_sfcpq_invoice_message_c,ava_sfcpq_is_seller_importer_of_record_c,ava_sfcpq_order_calculate_tax_c,ava_sfcpq_sales_tax_amount_c,blng_bill_now_c,blng_billing_account_c,blng_billing_day_of_month_c,blng_invoice_batch_c,amendment_type_c,credit_summary_c,evergreen_c,invoicing_type_c,legal_entity_c,prepaid_billing_frequency_c,prepaid_order_c,update_subscriptions_only_c,order_auto_activated_c,synced_to_net_suite_c,purchase_order_number_c,celigo_sfnsio_discount_total_net_suite_c,celigo_sfnsio_net_suite_id_c,celigo_sfnsio_net_suite_order_number_c,celigo_sfnsio_net_suite_order_status_c,celigo_sfnsio_net_suite_record_c,celigo_sfnsio_ship_date_c,celigo_sfnsio_skip_export_to_net_suite_c,celigo_sfnsio_sub_total_net_suite_c,celigo_sfnsio_tax_total_net_suite_c,celigo_sfnsio_test_mode_record_c,celigo_sfnsio_total_net_suite_c,amend_with_rollover_spend_type_c,customer_spend_type_c,order_spend_type_c,opportunity_id,purchase_summary_c,is_hvr_legacy_order_c,ironclad_workflow_c,_fivetran_active +8011G000000XFeOQAW,2019-11-11 17:23:34,0011G00000gY0y4QAC,0051G000005MumuQAC,2019-11-11 17:23:34,"New York, NY",United States,,,,,USA,55555-1502,,123 Ave,,,0051G000005MumuQAC,2019-11-11 17:23:34,,,2019-11-11 17:23:34,,FALSE,FALSE,0051G000005MunnQAC,2019-11-11 17:23:34,,,5392,,0051G000005MumuQAC,01s1G000001N7EKQA0,New York,United States,,,,,55555,New York,,123 Ave,Activated,Activated,2019-11-11 17:23:34,0,New,FALSE,934887,,FALSE,,,FALSE,,,FALSE,,,,,2019-11-11 17:23:34,,,SO4866,TRUE,By Subscription End Date,Net 30,Not Needed,,a4V1G000000TpflUAC,,,Tax Amount Is Up To Date,,,FALSE,FALSE,,FALSE,0011G00000gY0y4QAC,1,Domestic (US),,,FALSE,Other,a8k1G000000k9d4QAA,,FALSE,FALSE,FALSE,FALSE,,,,,,,,FALSE,,,FALSE,,FALSE,,,,,,, +8011G000000XFePQAW,2019-11-11 17:23:34,0011G00000gY0y4QAC,0051G000005MumuQAC,2019-11-11 17:23:34,"New York, NY",United States,,,,,USA,55555-1502,,123 Ave,,,0051G000005MumuQAC,2019-11-11 17:23:34,,,2019-11-11 17:23:34,,FALSE,FALSE,0051G000005MunnQAC,2019-11-11 17:23:34,,,5393,,0051G000005MumuQAC,01s1G000001N7EKQA0,New York,United States,,,,,55555,New York,,123 Ave,Activated,Activated,2019-11-11 17:23:34,27998.6,New,FALSE,1058073,,FALSE,,Pending Approval,FALSE,2000,,FALSE,,10,,10,2019-11-11 17:23:34,,,SO4871,TRUE,By Subscription End Date,Net 30,Not Needed,,a4V1G000000TpflUAC,,,Tax Amount Is Up To Date,,,FALSE,FALSE,,FALSE,0011G00000gY0y4QAC,30,Daily,,a9e1G000000KztBQAS,FALSE,Prepaid Credits,a8k1G000000k9d4QAA,Annual,FALSE,FALSE,FALSE,FALSE,,,1058073,,,,,FALSE,,,FALSE,,FALSE,,,,,,, +8011G000000XDsxQAG,2019-11-11 17:23:34,0011G00000f8IrIQAU,0051G000005MumuQAC,2019-11-11 17:23:34,New York,United States,,,,,55555,New York,,123 Ave,,,0051G000005MumuQAC,2019-11-11 17:23:34,,,2019-11-11 17:23:34,,FALSE,FALSE,0051G000005MunnQAC,2019-11-11 17:23:34,,,2597,,0051G000005MumuQAC,01s1G000001N7EKQA0,New York,United States,,,,,55555,New York,,123 Ave,Activated,Activated,2019-11-11 17:23:34,0,New,FALSE,934740,,FALSE,,,FALSE,,,FALSE,,,,,2019-11-11 17:23:34,,,SO4746,TRUE,By Subscription End Date,Net 30,Not Needed,,a4V1G000000TpGCUA0,,,Tax Amount Is Up To Date,,,FALSE,FALSE,,FALSE,0011G00000f8IrIQAU,1,Domestic (US),,,FALSE,Other,a8k1G000000k9d4QAA,,FALSE,FALSE,FALSE,FALSE,,,,,,,,FALSE,,,FALSE,,FALSE,,,,,,, +8011G000000XDsyQAG,2019-11-11 17:23:34,0011G00000f8IrIQAU,0051G000005MumuQAC,2019-11-11 17:23:34,New York,United States,,,,,55555,New York,,123 Ave,,,0051G000005MumuQAC,2019-11-11 17:23:34,,,2019-11-11 17:23:34,,FALSE,FALSE,0051G000005MunnQAC,2019-11-11 17:23:34,,,2598,,0051G000005MumuQAC,01s1G000001N7EKQA0,New York,United States,,,,,55555,New York,,123 Ave,Activated,Activated,2019-11-11 17:23:34,1200,New,FALSE,1057821,,FALSE,,Pending Billing,FALSE,0,,FALSE,,10,,10,2019-11-11 17:23:34,,,SO3983,TRUE,By Subscription End Date,Net 30,Not Needed,,a4V1G000000TpGCUA0,,,Tax Amount Is Up To Date,,,FALSE,FALSE,,FALSE,0011G00000f8IrIQAU,30,Daily,,a9e1G000000TNSGQA4,FALSE,Prepaid Credits,a8k1G000000k9d4QAA,Annual,FALSE,FALSE,FALSE,FALSE,,,1057821,,,,,FALSE,,,FALSE,,FALSE,,,,,,, +8011G000000XDseQAG,2019-11-11 17:23:34,0011G00000fIPsfQAG,0051G000005MumuQAC,2019-11-11 17:23:34,Baltimore,United States,,,,,55555,MD,,123 Ave,,,0051G000005MumuQAC,2019-11-11 17:23:34,,,2019-11-11 17:23:34,,FALSE,FALSE,0051G000005MunnQAC,2019-11-11 17:23:34,,,2591,,0051G000005MumuQAC,01s1G000001N7EKQA0,Baltimore,United States,,,,,55555,Maryland,,123 Ave,Activated,Activated,2019-11-11 17:23:34,20400,New,FALSE,1057817,,FALSE,,Pending Approval,FALSE,0,,FALSE,,10,,10,2019-11-11 17:23:34,,,SO3978,TRUE,By Subscription End Date,Net 30,Not Needed,,a4V1G000000TpCtUAK,,,No Tax Required,,,FALSE,FALSE,,FALSE,0011G00000fIPsfQAG,30,Daily,,a9e1G000000KzojQAC,FALSE,Prepaid Credits,a8k1G000000k9d4QAA,Annual,FALSE,FALSE,FALSE,FALSE,,,1057817,,,,,FALSE,,,FALSE,,FALSE,,,,,,, +8011G000000XDsdQAG,2019-11-11 17:23:34,0011G00000fIPsfQAG,0051G000005MumuQAC,2019-11-11 17:23:34,Baltimore,United States,,,,,55555,MD,,123 Ave,,,0051G000005MumuQAC,2019-11-11 17:23:34,,,2019-11-11 17:23:34,,FALSE,FALSE,0051G000005MunnQAC,2019-11-11 17:23:34,,,2590,,0051G000005MumuQAC,01s1G000001N7EKQA0,Baltimore,United States,,,,,55555,Maryland,,123 Ave,Activated,Activated,2019-11-11 17:23:34,0,New,FALSE,934761,,FALSE,,,FALSE,,,FALSE,,,,,2019-11-11 17:23:34,,,SO4763,TRUE,By Subscription End Date,Net 30,Not Needed,,a4V1G000000TpCtUAK,,,No Tax Required,,,FALSE,FALSE,,FALSE,0011G00000fIPsfQAG,1,Domestic (US),,,FALSE,Other,a8k1G000000k9d4QAA,,FALSE,FALSE,FALSE,FALSE,,,,,,,,FALSE,,,FALSE,,FALSE,,,,,,, +8011G000000XIK8QAO,2019-11-11 17:23:34,0011G00000nKDIvQAO,0051G000005MumuQAC,2019-11-11 17:23:34,Fort Lauderdale,United States,,,,,55555,Florida,,123 Ave,,,0051G000005MumuQAC,2019-11-11 17:23:34,,,2019-11-11 17:23:34,,FALSE,FALSE,0051G000005MunnQAC,2019-11-11 17:23:34,,,8359,,0051G000005MumuQAC,01s1G000001N7EKQA0,Fort Lauderdale,United States,,,,,55555,Florida,,123 Ave,Activated,Activated,2019-11-11 17:23:34,4500,New,FALSE,1058653,,FALSE,,,FALSE,0,,FALSE,,10,,10,2019-11-11 17:23:34,,,SO6556,TRUE,By Subscription End Date,Net 30,Not Needed,,a4V1G000000Tv9vUAC,,,No Tax Required,,,FALSE,FALSE,,FALSE,0011G00000nKDIvQAO,25,Daily,,a9e1G000000L1n3QAC,FALSE,Prepaid Credits,a8k1G000000k9d4QAA,,FALSE,FALSE,FALSE,FALSE,,,1058653,SO6556,,google.com,,FALSE,,,TRUE,,FALSE,,,,,,, +8011G000000XIK7QAO,2019-11-11 17:23:34,0011G00000nKDIvQAO,0051G000005MumuQAC,2019-11-11 17:23:34,Fort Lauderdale,United States,,,,,55555,Florida,,123 Ave,,,0051G000005MumuQAC,2019-11-11 17:23:34,,,2019-11-11 17:23:34,,FALSE,FALSE,0051G000005MumuQAC,2019-11-11 17:23:34,,,8358,,0051G000005MumuQAC,01s1G000001N7EKQA0,Fort Lauderdale,United States,,,,,55555,Florida,,123 Ave,Activated,Activated,2019-11-11 17:23:34,0,New,FALSE,,,FALSE,,,FALSE,,,FALSE,,,,,2019-11-11 17:23:34,,,,TRUE,By Subscription End Date,Net 30,Not Needed,,a4V1G000000Tv9vUAC,,,No Tax Required,,,FALSE,FALSE,,FALSE,0011G00000nKDIvQAO,1,Domestic (US),,,FALSE,Other,a8k1G000000k9d4QAA,,FALSE,FALSE,FALSE,FALSE,,,,,,,,FALSE,,,FALSE,,FALSE,,,,,,, +8011G000000XChLQAW,2019-11-11 17:23:34,0011G00000gZNEkQAO,0051G000005MumuQAC,2019-11-11 17:23:34,Tampa,United States,,,,,55555,Florida,,123 Ave,,,0051G000005MumuQAC,2019-11-11 17:23:34,,,2019-11-11 17:23:34,,FALSE,FALSE,0051G000005MunnQAC,2019-11-11 17:23:34,,,1354,,0051G000005MumuQAC,01s1G000001N7EKQA0,Tampa,United States,,,,,55555,Florida,,123 Ave,Activated,Activated,2019-11-11 17:23:34,702,New,FALSE,1057423,,FALSE,,Pending Approval,FALSE,0,,FALSE,,10,,10,2019-11-11 17:23:34,,,SO4466,TRUE,By Subscription End Date,Net 30,Not Needed,,a4V1G000000TnQAUA0,,,No Tax Required,,,FALSE,FALSE,,FALSE,0011G00000gZNEkQAO,28,Daily,,a9e1G000000TNOiQAO,FALSE,Prepaid Credits,a8k1G000000k9d4QAA,Annual,FALSE,FALSE,FALSE,FALSE,,,1057423,,,,,FALSE,,,FALSE,,FALSE,,,,,,, +8011G000000XChKQAW,2019-11-11 17:23:34,0011G00000gZNEkQAO,0051G000005MumuQAC,2019-11-11 17:23:34,Tampa,United States,,,,,55555,Florida,,123 Ave,,,0051G000005MumuQAC,2019-11-11 17:23:34,,,2019-11-11 17:23:34,,FALSE,FALSE,0051G000005MunnQAC,2019-11-11 17:23:34,,,1353,,0051G000005MumuQAC,01s1G000001N7EKQA0,Tampa,United States,,,,,55555,Florida,,123 Ave,Activated,Activated,2019-11-11 17:23:34,0,New,FALSE,934394,,FALSE,,,FALSE,,,FALSE,,,,,2019-11-11 17:23:34,,,SO4465,TRUE,By Subscription End Date,Net 30,Not Needed,,a4V1G000000TnQAUA0,,,No Tax Required,,,FALSE,FALSE,,FALSE,0011G00000gZNEkQAO,1,Domestic (US),,,FALSE,Other,a8k1G000000k9d4QAA,,FALSE,FALSE,FALSE,FALSE,,,,,,,,FALSE,,,FALSE,,FALSE,,,,,,, \ No newline at end of file diff --git a/integration_tests/seeds/sf_product_2_data.csv b/integration_tests/seeds/sf_product_2_data.csv new file mode 100644 index 0000000..4f89f7b --- /dev/null +++ b/integration_tests/seeds/sf_product_2_data.csv @@ -0,0 +1,3 @@ +last_referenced_date,is_active,description,last_modified_date,record_type_id,product_code,_fivetran_synced,last_viewed_date,is_deleted,last_modified_by_id,system_modstamp,name,id,created_by_id,created_date,family,max_volume_c,min_volume_c,request_name_c,default_quantity_c,account_c,related_product_c,picklist_value_c,as_input_c,as_output_c,status_c,number_of_quantity_installments,number_of_revenue_installments,quantity_installment_period,quantity_schedule_type,revenue_installment_period,revenue_schedule_type,connections_c,event_volume_c,roadmap_connections_c,row_volume_c,display_url,external_data_source_id,external_id,quantity_unit_of_measure,stock_keeping_unit,features_c,tier_3_price_c,tier_2_price_c,tier_4_price_c,tier_1_price_c,netsuite_conn_sync_in_progress_c,netsuite_conn_celigo_update_c,netsuite_conn_term_contract_pricing_type_c,netsuite_conn_net_suite_id_c,netsuite_conn_net_suite_sync_err_c,netsuite_conn_push_to_net_suite_c,netsuite_conn_item_category_c,netsuite_conn_net_suite_item_type_c,netsuite_conn_sub_type_c,is_new_c,product_metadata_c,product_metadata_del_c,sbqq_asset_amendment_behavior_c,sbqq_asset_conversion_c,sbqq_batch_quantity_c,sbqq_billing_frequency_c,sbqq_billing_type_c,sbqq_block_pricing_field_c,sbqq_charge_type_c,sbqq_component_c,sbqq_compound_discount_rate_c,sbqq_configuration_event_c,sbqq_configuration_field_set_c,sbqq_configuration_fields_c,sbqq_configuration_form_title_c,sbqq_configuration_type_c,sbqq_configuration_validator_c,sbqq_configured_code_pattern_c,sbqq_configured_description_pattern_c,sbqq_cost_editable_c,sbqq_cost_schedule_c,sbqq_custom_configuration_page_c,sbqq_custom_configuration_required_c,sbqq_customer_community_availability_c,sbqq_default_pricing_table_c,sbqq_default_quantity_c,sbqq_description_locked_c,sbqq_discount_category_c,sbqq_discount_schedule_c,sbqq_dynamic_pricing_constraint_c,sbqq_exclude_from_maintenance_c,sbqq_exclude_from_opportunity_c,sbqq_externally_configurable_c,sbqq_generate_contracted_price_c,sbqq_has_configuration_attributes_c,sbqq_has_consumption_schedule_c,sbqq_hidden_c,sbqq_hide_price_in_search_results_c,sbqq_include_in_maintenance_c,sbqq_new_quote_group_c,sbqq_non_discountable_c,sbqq_non_partner_discountable_c,sbqq_option_layout_c,sbqq_option_selection_method_c,sbqq_optional_c,sbqq_price_editable_c,sbqq_pricing_method_c,sbqq_pricing_method_editable_c,sbqq_product_picture_id_c,sbqq_quantity_editable_c,sbqq_quantity_scale_c,sbqq_reconfiguration_disabled_c,sbqq_renewal_product_c,sbqq_sort_order_c,sbqq_specifications_c,sbqq_subscription_base_c,sbqq_subscription_category_c,sbqq_subscription_percent_c,sbqq_subscription_pricing_c,sbqq_subscription_target_c,sbqq_subscription_term_c,sbqq_subscription_type_c,sbqq_tax_code_c,sbqq_taxable_c,sbqq_term_discount_level_c,sbqq_term_discount_schedule_c,sbqq_upgrade_credit_c,sbqq_upgrade_ratio_c,sbqq_upgrade_source_c,sbqq_upgrade_target_c,connector_type_c,pbf_pro_type_discount_c,dimension_c,connector_status_c,dimension_definition_c,ava_sfcpq_tax_code_c,paid_consumption_c,is_complimentary_c,product_external_id_c,blng_billing_rule_c,blng_revenue_recognition_rule_c,blng_tax_rule_c,deployment_date_c,do_not_prorate_c,celigo_sfnsio_netsuite_id_c,sbqq_enable_large_configuration_c,sbqq_pricing_guidance_c,celigo_sfnsio_item_pricing_type_c,celigo_sfnsio_test_mode_record_c,celigo_sfnsio_celigo_last_modified_date_c,celigo_sfnsio_net_suite_record_c,celigo_sfnsio_skip_export_to_net_suite_c,celigo_sfnsio_net_suite_item_type_c,celigo_sfnsio_net_suite_id_c,promo_code_c,product_category_c,product_source_c,non_recurring_c,is_archived,_fivetran_active +,TRUE,,2019-11-11 17:23:34,012370000005lzhAAA,1,2019-11-11 17:23:34,,FALSE,0051G0000060rE7QAI,2019-11-11 17:23:34,X,01t1G000002Uf3MQAS,0051G0000060rE7QAI,2019-11-11 17:23:34,X,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,FALSE,FALSE,,,X,FALSE,,Non Inventory Sale,noninventory-Sale,FALSE,,,Default,One per quote line,,Annual,Advance,Quantity,Recurring,FALSE,,,,,,,,,,FALSE,,,FALSE,,,1,FALSE,,,,FALSE,FALSE,FALSE,,FALSE,FALSE,FALSE,FALSE,FALSE,FALSE,FALSE,FALSE,,Click,FALSE,FALSE,List,FALSE,,TRUE,,FALSE,,,,List,,,Fixed Price,,1,Renewable,,FALSE,,,,,,,chat,FALSE,Function,Alpha,,,,FALSE,12345,a1L1G000002t4LAUAY,a951G000000TQsMQAW,a9D1G000000TefyUAC,,FALSE,,,,,FALSE,2019-11-11 17:23:34,,FALSE,,,,,,TRUE,FALSE, +,FALSE,,2019-11-11 17:23:34,012370000005lzhAAA,2,2019-11-11 17:23:34,,FALSE,00537000004EpGKAA0,2019-11-11 17:23:34,X,01t1G000000bOtkQAE,0051G000005MzwaQAC,2019-11-11 17:23:34,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,FALSE,FALSE,,,,FALSE,,Non Inventory Sale,noninventory-Sale,FALSE,,,Default,One per quote line,,,,Quantity,,FALSE,,,,,,,,,,FALSE,,,FALSE,,,1,FALSE,,,,FALSE,FALSE,FALSE,,FALSE,FALSE,FALSE,FALSE,FALSE,FALSE,FALSE,FALSE,,Click,FALSE,TRUE,List,FALSE,,TRUE,,FALSE,,,,List,,,,,,Renewable,,FALSE,,,,,,,finance,FALSE,Connector,General Availability,,,,FALSE,,,,,,FALSE,,FALSE,,,FALSE,2019-11-11 17:23:34,,FALSE,,,,,,,, \ No newline at end of file diff --git a/integration_tests/seeds/sf_task_data.csv b/integration_tests/seeds/sf_task_data.csv new file mode 100644 index 0000000..c0b19ae --- /dev/null +++ b/integration_tests/seeds/sf_task_data.csv @@ -0,0 +1,11 @@ +referral_account_c,who_id,call_disposition,recurrence_day_of_month,owner_id,recurrence_end_date_only,subject,description,last_modified_date,recurrence_time_zone_sid_key,is_recurrence,what_count,_fivetran_synced,call_object,is_deleted,recurrence_day_of_week_mask,last_modified_by_id,system_modstamp,recurrence_regenerated_type,id,recurrence_type,reminder_date_time,call_type,is_high_priority,is_closed,recurrence_month_of_year,is_reminder_set,activity_date,recurrence_instance,priority,recurrence_interval,who_count,recurrence_start_date_only,account_id,referral_contact_c,call_duration_in_seconds,created_by_id,created_date,recurrence_activity_id,what_id,task_subtype,status,invitee_uuid_c,type,no_show_c,first_meeting_held_c,associated_sdr_c,first_meeting_c,call_recording_c,affectlayer_chorus_call_id_c,affectlayer_affect_layer_call_id_c,last_rep_activity_date_c,lid_url_c,lid_date_sent_c,record_type_id,sales_loft_step_id_c,sales_loft_step_name_c,sales_loft_step_type_c,sales_loft_email_template_id_c,sales_loft_external_identifier_c,sales_loft_cadence_id_c,sales_loft_clicked_count_c,sales_loft_cadence_name_c,sales_loft_reply_count_c,call_disposition_c,sales_loft_email_template_title_c,sales_loft_step_day_new_c,call_disposition_2_c,sales_loft_viewed_count_c,sales_loft_1_sales_loft_step_day_c,sales_loft_1_sales_loft_clicked_count_c,sales_loft_1_sales_loft_view_count_c,sales_loft_1_call_disposition_c,sales_loft_1_sales_loft_replies_count_c,sales_loft_1_sales_loft_cadence_name_c,sales_loft_1_call_sentiment_c,sales_loft_1_sales_loft_email_template_title_c,completed_date_time,is_a_co_sell_activity_c,partner_contact_c,co_selling_activity_c,description_c,co_sell_partner_account_c,campaign_c,partner_account_c,topic_c,event_name_c,attendance_number_c,partner_activity_type_c,proof_of_referral_c,how_did_you_bring_value_or_create_trust_c,how_did_you_bring_value_or_earn_trust_c,duration_in_minutes_c,vidyard_c,expected_payment_date_c,execute_collections_plan_activity_c,collections_hold_c,opportunity_c,meeting_type_c,meeting_name_c,bizible_2_bizible_id_c,bizible_2_bizible_touchpoint_date_c,assigned_to_role_c,assigned_to_name_c,legacy_hvr_id_c,is_archived,_fivetran_active +,0031G00001S3ckZQAR,,,0051G000005Mun4QAC,,subject 0051G000005Mun4QAC,description,2019-11-11 17:23:34,,FALSE,1,2019-11-11 17:23:34,,FALSE,,0051G000005Mun4QAC,2019-11-11 17:23:34,,00T1G00003Ufap9UAB,,,,FALSE,TRUE,,FALSE,2019-11-11 17:23:34,,Normal,,1,,0011G00000jWVWoQAO,,,0051G000005Mun4QAC,2019-11-11 17:23:34,,0061G00000N38JZQAZ,Task,Completed,,X,FALSE,,,,,,,,,,0121G000000g1SFQAY,,,,,,,,,,,,,,,,,,,,,,,2019-11-11 17:23:34,,,,,,,,,,,,,,,,FALSE,,FALSE,FALSE,,,,,,X,fivetran ae,,FALSE, +,0031G00001S3JniQAF,,,0051G000005Mun4QAC,,subject 0051G000005Mun4QAC,description,2019-11-11 17:23:34,,FALSE,1,2019-11-11 17:23:34,,FALSE,,0051G000005Mun4QAC,2019-11-11 17:23:34,,00T1G00003UfepsUAB,,,,FALSE,TRUE,,FALSE,2019-11-11 17:23:34,,Normal,,1,,0011G00000ugZ6HQAU,,,0051G000005Mun4QAC,2019-11-11 17:23:34,,0061G00000N31HAQAZ,Task,Completed,,X,FALSE,,,,,,,,,,0121G000000g1SFQAY,,,,,,,,,,,,,,,,,,,,,,,2019-11-11 17:23:34,,,,,,,,,,,,,,,,FALSE,,FALSE,FALSE,,,,,,X,fivetran ae,,FALSE, +,0031G00000xOrznQAC,,,0051G000005Mun4QAC,,subject 0051G000005Mun4QAC,description,2019-11-11 17:23:34,,FALSE,1,2019-11-11 17:23:34,,FALSE,,0051G000005Mun4QAC,2019-11-11 17:23:34,,00T1G00003UfRU9UAN,,,,FALSE,TRUE,,FALSE,2019-11-11 17:23:34,,Normal,,1,,0011G00000hC8aMQAS,,,0051G000005Mun4QAC,2019-11-11 17:23:34,,0061G00000N32AHQAZ,Task,Completed,,,FALSE,,,,,,,,,,0121G000000g1SFQAY,,,,,,,,,,,,,,,,,,,,,,,2019-11-11 17:23:34,,,,,,,,,,,,,,,,FALSE,,FALSE,FALSE,,Default Personal Meeting,sync,,,X,fivetran ae,,FALSE, +,00Q1G00000nOMcPUAW,,,0051G000005Mun4QAC,,subject 0051G000005Mun4QAC,description,2019-11-11 17:23:34,,FALSE,0,2019-11-11 17:23:34,,FALSE,,0051G000005Mun4QAC,2019-11-11 17:23:34,,00T1G00003UffGjUAJ,,,,FALSE,TRUE,,FALSE,2019-11-11 17:23:34,,Normal,,1,,,,,0051G000005Mun4QAC,2019-11-11 17:23:34,,,Task,Completed,,,FALSE,,,,,,,,,,0121G000000g1SFQAY,,,,,,,,,,,,,,,,,,,,,,,2019-11-11 17:23:34,,,,,,,,,,,,,,,,FALSE,,FALSE,FALSE,,,,,,X,fivetran ae,,FALSE, +,0031G00001S3oefQAB,,,0051G000005Mun4QAC,,subject 0051G000005Mun4QAC,description,2019-11-11 17:23:34,,FALSE,1,2019-11-11 17:23:34,,FALSE,,0051G000005Mun4QAC,2019-11-11 17:23:34,,00T1G00003UfZPYUA3,,,,FALSE,TRUE,,FALSE,2019-11-11 17:23:34,,Normal,,1,,0011G00000qFChkQAG,,,0051G000005Mun4QAC,2019-11-11 17:23:34,,0061G00000N3DTUQA3,Task,Completed,,X,FALSE,,,,,,,,,,0121G000000g1SFQAY,,,,,,,,,,,,,,,,,,,1,,,,2019-11-11 17:23:34,,,,,,,,,,,,,,,,FALSE,,FALSE,FALSE,,,,,,X,fivetran ae,,FALSE, +,0031G00001S3oefQAB,,,0051G000005Mun4QAC,,subject 0051G000005Mun4QAC,description,2019-11-11 17:23:34,,FALSE,1,2019-11-11 17:23:34,,FALSE,,0051G000005Mun4QAC,2019-11-11 17:23:34,,00T1G00003UfZQ7UAN,,,,FALSE,TRUE,,FALSE,2019-11-11 17:23:34,,Normal,,1,,0011G00000qFChkQAG,,,0051G000005Mun4QAC,2019-11-11 17:23:34,,0061G00000N3DTUQA3,Task,Completed,,X,FALSE,,,,,,,,,,0121G000000g1SFQAY,,,,,,,,,,,,,,,,,,,,,,,2019-11-11 17:23:34,,,,,,,,,,,,,,,,FALSE,,FALSE,FALSE,,,,,,X,fivetran ae,,FALSE, +,0031G00001NTqhqQAD,,,0051G000005Mun4QAC,,subject 0051G000005Mun4QAC,description,2019-11-11 17:23:34,,FALSE,0,2019-11-11 17:23:34,,FALSE,,0051G000005Mun4QAC,2019-11-11 17:23:34,,00T1G00003UfFY2UAN,,,,FALSE,TRUE,,FALSE,2019-11-11 17:23:34,,Normal,,1,,0011G00000tM0pgQAC,,,0051G000005Mun4QAC,2019-11-11 17:23:34,,,Task,Completed,,X,FALSE,,,,,,,,,,0121G000000g1SFQAY,,,,,,,,,,,,,,,,,85,,1,,,,2019-11-11 17:23:34,,,,,,,,,,,,,,,,FALSE,,FALSE,FALSE,,,,,,X,fivetran ae,,FALSE, +,0031G00001A2cSSQAZ,,,0051G000005Mun4QAC,,subject 0051G000005Mun4QAC,description,2019-11-11 17:23:34,,FALSE,1,2019-11-11 17:23:34,,FALSE,,0051G000005Mun4QAC,2019-11-11 17:23:34,,00T1G00003UffAmUAJ,,,,FALSE,TRUE,,FALSE,2019-11-11 17:23:34,,Normal,,1,,0011G00000gY18CQAS,,,0051G000005Mun4QAC,2019-11-11 17:23:34,,0061G00000O1zGuQAJ,Task,Completed,,,FALSE,,,,,,,,,,0121G000000g1SFQAY,,,,,,,,,,,,,,,,,,,,,,,2019-11-11 17:23:34,,,,,,,,,,,,,,,,FALSE,,FALSE,FALSE,,Default Personal Meeting,reconnect,,,X,fivetran ae,,FALSE, +,0031G00001S3oefQAB,,,0051G000005Mun4QAC,,subject 0051G000005Mun4QAC,description,2019-11-11 17:23:34,,FALSE,1,2019-11-11 17:23:34,,FALSE,,0051G000005Mun4QAC,2019-11-11 17:23:34,,00T1G00003UfFP8UAN,,,,FALSE,TRUE,,FALSE,2019-11-11 17:23:34,,Normal,,1,,0011G00000qFChkQAG,,,0051G000005Mun4QAC,2019-11-11 17:23:34,,0061G00000N3D9UQAV,Task,Completed,,X,FALSE,,,,,,,,,,0121G000000g1SFQAY,,,,,,,,,,,,,,,,,,,,,,,2019-11-11 17:23:34,,,,,,,,,,,,,,,,FALSE,,FALSE,FALSE,,,,,,X,fivetran ae,,FALSE, +,0031G00001NTqhqQAD,,,0051G000005Mun4QAC,,subject 0051G000005Mun4QAC,description,2019-11-11 17:23:34,,FALSE,0,2019-11-11 17:23:34,,FALSE,,0051G000005Mun4QAC,2019-11-11 17:23:34,,00T1G00003UfFl8UAF,,,,FALSE,TRUE,,FALSE,2019-11-11 17:23:34,,Normal,,1,,0011G00000tM0pgQAC,,,0051G000005Mun4QAC,2019-11-11 17:23:34,,,Task,Completed,,X,FALSE,,,,,,,,,,0121G000000g1SFQAY,,,,,,,,,,,,,,,,,,,,,,,2019-11-11 17:23:34,,,,,,,,,,,,,,,,FALSE,,FALSE,FALSE,,,,,,X,fivetran ae,,FALSE, \ No newline at end of file diff --git a/integration_tests/seeds/user_data.csv b/integration_tests/seeds/sf_user_data.csv similarity index 100% rename from integration_tests/seeds/user_data.csv rename to integration_tests/seeds/sf_user_data.csv diff --git a/integration_tests/seeds/user_role_data.csv b/integration_tests/seeds/sf_user_role_data.csv similarity index 100% rename from integration_tests/seeds/user_role_data.csv rename to integration_tests/seeds/sf_user_role_data.csv diff --git a/macros/generate_columns.sql b/macros/generate_columns.sql deleted file mode 100644 index fb868b4..0000000 --- a/macros/generate_columns.sql +++ /dev/null @@ -1,143 +0,0 @@ -{% macro get_account_columns() %} - -{% set columns = [ - - {"name": "_fivetran_synced", "datatype": dbt_utils.type_timestamp()}, - {"name": "account_number", "datatype": dbt_utils.type_string()}, - {"name": "account_source", "datatype": dbt_utils.type_string()}, - {"name": "annual_revenue", "datatype": dbt_utils.type_float()}, - {"name": "billing_city", "datatype": dbt_utils.type_string()}, - {"name": "billing_country", "datatype": dbt_utils.type_string()}, - {"name": "billing_postal_code", "datatype": dbt_utils.type_string()}, - {"name": "billing_state", "datatype": dbt_utils.type_string()}, - {"name": "billing_state_code", "datatype": dbt_utils.type_string()}, - {"name": "billing_street", "datatype": dbt_utils.type_string()}, - {"name": "description", "datatype": dbt_utils.type_string()}, - {"name": "id", "datatype": dbt_utils.type_string()}, - {"name": "industry", "datatype": dbt_utils.type_string()}, - {"name": "is_deleted", "datatype": "boolean"}, - {"name": "last_activity_date", "datatype": dbt_utils.type_timestamp()}, - {"name": "last_referenced_date", "datatype": dbt_utils.type_timestamp()}, - {"name": "last_viewed_date", "datatype": dbt_utils.type_timestamp()}, - {"name": "master_record_id", "datatype": dbt_utils.type_string()}, - {"name": "name", "datatype": dbt_utils.type_string()}, - {"name": "number_of_employees", "datatype": dbt_utils.type_int()}, - {"name": "owner_id", "datatype": dbt_utils.type_string()}, - {"name": "ownership", "datatype": dbt_utils.type_string()}, - {"name": "parent_id", "datatype": dbt_utils.type_string()}, - {"name": "rating", "datatype": dbt_utils.type_string()}, - {"name": "record_type_id", "datatype": dbt_utils.type_string()}, - {"name": "shipping_city", "datatype": dbt_utils.type_string()}, - {"name": "shipping_country", "datatype": dbt_utils.type_string()}, - {"name": "shipping_country_code", "datatype": dbt_utils.type_string()}, - {"name": "shipping_postal_code", "datatype": dbt_utils.type_string()}, - {"name": "shipping_state", "datatype": dbt_utils.type_string()}, - {"name": "shipping_state_code", "datatype": dbt_utils.type_string()}, - {"name": "shipping_street", "datatype": dbt_utils.type_string()}, - {"name": "type", "datatype": dbt_utils.type_string()}, - {"name": "website", "datatype": dbt_utils.type_string()}, -] %} - -{{ return(columns) }} - -{% endmacro %} - - -{% macro get_opportunity_columns() %} - -{% set columns = [ - {"name": "_fivetran_synced", "datatype": dbt_utils.type_timestamp()}, - {"name": "account_id", "datatype": dbt_utils.type_string()}, - {"name": "amount", "datatype": dbt_utils.type_float()}, - {"name": "campaign_id", "datatype": dbt_utils.type_string()}, - {"name": "close_date", "datatype": dbt_utils.type_timestamp()}, - {"name": "created_date", "datatype": dbt_utils.type_timestamp()}, - {"name": "description", "datatype": dbt_utils.type_string()}, - {"name": "expected_revenue", "datatype": dbt_utils.type_numeric()}, - {"name": "fiscal", "datatype": dbt_utils.type_string()}, - {"name": "fiscal_quarter", "datatype": dbt_utils.type_int()}, - {"name": "fiscal_year", "datatype": dbt_utils.type_int()}, - {"name": "forecast_category", "datatype": dbt_utils.type_string()}, - {"name": "forecast_category_name", "datatype": dbt_utils.type_string()}, - {"name": "has_open_activity", "datatype": "boolean"}, - {"name": "has_opportunity_line_item", "datatype": "boolean"}, - {"name": "has_overdue_task", "datatype": "boolean"}, - {"name": "id", "datatype": dbt_utils.type_string()}, - {"name": "is_closed", "datatype": "boolean"}, - {"name": "is_deleted", "datatype": "boolean"}, - {"name": "is_won", "datatype": "boolean"}, - {"name": "last_activity_date", "datatype": dbt_utils.type_timestamp()}, - {"name": "last_referenced_date", "datatype": dbt_utils.type_timestamp()}, - {"name": "last_viewed_date", "datatype": dbt_utils.type_timestamp()}, - {"name": "lead_source", "datatype": dbt_utils.type_string()}, - {"name": "name", "datatype": dbt_utils.type_string()}, - {"name": "next_step", "datatype": dbt_utils.type_string()}, - {"name": "owner_id", "datatype": dbt_utils.type_string()}, - {"name": "probability", "datatype": dbt_utils.type_float()}, - {"name": "record_type_id", "datatype": dbt_utils.type_string()}, - {"name": "stage_name", "datatype": dbt_utils.type_string()}, - {"name": "synced_quote_id", "datatype": dbt_utils.type_string()}, - {"name": "type", "datatype": dbt_utils.type_string()}, -] %} - -{{ return(columns) }} - -{% endmacro %} - - -{% macro get_user_columns() %} - -{% set columns = [ - {"name": "_fivetran_deleted", "datatype": "boolean"}, - {"name": "_fivetran_synced", "datatype": dbt_utils.type_timestamp()}, - {"name": "account_id", "datatype": dbt_utils.type_string()}, - {"name": "alias", "datatype": dbt_utils.type_string()}, - {"name": "city", "datatype": dbt_utils.type_string()}, - {"name": "company_name", "datatype": dbt_utils.type_string()}, - {"name": "contact_id", "datatype": dbt_utils.type_string()}, - {"name": "country", "datatype": dbt_utils.type_string()}, - {"name": "country_code", "datatype": dbt_utils.type_string()}, - {"name": "department", "datatype": dbt_utils.type_string()}, - {"name": "email", "datatype": dbt_utils.type_string()}, - {"name": "first_name", "datatype": dbt_utils.type_string()}, - {"name": "id", "datatype": dbt_utils.type_string()}, - {"name": "individual_id", "datatype": dbt_utils.type_string()}, - {"name": "is_active", "datatype": "boolean"}, - {"name": "last_login_date", "datatype": dbt_utils.type_timestamp()}, - {"name": "last_name", "datatype": dbt_utils.type_string()}, - {"name": "last_referenced_date", "datatype": dbt_utils.type_timestamp()}, - {"name": "last_viewed_date", "datatype": dbt_utils.type_timestamp()}, - {"name": "manager_id", "datatype": dbt_utils.type_string()}, - {"name": "name", "datatype": dbt_utils.type_string()}, - {"name": "postal_code", "datatype": dbt_utils.type_string()}, - {"name": "profile_id", "datatype": dbt_utils.type_string()}, - {"name": "state", "datatype": dbt_utils.type_string()}, - {"name": "state_code", "datatype": dbt_utils.type_string()}, - {"name": "street", "datatype": dbt_utils.type_string()}, - {"name": "title", "datatype": dbt_utils.type_string()}, - {"name": "user_role_id", "datatype": dbt_utils.type_string()}, - {"name": "user_type", "datatype": dbt_utils.type_string()}, - {"name": "username", "datatype": dbt_utils.type_string()}, -] %} - -{{ return(columns) }} - -{% endmacro %} - -{% macro get_user_role_columns() %} - -{% set columns = [ - {"name": "_fivetran_deleted", "datatype": "boolean"}, - {"name": "_fivetran_synced", "datatype": dbt_utils.type_timestamp()}, - {"name": "developer_name", "datatype": dbt_utils.type_string()}, - {"name": "id", "datatype": dbt_utils.type_string()}, - {"name": "name", "datatype": dbt_utils.type_string()}, - {"name": "opportunity_access_for_account_owner", "datatype": dbt_utils.type_string()}, - {"name": "parent_role_id", "datatype": dbt_utils.type_string()}, - {"name": "rollup_description", "datatype": dbt_utils.type_string()} -] %} - -{{ return(columns) }} - -{% endmacro %} - diff --git a/macros/get_account_columns.sql b/macros/get_account_columns.sql new file mode 100644 index 0000000..3296999 --- /dev/null +++ b/macros/get_account_columns.sql @@ -0,0 +1,43 @@ +{% macro get_account_columns() %} + +{% set columns = [ + + {"name": "_fivetran_synced", "datatype": dbt_utils.type_timestamp()}, + {"name": "account_number", "datatype": dbt_utils.type_string()}, + {"name": "account_source", "datatype": dbt_utils.type_string()}, + {"name": "annual_revenue", "datatype": dbt_utils.type_float()}, + {"name": "billing_city", "datatype": dbt_utils.type_string()}, + {"name": "billing_country", "datatype": dbt_utils.type_string()}, + {"name": "billing_postal_code", "datatype": dbt_utils.type_string()}, + {"name": "billing_state", "datatype": dbt_utils.type_string()}, + {"name": "billing_state_code", "datatype": dbt_utils.type_string()}, + {"name": "billing_street", "datatype": dbt_utils.type_string()}, + {"name": "description", "datatype": dbt_utils.type_string()}, + {"name": "id", "datatype": dbt_utils.type_string()}, + {"name": "industry", "datatype": dbt_utils.type_string()}, + {"name": "is_deleted", "datatype": "boolean"}, + {"name": "last_activity_date", "datatype": dbt_utils.type_timestamp()}, + {"name": "last_referenced_date", "datatype": dbt_utils.type_timestamp()}, + {"name": "last_viewed_date", "datatype": dbt_utils.type_timestamp()}, + {"name": "master_record_id", "datatype": dbt_utils.type_string()}, + {"name": "name", "datatype": dbt_utils.type_string()}, + {"name": "number_of_employees", "datatype": dbt_utils.type_int()}, + {"name": "owner_id", "datatype": dbt_utils.type_string()}, + {"name": "ownership", "datatype": dbt_utils.type_string()}, + {"name": "parent_id", "datatype": dbt_utils.type_string()}, + {"name": "rating", "datatype": dbt_utils.type_string()}, + {"name": "record_type_id", "datatype": dbt_utils.type_string()}, + {"name": "shipping_city", "datatype": dbt_utils.type_string()}, + {"name": "shipping_country", "datatype": dbt_utils.type_string()}, + {"name": "shipping_country_code", "datatype": dbt_utils.type_string()}, + {"name": "shipping_postal_code", "datatype": dbt_utils.type_string()}, + {"name": "shipping_state", "datatype": dbt_utils.type_string()}, + {"name": "shipping_state_code", "datatype": dbt_utils.type_string()}, + {"name": "shipping_street", "datatype": dbt_utils.type_string()}, + {"name": "type", "datatype": dbt_utils.type_string()}, + {"name": "website", "datatype": dbt_utils.type_string()}, +] %} + +{{ return(columns) }} + +{% endmacro %} \ No newline at end of file diff --git a/macros/get_contact_columns.sql b/macros/get_contact_columns.sql new file mode 100644 index 0000000..b8ca3bc --- /dev/null +++ b/macros/get_contact_columns.sql @@ -0,0 +1,39 @@ +{% macro get_contact_columns() %} + +{% set columns = [ + {"name": "_fivetran_synced", "datatype": dbt_utils.type_timestamp()}, + {"name": "account_id", "datatype": dbt_utils.type_string()}, + {"name": "department", "datatype": dbt_utils.type_string()}, + {"name": "description", "datatype": dbt_utils.type_string()}, + {"name": "email", "datatype": dbt_utils.type_string()}, + {"name": "first_name", "datatype": dbt_utils.type_string()}, + {"name": "home_phone", "datatype": dbt_utils.type_string()}, + {"name": "id", "datatype": dbt_utils.type_string()}, + {"name": "individual_id", "datatype": dbt_utils.type_string()}, + {"name": "is_deleted", "datatype": "boolean"}, + {"name": "last_activity_date", "datatype": dbt_utils.type_timestamp()}, + {"name": "last_modified_by_id", "datatype": dbt_utils.type_string()}, + {"name": "last_modified_date", "datatype": dbt_utils.type_timestamp()}, + {"name": "last_name", "datatype": dbt_utils.type_string()}, + {"name": "last_referenced_date", "datatype": dbt_utils.type_timestamp()}, + {"name": "last_viewed_date", "datatype": dbt_utils.type_timestamp()}, + {"name": "lead_source", "datatype": dbt_utils.type_string()}, + {"name": "mailing_city", "datatype": dbt_utils.type_string()}, + {"name": "mailing_country", "datatype": dbt_utils.type_string()}, + {"name": "mailing_country_code", "datatype": dbt_utils.type_string()}, + {"name": "mailing_postal_code", "datatype": dbt_utils.type_string()}, + {"name": "mailing_state", "datatype": dbt_utils.type_string()}, + {"name": "mailing_state_code", "datatype": dbt_utils.type_string()}, + {"name": "mailing_street", "datatype": dbt_utils.type_string()}, + {"name": "master_record_id", "datatype": dbt_utils.type_string()}, + {"name": "mobile_phone", "datatype": dbt_utils.type_string()}, + {"name": "name", "datatype": dbt_utils.type_string()}, + {"name": "owner_id", "datatype": dbt_utils.type_string()}, + {"name": "phone", "datatype": dbt_utils.type_string()}, + {"name": "reports_to_id", "datatype": dbt_utils.type_string()}, + {"name": "title", "datatype": dbt_utils.type_string()}, +] %} + +{{ return(columns) }} + +{% endmacro %} diff --git a/macros/get_event_columns.sql b/macros/get_event_columns.sql new file mode 100644 index 0000000..c33a5be --- /dev/null +++ b/macros/get_event_columns.sql @@ -0,0 +1,36 @@ +{% macro get_event_columns() %} + +{% set columns = [ + {"name": "_fivetran_synced", "datatype": dbt_utils.type_timestamp()}, + {"name": "account_id", "datatype": dbt_utils.type_string()}, + {"name": "activity_date", "datatype": dbt_utils.type_timestamp()}, + {"name": "activity_date_time", "datatype": dbt_utils.type_timestamp()}, + {"name": "created_by_id", "datatype": dbt_utils.type_string()}, + {"name": "created_date", "datatype": dbt_utils.type_timestamp()}, + {"name": "description", "datatype": dbt_utils.type_string()}, + {"name": "end_date", "datatype": dbt_utils.type_timestamp()}, + {"name": "end_date_time", "datatype": dbt_utils.type_timestamp()}, + {"name": "event_subtype", "datatype": dbt_utils.type_string()}, + {"name": "group_event_type", "datatype": dbt_utils.type_string()}, + {"name": "id", "datatype": dbt_utils.type_string()}, + {"name": "is_archived", "datatype": "boolean"}, + {"name": "is_child", "datatype": "boolean"}, + {"name": "is_deleted", "datatype": "boolean"}, + {"name": "is_group_event", "datatype": "boolean"}, + {"name": "is_recurrence", "datatype": "boolean"}, + {"name": "last_modified_by_id", "datatype": dbt_utils.type_string()}, + {"name": "last_modified_date", "datatype": dbt_utils.type_timestamp()}, + {"name": "location", "datatype": dbt_utils.type_string()}, + {"name": "owner_id", "datatype": dbt_utils.type_string()}, + {"name": "start_date_time", "datatype": dbt_utils.type_timestamp()}, + {"name": "subject", "datatype": dbt_utils.type_string()}, + {"name": "type", "datatype": dbt_utils.type_string()}, + {"name": "what_count", "datatype": dbt_utils.type_int()}, + {"name": "what_id", "datatype": dbt_utils.type_string()}, + {"name": "who_count", "datatype": dbt_utils.type_int()}, + {"name": "who_id", "datatype": dbt_utils.type_string()} +] %} + +{{ return(columns) }} + +{% endmacro %} diff --git a/macros/get_lead_columns.sql b/macros/get_lead_columns.sql new file mode 100644 index 0000000..3ec685d --- /dev/null +++ b/macros/get_lead_columns.sql @@ -0,0 +1,52 @@ +{% macro get_lead_columns() %} + +{% set columns = [ + {"name": "_fivetran_synced", "datatype": dbt_utils.type_timestamp()}, + {"name": "annual_revenue", "datatype": dbt_utils.type_float()}, + {"name": "city", "datatype": dbt_utils.type_string()}, + {"name": "company", "datatype": dbt_utils.type_string()}, + {"name": "converted_account_id", "datatype": dbt_utils.type_string()}, + {"name": "converted_contact_id", "datatype": dbt_utils.type_string()}, + {"name": "converted_date", "datatype": dbt_utils.type_timestamp()}, + {"name": "converted_opportunity_id", "datatype": dbt_utils.type_string()}, + {"name": "country", "datatype": dbt_utils.type_string()}, + {"name": "country_code", "datatype": dbt_utils.type_string()}, + {"name": "created_by_id", "datatype": dbt_utils.type_string()}, + {"name": "created_date", "datatype": dbt_utils.type_timestamp()}, + {"name": "description", "datatype": dbt_utils.type_string()}, + {"name": "email", "datatype": dbt_utils.type_string()}, + {"name": "email_bounced_date", "datatype": dbt_utils.type_timestamp()}, + {"name": "email_bounced_reason", "datatype": dbt_utils.type_string()}, + {"name": "first_name", "datatype": dbt_utils.type_string()}, + {"name": "has_opted_out_of_email", "datatype": "boolean"}, + {"name": "id", "datatype": dbt_utils.type_string()}, + {"name": "individual_id", "datatype": dbt_utils.type_string()}, + {"name": "industry", "datatype": dbt_utils.type_string()}, + {"name": "is_converted", "datatype": "boolean"}, + {"name": "is_deleted", "datatype": "boolean"}, + {"name": "is_unread_by_owner", "datatype": "boolean"}, + {"name": "last_activity_date", "datatype": dbt_utils.type_timestamp()}, + {"name": "last_modified_by_id", "datatype": dbt_utils.type_string()}, + {"name": "last_modified_date", "datatype": dbt_utils.type_timestamp()}, + {"name": "last_name", "datatype": dbt_utils.type_string()}, + {"name": "last_referenced_date", "datatype": dbt_utils.type_timestamp()}, + {"name": "last_viewed_date", "datatype": dbt_utils.type_timestamp()}, + {"name": "lead_source", "datatype": dbt_utils.type_string()}, + {"name": "master_record_id", "datatype": dbt_utils.type_string()}, + {"name": "mobile_phone", "datatype": dbt_utils.type_string()}, + {"name": "name", "datatype": dbt_utils.type_string()}, + {"name": "number_of_employees", "datatype": dbt_utils.type_int()}, + {"name": "owner_id", "datatype": dbt_utils.type_string()}, + {"name": "phone", "datatype": dbt_utils.type_string()}, + {"name": "postal_code", "datatype": dbt_utils.type_string()}, + {"name": "state", "datatype": dbt_utils.type_string()}, + {"name": "state_code", "datatype": dbt_utils.type_string()}, + {"name": "status", "datatype": dbt_utils.type_string()}, + {"name": "street", "datatype": dbt_utils.type_string()}, + {"name": "title", "datatype": dbt_utils.type_string()}, + {"name": "website", "datatype": dbt_utils.type_string()}, +] %} + +{{ return(columns) }} + +{% endmacro %} diff --git a/macros/get_opportunity_columns.sql b/macros/get_opportunity_columns.sql new file mode 100644 index 0000000..ea2605b --- /dev/null +++ b/macros/get_opportunity_columns.sql @@ -0,0 +1,41 @@ + +{% macro get_opportunity_columns() %} + +{% set columns = [ + {"name": "_fivetran_synced", "datatype": dbt_utils.type_timestamp()}, + {"name": "account_id", "datatype": dbt_utils.type_string()}, + {"name": "amount", "datatype": dbt_utils.type_float()}, + {"name": "campaign_id", "datatype": dbt_utils.type_string()}, + {"name": "close_date", "datatype": dbt_utils.type_timestamp()}, + {"name": "created_date", "datatype": dbt_utils.type_timestamp()}, + {"name": "description", "datatype": dbt_utils.type_string()}, + {"name": "expected_revenue", "datatype": dbt_utils.type_numeric()}, + {"name": "fiscal", "datatype": dbt_utils.type_string()}, + {"name": "fiscal_quarter", "datatype": dbt_utils.type_int()}, + {"name": "fiscal_year", "datatype": dbt_utils.type_int()}, + {"name": "forecast_category", "datatype": dbt_utils.type_string()}, + {"name": "forecast_category_name", "datatype": dbt_utils.type_string()}, + {"name": "has_open_activity", "datatype": "boolean"}, + {"name": "has_opportunity_line_item", "datatype": "boolean"}, + {"name": "has_overdue_task", "datatype": "boolean"}, + {"name": "id", "datatype": dbt_utils.type_string()}, + {"name": "is_closed", "datatype": "boolean"}, + {"name": "is_deleted", "datatype": "boolean"}, + {"name": "is_won", "datatype": "boolean"}, + {"name": "last_activity_date", "datatype": dbt_utils.type_timestamp()}, + {"name": "last_referenced_date", "datatype": dbt_utils.type_timestamp()}, + {"name": "last_viewed_date", "datatype": dbt_utils.type_timestamp()}, + {"name": "lead_source", "datatype": dbt_utils.type_string()}, + {"name": "name", "datatype": dbt_utils.type_string()}, + {"name": "next_step", "datatype": dbt_utils.type_string()}, + {"name": "owner_id", "datatype": dbt_utils.type_string()}, + {"name": "probability", "datatype": dbt_utils.type_float()}, + {"name": "record_type_id", "datatype": dbt_utils.type_string()}, + {"name": "stage_name", "datatype": dbt_utils.type_string()}, + {"name": "synced_quote_id", "datatype": dbt_utils.type_string()}, + {"name": "type", "datatype": dbt_utils.type_string()}, +] %} + +{{ return(columns) }} + +{% endmacro %} \ No newline at end of file diff --git a/macros/get_opportunity_line_item_columns.sql b/macros/get_opportunity_line_item_columns.sql new file mode 100644 index 0000000..6a959b3 --- /dev/null +++ b/macros/get_opportunity_line_item_columns.sql @@ -0,0 +1,33 @@ +{% macro get_opportunity_line_item_columns() %} + +{% set columns = [ + {"name": "_fivetran_synced", "datatype": dbt_utils.type_timestamp()}, + {"name": "created_by_id", "datatype": dbt_utils.type_string()}, + {"name": "created_date", "datatype": dbt_utils.type_timestamp()}, + {"name": "description", "datatype": dbt_utils.type_string()}, + {"name": "discount", "datatype": dbt_utils.type_float()}, + {"name": "has_quantity_schedule", "datatype": "boolean"}, + {"name": "has_revenue_schedule", "datatype": "boolean"}, + {"name": "has_schedule", "datatype": "boolean"}, + {"name": "id", "datatype": dbt_utils.type_string()}, + {"name": "is_deleted", "datatype": "boolean"}, + {"name": "last_modified_by_id", "datatype": dbt_utils.type_string()}, + {"name": "last_modified_date", "datatype": dbt_utils.type_timestamp()}, + {"name": "last_referenced_date", "datatype": dbt_utils.type_timestamp()}, + {"name": "last_viewed_date", "datatype": dbt_utils.type_timestamp()}, + {"name": "list_price", "datatype": dbt_utils.type_float()}, + {"name": "name", "datatype": dbt_utils.type_string()}, + {"name": "opportunity_id", "datatype": dbt_utils.type_string()}, + {"name": "pricebook_entry_id", "datatype": dbt_utils.type_string()}, + {"name": "product_2_id", "datatype": dbt_utils.type_string()}, + {"name": "product_code", "datatype": dbt_utils.type_string()}, + {"name": "quantity", "datatype": dbt_utils.type_float()}, + {"name": "service_date", "datatype": dbt_utils.type_timestamp()}, + {"name": "sort_order", "datatype": dbt_utils.type_int()}, + {"name": "total_price", "datatype": dbt_utils.type_float()}, + {"name": "unit_price", "datatype": dbt_utils.type_float()} +] %} + +{{ return(columns) }} + +{% endmacro %} diff --git a/macros/get_order_columns.sql b/macros/get_order_columns.sql new file mode 100644 index 0000000..cf9df70 --- /dev/null +++ b/macros/get_order_columns.sql @@ -0,0 +1,45 @@ +{% macro get_order_columns() %} + +{% set columns = [ + {"name": "_fivetran_synced", "datatype": dbt_utils.type_timestamp()}, + {"name": "account_id", "datatype": dbt_utils.type_string()}, + {"name": "activated_by_id", "datatype": dbt_utils.type_string()}, + {"name": "activated_date", "datatype": dbt_utils.type_timestamp()}, + {"name": "billing_city", "datatype": dbt_utils.type_string()}, + {"name": "billing_country", "datatype": dbt_utils.type_string()}, + {"name": "billing_country_code", "datatype": dbt_utils.type_string()}, + {"name": "billing_postal_code", "datatype": dbt_utils.type_string()}, + {"name": "billing_state", "datatype": dbt_utils.type_string()}, + {"name": "billing_state_code", "datatype": dbt_utils.type_string()}, + {"name": "billing_street", "datatype": dbt_utils.type_string()}, + {"name": "contract_id", "datatype": dbt_utils.type_string()}, + {"name": "created_by_id", "datatype": dbt_utils.type_string()}, + {"name": "created_date", "datatype": dbt_utils.type_timestamp()}, + {"name": "description", "datatype": dbt_utils.type_string()}, + {"name": "end_date", "datatype": dbt_utils.type_timestamp()}, + {"name": "id", "datatype": dbt_utils.type_string()}, + {"name": "is_deleted", "datatype": "boolean"}, + {"name": "last_modified_by_id", "datatype": dbt_utils.type_string()}, + {"name": "last_modified_date", "datatype": dbt_utils.type_timestamp()}, + {"name": "last_referenced_date", "datatype": dbt_utils.type_timestamp()}, + {"name": "last_viewed_date", "datatype": dbt_utils.type_timestamp()}, + {"name": "opportunity_id", "datatype": dbt_utils.type_string()}, + {"name": "order_number", "datatype": dbt_utils.type_string()}, + {"name": "original_order_id", "datatype": dbt_utils.type_string()}, + {"name": "owner_id", "datatype": dbt_utils.type_string()}, + {"name": "pricebook_2_id", "datatype": dbt_utils.type_string()}, + {"name": "shipping_city", "datatype": dbt_utils.type_string()}, + {"name": "shipping_country", "datatype": dbt_utils.type_string()}, + {"name": "shipping_country_code", "datatype": dbt_utils.type_string()}, + {"name": "shipping_postal_code", "datatype": dbt_utils.type_string()}, + {"name": "shipping_state", "datatype": dbt_utils.type_string()}, + {"name": "shipping_state_code", "datatype": dbt_utils.type_string()}, + {"name": "shipping_street", "datatype": dbt_utils.type_string()}, + {"name": "status", "datatype": dbt_utils.type_string()}, + {"name": "total_amount", "datatype": dbt_utils.type_float()}, + {"name": "type", "datatype": dbt_utils.type_string()}, +] %} + +{{ return(columns) }} + +{% endmacro %} diff --git a/macros/get_product_2_columns.sql b/macros/get_product_2_columns.sql new file mode 100644 index 0000000..8488af6 --- /dev/null +++ b/macros/get_product_2_columns.sql @@ -0,0 +1,33 @@ +{% macro get_product_2_columns() %} + +{% set columns = [ + {"name": "_fivetran_synced", "datatype": dbt_utils.type_timestamp()}, + {"name": "created_by_id", "datatype": dbt_utils.type_string()}, + {"name": "created_date", "datatype": dbt_utils.type_timestamp()}, + {"name": "description", "datatype": dbt_utils.type_string()}, + {"name": "display_url", "datatype": dbt_utils.type_string()}, + {"name": "external_id", "datatype": dbt_utils.type_string()}, + {"name": "family", "datatype": dbt_utils.type_string()}, + {"name": "id", "datatype": dbt_utils.type_string()}, + {"name": "is_active", "datatype": "boolean"}, + {"name": "is_archived", "datatype": "boolean"}, + {"name": "is_deleted", "datatype": "boolean"}, + {"name": "last_modified_by_id", "datatype": dbt_utils.type_string()}, + {"name": "last_modified_date", "datatype": dbt_utils.type_timestamp()}, + {"name": "last_referenced_date", "datatype": dbt_utils.type_timestamp()}, + {"name": "last_viewed_date", "datatype": dbt_utils.type_timestamp()}, + {"name": "name", "datatype": dbt_utils.type_string()}, + {"name": "number_of_quantity_installments", "datatype": dbt_utils.type_int()}, + {"name": "number_of_revenue_installments", "datatype": dbt_utils.type_int()}, + {"name": "product_code", "datatype": dbt_utils.type_string()}, + {"name": "quantity_installment_period", "datatype": dbt_utils.type_string()}, + {"name": "quantity_schedule_type", "datatype": dbt_utils.type_string()}, + {"name": "quantity_unit_of_measure", "datatype": dbt_utils.type_string()}, + {"name": "record_type_id", "datatype": dbt_utils.type_string()}, + {"name": "revenue_installment_period", "datatype": dbt_utils.type_string()}, + {"name": "revenue_schedule_type", "datatype": dbt_utils.type_string()}, +] %} + +{{ return(columns) }} + +{% endmacro %} diff --git a/macros/get_task_columns.sql b/macros/get_task_columns.sql new file mode 100644 index 0000000..f0087ed --- /dev/null +++ b/macros/get_task_columns.sql @@ -0,0 +1,37 @@ +{% macro get_task_columns() %} + +{% set columns = [ + {"name": "_fivetran_synced", "datatype": dbt_utils.type_timestamp()}, + {"name": "account_id", "datatype": dbt_utils.type_string()}, + {"name": "activity_date", "datatype": dbt_utils.type_timestamp()}, + {"name": "call_disposition", "datatype": dbt_utils.type_string()}, + {"name": "call_duration_in_seconds", "datatype": dbt_utils.type_int()}, + {"name": "call_object", "datatype": dbt_utils.type_string()}, + {"name": "call_type", "datatype": dbt_utils.type_string()}, + {"name": "completed_date_time", "datatype": dbt_utils.type_timestamp()}, + {"name": "created_by_id", "datatype": dbt_utils.type_string()}, + {"name": "created_date", "datatype": dbt_utils.type_timestamp()}, + {"name": "description", "datatype": dbt_utils.type_string()}, + {"name": "id", "datatype": dbt_utils.type_string()}, + {"name": "is_archived", "datatype": "boolean"}, + {"name": "is_closed", "datatype": "boolean"}, + {"name": "is_deleted", "datatype": "boolean"}, + {"name": "is_high_priority", "datatype": "boolean"}, + {"name": "last_modified_by_id", "datatype": dbt_utils.type_string()}, + {"name": "last_modified_date", "datatype": dbt_utils.type_timestamp()}, + {"name": "owner_id", "datatype": dbt_utils.type_string()}, + {"name": "priority", "datatype": dbt_utils.type_string()}, + {"name": "record_type_id", "datatype": dbt_utils.type_string()}, + {"name": "status", "datatype": dbt_utils.type_string()}, + {"name": "subject", "datatype": dbt_utils.type_string()}, + {"name": "task_subtype", "datatype": dbt_utils.type_string()}, + {"name": "type", "datatype": dbt_utils.type_string()}, + {"name": "what_count", "datatype": dbt_utils.type_int()}, + {"name": "what_id", "datatype": dbt_utils.type_string()}, + {"name": "who_count", "datatype": dbt_utils.type_int()}, + {"name": "who_id", "datatype": dbt_utils.type_string()} +] %} + +{{ return(columns) }} + +{% endmacro %} diff --git a/macros/get_user_columns.sql b/macros/get_user_columns.sql new file mode 100644 index 0000000..5808583 --- /dev/null +++ b/macros/get_user_columns.sql @@ -0,0 +1,38 @@ +{% macro get_user_columns() %} + +{% set columns = [ + {"name": "_fivetran_deleted", "datatype": "boolean"}, + {"name": "_fivetran_synced", "datatype": dbt_utils.type_timestamp()}, + {"name": "account_id", "datatype": dbt_utils.type_string()}, + {"name": "alias", "datatype": dbt_utils.type_string()}, + {"name": "city", "datatype": dbt_utils.type_string()}, + {"name": "company_name", "datatype": dbt_utils.type_string()}, + {"name": "contact_id", "datatype": dbt_utils.type_string()}, + {"name": "country", "datatype": dbt_utils.type_string()}, + {"name": "country_code", "datatype": dbt_utils.type_string()}, + {"name": "department", "datatype": dbt_utils.type_string()}, + {"name": "email", "datatype": dbt_utils.type_string()}, + {"name": "first_name", "datatype": dbt_utils.type_string()}, + {"name": "id", "datatype": dbt_utils.type_string()}, + {"name": "individual_id", "datatype": dbt_utils.type_string()}, + {"name": "is_active", "datatype": "boolean"}, + {"name": "last_login_date", "datatype": dbt_utils.type_timestamp()}, + {"name": "last_name", "datatype": dbt_utils.type_string()}, + {"name": "last_referenced_date", "datatype": dbt_utils.type_timestamp()}, + {"name": "last_viewed_date", "datatype": dbt_utils.type_timestamp()}, + {"name": "manager_id", "datatype": dbt_utils.type_string()}, + {"name": "name", "datatype": dbt_utils.type_string()}, + {"name": "postal_code", "datatype": dbt_utils.type_string()}, + {"name": "profile_id", "datatype": dbt_utils.type_string()}, + {"name": "state", "datatype": dbt_utils.type_string()}, + {"name": "state_code", "datatype": dbt_utils.type_string()}, + {"name": "street", "datatype": dbt_utils.type_string()}, + {"name": "title", "datatype": dbt_utils.type_string()}, + {"name": "user_role_id", "datatype": dbt_utils.type_string()}, + {"name": "user_type", "datatype": dbt_utils.type_string()}, + {"name": "username", "datatype": dbt_utils.type_string()}, +] %} + +{{ return(columns) }} + +{% endmacro %} \ No newline at end of file diff --git a/macros/get_user_role_columns.sql b/macros/get_user_role_columns.sql new file mode 100644 index 0000000..84ebce7 --- /dev/null +++ b/macros/get_user_role_columns.sql @@ -0,0 +1,16 @@ +{% macro get_user_role_columns() %} + +{% set columns = [ + {"name": "_fivetran_deleted", "datatype": "boolean"}, + {"name": "_fivetran_synced", "datatype": dbt_utils.type_timestamp()}, + {"name": "developer_name", "datatype": dbt_utils.type_string()}, + {"name": "id", "datatype": dbt_utils.type_string()}, + {"name": "name", "datatype": dbt_utils.type_string()}, + {"name": "opportunity_access_for_account_owner", "datatype": dbt_utils.type_string()}, + {"name": "parent_role_id", "datatype": dbt_utils.type_string()}, + {"name": "rollup_description", "datatype": dbt_utils.type_string()} +] %} + +{{ return(columns) }} + +{% endmacro %} \ No newline at end of file diff --git a/models/src_salesforce.yml b/models/src_salesforce.yml index e0ff2f8..81fbe95 100644 --- a/models/src_salesforce.yml +++ b/models/src_salesforce.yml @@ -12,6 +12,7 @@ sources: tables: - name: account + identifier: "{{ var('salesforce_account_identifier', 'account')}}" loaded_at_field: _fivetran_synced description: Represents an individual account, which is an organization or person involved with your business (such as customers, competitors, and partners). columns: @@ -19,6 +20,8 @@ sources: description: The unique, system-generated ID assigned during creation - name: _fivetran_synced description: The time at which fivetran last synced this record + - name: _fivetran_active + description: True if record is active, used to filter out only active records if History Mode is enabled - name: account_number description: Account number assigned to this account (not the unique, system-generated ID assigned during creation). - name: account_source @@ -115,6 +118,7 @@ sources: description: The website of this account. - name: opportunity + identifier: "{{ var('salesforce_opportunity_identifier', 'opportunity')}}" loaded_at_field: _fivetran_synced description: Represents an opportunity, which is a sale or pending deal. columns: @@ -122,6 +126,8 @@ sources: description: The unique, system-generated ID assigned during creation. - name: _fivetran_synced description: The time at which fivetran last synced this record + - name: _fivetran_active + description: True if record is active, used to filter out only active records if History Mode is enabled - name: account_id description: ID of the account associated with this opportunity. - name: amount @@ -192,6 +198,7 @@ sources: description: Type of opportunity. For example, Existing Business or New Business. - name: user + identifier: "{{ var('salesforce_user_identifier', 'user')}}" freshness: null description: Represents a user in your organization. columns: @@ -199,6 +206,8 @@ sources: description: The unique, system-generated ID assigned during creation. - name: _fivetran_synced description: The time at which fivetran last synced this record + - name: _fivetran_active + description: True if record is active, used to filter out only active records if History Mode is enabled - name: _fivetran_deleted description: True, if this field has been deleted - name: about_me @@ -327,6 +336,7 @@ sources: description: The category of user license. - name: user_role + identifier: "{{ var('salesforce_user_role_identifier', 'user_role')}}" freshness: null description: Represents a user role in your organization. columns: @@ -336,6 +346,8 @@ sources: description: The time at which fivetran last synced this record - name: _fivetran_deleted description: True, if this field has been deleted + - name: _fivetran_active + description: True if record is active, used to filter out only active records if History Mode is enabled - name: case_access_for_account_owner description: The case access level for the account owner. - name: contact_access_for_account_owner @@ -356,3 +368,757 @@ sources: description: This value indicates the type of portal for the role - name: rollup_description description: Description of the forecast rollup. + + + - name: contact + identifier: "{{ var('salesforce_contact_identifier', 'contact')}}" + freshness: null + description: Represents a contact, which is a person associated with an account. + columns: + - name: id + description: The unique, system-generated ID assigned during creation. + - name: _fivetran_synced + description: The time at which fivetran last synced this record + - name: _fivetran_active + description: True if record is active, used to filter out only active records if History Mode is enabled + - name: account_id + description: ID of the account that’s the parent of this contact. + - name: assistant_name + description: The assistant’s name. + - name: assistant_phone + description: The assistant’s telephone number. + - name: birthdate + description: The contact’s birthdate. + - name: department + description: The contact’s department. + - name: description + description: A description of the contact. Label is Contact Description up to 32 KB. + - name: do_not_call + description: Indicates that the contact does not want to receive calls. + - name: email + description: The contact’s email address. + - name: email_bounced_date + description: If bounce management is activated and an email sent to the contact bounces, the date and time of the bounce. + - name: email_bounced_reason + description: If bounce management is activated and an email sent to the contact bounces, the reason for the bounce. + - name: fax + description: The contact’s fax number. Label is Business Fax. + - name: first_name + description: The contact’s first name up to 40 characters. + - name: has_opted_out_of_email + description: indicates whether the contact doesn’t want to receive email from Salesforce (true) or does (false). Label is Email Opt Out + - name: has_opted_out_of_fax + description: Indicates whether the contact prohibits receiving faxes. + - name: home_phone + description: The contact’s home telephone number. + - name: individual_id + description: ID of the data privacy record associated with this contact. This field is available if Data Protection and Privacy is enabled. This is a relationship field. + - name: is_deleted + description: Indicates whether the object has been moved to the Recycle Bin (true) or not (false). Label is Deleted. + - name: is_email_bounced + description: If bounce management is activated and an email is sent to a contact, indicates whether the email bounced (true) or not (false). + - name: jigsaw + description: Data.com Key + - name: jigsaw_contact_id + description: Jigsaw contact OD + - name: last_activity_date + description: > + Value is the most recent of either: + Due date of the most recent event logged against the record. + Due date of the most recently closed task associated with the record. + - name: last_curequest_date + description: Last Stay-in-Touch Request Date + - name: last_cuupdate_date + description: Last Stay-in-Touch Save Date + - name: last_modified_by_id + description: Last Modified By ID + - name: last_modified_date + description: Last Modified Date + - name: last_name + description: Required. Last name of the contact up to 80 characters. + - name: last_referenced_date + description: The timestamp when the current user last accessed this record, a record related to this record, or a list view. + - name: last_viewed_date + description: The timestamp when the current user last viewed this record or list view. If this value is null, the user might have only accessed this record or list view (LastReferencedDate) but not viewed it. + - name: lead_source + description: The lead’s source. + - name: mailing_city + description: Mailing address details. + - name: mailing_country + description: Mailing address details. + - name: mailing_country_code + description: The ISO codes for the mailing address’s state and country. + - name: mailing_geocode_accuracy + description: Accuracy level of the geocode for the mailing address. For details on geolocation compound field + - name: mailing_latitude + description: Used with MailingLongitude to specify the precise geolocation of a mailing address. Acceptable values are numbers between –90 and 90 up to 15 decimal places. For details on geolocation compound fields + - name: mailing_longitude + description: Used with MailingLatitude to specify the precise geolocation of a mailing address. Acceptable values are numbers between –180 and 180 up to 15 decimal places. For details on geolocation compound fields + - name: mailing_postal_code + description: Mailing address details. + - name: mailing_state + description: Mailing address details. + - name: mailing_state_code + description: The ISO codes for the mailing address’s state and country. + - name: mailing_street + description: Street address for mailing address. + - name: master_record_id + description: > + If this record was deleted as the result of a merge, this field contains the ID of the record that remains. If this record was deleted for any other reason, or has not been deleted, the value is null. + This is a relationship field. + - name: mobile_phone + description: Contact’s mobile phone number. + - name: name + description: Concatenation of FirstName, MiddleName, LastName, and Suffix up to 203 characters, including whitespaces. + - name: other_city + description: Alternate address details. + - name: other_country + description: Alternate address details. + - name: other_geocode_accuracy + description: Accuracy level of the geocode for the other address. For details on geolocation compound fields + - name: other_latitude + description: Used with OtherLongitude to specify the precise geolocation of an alternate address. Acceptable values are numbers between –90 and 90 up to 15 decimal places. For details on geolocation compound fields + - name: other_longitude + description: Used with OtherLatitude to specify the precise geolocation of an alternate address. Acceptable values are numbers between –180 and 180 up to 15 decimal places. For details on geolocation compound fields + - name: other_phone + description: Telephone for alternate address. + - name: other_postal_code + description: Alternate address details. + - name: other_state + description: Alternate address details. + - name: other_street + description: Street for alternate address. + - name: owner_id + description: > + The ID of the owner of the account associated with this contact. + This is a relationship field. + - name: phone + description: Telephone number for the contact. Label is Business Phone. + - name: photo_url + description: > + 'Path to be combined with the URL of a Salesforce instance (Example: https://yourInstance.salesforce.com/) + to generate a URL to request the social network profile image associated with the contact. Generated URL returns an HTTP redirect (code 302) + to the social network profile image for the contact. Empty if Social Accounts and Contacts isn't enabled or if Social Accounts and Contacts is + disabled for the requesting user.' + - name: reports_to_id + description: > + This field doesn’t appear if IsPersonAccount is true. + This is a relationship field. + - name: salutation + description: Honorific abbreviation, word, or phrase to be used in front of name in greetings, such as Dr. or Mrs. + - name: system_modstamp + description: System Modstamp + - name: title + description: Title + + - name: event + identifier: "{{ var('salesforce_event_identifier', 'event')}}" + freshness: null + description: Represents an event in the calendar. In the user interface, event and task records are collectively referred to as activities. + columns: + - name: id + description: The unique, system-generated ID assigned during creation. + - name: _fivetran_synced + description: The time at which fivetran last synced this record + - name: _fivetran_active + description: True if record is active, used to filter out only active records if History Mode is enabled + - name: account_id + description: > + Represents the ID of the related account. The AccountId is determined as follows. + If the value of WhatId is any of the following objects, then Salesforce uses that object’s AccountId. + + Account + Opportunity + Contract + Custom object that is a child of Account + If the value of the WhatId field is any other object, and the value of the WhoId field is a contact object, then Salesforce uses that contact’s AccountId. (If your org uses Shared Activities, Salesforce uses the AccountId of the primary contact.) + + Otherwise, Salesforce sets the value of the AccountId field to null. + + For information on IDs, see ID Field Type. + + This is a relationship field. + - name: activity_date + description: > + Contains the event’s due date if the IsAllDayEvent flag is set to true. This field is a date field with a timestamp that is always set to midnight in the Coordinated Universal Time (UTC) time zone. Don’t attempt to alter the timestamp to account for time zone differences. Label is Due Date Only. + This field is required in versions 12.0 and earlier if the IsAllDayEvent flag is set to true. + + The value for this field and StartDateTime must match, or one of them must be null. + - name: activity_date_time + description: > + Contains the event’s due date if the IsAllDayEvent flag is set to false. The time portion of this field is always transferred in the Coordinated Universal Time (UTC) time zone. Translate the time portion to or from a local time zone for the user or the application, as appropriate. Label is Due Date Time. + This field is required in versions 12.0 and earlier if the IsAllDayEvent flag is set to false. + + The value for this field and StartDateTime must match, or one of them must be null. + - name: created_by_id + description: Created By ID + - name: created_date + description: Created Date + - name: description + description: Contains a text description of the event. + - name: duration_in_minutes + description: > + Contains the event length, in minutes + - name: end_date + description: Read-only. Available in versions 46.0 and later. This field supplies the date value that appears in the EndDateTime field. This field is a date field with a timestamp that is always set to midnight in the Coordinated Universal Time (UTC) time zone. + - name: end_date_time + description: Available in versions 13.0 and later. The time portion of this field is always transferred in the Coordinated Universal Time (UTC) time zone. Translate the time portion to or from a local time zone for the user or the application, as appropriate. + - name: event_subtype + description: Provides standard subtypes to facilitate creating and searching for events. This field isn’t updateable. + - name: group_event_type + description: Group Event Type + - name: id + description: Activity ID + - name: is_archived + description: Indicates whether the event has been archived. + - name: is_child + description: Indicates whether the event is a child of another event (true) or not (false). For a child event, you can update IsReminderSet and ReminderDateTime only. You can query and delete a child event. If the objects related to the child event are different from those objects related to the parent event (this difference is possible if you use API version 25.0 or earlier) and one of the objects related to the child event is deleted, the objects related to the parent event are updated to ensure data integrity. + - name: is_deleted + description: Deleted + - name: is_group_event + description: Indicates whether the event is a group event—that is, whether it has invitees (true) or not (false). + - name: is_private + description: Indicates whether users other than the creator of the event can (false) or can’t (true) see the event details when viewing the event user’s calendar. However, users with the View All Data or Modify All Data permission can see private events in reports and searches, or when viewing other users’ calendars. Private events can’t be associated with opportunities, accounts, cases, campaigns, contracts, leads, or contacts. Label is Private. + - name: is_recurrence + description: Indicates whether a Salesforce Classic event is scheduled to repeat itself (true) or only occurs one time (false). This field is read-only when updating records, but not when creating them. If this field value is true, then RecurrenceEndDateOnly, RecurrenceStartDateTime, RecurrenceType, and any recurrence fields associated with the given recurrence type must be populated. Label is Create recurring series of events. + - name: is_recurrence_2 + description: Read-only. This field available in API version 44.0 and later. Indicates whether a Lightning Experience event is scheduled to repeat (true) or only occurs one time (false). If this field value is true, then Recurrence2PatternText and Recurrence2PatternVersion must be populated. Label is Repeat. + - name: is_recurrence_2_exception + description: Read-only. This field available in API version 44.0 and later. Indicates whether an individual event in a Lightning Experience event series has a recurrence pattern that’s different from the rest of the series, making it an exception. + - name: is_recurrence_2_exclusion + description: Read-only. This field available in API version 44.0 and later. Indicates when updates to a Lightning Experience event series recurrence pattern have been made, but affect future event occurrences only. For past event occurrences, IsRecurrence2Exclusion is set to true, excluding past occurrences from the series recurrence pattern. + - name: is_reminder_set + description: Indicates whether the activity is a reminder (true) or not (false). + - name: last_modified_by_id + description: Last Modified By ID + - name: last_modified_date + description: Last Modified Date + - name: location + description: Contains the location of the event. + - name: owner_id + description: Contains the ID of the user or public calendar who owns the event. Label is Assigned to ID. This is a polymorphic relationship field. + - name: recurrence_2_pattern_start_date + description: Read-only. This field available in API version 44.0 and later. Indicates the date and time when the Lightning Experience event series begins. The time portion of this field is always transferred in the Coordinated Universal Time (UTC) time zone. Translate the time portion to or from a local time zone for the user or the application, as appropriate. + - name: recurrence_2_pattern_text + description: > + The RRULE that describes the recurrence pattern for Lightning Experience event series. Supports a subset of the RFC 5545 standard for internet calendaring and scheduling. See the Event Series section in this topic for usage examples. This field has a maximum length of 512 characters. + This field is available in API version 44.0 and later, and has the Create property in API version 52.0 and later. + - name: recurrence_2_pattern_time_zone + description: This field available in API version 44.0 and later. Indicates the time zone in which the Lightning Experience event series was created or updated. This field uses standard Java TimeZone IDs. For example, America/Los_Angeles. + - name: recurrence_2_pattern_version + description: Read-only. This field available in API version 44.0 and later. Indicates the standard specifications for Lightning Experience event series recurrence patterns. The only possible value is 1 (RFC 5545 v4 RRULE)—RFC 5545 is a standard set of specifications for internet calendaring and scheduling that IsRecurrence2 adheres to for series recurrence patterns. RFC 5545 specifications for series recurrence patterns are called RRULES. For examples of rrule usage, see the Event Series section in this topic. + - name: recurrence_activity_id + description: Read-only. Not required on create. Contains the ID of the main record of the Salesforce Classic recurring event. Subsequent occurrences have the same value in this field. + - name: recurrence_day_of_month + description: Indicates the day of the month on which the event repeats. + - name: recurrence_day_of_week_mask + description: > + Indicates the day or days of the week on which the Salesforce Classic recurring event repeats. This field contains a bitmask. The values are as follows: Sunday = 1 + Monday = 2 + Tuesday = 4 + Wednesday = 8 + Thursday = 16 + Friday = 32 + Saturday = 64 Multiple days are represented as the sum of their numerical values. For example, Tuesday and Thursday = 4 + 16 = 20. + - name: recurrence_end_date_only + description: Indicates the last date on which the event repeats. For multiday Salesforce Classic recurring events, this date is the day on which the last occurrence starts. This field is a date field with a timestamp that is always set to midnight in the Coordinated Universal Time (UTC) time zone. Don’t attempt to alter the timestamp to account for time zone differences. + - name: recurrence_instance + description: Indicates the frequency of the Salesforce Classic event’s recurrence. For example, 2nd or 3rd. + - name: recurrence_interval + description: Indicates the interval between Salesforce Classic recurring events. + - name: recurrence_month_of_year + description: Indicates the month in which the Salesforce Classic recurring event repeats. + - name: recurrence_start_date_time + description: Indicates the date and time when the Salesforce Classic recurring event begins. The value must precede the RecurrenceEndDateOnly. The time portion of this field is always transferred in the Coordinated Universal Time (UTC) time zone. Translate the time portion to or from a local time zone for the user or the application, as appropriate. + - name: recurrence_time_zone_sid_key + description: Indicates the time zone associated with a Salesforce Classic recurring event. For example, “UTC-8:00” for Pacific Standard Time. + - name: recurrence_type + description: Indicates how often the Salesforce Classic event repeats. For example, daily, weekly, or every nth month (where “nth” is defined in RecurrenceInstance). + - name: reminder_date_time + description: Represents the time when the reminder is scheduled to fire, if IsReminderSet is set to true. If IsReminderSet is set to false, then the user may have deselected the reminder checkbox in the Salesforce user interface, or the reminder has already fired at the time indicated by the value. + - name: show_as + description: 'Indicates how this event appears when another user views the calendar: Busy, Out of Office, or Free. Label is Show Time As.' + - name: start_date_time + description: > + Indicates the start date and time of the event. Available in versions 13.0 and later. + + If this field has a value, then ActivityDate and ActivityDateTime must either be null or match the value of this field. + - name: subject + description: The subject line of the event, such as Call, Email, or Meeting. + - name: system_modstamp + description: System Modstamp + - name: type + description: Indicates the event type, such as Call, Email, or Meeting. + - name: what_count + description: Available if your organization has enabled Shared Activities. Represents the count of related EventRelations pertaining to the WhatId. The count of the WhatId must be 1 or less. + - name: what_id + description: The WhatId represents nonhuman objects such as accounts, opportunities, campaigns, cases, or custom objects. WhatIds are polymorphic. Polymorphic means a WhatId is equivalent to the ID of a related object. The label is Related To ID. This is a polymorphic relationship field. + - name: who_count + description: Available to organizations that have Shared Activities enabled. Represents the count of related EventRelations pertaining to the WhoId. + - name: who_id + description: > + The WhoId represents a human such as a lead or a contact. WhoIds are polymorphic. Polymorphic means a WhoId is equivalent to a contact’s ID or a lead’s ID. The label is Name ID. + + - name: lead + identifier: "{{ var('salesforce_lead_identifier', 'lead')}}" + freshness: null + description: Represents a prospect or lead. + columns: + - name: id + description: The unique, system-generated ID assigned during creation. + - name: _fivetran_synced + description: The time at which fivetran last synced this record + - name: _fivetran_active + description: True if record is active, used to filter out only active records if History Mode is enabled + - name: annual_revenue + description: Annual revenue for the lead’s company. + - name: city + description: City for the lead’s address. + - name: company + description: Required. The lead’s company. + - name: converted_account_id + description: Object reference ID that points to the account into which the lead converted. This is a relationship field. + - name: converted_contact_id + description: Object reference ID that points to the contact into which the lead converted. This is a relationship field. + - name: converted_date + description: Date on which this lead was converted. + - name: converted_opportunity_id + description: Object reference ID that points to the opportunity into which the lead has been converted. This is a relationship field. + - name: country + description: The lead’s country. + - name: country_code + description: The ISO country code for the lead’s address. + - name: created_by_id + description: Created By ID + - name: created_date + description: Created Date + - name: description + description: The lead’s description. + - name: email + description: The lead’s email address. + - name: email_bounced_date + description: If bounce management is activated and an email sent to the lead bounced, the date and time of the bounce. + - name: email_bounced_reason + description: If bounce management is activated and an email sent to the lead bounced, the reason for the bounce. + - name: fax + description: The lead’s fax number. + - name: first_name + description: The lead’s first name up to 40 characters. + - name: geocode_accuracy + description: Accuracy level of the geocode for the address. + - name: has_opted_out_of_email + description: Indicates whether the lead doesn’t want to receive email from Salesforce (true) or does (false). Label is Email Opt Out. + - name: individual_id + description: ID of the data privacy record associated with this lead. This field is available if you enabled Data Protection and Privacy in Setup. + - name: industry + description: Industry in which the lead works. + - name: is_converted + description: Indicates whether the lead has been converted (true) or not (false). Label is Converted. + - name: is_deleted + description: Indicates whether the object has been moved to the Recycle Bin (true) or not (false). Label is Deleted. + - name: is_unread_by_owner + description: If true, lead has been assigned, but not yet viewed. See Unread Leads for more information. Label is Unread By Owner. + - name: jigsaw_contact_id + description: Jigsaw Contact ID + - name: last_activity_date + description: > + 'Value is the most recent of either: Due date of the most recent event logged against the record. + Due date of the most recently closed task associated with the record.' + - name: last_modified_by_id + description: Last Modified By ID + - name: last_modified_date + description: Last Modified Date + - name: last_name + description: Required. Last name of the lead up to 80 characters. + - name: last_referenced_date + description: The timestamp when the current user last accessed this record, a record related to this record, or a list view. + - name: last_viewed_date + description: The timestamp when the current user last viewed this record or list view. If this value is null, the user might have only accessed this record or list view (LastReferencedDate) but not viewed it. + - name: latitude + description: Used with Longitude to specify the precise geolocation of an address. Acceptable values are numbers between –90 and 90 up to 15 decimal places. + - name: lead_source + description: The lead’s source. + - name: longitude + description: Used with Latitude to specify the precise geolocation of an address. Acceptable values are numbers between –180 and 180 up to 15 decimal places. + - name: master_record_id + description: If this record was deleted as the result of a merge, this field contains the ID of the record that was kept. If this record was deleted for any other reason, or has not been deleted, the value is null. + - name: mobile_phone + description: The lead’s mobile phone number. + - name: name + description: Concatenation of FirstName, MiddleName, LastName, and Suffix up to 203 characters, including whitespaces. + - name: number_of_employees + description: Number of employees at the lead’s company. Label is Employees. + - name: owner_id + description: ID of the lead’s owner. This is a polymorphic relationship field. + - name: phone + description: The lead’s phone number. + - name: photo_url + description: Path to be combined with the URL of a Salesforce instance + - name: postal_code + description: Postal code for the address of the lead. Label is Zip/Postal Code. + - name: salutation + description: Salutation for the lead. + - name: state + description: State for the address of the lead. + - name: state_code + description: The ISO state code for the lead’s address. + - name: status + description: Status code for this converted lead. Status codes are defined in Status and represented in the API by the LeadStatus object. + - name: street + description: Street number and name for the address of the lead. + - name: system_modstamp + description: System Modstamp + - name: title + description: Title for the lead, such as CFO or CEO. + - name: website + description: Website for the lead. + + - name: opportunity_line_item + identifier: "{{ var('salesforce_opportunity_line_item_identifier', 'opportunity_line_item')}}" + freshness: null + description: Represents an opportunity line item, which is a member of the list of Product2 products associated with an Opportunity. + columns: + - name: id + description: The unique, system-generated ID assigned during creation. + - name: _fivetran_synced + description: The time at which fivetran last synced this record + - name: _fivetran_active + description: True if record is active, used to filter out only active records if History Mode is enabled + - name: created_by_id + description: Created By ID + - name: created_date + description: Created Date + - name: description + description: Text description of the opportunity line item. + - name: discount + description: > + Discount for the product as a percentage. When updating these records: + If you specify Discount without specifying TotalPrice, the TotalPrice is adjusted to accommodate the new Discount value, and the UnitPrice is held constant. + If you specify both Discount and Quantity, you must also specify either TotalPrice or UnitPrice so the system knows which one to automatically adjust. + - name: has_quantity_schedule + description: Read-only. Indicates whether a quantity schedule has been created for this object (true) or not (false). + - name: has_revenue_schedule + description: Indicates whether a revenue schedule has been created for this object (true) or not (false). If this object has a revenue schedule, the Quantity and TotalPrice fields can’t be updated. In addition, the Quantity field can’t be updated if this object has a quantity schedule. Update requests aren’t rejected but the updated values are ignored. + - name: has_schedule + description: If either HasQuantitySchedule or HasRevenueSchedule is true, this field is also true. + - name: is_deleted + description: Deleted + - name: last_modified_by_id + description: Last Modified By ID + - name: last_modified_date + description: Last Modified Date + - name: last_referenced_date + description: The timestamp for when the current user last viewed a record related to this record. Available in API version 50.0 and later. + - name: last_viewed_date + description: The timestamp for when the current user last viewed this record. If this value is null, this record might only have been referenced (LastReferencedDate) and not viewed. Available in API version 50.0 and later. + - name: list_price + description: Corresponds to the UnitPrice on the PricebookEntry that is associated with this line item, which can be in the standard price book or a custom price book. A client application can use this information to show whether the unit price (or sales price) of the line item differs from the price book entry list price. + - name: name + description: The opportunity line item name (known as “Opportunity Product” in the user interface). This read-only field is available in API version 30.0 and later. + - name: opportunity_id + description: Required. ID of the associated Opportunity. This is a relationship field. + - name: pricebook_entry_id + description: Required. ID of the associated PricebookEntry. Exists only for those organizations that have Products enabled as a feature. In API versions 1.0 and 2.0, you can specify values for either this field or ProductId, but not both. For this reason, both fields are declared nillable. In API version 3.0 and later, you must specify values for this field instead of ProductId. This is a relationship field. + - name: product_2_id + description: > + The ID of the related Product2 record. This is a read-only field available in API version 30.0 and later. + Use the PricebookEntryId field instead, specifying the ID of the PricebookEntry record. + - name: product_code + description: This read-only field is available in API version 30.0 and later. It references the value in the ProductCode field of the related Product2 record. + - name: quantity + description: > + Read-only if this record has a quantity schedule, a revenue schedule, or both a quantity and a revenue schedule. + When updating these records: + If you specify Quantity without specifying the UnitPrice, the UnitPrice value will be adjusted to accommodate the new Quantity value, and the TotalPrice will be held constant. + If you specify both Discount and Quantity, you must also specify either TotalPrice or UnitPrice so the system can determine which one to automatically adjust. + - name: service_date + description: > + Date when the product revenue will be recognized and the product quantity will be shipped. Opportunity Close Date—ServiceDate is ignored. + Product Date—ServiceDate is used if not null. + Schedule Date—ServiceDate is used if not null and there are no revenue schedules present for this line item, that is, there are no OpportunityLineItemSchedule records with a field Type value of Revenue that are children of this record. + - name: sort_order + description: Number indicating the sort order selected by the user. Client applications can use this to match the sort order in Salesforce. + - name: system_modstamp + description: System Modstamp + - name: total_price + description: > + This field is available only for backward compatibility. It represents the total price of the OpportunityLineItem. + If you do not specify UnitPrice, this field is required. If you specify Discount and Quantity, this field or UnitPrice is required. When updating these records, you can change either this value or the UnitPrice, but not both at the same time. + + This field is nullable, but you can’t set both TotalPrice and UnitPrice to null in the same update request. To insert the TotalPrice via the API (given only a unit price and the quantity), calculate this field as the unit price multiplied by the quantity. This field is read-only if the opportunity line item has a revenue schedule. If the opportunity line item does not have a schedule or only has quantity schedule, this field can be updated. + - name: unit_price + description: > + The unit price for the opportunity line item. In the Salesforce user interface, this field’s value is calculated by dividing the total price of the opportunity line item by the quantity listed for that line item. Label is Sales Price. + This field or TotalPrice is required. You can’t specify both. + + If you specify Discount and Quantity, this field or TotalPrice is required. + + - name: order + identifier: "{{ var('salesforce_order_identifier', 'order')}}" + freshness: null + description: Represents an order associated with a contract or an account. + columns: + - name: id + description: The unique, system-generated ID assigned during creation. + - name: _fivetran_synced + description: The time at which fivetran last synced this record + - name: _fivetran_active + description: True if record is active, used to filter out only active records if History Mode is enabled + - name: account_id + description: Required. ID of the Account associated with this order. Can only be updated when the order’s StatusCode value is Draft. This is a relationship field. + - name: activated_by_id + description: ID of the User who activated this order. This is a relationship field. + - name: activated_date + description: Date and time when the order was activated. + - name: billing_city + description: City for the billing address for this order. Maximum size is 40 characters. + - name: billing_country + description: Country for the billing address for this order. Maximum size is 80 characters. + - name: billing_country_code + description: ISO country code for the billing address for this order. + - name: billing_geocode_accuracy + description: Accuracy level of the geocode of the address. + - name: billing_latitude + description: Used with BillingLongitude to specify the precise geolocation of a billing address. Acceptable values are numbers between –90 and 90 with up to 15 decimal places. + - name: billing_longitude + description: Used with BillingLatitude to specify the precise geolocation of a billing address. Acceptable values are numbers between –180 and 180 with up to 15 decimal places. + - name: billing_postal_code + description: Postal code for the billing address for this order. Maximum size is 20 characters. + - name: billing_state + description: State for the billing address for this order. Maximum size is 80 characters. + - name: billing_state_code + description: ISO state code for the order’s billing address. + - name: billing_street + description: Street address for the billing address. + - name: company_authorized_by_id + description: ID of the user who authorized the account associated with the order. This is a relationship field. + - name: contract_id + description: ID of the contract associated with this order. Can only be updated when the order’s StatusCode value is Draft. This is a relationship field. + - name: created_by_id + description: Created By ID + - name: created_date + description: Created Date + - name: customer_authorized_by_id + description: ID of the contact who authorized the order. This is a relationship field. + - name: description + description: Description of the order. + - name: effective_date + description: Date at which the order becomes effective. Label is Order Start Date. + - name: end_date + description: Date at which the order ends. Label is Order End Date. + - name: is_deleted + description: Deleted + - name: is_reduction_order + description: Read-only. Determines whether an order is a reduction order. Label is Reduction Order. + - name: last_modified_by_id + description: Last Modified By ID + - name: last_modified_date + description: Last Modified Date + - name: last_referenced_date + description: The timestamp when the current user last accessed this record, a record related to this record, or a list view. + - name: last_viewed_date + description: The timestamp when the current user last viewed this record or list view. If this value is null, the user might have only accessed this record or list view (LastReferencedDate) but not viewed it. + - name: opportunity_id + description: ID for the opportunity that’s associated with this order. + - name: order_number + description: Order number assigned to this order (not the unique, system-generated ID assigned during creation). Maximum size is 30 characters. + - name: original_order_id + description: Optional. ID of the original order that a reduction order is reducing, if the reduction order is reducing a single order. Label is Original Order. Editable only if isReductionOrder is true. If the reduction order is reducing more than one order, leave blank. This is a relationship field. + - name: owner_id + description: Required. ID of the User or queue that owns this order. This is a polymorphic relationship field. + - name: pricebook_2_id + description: Required. ID of the price book associated with this order. This is a relationship field. + - name: shipping_city + description: City of the shipping address. Maximum size is 40 characters. + - name: shipping_country + description: Country of the shipping address. Maximum size is 80 characters. + - name: shipping_country_code + description: ISO country code for the order’s shipping address. + - name: shipping_geocode_accuracy + description: Accuracy level of the geocode of the shipping address. + - name: shipping_latitude + description: Used with ShippingLongitude to specify the precise geolocation of a shipping address. Acceptable values are numbers between –90 and 90 with up to 15 decimal places. + - name: shipping_longitude + description: Used with ShippingLatitude to specify the precise geolocation of an address. Acceptable values are numbers between –180 and 180 with up to 15 decimal places. + - name: shipping_postal_code + description: Postal code of the shipping address. Maximum size is 20 characters. + - name: shipping_state + description: State of the shipping address. Maximum size is 80 characters. + - name: shipping_state_code + description: ISO state code for the order’s shipping address. + - name: shipping_street + description: Street address of the shipping address. Maximum of 255 characters. + - name: status + description: Picklist of values that indicate order status. Each value is within one of two status categories defined in StatusCode. For example, the status picklist might contain Draft, Ready for Review, and Ready for Activation values with a StatusCode of Draft. + - name: status_code + description: The status category for the order. An order can be either Draft or Activated. Label is Status Category. + - name: system_modstamp + description: System Modstamp + - name: total_amount + description: The total amount for the order products associated with this order. This field is available in API v48.0 and later. + - name: type + description: If you want to show more information about your order, you can add custom values to the Type picklist. By default, the Type field doesn't perform any actions or show any values. + + - name: product_2 + identifier: "{{ var('salesforce_product_2_identifier', 'product_2')}}" + freshness: null + description: Represents a product that your company sells. + columns: + - name: id + description: The unique, system-generated ID assigned during creation. + - name: _fivetran_synced + description: The time at which fivetran last synced this record + - name: _fivetran_active + description: True if record is active, used to filter out only active records if History Mode is enabled + - name: created_by_id + description: Created By ID + - name: created_date + description: Created Date + - name: description + description: A text description of this record. Label is Product Description. + - name: display_url + description: URL leading to a specific version of a record in the linked external data source. + - name: external_data_source_id + description: ID of the related external data source. + - name: external_id + description: The unique identifier of a record in the linked external data source. For example, ID #123. + - name: family + description: Name of the product family associated with this record. Product families are configured as picklists in the user interface. To obtain a list of valid values, call describeSObjects() and process the DescribeSObjectResult for the values associated with the Family field. Label is Product Family. + - name: is_active + description: Indicates whether this record is active (true) or not (false). Inactive Product2 records are hidden in many areas in the user interface. You can change the IsActive flag on a Product2 object as often as necessary. Label is Active. + - name: is_archived + description: Describes whether the product is archived. The default value is false. + - name: is_deleted + description: Indicates whether the object has been moved to the Recycle Bin (true) or not (false). Label is Deleted. + - name: last_modified_by_id + description: Last Modified By ID + - name: last_modified_date + description: Last Modified Date + - name: last_referenced_date + description: The timestamp when the current user last accessed this record, a record related to this record, or a list view. + - name: last_viewed_date + description: The timestamp when the current user last viewed this record or list view. If this value is null, the user might have only accessed this record or list view (LastReferencedDate) but not viewed it. + - name: name + description: Required. Default name of this record. Label is Product Name. + - name: number_of_quantity_installments + description: If the product has a quantity schedule, the number of installments. + - name: number_of_revenue_installments + description: If the product has a revenue schedule, the number of installments. + - name: product_code + description: Default product code for this record. Your org defines the product code naming pattern. + - name: quantity_installment_period + description: If the product has a quantity schedule, the amount of time covered by the schedule. + - name: quantity_schedule_type + description: The type of the quantity schedule, if the product has one. + - name: quantity_unit_of_measure + description: Unit of the product; for example, kilograms, liters, or cases. This field comes with only one value, Each, so consider creating your own. The QuantityUnitOfMeasure field on ProductItem inherits this field’s values. + - name: record_type_id + description: ID of the record type assigned to this object. + - name: revenue_installment_period + description: If the product has a revenue schedule, the time period covered by the schedule. + - name: revenue_schedule_type + description: The type of the revenue schedule, if the product has one. + - name: stock_keeping_unit + description: The SKU for the product. Use in tandem with or instead of the ProductCode field. For example, you can track the manufacturer’s identifying code in the Product Code field and assign the product a SKU when you resell it. + - name: system_modstamp + description: System Modstamp + + - name: task + identifier: "{{ var('salesforce_task_identifier', 'task')}}" + freshness: null + description: Represents a business activity such as making a phone call or other to-do items. In the user interface, Task and Event records are collectively referred to as activities. + columns: + - name: id + description: The unique, system-generated ID assigned during creation. + - name: _fivetran_synced + description: The time at which fivetran last synced this record + - name: _fivetran_active + description: True if record is active, used to filter out only active records if History Mode is enabled + - name: account_id + description: Represents the ID of the related Account. The AccountId is determined as follows. If the value of WhatId is any of the following objects, then Salesforce uses that object’s AccountId. Account Opportunity Contract Custom object that is a child of Account If the value of the WhatIdfield is any other object, and the value of the WhoId field is a Contact object, then Salesforce uses that contact’s AccountId. (If your organization uses Shared Activities, then Salesforce uses the AccountId of the primary contact.) Otherwise, Salesforce sets the value of the AccountId field to null. This is a relationship field. + - name: activity_date + description: Represents the due date of the task. This field has a timestamp that is always set to midnight in the Coordinated Universal Time (UTC) time zone. The timestamp is not relevant; do not attempt to alter it to accommodate time zone differences. Label is Due Date. + - name: call_disposition + description: Represents the result of a given call, for example, “we'll call back,” or “call unsuccessful.” Limit is 255 characters. Not subject to field-level security, available for any user in an organization with Salesforce CRM Call Center. + - name: call_duration_in_seconds + description: Duration of the call in seconds. Not subject to field-level security, available for any user in an organization with Salesforce CRM Call Center. + - name: call_object + description: Name of a call center. Limit is 255 characters. Not subject to field-level security, available for any user in an organization with Salesforce CRM Call Center. + - name: call_type + description: 'The type of call being answered: Inbound, Internal, or Outbound.' + - name: completed_date_time + description: The date and time the task was saved with a Closed status. For insert, if the task is saved with a Closed status the field is set. If the task is saved with an Open status the field is set to NULL. For update, if the task is saved with a new Closed status, the field is reset. If the task is saved with a new non-closed status, the field is reset to NULL. If the task is saved with the same closed status (that is, unchanged) there is no change to the field. + - name: created_by_id + description: Created By ID + - name: created_date + description: Created Date + - name: description + description: Contains a text description of the task. + - name: is_archived + description: Indicates whether the event has been archived. + - name: is_closed + description: Indicates whether the task has been completed (true) or not (false). Is only set indirectly via the Status picklist. Label is Closed. + - name: is_deleted + description: Deleted + - name: is_high_priority + description: Indicates a high-priority task. This field is derived from the Priority field. + - name: is_recurrence + description: Indicates whether the task is scheduled to repeat itself (true) or only occurs once (false). This field is read-only on update, but not on create. If this field value is true, then RecurrenceStartDateOnly, RecurrenceEndDateOnly, RecurrenceType, and any recurrence fields associated with the given recurrence type must be populated. See Recurring Tasks. + - name: is_reminder_set + description: Indicates whether a popup reminder has been set for the task (true) or not (false). + - name: last_modified_by_id + description: Last Modified By ID + - name: last_modified_date + description: Last Modified Date + - name: owner_id + description: ID of the User or Group who owns the record. Label is Assigned To ID. This field accepts Groups of type Queue only. In the user interface, Group IDs correspond with the queue’s list view names. To create or update tasks assigned to Group, use v48.0 or later. This is a polymorphic relationship field. + - name: priority + description: Required. Indicates the importance or urgency of a task, such as high or low. + - name: record_type_id + description: ID of the record type assigned to this object. + - name: recurrence_activity_id + description: Read-only. Not required on create. ID of the main record of the recurring task. Subsequent occurrences have the same value in this field. + - name: recurrence_day_of_month + description: The day of the month in which the task repeats. + - name: recurrence_day_of_week_mask + description: 'The day or days of the week on which the task repeats. This field contains a bitmask. The values are as follows: Sunday = 1 Monday = 2 Tuesday = 4 Wednesday = 8 Thursday = 16 Friday = 32 Saturday = 64 Multiple days are represented as the sum of their numerical values. For example, Tuesday and Thursday = 4 + 16 = 20.' + - name: recurrence_end_date_only + description: 'The last date on which the task repeats. This field has a timestamp that is always set to midnight in the Coordinated Universal Time (UTC) time zone. The timestamp is not relevant; do not attempt to alter it to accommodate time zone differences. ' + - name: recurrence_instance + description: 'The frequency of the recurring task. Possible values are: First—1st Fourth—4th Last—last Second—2nd Third—3rd' + - name: recurrence_interval + description: The interval between recurring tasks. + - name: recurrence_month_of_year + description: The month of the year in which the task repeats. + - name: recurrence_regenerated_type + description: 'Represents what triggers a repeating task to repeat. Add this field to a page layout together with the RecurrenceInterval field, which determines the number of days between the triggering date (due date or close date) and the due date of the next repeating task in the series. Label is Repeat This Task. This field has the following picklist values: None: The task doesn’t repeat. After due date: The next repeating task will be due the specified number of days after the current task’s due date. After the task is closed: The next repeating task will be due the specified number of days after the current task is closed. (Task closed): This task, now closed, was opened as part of a repeating series. ' + - name: recurrence_start_date_only + description: The date when the recurring task begins. Must be a date and time before RecurrenceEndDateOnly. + - name: recurrence_time_zone_sid_key + description: The time zone associated with the recurring task. For example, “UTC-8:00” for Pacific Standard Time. + - name: recurrence_type + description: Indicates how often the task repeats. For example, daily, weekly, or every nth month (where “nth” is defined in RecurrenceInstance). + - name: reminder_date_time + description: Represents the time when the reminder is scheduled to fire, if IsReminderSet is set to true. If IsReminderSet is set to false, then the user may have deselected the reminder checkbox in the Salesforce user interface, or the reminder has already fired at the time indicated by the value. + - name: status + description: Required. The status of the task, such as In Progress or Completed. Each predefined Status field implies a value for the IsClosed flag. To obtain picklist values, query the TaskStatus object. + - name: subject + description: The subject line of the task, such as “Call” or “Send Quote.” + - name: system_modstamp + description: System Modstamp + - name: task_subtype + description: Provides standard subtypes to facilitate creating and searching for specific task subtypes. + - name: type + description: The type of task, such as Call or Meeting. + - name: what_count + description: Available to organizations that have Shared Activities enabled. Count of related TaskRelations pertaining to WhatId. Count of the WhatId must be 1 or less. + - name: what_id + description: The WhatId represents nonhuman objects such as accounts, opportunities, campaigns, cases, or custom objects. WhatIds are polymorphic. Polymorphic means a WhatId is equivalent to the ID of a related object. The label is Related To ID. This is a polymorphic relationship field. + - name: who_count + description: Available to organizations that have Shared Activities enabled. Count of related TaskRelations pertaining to WhoId. + - name: who_id + description: The WhoId represents a human such as a lead or a contact. WhoIds are polymorphic. Polymorphic means a WhoId is equivalent to a contact’s ID or a lead’s ID. The label is Name ID. If Shared Activities is enabled, the value of this field is the ID of the related lead or primary contact. If you add, update, or remove the WhoId field, you might encounter problems with triggers, workflows, and data validation rules that are associated with the record. The label is Name ID. Beginning in API version 37.0, if the contact or lead ID in the WhoId field is not in the TaskWhoIds list, no error occurs and the ID is added to the TaskWhoIds as the primary WhoId. If WhoId is set to null, an arbitrary ID from the existing TaskWhoIds list is promoted to the primary position. + + + - name: fivetran_formula + description: Holds the formula fields for each of your custom fields \ No newline at end of file diff --git a/models/stg_salesforce.yml b/models/stg_salesforce.yml new file mode 100644 index 0000000..b3a79c1 --- /dev/null +++ b/models/stg_salesforce.yml @@ -0,0 +1,963 @@ +version: 2 + +models: + + - name: stg_salesforce__account + description: Represents an individual account, which is an organization or person involved with your business (such as customers, competitors, and partners). + columns: + - name: account_id + description: The unique, system-generated ID assigned during creation + tests: + - not_null + - unique + - name: _fivetran_synced + description: The time at which fivetran last synced this record + - name: account_number + description: Account number assigned to this account (not the unique, system-generated ID assigned during creation). + - name: account_source + description: The source of the account record. For example, Advertisement, Data.com, or Trade Show. + - name: annual_revenue + description: Estimated annual revenue of the account. + - name: billing_city + description: Details for the billing address of this account. + - name: billing_country + description: Details for the billing address of this account. + - name: billing_country_code + description: The ISO country code for the account’s billing address. + - name: billing_geocode_accuracy + description: Accuracy level of the geocode for the billing address. See Compound Field Considerations and Limitations for details on geolocation compound fields. + - name: billing_latitude + description: Used with BillingLongitude to specify the precise geolocation of a billing address. + - name: billing_longitude + description: Used with BillingLatitude to specify the precise geolocation of a billing address. + - name: billing_postal_code + description: Details for the billing address of this account. + - name: billing_state + description: Details for the billing address of this account. + - name: billing_state_code + description: The ISO state code for the account’s billing address. + - name: billing_street + description: Street address for the billing address of this account. + - name: account_description + description: Text description of the account. + - name: fax + description: Fax number for the account. + - name: industry + description: An industry associated with this account. + - name: is_deleted + description: Indicates whether the object has been moved to the Recycle Bin (true) or not (false). + - name: jigsaw_company_id + description: References the ID of a company in Data.com. If an account has a value in this field, it means that the account was imported from Data.com. + - name: last_activity_date + description: Value is one of the following, whichever is the most recent + - name: last_referenced_date + description: The timestamp when the current user last accessed this record, a record related to this record, or a list view. + - name: last_viewed_date + description: The timestamp when the current user last viewed this record or list view. If this value is null, the user might have only accessed this record or list view (LastReferencedDate) but not viewed it. + - name: master_record_id + description: If this object was deleted as the result of a merge, this field contains the ID of the record that was kept. If this object was deleted for any other reason, or has not been deleted, the value is null. + - name: account_name + description: Required. Name of the account. + - name: number_of_employees + description: Number of employees working at the company represented by this account. + - name: owner_id + description: The ID of the user who currently owns this account. + - name: ownership + description: Ownership type for the account, for example Private, Public, or Subsidiary. + - name: parent_id + description: ID of the parent object, if any. + - name: phone + description: Phone number for this account. + - name: photo_url + description: Path to be combined with the URL of a Salesforce instance (for example, https://yourInstance.salesforce.com/) to generate a URL to request the social network profile image associated with the account. + - name: rating + description: The account’s prospect rating, for example Hot, Warm, or Cold. + - name: record_type_id + description: ID of the record type assigned to this object. + - name: shipping_city + description: Details of the shipping address for this account + - name: shipping_country + description: Details of the shipping address for this account. Country + - name: shipping_country_code + description: The ISO country code for the account’s shipping address. + - name: shipping_geocode_accuracy + description: Accuracy level of the geocode for the shipping address. + - name: shipping_latitude + description: Used with ShippingLongitude to specify the precise geolocation of a shipping address. + - name: shipping_longitude + description: Used with ShippingLatitude to specify the precise geolocation of an address. + - name: shipping_postal_code + description: Details of the shipping address for this account. Postal code + - name: shipping_state + description: Details of the shipping address for this account. State + - name: shipping_state_code + description: The ISO state code for the account’s shipping address. + - name: shipping_street + description: The street address of the shipping address for this account. + - name: sic + description: Standard Industrial Classification code of the company’s main business categorization, for example, 57340 for Electronics. + - name: sic_desc + description: A brief description of an organization’s line of business, based on its SIC code. + - name: site + description: Name of the account’s location, for example Headquarters or London. + - name: ticker_symbol + description: The stock market symbol for this account. This field is available on business accounts, not person accounts. + - name: type + description: Type of account, for example, Customer, Competitor, or Partner. + - name: website + description: The website of this account. + + - name: stg_salesforce__opportunity + description: Represents an opportunity, which is a sale or pending deal. + columns: + - name: opportunity_id + description: The unique, system-generated ID assigned during creation. + tests: + - not_null + - unique + - name: _fivetran_synced + description: The time at which fivetran last synced this record + - name: account_id + description: ID of the account associated with this opportunity. + - name: amount + description: Estimated total sale amount. For opportunities with products, the amount is the sum of the related products. + - name: campaign_id + description: ID of a related Campaign. This field is defined only for those organizations that have the campaign feature Campaigns enabled. + - name: close_date + description: Required. Date when the opportunity is expected to close. The Close Date will change as you work the sale. It should never be set in stone as it affects your sales pipeline, and it should never be in the past. + - name: created_date + description: Date when the opportunity was created. + - name: opportunity_description + description: Text description of the opportunity. + - name: expected_revenue + description: Read-only field that is equal to the product of the opportunity Amount field and the Probability. + - name: fiscal + description: If fiscal years are not enabled, the name of the fiscal quarter or period in which the opportunity CloseDate falls. + - name: fiscal_quarter + description: Represents the fiscal quarter. Valid values are 1, 2, 3, or 4. + - name: fiscal_year + description: Represents the fiscal year, for example, 2006. + - name: forecast_category + description: Restricted picklist field. + - name: forecast_category_name + description: The name of the forecast category. + - name: has_open_activity + description: Indicates whether an opportunity has an open event or task (true) or not (false). + - name: has_opportunity_line_item + description: Read-only field that indicates whether the opportunity has associated line items. A value of true means that Opportunity line items have been created for the opportunity. + - name: has_overdue_task + description: Indicates whether an opportunity has an overdue task (true) or not (false). + - name: is_closed + description: True, if Stage Name Label is Closed. + - name: is_deleted + description: Indicates whether the object has been moved to the Recycle Bin (true) or not (false). + - name: is_excluded_from_territory_2_filter + description: Used for Filter-Based Opportunity Territory Assignment. Indicates whether the opportunity is excluded (True) or included (False) each time the APEX filter is executed. + - name: is_won + description: True, if Stage Name Label is Won. + - name: last_activity_date + description: Value is one of the following, whichever is the most recent:Due date of the most recent event logged against the record or Due date of the most recently closed task associated with the record. + - name: last_referenced_date + description: The timestamp when the current user last accessed this record, a record related to this record, or a list view. + - name: last_viewed_date + description: The timestamp when the current user last viewed this record or list view. If this value is null, the user might have only accessed this record or list view (LastReferencedDate) but not viewed it. + - name: lead_source + description: Source of this opportunity, such as Advertisement or Trade Show. + - name: opportunity_name + description: Required. A name for this opportunity. + - name: next_step + description: Description of next task in closing opportunity. + - name: owner_id + description: ID of the User who has been assigned to work this opportunity. + - name: Pricebook2Id + description: ID of a related Pricebook2 object. The Pricebook2Id field indicates which Pricebook2 applies to this opportunity. The Pricebook2Id field is defined only for those organizations that have products enabled as a feature. You can specify values for only one field (Pricebook2Id or PricebookId)—not both fields. For this reason, both fields are declared nillable. + - name: pricebook_2_id + description: Unavailable as of version 3.0. As of version 8.0, the Pricebook object is no longer available. Use the Pricebook2Id field instead, specifying the ID of the Pricebook2 record. + - name: probability + description: Percentage of estimated confidence in closing the opportunity. + - name: record_type_id + description: ID of the record type assigned to this object. + - name: stage_name + description: Required. Current stage of this record. The StageName field controls several other fields on an opportunity. + - name: synced_quote_id + description: The ID of the Quote that syncs with the opportunity. + - name: territory_2_id + description: The ID of the territory that is assigned to the opportunity. + - name: type + description: Type of opportunity. For example, Existing Business or New Business. + - name: is_created_this_month + description: Yes, if the opportunity created date is in the current month. + - name: is_created_this_quarter + description: Yes, if the opportunity created date is in the current quarter. + - name: days_since_created + description: The difference, in days, between the opportunity created date and the current timestamp. + - name: days_to_close + description: The difference, in days, between the opportunity created date and the opportunity close date. + - name: is_closed_this_month + description: Yes, if the opportunity close date is in the current month. + - name: is_closed_this_quarter + description: Yes, if the opportunity close date is in the current quarter. + + - name: stg_salesforce__user + description: Represents a user in your organization. + columns: + - name: user_id + description: The unique, system-generated ID assigned during creation. + tests: + - not_null + - unique + - name: _fivetran_synced + description: The time at which fivetran last synced this record + - name: _fivetran_deleted + description: True, if this field has been deleted + - name: about_me + description: Information about the user, such as areas of interest or skills. + - name: account_id + description: ID of the Account associated with a Customer Portal user. This field is null for Salesforce users. + - name: alias + description: Required. The user’s alias. For example, jsmith. + - name: badge_text + description: The community role, displayed on the user profile page just below the user name. + - name: banner_photo_url + description: The URL for the user's banner photo. + - name: call_center_id + description: If Salesforce CRM Call Center is enabled, represents the call center to which this user is assigned. + - name: city + description: The city associated with the user. Up to 40 characters allowed. + - name: community_nickname + description: Name used to identify this user in the Community application, which includes the ideas and answers features. + - name: company_name + description: The name of the user’s company. + - name: contact_id + description: ID of the Contact associated with this account. The contact must have a value in the AccountId field or an error occurs. + - name: country + description: The country associated with the user. + - name: country_code + description: The ISO country code associated with the user. + - name: default_group_notification_frequency + description: The default frequency for sending the user's Chatter group email notifications when the user joins groups. + - name: delegated_approver_id + description: Id of the user who is a delegated approver for this user. + - name: department + description: The company department associated with the user. + - name: digest_frequency + description: The frequency at which the system sends the user’s Chatter personal email digest. + - name: division + description: The division associated with this user, similar to Department and unrelated to DefaultDivision. + - name: email + description: Required. The user’s email address. + - name: email_encoding_key + description: Required. The email encoding for the user, such as ISO-8859-1 or UTF-8. + - name: email_preferences_auto_bcc + description: Determines whether the user receives copies of sent emails. This option applies only if compliance BCC emails are not enabled. + - name: employee_number + description: The user’s employee number. + - name: extension + description: The user’s phone extension number. + - name: fax + description: The user’s fax number. + - name: federation_identifier + description: Indicates the value that must be listed in the Subject element of a Security Assertion Markup Language (SAML) IDP certificate to authenticate the user for a client application using single sign-on. + - name: first_name + description: The user’s first name. + - name: forecast_enabled + description: Indicates whether the user is enabled as a forecast manager (true) or not (false). + - name: full_photo_url + description: The URL for the user's profile photo. + - name: geocode_accuracy + description: The level of accuracy of a location’s geographical coordinates compared with its physical address. + - name: individual_id + description: ID of the data privacy record associated with this user. This field is available if Data Protection and Privacy is enabled. + - name: is_active + description: Indicates whether the user has access to log in (true) or not (false). + - name: is_profile_photo_active + description: Indicates whether a user has a profile photo (true) or not (false). + - name: language_locale_key + description: Required. The user’s language, such as “French” or “Chinese (Traditional).” + - name: last_login_date + description: The date and time when the user last successfully logged in. This value is updated if 60 seconds have elapsed since the user’s last login. + - name: last_name + description: Required. The user’s last name. + - name: last_referenced_date + description: The timestamp for when the current user last viewed a record related to this record. + - name: last_viewed_date + description: The timestamp for when the current user last viewed this record. If this value is null, this record might only have been referenced (LastReferencedDate) and not viewed. + - name: latitude + description: Used with Longitude to specify the precise geolocation of an address. + - name: locale_sid_key + description: Required. This field is a restricted picklist field. The value of the field affects formatting and parsing of values, especially numeric values, in the user interface. + - name: longitude + description: Used with Latitude to specify the precise geolocation of an address. + - name: manager_id + description: The Id of the user who manages this user. + - name: medium_banner_photo_url + description: The URL for the medium-sized user profile banner photo. + - name: mobile_phone + description: The user’s mobile or cellular phone number. + - name: user_name + description: Concatenation of FirstName and LastName. + - name: offline_trial_expiration_date + description: The date and time when the user’s Connect Offline trial expires. + - name: phone + description: The user’s phone number. + - name: postal_code + description: The user’s postal or ZIP code. + - name: profile_id + description: Required. ID of the user’s Profile. Use this value to cache metadata based on profile. In earlier releases, this was RoleId. + - name: receives_admin_info_emails + description: Indicates whether the user receives email for administrators from Salesforce (true) or not (false). + - name: receives_info_emails + description: Indicates whether the user receives informational email from Salesforce (true) or not (false). + - name: sender_email + description: The email address used as the From address when the user sends emails. This address is the same value shown in Setup on the My Email Settings page. + - name: sender_name + description: The name used as the email sender when the user sends emails. This name is the same value shown in Setup on the My Email Settings page. + - name: signature + description: The signature text added to emails. + - name: small_banner_photo_url + description: The URL for the small user profile banner photo. + - name: small_photo_url + description: The URL for a thumbnail of the user's profile photo. + - name: state + description: The state associated with the User. + - name: state_code + description: The ISO state code associated with the user. + - name: street + description: The street address associated with the User. + - name: time_zone_sid_key + description: Required. This field is a restricted picklist field. A User time zone affects the offset used when displaying or entering times in the user interface. + - name: title + description: The user’s business title, such as “Vice President.” + - name: username + description: Contains the name that a user enters to log in. The value for this field must be in the form of an email address, using all lowercase characters. It must also be unique across all organizations. + - name: user_role_id + description: ID of the user’s UserRole. + - name: user_type + description: The category of user license. + + - name: stg_salesforce__user_role + description: Represents a user role in your organization. + columns: + - name: user_role_id + description: The unique, system-generated ID assigned during creation + tests: + - not_null + - unique + - name: _fivetran_synced + description: The time at which fivetran last synced this record + - name: _fivetran_deleted + description: True, if this field has been deleted + - name: case_access_for_account_owner + description: The case access level for the account owner. + - name: contact_access_for_account_owner + description: The contact access level for the account owner. + - name: developer_name + description: The unique name of the object in the API. + - name: forecast_user_id + description: The ID of the forecast manager associated with this role. + - name: may_forecast_manager_share + description: Indicates whether the forecast manager can manually share their own forecast. + - name: user_role_name + description: Required. Name of the role. Corresponds to Label on the user interface. + - name: opportunity_access_for_account_owner + description: Required. The opportunity access level for the account owner. + - name: parent_role_id + description: The ID of the parent role. + - name: portal_type + description: This value indicates the type of portal for the role + - name: rollup_description + description: Description of the forecast rollup. + + - name: stg_salesforce__contact + description: Represents a contact, which is a person associated with an account. + columns: + - name: contact_id + description: The unique, system-generated ID assigned during creation. + tests: + - not_null + - unique + - name: _fivetran_synced + description: The time at which fivetran last synced this record + - name: _fivetran_active + description: True if record is active, used to filter out only active records if History Mode is enabled + - name: account_id + description: ID of the account that’s the parent of this contact. + - name: department + description: The contact’s department. + - name: contact_description + description: A description of the contact. Label is Contact Description up to 32 KB. + - name: email + description: The contact’s email address. + - name: first_name + description: The contact’s first name up to 40 characters. + - name: home_phone + description: The contact’s home telephone number. + - name: individual_id + description: ID of the data privacy record associated with this contact. This field is available if Data Protection and Privacy is enabled. This is a relationship field. + - name: is_deleted + description: Indicates whether the object has been moved to the Recycle Bin (true) or not (false). Label is Deleted. + - name: last_activity_date + description: > + Value is the most recent of either: + Due date of the most recent event logged against the record. + Due date of the most recently closed task associated with the record. + - name: last_modified_by_id + description: Last Modified By ID + - name: last_modified_date + description: Last Modified Date + - name: last_name + description: Required. Last name of the contact up to 80 characters. + - name: last_referenced_date + description: The timestamp when the current user last accessed this record, a record related to this record, or a list view. + - name: last_viewed_date + description: The timestamp when the current user last viewed this record or list view. If this value is null, the user might have only accessed this record or list view (LastReferencedDate) but not viewed it. + - name: lead_source + description: The lead’s source. + - name: mailing_city + description: Mailing address details. + - name: mailing_country + description: Mailing address details. + - name: mailing_country_code + description: The ISO codes for the mailing address’s state and country. + - name: mailing_postal_code + description: Mailing address details. + - name: mailing_state + description: Mailing address details. + - name: mailing_state_code + description: The ISO codes for the mailing address’s state and country. + - name: mailing_street + description: Street address for mailing address. + - name: master_record_id + description: > + If this record was deleted as the result of a merge, this field contains the ID of the record that remains. If this record was deleted for any other reason, or has not been deleted, the value is null. + This is a relationship field. + - name: mobile_phone + description: Contact’s mobile phone number. + - name: contact_name + description: Concatenation of FirstName, MiddleName, LastName, and Suffix up to 203 characters, including whitespaces. + - name: owner_id + description: > + The ID of the owner of the account associated with this contact. + This is a relationship field. + - name: phone + description: Telephone number for the contact. Label is Business Phone. + - name: reports_to_id + description: > + This field doesn’t appear if IsPersonAccount is true. + This is a relationship field. + - name: title + description: Title + + - name: stg_salesforce__event + description: Represents an event in the calendar. In the user interface, event and task records are collectively referred to as activities. + columns: + - name: event_id + description: The unique, system-generated ID assigned during creation. + tests: + - not_null + - unique + - name: _fivetran_synced + description: The time at which fivetran last synced this record + - name: _fivetran_active + description: True if record is active, used to filter out only active records if History Mode is enabled + - name: account_id + description: > + Represents the ID of the related account. The AccountId is determined as follows. + If the value of WhatId is any of the following objects, then Salesforce uses that object’s AccountId. + + Account + Opportunity + Contract + Custom object that is a child of Account + If the value of the WhatId field is any other object, and the value of the WhoId field is a contact object, then Salesforce uses that contact’s AccountId. (If your org uses Shared Activities, Salesforce uses the AccountId of the primary contact.) + + Otherwise, Salesforce sets the value of the AccountId field to null. + + For information on IDs, see ID Field Type. + + This is a relationship field. + - name: activity_date + description: > + Contains the event’s due date if the IsAllDayEvent flag is set to true. This field is a date field with a timestamp that is always set to midnight in the Coordinated Universal Time (UTC) time zone. Don’t attempt to alter the timestamp to account for time zone differences. Label is Due Date Only. + This field is required in versions 12.0 and earlier if the IsAllDayEvent flag is set to true. + + The value for this field and StartDateTime must match, or one of them must be null. + - name: activity_date_time + description: > + Contains the event’s due date if the IsAllDayEvent flag is set to false. The time portion of this field is always transferred in the Coordinated Universal Time (UTC) time zone. Translate the time portion to or from a local time zone for the user or the application, as appropriate. Label is Due Date Time. + This field is required in versions 12.0 and earlier if the IsAllDayEvent flag is set to false. + + The value for this field and StartDateTime must match, or one of them must be null. + - name: created_by_id + description: Created By ID + - name: created_date + description: Created Date + - name: event_description + description: Contains a text description of the event. + - name: duration_in_minutes + description: > + Contains the event length, in minutes + - name: end_date + description: Read-only. Available in versions 46.0 and later. This field supplies the date value that appears in the EndDateTime field. This field is a date field with a timestamp that is always set to midnight in the Coordinated Universal Time (UTC) time zone. + - name: end_date_time + description: Available in versions 13.0 and later. The time portion of this field is always transferred in the Coordinated Universal Time (UTC) time zone. Translate the time portion to or from a local time zone for the user or the application, as appropriate. + - name: event_subtype + description: Provides standard subtypes to facilitate creating and searching for events. This field isn’t updateable. + - name: group_event_type + description: Group Event Type + - name: is_archived + description: Indicates whether the event has been archived. + - name: is_child + description: Indicates whether the event is a child of another event (true) or not (false). For a child event, you can update IsReminderSet and ReminderDateTime only. You can query and delete a child event. If the objects related to the child event are different from those objects related to the parent event (this difference is possible if you use API version 25.0 or earlier) and one of the objects related to the child event is deleted, the objects related to the parent event are updated to ensure data integrity. + - name: is_deleted + description: Deleted + - name: is_group_event + description: Indicates whether the event is a group event—that is, whether it has invitees (true) or not (false). + - name: is_recurrence + description: Indicates whether a Salesforce Classic event is scheduled to repeat itself (true) or only occurs one time (false). This field is read-only when updating records, but not when creating them. If this field value is true, then RecurrenceEndDateOnly, RecurrenceStartDateTime, RecurrenceType, and any recurrence fields associated with the given recurrence type must be populated. Label is Create recurring series of events. + - name: last_modified_by_id + description: Last Modified By ID + - name: last_modified_date + description: Last Modified Date + - name: location + description: Contains the location of the event. + - name: owner_id + description: Contains the ID of the user or public calendar who owns the event. Label is Assigned to ID. This is a polymorphic relationship field. + - name: start_date_time + description: > + Indicates the start date and time of the event. Available in versions 13.0 and later. + + If this field has a value, then ActivityDate and ActivityDateTime must either be null or match the value of this field. + - name: subject + description: The subject line of the event, such as Call, Email, or Meeting. + - name: type + description: Indicates the event type, such as Call, Email, or Meeting. + - name: what_count + description: Available if your organization has enabled Shared Activities. Represents the count of related EventRelations pertaining to the WhatId. The count of the WhatId must be 1 or less. + - name: what_id + description: The WhatId represents nonhuman objects such as accounts, opportunities, campaigns, cases, or custom objects. WhatIds are polymorphic. Polymorphic means a WhatId is equivalent to the ID of a related object. The label is Related To ID. This is a polymorphic relationship field. + - name: who_count + description: Available to organizations that have Shared Activities enabled. Represents the count of related EventRelations pertaining to the WhoId. + - name: who_id + description: > + The WhoId represents a human such as a lead or a contact. WhoIds are polymorphic. Polymorphic means a WhoId is equivalent to a contact’s ID or a lead’s ID. The label is Name ID. + + - name: stg_salesforce__lead + description: Represents a prospect or lead. + columns: + - name: lead_id + description: The unique, system-generated ID assigned during creation. + tests: + - not_null + - unique + - name: _fivetran_synced + description: The time at which fivetran last synced this record + - name: _fivetran_active + description: True if record is active, used to filter out only active records if History Mode is enabled + - name: annual_revenue + description: Annual revenue for the lead’s company. + - name: city + description: City for the lead’s address. + - name: company + description: Required. The lead’s company. + - name: converted_account_id + description: Object reference ID that points to the account into which the lead converted. This is a relationship field. + - name: converted_contact_id + description: Object reference ID that points to the contact into which the lead converted. This is a relationship field. + - name: converted_date + description: Date on which this lead was converted. + - name: converted_opportunity_id + description: Object reference ID that points to the opportunity into which the lead has been converted. This is a relationship field. + - name: country + description: The lead’s country. + - name: country_code + description: The ISO country code for the lead’s address. + - name: created_by_id + description: Created By ID + - name: created_date + description: Created Date + - name: lead_description + description: The lead’s description. + - name: email + description: The lead’s email address. + - name: email_bounced_date + description: If bounce management is activated and an email sent to the lead bounced, the date and time of the bounce. + - name: email_bounced_reason + description: If bounce management is activated and an email sent to the lead bounced, the reason for the bounce. + - name: fax + description: The lead’s fax number. + - name: first_name + description: The lead’s first name up to 40 characters. + - name: has_opted_out_of_email + description: Indicates whether the lead doesn’t want to receive email from Salesforce (true) or does (false). Label is Email Opt Out. + - name: individual_id + description: ID of the data privacy record associated with this lead. This field is available if you enabled Data Protection and Privacy in Setup. + - name: industry + description: Industry in which the lead works. + - name: is_converted + description: Indicates whether the lead has been converted (true) or not (false). Label is Converted. + - name: is_deleted + description: Indicates whether the object has been moved to the Recycle Bin (true) or not (false). Label is Deleted. + - name: is_unread_by_owner + description: If true, lead has been assigned, but not yet viewed. See Unread Leads for more information. Label is Unread By Owner. + - name: jigsaw_contact_id + description: Jigsaw Contact ID + - name: last_activity_date + description: > + 'Value is the most recent of either: Due date of the most recent event logged against the record. + Due date of the most recently closed task associated with the record.' + - name: last_modified_by_id + description: Last Modified By ID + - name: last_modified_date + description: Last Modified Date + - name: last_name + description: Required. Last name of the lead up to 80 characters. + - name: last_referenced_date + description: The timestamp when the current user last accessed this record, a record related to this record, or a list view. + - name: last_viewed_date + description: The timestamp when the current user last viewed this record or list view. If this value is null, the user might have only accessed this record or list view (LastReferencedDate) but not viewed it. + - name: latitude + description: Used with Longitude to specify the precise geolocation of an address. Acceptable values are numbers between –90 and 90 up to 15 decimal places. + - name: lead_source + description: The lead’s source. + - name: longitude + description: Used with Latitude to specify the precise geolocation of an address. Acceptable values are numbers between –180 and 180 up to 15 decimal places. + - name: master_record_id + description: If this record was deleted as the result of a merge, this field contains the ID of the record that was kept. If this record was deleted for any other reason, or has not been deleted, the value is null. + - name: mobile_phone + description: The lead’s mobile phone number. + - name: lead_name + description: Concatenation of FirstName, MiddleName, LastName, and Suffix up to 203 characters, including whitespaces. + - name: number_of_employees + description: Number of employees at the lead’s company. Label is Employees. + - name: owner_id + description: ID of the lead’s owner. This is a polymorphic relationship field. + - name: phone + description: The lead’s phone number. + - name: photo_url + description: Path to be combined with the URL of a Salesforce instance + - name: postal_code + description: Postal code for the address of the lead. Label is Zip/Postal Code. + - name: salutation + description: Salutation for the lead. + - name: state + description: State for the address of the lead. + - name: state_code + description: The ISO state code for the lead’s address. + - name: status + description: Status code for this converted lead. Status codes are defined in Status and represented in the API by the LeadStatus object. + - name: street + description: Street number and name for the address of the lead. + - name: system_modstamp + description: System Modstamp + - name: title + description: Title for the lead, such as CFO or CEO. + - name: website + description: Website for the lead. + + - name: stg_salesforce__opportunity_line_item + description: Represents an opportunity line item, which is a member of the list of Product2 products associated with an Opportunity. + columns: + - name: opportunity_line_item_id + description: The unique, system-generated ID assigned during creation. + tests: + - not_null + - unique + - name: _fivetran_synced + description: The time at which fivetran last synced this record + - name: _fivetran_active + description: True if record is active, used to filter out only active records if History Mode is enabled + - name: created_by_id + description: Created By ID + - name: created_date + description: Created Date + - name: opportunity_line_item_description + description: Text description of the opportunity line item. + - name: discount + description: > + Discount for the product as a percentage. When updating these records: + If you specify Discount without specifying TotalPrice, the TotalPrice is adjusted to accommodate the new Discount value, and the UnitPrice is held constant. + If you specify both Discount and Quantity, you must also specify either TotalPrice or UnitPrice so the system knows which one to automatically adjust. + - name: has_quantity_schedule + description: Read-only. Indicates whether a quantity schedule has been created for this object (true) or not (false). + - name: has_revenue_schedule + description: Indicates whether a revenue schedule has been created for this object (true) or not (false). If this object has a revenue schedule, the Quantity and TotalPrice fields can’t be updated. In addition, the Quantity field can’t be updated if this object has a quantity schedule. Update requests aren’t rejected but the updated values are ignored. + - name: has_schedule + description: If either HasQuantitySchedule or HasRevenueSchedule is true, this field is also true. + - name: opportunity_line_item_id + description: Line Item ID + - name: is_deleted + description: Deleted + - name: last_modified_by_id + description: Last Modified By ID + - name: last_modified_date + description: Last Modified Date + - name: last_referenced_date + description: The timestamp for when the current user last viewed a record related to this record. Available in API version 50.0 and later. + - name: last_viewed_date + description: The timestamp for when the current user last viewed this record. If this value is null, this record might only have been referenced (LastReferencedDate) and not viewed. Available in API version 50.0 and later. + - name: list_price + description: Corresponds to the UnitPrice on the PricebookEntry that is associated with this line item, which can be in the standard price book or a custom price book. A client application can use this information to show whether the unit price (or sales price) of the line item differs from the price book entry list price. + - name: opportunity_line_item_name + description: The opportunity line item name (known as “Opportunity Product” in the user interface). This read-only field is available in API version 30.0 and later. + - name: opportunity_id + description: Required. ID of the associated Opportunity. This is a relationship field. + - name: pricebook_entry_id + description: Required. ID of the associated PricebookEntry. Exists only for those organizations that have Products enabled as a feature. In API versions 1.0 and 2.0, you can specify values for either this field or ProductId, but not both. For this reason, both fields are declared nillable. In API version 3.0 and later, you must specify values for this field instead of ProductId. This is a relationship field. + - name: product_2_id + description: > + The ID of the related Product2 record. This is a read-only field available in API version 30.0 and later. + Use the PricebookEntryId field instead, specifying the ID of the PricebookEntry record. + - name: product_code + description: This read-only field is available in API version 30.0 and later. It references the value in the ProductCode field of the related Product2 record. + - name: quantity + description: > + Read-only if this record has a quantity schedule, a revenue schedule, or both a quantity and a revenue schedule. + When updating these records: + If you specify Quantity without specifying the UnitPrice, the UnitPrice value will be adjusted to accommodate the new Quantity value, and the TotalPrice will be held constant. + If you specify both Discount and Quantity, you must also specify either TotalPrice or UnitPrice so the system can determine which one to automatically adjust. + - name: service_date + description: > + Date when the product revenue will be recognized and the product quantity will be shipped. Opportunity Close Date—ServiceDate is ignored. + Product Date—ServiceDate is used if not null. + Schedule Date—ServiceDate is used if not null and there are no revenue schedules present for this line item, that is, there are no OpportunityLineItemSchedule records with a field Type value of Revenue that are children of this record. + - name: sort_order + description: Number indicating the sort order selected by the user. Client applications can use this to match the sort order in Salesforce. + - name: total_price + description: > + This field is available only for backward compatibility. It represents the total price of the OpportunityLineItem. + If you do not specify UnitPrice, this field is required. If you specify Discount and Quantity, this field or UnitPrice is required. When updating these records, you can change either this value or the UnitPrice, but not both at the same time. + + This field is nullable, but you can’t set both TotalPrice and UnitPrice to null in the same update request. To insert the TotalPrice via the API (given only a unit price and the quantity), calculate this field as the unit price multiplied by the quantity. This field is read-only if the opportunity line item has a revenue schedule. If the opportunity line item does not have a schedule or only has quantity schedule, this field can be updated. + - name: unit_price + description: > + The unit price for the opportunity line item. In the Salesforce user interface, this field’s value is calculated by dividing the total price of the opportunity line item by the quantity listed for that line item. Label is Sales Price. + This field or TotalPrice is required. You can’t specify both. + + If you specify Discount and Quantity, this field or TotalPrice is required. + + - name: stg_salesforce__order + description: Represents an order associated with a contract or an account. + columns: + - name: order_id + description: The unique, system-generated ID assigned during creation. + tests: + - not_null + - unique + - name: _fivetran_synced + description: The time at which fivetran last synced this record + - name: _fivetran_active + description: True if record is active, used to filter out only active records if History Mode is enabled + - name: account_id + description: Required. ID of the Account associated with this order. Can only be updated when the order’s StatusCode value is Draft. This is a relationship field. + - name: activated_by_id + description: ID of the User who activated this order. This is a relationship field. + - name: activated_date + description: Date and time when the order was activated. + - name: billing_city + description: City for the billing address for this order. Maximum size is 40 characters. + - name: billing_country + description: Country for the billing address for this order. Maximum size is 80 characters. + - name: billing_country_code + description: ISO country code for the billing address for this order. + - name: billing_geocode_accuracy + description: Accuracy level of the geocode of the address. + - name: billing_postal_code + description: Postal code for the billing address for this order. Maximum size is 20 characters. + - name: billing_state + description: State for the billing address for this order. Maximum size is 80 characters. + - name: billing_state_code + description: ISO state code for the order’s billing address. + - name: billing_street + description: Street address for the billing address. + - name: contract_id + description: ID of the contract associated with this order. Can only be updated when the order’s StatusCode value is Draft. This is a relationship field. + - name: created_by_id + description: Created By ID + - name: created_date + description: Created Date + - name: order_description + description: Description of the order. + - name: end_date + description: Date at which the order ends. Label is Order End Date. + - name: order_id + description: order id + - name: is_deleted + description: deleted + - name: last_modified_by_id + description: Last Modified By ID + - name: last_modified_date + description: Last Modified Date + - name: last_referenced_date + description: The timestamp when the current user last accessed this record, a record related to this record, or a list view. + - name: last_viewed_date + description: The timestamp when the current user last viewed this record or list view. If this value is null, the user might have only accessed this record or list view (LastReferencedDate) but not viewed it. + - name: opportunity_id + description: ID for the opportunity that’s associated with this order. + - name: order_number + description: Order number assigned to this order (not the unique, system-generated ID assigned during creation). Maximum size is 30 characters. + - name: original_order_id + description: Optional. ID of the original order that a reduction order is reducing, if the reduction order is reducing a single order. Label is Original Order. Editable only if isReductionOrder is true. If the reduction order is reducing more than one order, leave blank. This is a relationship field. + - name: owner_id + description: Required. ID of the User or queue that owns this order. This is a polymorphic relationship field. + - name: pricebook_2_id + description: Required. ID of the price book associated with this order. This is a relationship field. + - name: shipping_city + description: City of the shipping address. Maximum size is 40 characters. + - name: shipping_country + description: Country of the shipping address. Maximum size is 80 characters. + - name: shipping_country_code + description: ISO country code for the order’s shipping address. + - name: shipping_geocode_accuracy + description: Accuracy level of the geocode of the shipping address. + - name: shipping_postal_code + description: Postal code of the shipping address. Maximum size is 20 characters. + - name: shipping_state + description: State of the shipping address. Maximum size is 80 characters. + - name: shipping_state_code + description: ISO state code for the order’s shipping address. + - name: shipping_street + description: Street address of the shipping address. Maximum of 255 characters. + - name: status + description: Picklist of values that indicate order status. Each value is within one of two status categories defined in StatusCode. For example, the status picklist might contain Draft, Ready for Review, and Ready for Activation values with a StatusCode of Draft. + - name: status_code + description: The status category for the order. An order can be either Draft or Activated. Label is Status Category. + - name: total_amount + description: The total amount for the order products associated with this order. This field is available in API v48.0 and later. + - name: type + description: If you want to show more information about your order, you can add custom values to the Type picklist. By default, the Type field doesn't perform any actions or show any values. + + - name: stg_salesforce__product_2 + description: Represents a product that your company sells. + columns: + - name: product_2_id + description: The unique, system-generated ID assigned during creation. + tests: + - not_null + - unique + - name: _fivetran_synced + description: The time at which fivetran last synced this record + - name: _fivetran_active + description: True if record is active, used to filter out only active records if History Mode is enabled + - name: created_by_id + description: Created By ID + - name: created_date + description: Created Date + - name: product_2_description + description: A text description of this record. Label is Product Description. + - name: display_url + description: URL leading to a specific version of a record in the linked external data source. + - name: external_data_source_id + description: ID of the related external data source. + - name: external_id + description: The unique identifier of a record in the linked external data source. For example, ID #123. + - name: family + description: Name of the product family associated with this record. Product families are configured as picklists in the user interface. To obtain a list of valid values, call describeSObjects() and process the DescribeSObjectResult for the values associated with the Family field. Label is Product Family. + - name: is_active + description: Indicates whether this record is active (true) or not (false). Inactive Product2 records are hidden in many areas in the user interface. You can change the IsActive flag on a Product2 object as often as necessary. Label is Active. + - name: is_archived + description: Describes whether the product is archived. The default value is false. + - name: is_deleted + description: Indicates whether the object has been moved to the Recycle Bin (true) or not (false). Label is Deleted. + - name: last_modified_by_id + description: Last Modified By ID + - name: last_modified_date + description: Last Modified Date + - name: last_referenced_date + description: The timestamp when the current user last accessed this record, a record related to this record, or a list view. + - name: last_viewed_date + description: The timestamp when the current user last viewed this record or list view. If this value is null, the user might have only accessed this record or list view (LastReferencedDate) but not viewed it. + - name: product_2_name + description: Required. Default name of this record. Label is Product Name. + - name: number_of_quantity_installments + description: If the product has a quantity schedule, the number of installments. + - name: number_of_revenue_installments + description: If the product has a revenue schedule, the number of installments. + - name: product_code + description: Default product code for this record. Your org defines the product code naming pattern. + - name: quantity_installment_period + description: If the product has a quantity schedule, the amount of time covered by the schedule. + - name: quantity_schedule_type + description: The type of the quantity schedule, if the product has one. + - name: quantity_unit_of_measure + description: Unit of the product; for example, kilograms, liters, or cases. This field comes with only one value, Each, so consider creating your own. The QuantityUnitOfMeasure field on ProductItem inherits this field’s values. + - name: record_type_id + description: ID of the record type assigned to this object. + - name: revenue_installment_period + description: If the product has a revenue schedule, the time period covered by the schedule. + - name: revenue_schedule_type + description: The type of the revenue schedule, if the product has one. + - name: stock_keeping_unit + description: The SKU for the product. Use in tandem with or instead of the ProductCode field. For example, you can track the manufacturer’s identifying code in the Product Code field and assign the product a SKU when you resell it. + - name: system_modstamp + description: System Modstamp + + - name: stg_salesforce__task + description: Represents a business activity such as making a phone call or other to-do items. In the user interface, Task and Event records are collectively referred to as activities. + columns: + - name: task_id + description: The unique, system-generated ID assigned during creation. + tests: + - not_null + - unique + - name: _fivetran_synced + description: The time at which fivetran last synced this record + - name: _fivetran_active + description: True if record is active, used to filter out only active records if History Mode is enabled + - name: account_id + description: Represents the ID of the related Account. The AccountId is determined as follows. If the value of WhatId is any of the following objects, then Salesforce uses that object’s AccountId. Account Opportunity Contract Custom object that is a child of Account If the value of the WhatIdfield is any other object, and the value of the WhoId field is a Contact object, then Salesforce uses that contact’s AccountId. (If your organization uses Shared Activities, then Salesforce uses the AccountId of the primary contact.) Otherwise, Salesforce sets the value of the AccountId field to null. This is a relationship field. + - name: activity_date + description: Represents the due date of the task. This field has a timestamp that is always set to midnight in the Coordinated Universal Time (UTC) time zone. The timestamp is not relevant; do not attempt to alter it to accommodate time zone differences. Label is Due Date. + - name: call_disposition + description: Represents the result of a given call, for example, “we'll call back,” or “call unsuccessful.” Limit is 255 characters. Not subject to field-level security, available for any user in an organization with Salesforce CRM Call Center. + - name: call_duration_in_seconds + description: Duration of the call in seconds. Not subject to field-level security, available for any user in an organization with Salesforce CRM Call Center. + - name: call_object + description: Name of a call center. Limit is 255 characters. Not subject to field-level security, available for any user in an organization with Salesforce CRM Call Center. + - name: call_type + description: 'The type of call being answered: Inbound, Internal, or Outbound.' + - name: completed_date_time + description: The date and time the task was saved with a Closed status. For insert, if the task is saved with a Closed status the field is set. If the task is saved with an Open status the field is set to NULL. For update, if the task is saved with a new Closed status, the field is reset. If the task is saved with a new non-closed status, the field is reset to NULL. If the task is saved with the same closed status (that is, unchanged) there is no change to the field. + - name: created_by_id + description: Created By ID + - name: created_date + description: Created Date + - name: task_description + description: Contains a text description of the task. + - name: is_archived + description: Indicates whether the event has been archived. + - name: is_closed + description: Indicates whether the task has been completed (true) or not (false). Is only set indirectly via the Status picklist. Label is Closed. + - name: is_deleted + description: Deleted + - name: is_high_priority + description: Indicates a high-priority task. This field is derived from the Priority field. + - name: last_modified_by_id + description: Last Modified By ID + - name: last_modified_date + description: Last Modified Date + - name: owner_id + description: ID of the User or Group who owns the record. Label is Assigned To ID. This field accepts Groups of type Queue only. In the user interface, Group IDs correspond with the queue’s list view names. To create or update tasks assigned to Group, use v48.0 or later. This is a polymorphic relationship field. + - name: priority + description: Required. Indicates the importance or urgency of a task, such as high or low. + - name: record_type_id + description: ID of the record type assigned to this object. + - name: status + description: Required. The status of the task, such as In Progress or Completed. Each predefined Status field implies a value for the IsClosed flag. To obtain picklist values, query the TaskStatus object. + - name: subject + description: The subject line of the task, such as “Call” or “Send Quote.” + - name: system_modstamp + description: System Modstamp + - name: task_subtype + description: Provides standard subtypes to facilitate creating and searching for specific task subtypes. + - name: type + description: The type of task, such as Call or Meeting. + - name: what_count + description: Available to organizations that have Shared Activities enabled. Count of related TaskRelations pertaining to WhatId. Count of the WhatId must be 1 or less. + - name: what_id + description: The WhatId represents nonhuman objects such as accounts, opportunities, campaigns, cases, or custom objects. WhatIds are polymorphic. Polymorphic means a WhatId is equivalent to the ID of a related object. The label is Related To ID. This is a polymorphic relationship field. + - name: who_count + description: Available to organizations that have Shared Activities enabled. Count of related TaskRelations pertaining to WhoId. + - name: who_id + description: The WhoId represents a human such as a lead or a contact. WhoIds are polymorphic. Polymorphic means a WhoId is equivalent to a contact’s ID or a lead’s ID. The label is Name ID. If Shared Activities is enabled, the value of this field is the ID of the related lead or primary contact. If you add, update, or remove the WhoId field, you might encounter problems with triggers, workflows, and data validation rules that are associated with the record. The label is Name ID. Beginning in API version 37.0, if the contact or lead ID in the WhoId field is not in the TaskWhoIds list, no error occurs and the ID is added to the TaskWhoIds as the primary WhoId. If WhoId is set to null, an arbitrary ID from the existing TaskWhoIds list is promoted to the primary position. + diff --git a/models/stg_salesforce__account.sql b/models/stg_salesforce__account.sql index 96c6fe8..91b7312 100644 --- a/models/stg_salesforce__account.sql +++ b/models/stg_salesforce__account.sql @@ -1,83 +1,75 @@ -with source as ( +with base as ( - select - * + select * from {{ ref('stg_salesforce__account_tmp') }} +), -), macro as ( +fields as ( select - /* - The below macro is used to generate the correct SQL for package staging models. It takes a list of columns - that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns - in the source (source_columns from dbt_salesforce_source/macros/). - - For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git). - */ - {{ - fivetran_utils.fill_staging_columns( - source_columns=adapter.get_columns_in_relation(ref('stg_salesforce__account_tmp')), - staging_columns=get_account_columns() - ) - }} + + {{ + fivetran_utils.fill_staging_columns( + source_columns=adapter.get_columns_in_relation(ref('stg_salesforce__account_tmp')), + staging_columns=get_account_columns() + ) + }} - --The below script allows for pass through columns. - {% if var('account_pass_through_columns') %} - , - {{ var('account_pass_through_columns') | join (", ")}} - - {% endif %} + --The below script allows for pass through columns. + {% if var('account_pass_through_columns',[]) != [] %} + , {{ var('account_pass_through_columns') | join (", ")}} + {% endif %} - from source + from base +), -), renamed as ( +final as ( select - _fivetran_synced, - account_number, - account_source, - cast(annual_revenue as {{ dbt_utils.type_numeric() }}) as annual_revenue, - billing_city, - billing_country, - billing_postal_code, - billing_state, - billing_state_code, - billing_street, - description, - id as account_id, - industry, - is_deleted, - last_activity_date, - last_referenced_date, - last_viewed_date, - master_record_id, - name as account_name, - number_of_employees, - owner_id, - ownership, - parent_id, - rating, - record_type_id, - shipping_city, - shipping_country, - shipping_country_code, - shipping_postal_code, - shipping_state, - shipping_state_code, - shipping_street, - type, - website + cast(_fivetran_synced as {{ dbt_utils.type_timestamp() }}) as _fivetran_synced, + account_number, + account_source, + cast(annual_revenue as {{ dbt_utils.type_numeric() }}) as annual_revenue, + billing_city, + billing_country, + billing_postal_code, + billing_state, + billing_state_code, + billing_street, + description as account_description, + id as account_id, + industry, + is_deleted, + cast(last_activity_date as {{ dbt_utils.type_timestamp() }}) as last_activity_date, + cast(last_referenced_date as {{ dbt_utils.type_timestamp() }}) as last_referenced_date, + cast(last_viewed_date as {{ dbt_utils.type_timestamp() }}) as last_viewed_date, + master_record_id, + name as account_name, + number_of_employees, + owner_id, + ownership, + parent_id, + rating, + record_type_id, + shipping_city, + shipping_country, + shipping_country_code, + shipping_postal_code, + shipping_state, + shipping_state_code, + shipping_street, + type, + website - --The below script allows for pass through columns. - {% if var('account_pass_through_columns') %} - , - {{ var('account_pass_through_columns') | join (", ")}} + --The below script allows for pass through columns. + {% if var('account_pass_through_columns',[]) != [] %} + , {{ var('account_pass_through_columns') | join (", ")}} - {% endif %} - - from macro + {% endif %} + + from fields ) select * -from renamed +from final where not coalesce(is_deleted, false) \ No newline at end of file diff --git a/models/stg_salesforce__contact.sql b/models/stg_salesforce__contact.sql new file mode 100644 index 0000000..134b0d9 --- /dev/null +++ b/models/stg_salesforce__contact.sql @@ -0,0 +1,72 @@ + +with base as ( + + select * + from {{ ref('stg_salesforce__contact_tmp') }} +), + +fields as ( + + select + {{ + fivetran_utils.fill_staging_columns( + source_columns=adapter.get_columns_in_relation(ref('stg_salesforce__contact_tmp')), + staging_columns=get_contact_columns() + ) + }} + + --The below script allows for pass through columns. + {% if var('contact_pass_through_columns',[]) != [] %} + , {{ var('contact_pass_through_columns') | join (", ")}} + {% endif %} + + from base +), + +final as ( + + select + cast(_fivetran_synced as {{ dbt_utils.type_timestamp() }}) as _fivetran_synced, + id as contact_id, + account_id, + department, + description as contact_description, + email, + first_name, + home_phone, + individual_id, + is_deleted, + cast(last_activity_date as {{ dbt_utils.type_timestamp() }}) as last_activity_date, + last_modified_by_id, + last_modified_date, + last_name, + last_referenced_date, + cast(last_viewed_date as {{ dbt_utils.type_timestamp() }}) as last_viewed_date, + lead_source, + mailing_city, + mailing_country, + mailing_country_code, + mailing_postal_code, + mailing_state, + mailing_state_code, + mailing_street, + master_record_id, + mobile_phone, + name as contact_name, + owner_id, + phone, + reports_to_id, + title + + --The below script allows for pass through columns. + {% if var('contact_pass_through_columns',[]) != [] %} + , {{ var('contact_pass_through_columns') | join (", ")}} + + {% endif %} + + from fields +) + +select * +from final +where not coalesce(is_deleted, false) \ No newline at end of file diff --git a/models/stg_salesforce__event.sql b/models/stg_salesforce__event.sql new file mode 100644 index 0000000..fc809b3 --- /dev/null +++ b/models/stg_salesforce__event.sql @@ -0,0 +1,71 @@ +--To disable this model, set the using_user_role variable within your dbt_project.yml file to False. +{{ config(enabled=var('salesforce__event_enabled', True)) }} + +with base as ( + + select * + from {{ ref('stg_salesforce__event_tmp') }} +), + +fields as ( + + select + {{ + fivetran_utils.fill_staging_columns( + source_columns=adapter.get_columns_in_relation(ref('stg_salesforce__event_tmp')), + staging_columns=get_event_columns() + ) + }} + + --The below script allows for pass through columns. + {% if var('event_pass_through_columns',[]) != [] %} + , {{ var('event_pass_through_columns') | join (", ")}} + {% endif %} + + from base +), + +final as ( + + select + cast(_fivetran_synced as {{ dbt_utils.type_timestamp() }}) as _fivetran_synced, + id as event_id, + account_id, + cast(activity_date as {{ dbt_utils.type_timestamp() }}) as activity_date, + cast(activity_date_time as {{ dbt_utils.type_timestamp() }}) as activity_date_time, + created_by_id, + cast(created_date as {{ dbt_utils.type_timestamp() }}) as created_date, + description as event_description, + cast(end_date as {{ dbt_utils.type_timestamp() }}) as end_date, + cast(end_date_time as {{ dbt_utils.type_timestamp() }}) as end_date_time, + event_subtype, + group_event_type, + is_archived, + is_child, + is_deleted, + is_group_event, + is_recurrence, + last_modified_by_id, + cast(last_modified_date as {{ dbt_utils.type_timestamp() }}) as last_modified_date, + location, + owner_id, + cast(start_date_time as {{ dbt_utils.type_timestamp() }}) as start_date_time, + subject, + type, + what_count, + what_id, + who_count, + who_id + + --The below script allows for pass through columns. + {% if var('event_pass_through_columns',[]) != [] %} + , {{ var('event_pass_through_columns') | join (", ")}} + + {% endif %} + + from fields +) + +select * +from final +where not coalesce(is_deleted, false) diff --git a/models/stg_salesforce__lead.sql b/models/stg_salesforce__lead.sql new file mode 100644 index 0000000..925d361 --- /dev/null +++ b/models/stg_salesforce__lead.sql @@ -0,0 +1,87 @@ +--To disable this model, set the using_user_role variable within your dbt_project.yml file to False. +{{ config(enabled=var('salesforce__lead_enabled', True)) }} + +with base as ( + + select * + from {{ ref('stg_salesforce__lead_tmp') }} +), + +fields as ( + + select + {{ + fivetran_utils.fill_staging_columns( + source_columns=adapter.get_columns_in_relation(ref('stg_salesforce__lead_tmp')), + staging_columns=get_lead_columns() + ) + }} + + --The below script allows for pass through columns. + {% if var('lead_pass_through_columns',[]) != [] %} + , {{ var('lead_pass_through_columns') | join (", ")}} + {% endif %} + + from base +), + +final as ( + + select + cast(_fivetran_synced as {{ dbt_utils.type_timestamp() }}) as _fivetran_synced, + id as lead_id, + annual_revenue, + city, + company, + converted_account_id, + converted_contact_id, + cast(converted_date as {{ dbt_utils.type_timestamp() }}) as converted_date, + converted_opportunity_id, + country, + country_code, + created_by_id, + cast(created_date as {{ dbt_utils.type_timestamp() }}) as created_date, + description as lead_description, + email, + cast(email_bounced_date as {{ dbt_utils.type_timestamp() }}) as email_bounced_date, + email_bounced_reason, + first_name, + has_opted_out_of_email, + individual_id, + industry, + is_converted, + is_deleted, + is_unread_by_owner, + cast(last_activity_date as {{ dbt_utils.type_timestamp() }}) as last_activity_date, + last_modified_by_id, + cast(last_modified_date as {{ dbt_utils.type_timestamp() }}) as last_modified_date, + last_name, + cast(last_referenced_date as {{ dbt_utils.type_timestamp() }}) as last_referenced_date, + cast(last_viewed_date as {{ dbt_utils.type_timestamp() }}) as last_viewed_date, + lead_source, + master_record_id, + mobile_phone, + name as lead_name, + number_of_employees, + owner_id, + phone, + postal_code, + state, + state_code, + status, + street, + title, + website + + --The below script allows for pass through columns. + {% if var('lead_pass_through_columns',[]) != [] %} + , {{ var('lead_pass_through_columns') | join (", ")}} + + {% endif %} + + from fields +) + +select * +from final +where not coalesce(is_deleted, false) \ No newline at end of file diff --git a/models/stg_salesforce__opportunity.sql b/models/stg_salesforce__opportunity.sql index 73ebbac..85a6a7b 100644 --- a/models/stg_salesforce__opportunity.sql +++ b/models/stg_salesforce__opportunity.sql @@ -1,18 +1,13 @@ -with source as ( +with base as ( select * from {{ ref('stg_salesforce__opportunity_tmp') }} +), -), macro as ( +fields as ( select - /* - The below macro is used to generate the correct SQL for package staging models. It takes a list of columns - that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns - in the source (source_columns from dbt_salesforce_source/macros/). - For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git). - */ {{ fivetran_utils.fill_staging_columns( source_columns=adapter.get_columns_in_relation(ref('stg_salesforce__opportunity_tmp')), @@ -20,27 +15,24 @@ with source as ( ) }} - --The below script allows for pass through columns. - - {% if var('opportunity_pass_through_columns') %} - , - {{ var('opportunity_pass_through_columns') | join (", ")}} - + --The below script allows for pass through columns. + {% if var('opportunity_pass_through_columns',[]) != [] %} + , {{ var('opportunity_pass_through_columns') | join (", ")}} {% endif %} - from source + from base +), -), renamed as ( +final as ( select - - _fivetran_synced, + cast(_fivetran_synced as {{ dbt_utils.type_timestamp() }}) as _fivetran_synced, account_id, cast(amount as {{ dbt_utils.type_numeric() }}) as amount, campaign_id, cast(close_date as {{ dbt_utils.type_timestamp() }}) as close_date, cast(created_date as {{ dbt_utils.type_timestamp() }}) as created_date, - description, + description as opportunity_description, cast(expected_revenue as {{ dbt_utils.type_numeric() }}) as expected_revenue, fiscal, fiscal_quarter, @@ -54,9 +46,9 @@ with source as ( is_closed, is_deleted, is_won, - last_activity_date, - last_referenced_date, - last_viewed_date, + cast(last_activity_date as {{ dbt_utils.type_timestamp() }}) as last_activity_date, + cast(last_referenced_date as {{ dbt_utils.type_timestamp() }}) as last_referenced_date, + cast(last_viewed_date as {{ dbt_utils.type_timestamp() }}) as last_viewed_date, lead_source, name as opportunity_name, next_step, @@ -67,17 +59,16 @@ with source as ( synced_quote_id, type - --The below script allows for pass through columns. - - {% if var('opportunity_pass_through_columns') %} - , - {{ var('opportunity_pass_through_columns') | join (", ")}} + --The below script allows for pass through columns. + {% if var('opportunity_pass_through_columns',[]) != [] %} + , {{ var('opportunity_pass_through_columns') | join (", ")}} {% endif %} - from macro + from fields +), -), calculated as ( +calculated as ( select *, @@ -87,9 +78,7 @@ with source as ( {{ dbt_utils.datediff('close_date', 'created_date', 'day') }} as days_to_close, {{ dbt_utils.date_trunc('month', 'close_date') }} = {{ dbt_utils.date_trunc('month', dbt_utils.current_timestamp()) }} as is_closed_this_month, {{ dbt_utils.date_trunc('quarter', 'close_date') }} = {{ dbt_utils.date_trunc('quarter', dbt_utils.current_timestamp()) }} as is_closed_this_quarter - - from renamed - + from final ) select * diff --git a/models/stg_salesforce__opportunity_line_item.sql b/models/stg_salesforce__opportunity_line_item.sql new file mode 100644 index 0000000..76465cb --- /dev/null +++ b/models/stg_salesforce__opportunity_line_item.sql @@ -0,0 +1,68 @@ +--To disable this model, set the using_user_role variable within your dbt_project.yml file to False. +{{ config(enabled=var('salesforce__opportunity_line_item_enabled', True)) }} + +with base as ( + + select * + from {{ ref('stg_salesforce__opportunity_line_item_tmp') }} +), + +fields as ( + + select + {{ + fivetran_utils.fill_staging_columns( + source_columns=adapter.get_columns_in_relation(ref('stg_salesforce__opportunity_line_item_tmp')), + staging_columns=get_opportunity_line_item_columns() + ) + }} + + --The below script allows for pass through columns. + {% if var('opportunity_line_item_pass_through_columns',[]) != [] %} + , {{ var('opportunity_line_item_pass_through_columns') | join (", ")}} + {% endif %} + + from base +), + +final as ( + + select + cast(_fivetran_synced as {{ dbt_utils.type_timestamp() }}) as _fivetran_synced, + id as opportunity_line_item_id, + created_by_id, + cast(created_date as {{ dbt_utils.type_timestamp() }}) as created_date, + description as opportunity_line_item_description, + discount, + has_quantity_schedule, + has_revenue_schedule, + has_schedule, + is_deleted, + last_modified_by_id, + cast(last_modified_date as {{ dbt_utils.type_timestamp() }}) as last_modified_date, + cast(last_referenced_date as {{ dbt_utils.type_timestamp() }}) as last_referenced_date, + cast(last_viewed_date as {{ dbt_utils.type_timestamp() }}) as last_viewed_date, + list_price, + name as opportunity_line_item_name, + opportunity_id, + pricebook_entry_id, + product_2_id, + product_code, + quantity, + cast(service_date as {{ dbt_utils.type_timestamp() }}) as service_date, + sort_order, + total_price, + unit_price + + --The below script allows for pass through columns. + {% if var('opportunity_line_item_pass_through_columns',[]) != [] %} + , {{ var('opportunity_line_item_pass_through_columns') | join (", ")}} + + {% endif %} + + from fields +) + +select * +from final +where not coalesce(is_deleted, false) \ No newline at end of file diff --git a/models/stg_salesforce__order.sql b/models/stg_salesforce__order.sql new file mode 100644 index 0000000..6d14781 --- /dev/null +++ b/models/stg_salesforce__order.sql @@ -0,0 +1,80 @@ +--To disable this model, set the using_user_role variable within your dbt_project.yml file to False. +{{ config(enabled=var('salesforce__order_enabled', True)) }} + +with base as ( + + select * + from {{ ref('stg_salesforce__order_tmp') }} +), + +fields as ( + + select + {{ + fivetran_utils.fill_staging_columns( + source_columns=adapter.get_columns_in_relation(ref('stg_salesforce__order_tmp')), + staging_columns=get_order_columns() + ) + }} + + --The below script allows for pass through columns. + {% if var('order_pass_through_columns',[]) != [] %} + , {{ var('order_pass_through_columns') | join (", ")}} + {% endif %} + + from base +), + +final as ( + + select + cast(_fivetran_synced as {{ dbt_utils.type_timestamp() }}) as _fivetran_synced, + id as order_id, + account_id, + activated_by_id, + cast(activated_date as {{ dbt_utils.type_timestamp() }}) as activated_date, + billing_city, + billing_country, + billing_country_code, + billing_postal_code, + billing_state, + billing_state_code, + billing_street, + contract_id, + created_by_id, + created_date, + description as order_description, + cast(end_date as {{ dbt_utils.type_timestamp() }}) as end_date, + is_deleted, + last_modified_by_id, + cast(last_modified_date as {{ dbt_utils.type_timestamp() }}) as last_modified_date, + cast(last_referenced_date as {{ dbt_utils.type_timestamp() }}) as last_referenced_date, + cast(last_viewed_date as {{ dbt_utils.type_timestamp() }}) as last_viewed_date, + opportunity_id, + order_number, + original_order_id, + owner_id, + pricebook_2_id, + shipping_city, + shipping_country, + shipping_country_code, + shipping_postal_code, + shipping_state, + shipping_state_code, + shipping_street, + status, + total_amount, + type + + --The below script allows for pass through columns. + {% if var('order_pass_through_columns',[]) != [] %} + , {{ var('order_pass_through_columns') | join (", ")}} + + {% endif %} + + from fields +) + +select * +from final +where not coalesce(is_deleted, false) \ No newline at end of file diff --git a/models/stg_salesforce__product_2.sql b/models/stg_salesforce__product_2.sql new file mode 100644 index 0000000..9acab57 --- /dev/null +++ b/models/stg_salesforce__product_2.sql @@ -0,0 +1,68 @@ +--To disable this model, set the using_user_role variable within your dbt_project.yml file to False. +{{ config(enabled=var('salesforce__product_2_enabled', True)) }} + +with base as ( + + select * + from {{ ref('stg_salesforce__product_2_tmp') }} +), + +fields as ( + + select + {{ + fivetran_utils.fill_staging_columns( + source_columns=adapter.get_columns_in_relation(ref('stg_salesforce__product_2_tmp')), + staging_columns=get_product_2_columns() + ) + }} + + --The below script allows for pass through columns. + {% if var('product_2_pass_through_columns',[]) != [] %} + , {{ var('product_2_pass_through_columns') | join (", ")}} + {% endif %} + + from base +), + +final as ( + + select + cast(_fivetran_synced as {{ dbt_utils.type_timestamp() }}) as _fivetran_synced, + id as product_2_id, + created_by_id, + cast(created_date as {{ dbt_utils.type_timestamp() }}) as created_date, + description as product_2_description, + display_url, + external_id, + family, + is_active, + is_archived, + is_deleted, + last_modified_by_id, + cast(last_modified_date as {{ dbt_utils.type_timestamp() }}) as last_modified_date, + cast(last_referenced_date as {{ dbt_utils.type_timestamp() }}) as last_referenced_date, + cast(last_viewed_date as {{ dbt_utils.type_timestamp() }}) as last_viewed_date, + name as product_2_name, + number_of_quantity_installments, + number_of_revenue_installments, + product_code, + quantity_installment_period, + quantity_schedule_type, + quantity_unit_of_measure, + record_type_id, + revenue_installment_period, + revenue_schedule_type + + --The below script allows for pass through columns. + {% if var('product_2_pass_through_columns',[]) != [] %} + , {{ var('product_2_pass_through_columns') | join (", ")}} + + {% endif %} + + from fields +) + +select * +from final +where not coalesce(is_deleted, false) \ No newline at end of file diff --git a/models/stg_salesforce__task.sql b/models/stg_salesforce__task.sql new file mode 100644 index 0000000..3a6fe10 --- /dev/null +++ b/models/stg_salesforce__task.sql @@ -0,0 +1,72 @@ +--To disable this model, set the using_user_role variable within your dbt_project.yml file to False. +{{ config(enabled=var('salesforce__task_enabled', True)) }} + +with base as ( + + select * + from {{ ref('stg_salesforce__task_tmp') }} +), + +fields as ( + + select + {{ + fivetran_utils.fill_staging_columns( + source_columns=adapter.get_columns_in_relation(ref('stg_salesforce__task_tmp')), + staging_columns=get_task_columns() + ) + }} + + --The below script allows for pass through columns. + {% if var('task_pass_through_columns',[]) != [] %} + , {{ var('task_pass_through_columns') | join (", ")}} + {% endif %} + + from base +), + +final as ( + + select + cast(_fivetran_synced as {{ dbt_utils.type_timestamp() }}) as _fivetran_synced, + id as task_id, + account_id, + cast(activity_date as {{ dbt_utils.type_timestamp() }}) as activity_date, + call_disposition, + call_duration_in_seconds, + call_object, + call_type, + cast(completed_date_time as {{ dbt_utils.type_timestamp() }}) as completed_date_time, + created_by_id, + cast(created_date as {{ dbt_utils.type_timestamp() }}) as created_date, + description as task_description, + is_archived, + is_closed, + is_deleted, + is_high_priority, + last_modified_by_id, + cast(last_modified_date as {{ dbt_utils.type_timestamp() }}) as last_modified_date, + owner_id, + priority, + record_type_id, + status, + subject, + task_subtype, + type, + what_count, + what_id, + who_count, + who_id + + --The below script allows for pass through columns. + {% if var('task_pass_through_columns',[]) != [] %} + , {{ var('task_pass_through_columns') | join (", ")}} + + {% endif %} + + from fields +) + +select * +from final +where not coalesce(is_deleted, false) \ No newline at end of file diff --git a/models/stg_salesforce__user.sql b/models/stg_salesforce__user.sql index eb3dd59..8650c80 100644 --- a/models/stg_salesforce__user.sql +++ b/models/stg_salesforce__user.sql @@ -1,19 +1,12 @@ -with source as ( +with base as ( select * from {{ ref('stg_salesforce__user_tmp') }} +), -), macro as ( +fields as ( select - - /* - The below macro is used to generate the correct SQL for package staging models. It takes a list of columns - that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns - in the source (source_columns from dbt_salesforce_source/macros/). - - For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git). - */ {{ fivetran_utils.fill_staging_columns( @@ -22,22 +15,19 @@ with source as ( ) }} - --The below script allows for pass through columns. - - {% if var('user_pass_through_columns') %} - , - {{ var('user_pass_through_columns') | join (", ")}} - + --The below script allows for pass through columns. + {% if var('user_pass_through_columns',[]) != [] %} + , {{ var('user_pass_through_columns') | join (", ")}} {% endif %} - from source + from base +), -), renamed as ( +final as ( select - _fivetran_deleted, - _fivetran_synced, + cast(_fivetran_synced as {{ dbt_utils.type_timestamp() }}) as _fivetran_synced, account_id, alias, city, @@ -51,10 +41,10 @@ with source as ( id as user_id, individual_id, is_active, - last_login_date, + cast(last_login_date as {{ dbt_utils.type_timestamp() }}) as last_login_date, last_name, - last_referenced_date, - last_viewed_date, + cast(last_referenced_date as {{ dbt_utils.type_timestamp() }}) as last_referenced_date, + cast(last_viewed_date as {{ dbt_utils.type_timestamp() }}) as last_viewed_date, manager_id, name as user_name, postal_code, @@ -66,18 +56,15 @@ with source as ( user_role_id, user_type, username - --The below script allows for pass through columns. - - {% if var('user_pass_through_columns') %} - , - {{ var('user_pass_through_columns') | join (", ")}} + + --The below script allows for pass through columns. + {% if var('user_pass_through_columns',[]) != [] %} + , {{ var('user_pass_through_columns') | join (", ")}} {% endif %} - from macro - + from fields ) select * -from renamed -where not coalesce(_fivetran_deleted, false) \ No newline at end of file +from final \ No newline at end of file diff --git a/models/stg_salesforce__user_role.sql b/models/stg_salesforce__user_role.sql index 05ac80f..6fd2935 100644 --- a/models/stg_salesforce__user_role.sql +++ b/models/stg_salesforce__user_role.sql @@ -1,21 +1,16 @@ --To disable this model, set the using_user_role variable within your dbt_project.yml file to False. {{ config(enabled=var('salesforce__user_role_enabled', True)) }} -with source as ( +with base as ( select * from {{ ref('stg_salesforce__user_role_tmp') }} +), -), macro as ( +fields as ( select - /* - The below macro is used to generate the correct SQL for package staging models. It takes a list of columns - that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns - in the source (source_columns from dbt_salesforce_source/macros/). - - For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git). - */ + {{ fivetran_utils.fill_staging_columns( source_columns=adapter.get_columns_in_relation(ref('stg_salesforce__user_role_tmp')), @@ -23,23 +18,34 @@ with source as ( ) }} - from source + --The below script allows for pass through columns. + {% if var('user_role_pass_through_columns',[]) != [] %} + , {{ var('user_role_pass_through_columns') | join (", ")}} + {% endif %} -), renamed as ( + from base +), - select - _fivetran_deleted, - _fivetran_synced, - developer_name, - id as user_role_id, - name as user_role_name, - opportunity_access_for_account_owner, - parent_role_id, - rollup_description - from macro +final as ( + select + _fivetran_deleted, + cast(_fivetran_synced as {{ dbt_utils.type_timestamp() }}) as _fivetran_synced, + developer_name, + id as user_role_id, + name as user_role_name, + opportunity_access_for_account_owner, + parent_role_id, + rollup_description + + --The below script allows for pass through columns. + {% if var('user_role_pass_through_columns',[]) != [] %} + , {{ var('user_role_pass_through_columns') | join (", ")}} + + {% endif %} + + from fields ) select * -from renamed -where not coalesce(_fivetran_deleted, false) \ No newline at end of file +from final \ No newline at end of file diff --git a/models/stg_tables.yml b/models/stg_tables.yml deleted file mode 100644 index a6c21f3..0000000 --- a/models/stg_tables.yml +++ /dev/null @@ -1,369 +0,0 @@ -version: 2 - -models: - - - name: stg_salesforce__account - description: Represents an individual account, which is an organization or person involved with your business (such as customers, competitors, and partners). - columns: - - name: account_id - description: The unique, system-generated ID assigned during creation - tests: - - not_null - - unique - - name: _fivetran_synced - description: The time at which fivetran last synced this record - - name: account_number - description: Account number assigned to this account (not the unique, system-generated ID assigned during creation). - - name: account_source - description: The source of the account record. For example, Advertisement, Data.com, or Trade Show. - - name: annual_revenue - description: Estimated annual revenue of the account. - - name: billing_city - description: Details for the billing address of this account. - - name: billing_country - description: Details for the billing address of this account. - - name: billing_country_code - description: The ISO country code for the account’s billing address. - - name: billing_geocode_accuracy - description: Accuracy level of the geocode for the billing address. See Compound Field Considerations and Limitations for details on geolocation compound fields. - - name: billing_latitude - description: Used with BillingLongitude to specify the precise geolocation of a billing address. - - name: billing_longitude - description: Used with BillingLatitude to specify the precise geolocation of a billing address. - - name: billing_postal_code - description: Details for the billing address of this account. - - name: billing_state - description: Details for the billing address of this account. - - name: billing_state_code - description: The ISO state code for the account’s billing address. - - name: billing_street - description: Street address for the billing address of this account. - - name: description - description: Text description of the account. - - name: fax - description: Fax number for the account. - - name: industry - description: An industry associated with this account. - - name: is_deleted - description: Indicates whether the object has been moved to the Recycle Bin (true) or not (false). - - name: jigsaw_company_id - description: References the ID of a company in Data.com. If an account has a value in this field, it means that the account was imported from Data.com. - - name: last_activity_date - description: Value is one of the following, whichever is the most recent - - name: last_referenced_date - description: The timestamp when the current user last accessed this record, a record related to this record, or a list view. - - name: last_viewed_date - description: The timestamp when the current user last viewed this record or list view. If this value is null, the user might have only accessed this record or list view (LastReferencedDate) but not viewed it. - - name: master_record_id - description: If this object was deleted as the result of a merge, this field contains the ID of the record that was kept. If this object was deleted for any other reason, or has not been deleted, the value is null. - - name: account_name - description: Required. Name of the account. - - name: number_of_employees - description: Number of employees working at the company represented by this account. - - name: owner_id - description: The ID of the user who currently owns this account. - - name: ownership - description: Ownership type for the account, for example Private, Public, or Subsidiary. - - name: parent_id - description: ID of the parent object, if any. - - name: phone - description: Phone number for this account. - - name: photo_url - description: Path to be combined with the URL of a Salesforce instance (for example, https://yourInstance.salesforce.com/) to generate a URL to request the social network profile image associated with the account. - - name: rating - description: The account’s prospect rating, for example Hot, Warm, or Cold. - - name: record_type_id - description: ID of the record type assigned to this object. - - name: shipping_city - description: Details of the shipping address for this account - - name: shipping_country - description: Details of the shipping address for this account. Country - - name: shipping_country_code - description: The ISO country code for the account’s shipping address. - - name: shipping_geocode_accuracy - description: Accuracy level of the geocode for the shipping address. - - name: shipping_latitude - description: Used with ShippingLongitude to specify the precise geolocation of a shipping address. - - name: shipping_longitude - description: Used with ShippingLatitude to specify the precise geolocation of an address. - - name: shipping_postal_code - description: Details of the shipping address for this account. Postal code - - name: shipping_state - description: Details of the shipping address for this account. State - - name: shipping_state_code - description: The ISO state code for the account’s shipping address. - - name: shipping_street - description: The street address of the shipping address for this account. - - name: sic - description: Standard Industrial Classification code of the company’s main business categorization, for example, 57340 for Electronics. - - name: sic_desc - description: A brief description of an organization’s line of business, based on its SIC code. - - name: site - description: Name of the account’s location, for example Headquarters or London. - - name: ticker_symbol - description: The stock market symbol for this account. This field is available on business accounts, not person accounts. - - name: type - description: Type of account, for example, Customer, Competitor, or Partner. - - name: website - description: The website of this account. - - - name: stg_salesforce__opportunity - description: Represents an opportunity, which is a sale or pending deal. - columns: - - name: opportunity_id - description: The unique, system-generated ID assigned during creation. - tests: - - not_null - - unique - - name: _fivetran_synced - description: The time at which fivetran last synced this record - - name: account_id - description: ID of the account associated with this opportunity. - - name: amount - description: Estimated total sale amount. For opportunities with products, the amount is the sum of the related products. - - name: campaign_id - description: ID of a related Campaign. This field is defined only for those organizations that have the campaign feature Campaigns enabled. - - name: close_date - description: Required. Date when the opportunity is expected to close. - - name: created_date - description: Date when the opportunity is was created. - - name: description - description: Text description of the opportunity. - - name: expected_revenue - description: Read-only field that is equal to the product of the opportunity Amount field and the Probability. - - name: fiscal - description: If fiscal years are not enabled, the name of the fiscal quarter or period in which the opportunity CloseDate falls. - - name: fiscal_quarter - description: Represents the fiscal quarter. Valid values are 1, 2, 3, or 4. - - name: fiscal_year - description: Represents the fiscal year, for example, 2006. - - name: forecast_category - description: Restricted picklist field. - - name: forecast_category_name - description: The name of the forecast category. - - name: has_open_activity - description: Indicates whether an opportunity has an open event or task (true) or not (false). - - name: has_opportunity_line_item - description: Read-only field that indicates whether the opportunity has associated line items. A value of true means that Opportunity line items have been created for the opportunity. - - name: has_overdue_task - description: Indicates whether an opportunity has an overdue task (true) or not (false). - - name: is_closed - description: True, if Stage Name Label is Closed. - - name: is_deleted - description: Indicates whether the object has been moved to the Recycle Bin (true) or not (false). - - name: is_excluded_from_territory_2_filter - description: Used for Filter-Based Opportunity Territory Assignment. Indicates whether the opportunity is excluded (True) or included (False) each time the APEX filter is executed. - - name: is_won - description: True, if Stage Name Label is Won. - - name: last_activity_date - description: Value is one of the following, whichever is the most recent:Due date of the most recent event logged against the record or Due date of the most recently closed task associated with the record. - - name: last_referenced_date - description: The timestamp when the current user last accessed this record, a record related to this record, or a list view. - - name: last_viewed_date - description: The timestamp when the current user last viewed this record or list view. If this value is null, the user might have only accessed this record or list view (LastReferencedDate) but not viewed it. - - name: lead_source - description: Source of this opportunity, such as Advertisement or Trade Show. - - name: opportunity_name - description: Required. A name for this opportunity. - - name: next_step - description: Description of next task in closing opportunity. - - name: owner_id - description: ID of the User who has been assigned to work this opportunity. - - name: Pricebook2Id - description: ID of a related Pricebook2 object. The Pricebook2Id field indicates which Pricebook2 applies to this opportunity. The Pricebook2Id field is defined only for those organizations that have products enabled as a feature. You can specify values for only one field (Pricebook2Id or PricebookId)—not both fields. For this reason, both fields are declared nillable. - - name: pricebook_2_id - description: Unavailable as of version 3.0. As of version 8.0, the Pricebook object is no longer available. Use the Pricebook2Id field instead, specifying the ID of the Pricebook2 record. - - name: probability - description: Percentage of estimated confidence in closing the opportunity. - - name: record_type_id - description: ID of the record type assigned to this object. - - name: stage_name - description: Required. Current stage of this record. The StageName field controls several other fields on an opportunity. - - name: synced_quote_id - description: The ID of the Quote that syncs with the opportunity. - - name: territory_2_id - description: The ID of the territory that is assigned to the opportunity. - - name: type - description: Type of opportunity. For example, Existing Business or New Business. - - name: is_created_this_month - description: Yes, if the opportunity created date is in the current month. - - name: is_created_this_quarter - description: Yes, if the opportunity created date is in the current quarter. - - name: days_since_created - description: The difference, in days, between the opportunity created date and the current timestamp. - - name: days_to_close - description: The difference, in days, between the opportunity created date and the opportunity close date. - - name: is_closed_this_month - description: Yes, if the opportunity close date is in the current month. - - name: is_closed_this_quarter - description: Yes, if the opportunity close date is in the current quarter. - - - name: stg_salesforce__user - description: Represents a user in your organization. - columns: - - name: user_id - description: The unique, system-generated ID assigned during creation. - tests: - - not_null - - unique - - name: _fivetran_synced - description: The time at which fivetran last synced this record - - name: _fivetran_deleted - description: True, if this field has been deleted - - name: about_me - description: Information about the user, such as areas of interest or skills. - - name: account_id - description: ID of the Account associated with a Customer Portal user. This field is null for Salesforce users. - - name: alias - description: Required. The user’s alias. For example, jsmith. - - name: badge_text - description: The community role, displayed on the user profile page just below the user name. - - name: banner_photo_url - description: The URL for the user's banner photo. - - name: call_center_id - description: If Salesforce CRM Call Center is enabled, represents the call center to which this user is assigned. - - name: city - description: The city associated with the user. Up to 40 characters allowed. - - name: community_nickname - description: Name used to identify this user in the Community application, which includes the ideas and answers features. - - name: company_name - description: The name of the user’s company. - - name: contact_id - description: ID of the Contact associated with this account. The contact must have a value in the AccountId field or an error occurs. - - name: country - description: The country associated with the user. - - name: country_code - description: The ISO country code associated with the user. - - name: default_group_notification_frequency - description: The default frequency for sending the user's Chatter group email notifications when the user joins groups. - - name: delegated_approver_id - description: Id of the user who is a delegated approver for this user. - - name: department - description: The company department associated with the user. - - name: digest_frequency - description: The frequency at which the system sends the user’s Chatter personal email digest. - - name: division - description: The division associated with this user, similar to Department and unrelated to DefaultDivision. - - name: email - description: Required. The user’s email address. - - name: email_encoding_key - description: Required. The email encoding for the user, such as ISO-8859-1 or UTF-8. - - name: email_preferences_auto_bcc - description: Determines whether the user receives copies of sent emails. This option applies only if compliance BCC emails are not enabled. - - name: employee_number - description: The user’s employee number. - - name: extension - description: The user’s phone extension number. - - name: fax - description: The user’s fax number. - - name: federation_identifier - description: Indicates the value that must be listed in the Subject element of a Security Assertion Markup Language (SAML) IDP certificate to authenticate the user for a client application using single sign-on. - - name: first_name - description: The user’s first name. - - name: forecast_enabled - description: Indicates whether the user is enabled as a forecast manager (true) or not (false). - - name: full_photo_url - description: The URL for the user's profile photo. - - name: geocode_accuracy - description: The level of accuracy of a location’s geographical coordinates compared with its physical address. - - name: individual_id - description: ID of the data privacy record associated with this user. This field is available if Data Protection and Privacy is enabled. - - name: is_active - description: Indicates whether the user has access to log in (true) or not (false). - - name: is_profile_photo_active - description: Indicates whether a user has a profile photo (true) or not (false). - - name: language_locale_key - description: Required. The user’s language, such as “French” or “Chinese (Traditional).” - - name: last_login_date - description: The date and time when the user last successfully logged in. This value is updated if 60 seconds have elapsed since the user’s last login. - - name: last_name - description: Required. The user’s last name. - - name: last_referenced_date - description: The timestamp for when the current user last viewed a record related to this record. - - name: last_viewed_date - description: The timestamp for when the current user last viewed this record. If this value is null, this record might only have been referenced (LastReferencedDate) and not viewed. - - name: latitude - description: Used with Longitude to specify the precise geolocation of an address. - - name: locale_sid_key - description: Required. This field is a restricted picklist field. The value of the field affects formatting and parsing of values, especially numeric values, in the user interface. - - name: longitude - description: Used with Latitude to specify the precise geolocation of an address. - - name: manager_id - description: The Id of the user who manages this user. - - name: medium_banner_photo_url - description: The URL for the medium-sized user profile banner photo. - - name: mobile_phone - description: The user’s mobile or cellular phone number. - - name: user_name - description: Concatenation of FirstName and LastName. - - name: offline_trial_expiration_date - description: The date and time when the user’s Connect Offline trial expires. - - name: phone - description: The user’s phone number. - - name: postal_code - description: The user’s postal or ZIP code. - - name: profile_id - description: Required. ID of the user’s Profile. Use this value to cache metadata based on profile. In earlier releases, this was RoleId. - - name: receives_admin_info_emails - description: Indicates whether the user receives email for administrators from Salesforce (true) or not (false). - - name: receives_info_emails - description: Indicates whether the user receives informational email from Salesforce (true) or not (false). - - name: sender_email - description: The email address used as the From address when the user sends emails. This address is the same value shown in Setup on the My Email Settings page. - - name: sender_name - description: The name used as the email sender when the user sends emails. This name is the same value shown in Setup on the My Email Settings page. - - name: signature - description: The signature text added to emails. - - name: small_banner_photo_url - description: The URL for the small user profile banner photo. - - name: small_photo_url - description: The URL for a thumbnail of the user's profile photo. - - name: state - description: The state associated with the User. - - name: state_code - description: The ISO state code associated with the user. - - name: street - description: The street address associated with the User. - - name: time_zone_sid_key - description: Required. This field is a restricted picklist field. A User time zone affects the offset used when displaying or entering times in the user interface. - - name: title - description: The user’s business title, such as “Vice President.” - - name: username - description: Contains the name that a user enters to log in. The value for this field must be in the form of an email address, using all lowercase characters. It must also be unique across all organizations. - - name: user_role_id - description: ID of the user’s UserRole. - - name: user_type - description: The category of user license. - - - name: stg_salesforce__user_role - description: Represents a user role in your organization. - columns: - - name: user_role_id - description: The unique, system-generated ID assigned during creation - tests: - - not_null - - unique - - name: _fivetran_synced - description: The time at which fivetran last synced this record - - name: _fivetran_deleted - description: True, if this field has been deleted - - name: case_access_for_account_owner - description: The case access level for the account owner. - - name: contact_access_for_account_owner - description: The contact access level for the account owner. - - name: developer_name - description: The unique name of the object in the API. - - name: forecast_user_id - description: The ID of the forecast manager associated with this role. - - name: may_forecast_manager_share - description: Indicates whether the forecast manager can manually share their own forecast. - - name: user_role_name - description: Required. Name of the role. Corresponds to Label on the user interface. - - name: opportunity_access_for_account_owner - description: Required. The opportunity access level for the account owner. - - name: parent_role_id - description: The ID of the parent role. - - name: portal_type - description: This value indicates the type of portal for the role - - name: rollup_description - description: Description of the forecast rollup. \ No newline at end of file diff --git a/models/tmp/stg_salesforce__contact_tmp.sql b/models/tmp/stg_salesforce__contact_tmp.sql new file mode 100644 index 0000000..b3c1a55 --- /dev/null +++ b/models/tmp/stg_salesforce__contact_tmp.sql @@ -0,0 +1,5 @@ +select * +from {{ var('contact') }} +{% if var('using_contact_history_mode_active_records', false) %} +where coalesce(_fivetran_active, true) +{% endif %} diff --git a/models/tmp/stg_salesforce__event_tmp.sql b/models/tmp/stg_salesforce__event_tmp.sql new file mode 100644 index 0000000..38819f2 --- /dev/null +++ b/models/tmp/stg_salesforce__event_tmp.sql @@ -0,0 +1,8 @@ +--To disable this model, set the below variable within your dbt_project.yml file to False. +{{ config(enabled=var('salesforce__event_enabled', True)) }} + +select * +from {{ var('event') }} +{% if var('using_event_history_mode_active_records', false) %} +where coalesce(_fivetran_active, true) +{% endif %} diff --git a/models/tmp/stg_salesforce__lead_tmp.sql b/models/tmp/stg_salesforce__lead_tmp.sql new file mode 100644 index 0000000..5afa19d --- /dev/null +++ b/models/tmp/stg_salesforce__lead_tmp.sql @@ -0,0 +1,8 @@ +--To disable this model, set the below variable within your dbt_project.yml file to False. +{{ config(enabled=var('salesforce__lead_enabled', True)) }} + +select * +from {{ var('lead') }} +{% if var('using_lead_history_mode_active_records', false) %} +where coalesce(_fivetran_active, true) +{% endif %} diff --git a/models/tmp/stg_salesforce__opportunity_line_item_tmp.sql b/models/tmp/stg_salesforce__opportunity_line_item_tmp.sql new file mode 100644 index 0000000..18aac22 --- /dev/null +++ b/models/tmp/stg_salesforce__opportunity_line_item_tmp.sql @@ -0,0 +1,8 @@ +--To disable this model, set the below variable within your dbt_project.yml file to False. +{{ config(enabled=var('salesforce__opportunity_line_item_enabled', True)) }} + +select * +from {{ var('opportunity_line_item') }} +{% if var('using_opportunity_line_item_history_mode_active_records', false) %} +where coalesce(_fivetran_active, true) +{% endif %} diff --git a/models/tmp/stg_salesforce__order_tmp.sql b/models/tmp/stg_salesforce__order_tmp.sql new file mode 100644 index 0000000..4452dd3 --- /dev/null +++ b/models/tmp/stg_salesforce__order_tmp.sql @@ -0,0 +1,8 @@ +--To disable this model, set the below variable within your dbt_project.yml file to False. +{{ config(enabled=var('salesforce__order_enabled', True)) }} + +select * +from {{ var('order') }} +{% if var('using_order_history_mode_active_records', false) %} +where coalesce(_fivetran_active, true) +{% endif %} diff --git a/models/tmp/stg_salesforce__product_2_tmp.sql b/models/tmp/stg_salesforce__product_2_tmp.sql new file mode 100644 index 0000000..03ca854 --- /dev/null +++ b/models/tmp/stg_salesforce__product_2_tmp.sql @@ -0,0 +1,8 @@ +--To disable this model, set the below variable within your dbt_project.yml file to False. +{{ config(enabled=var('salesforce__product_2_enabled', True)) }} + +select * +from {{ var('product_2') }} +{% if var('using_product_2_history_mode_active_records', false) %} +where coalesce(_fivetran_active, true) +{% endif %} diff --git a/models/tmp/stg_salesforce__task_tmp.sql b/models/tmp/stg_salesforce__task_tmp.sql new file mode 100644 index 0000000..c881d06 --- /dev/null +++ b/models/tmp/stg_salesforce__task_tmp.sql @@ -0,0 +1,8 @@ +--To disable this model, set the below variable within your dbt_project.yml file to False. +{{ config(enabled=var('salesforce__task_role_enabled', True)) }} + +select * +from {{ var('task') }} +{% if var('using_task_history_mode_active_records', false) %} +where coalesce(_fivetran_active, true) +{% endif %} diff --git a/models/tmp/stg_salesforce__user_role_tmp.sql b/models/tmp/stg_salesforce__user_role_tmp.sql index 2fbb6aa..3ba01ea 100644 --- a/models/tmp/stg_salesforce__user_role_tmp.sql +++ b/models/tmp/stg_salesforce__user_role_tmp.sql @@ -1,4 +1,4 @@ ---To disable this model, set the using_user_role variable within your dbt_project.yml file to False. +--To disable this model, set the below variable within your dbt_project.yml file to False. {{ config(enabled=var('salesforce__user_role_enabled', True)) }} select *