Skip to content

Commit 48754da

Browse files
Readme and integration test persist docs update (#196)
* Readme and persist docs update * Update schema names in dbt_project.yml * Update schema names in sample.profiles.yml * Update dbt_project.yml for column persistence logic * Update dbt_project.yml * Change schema from hubspot_sqlw_tests to hubspot_sqlw_integration_tests --------- Co-authored-by: Joe Markiewicz <74217849+fivetran-joemarkiewicz@users.noreply.github.com>
1 parent 792b8ff commit 48754da

3 files changed

Lines changed: 15 additions & 25 deletions

File tree

‎README.md‎

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,6 @@
11
<!--section="hubspot_transformation_model"-->
22
# Hubspot dbt Package
33

4-
<p align="left">
5-
<a alt="License"
6-
href="https://github.com/fivetran/dbt_hubspot/blob/main/LICENSE">
7-
<img src="https://img.shields.io/badge/License-Apache%202.0-blue.svg" /></a>
8-
<a alt="dbt-core">
9-
<img src="https://img.shields.io/badge/dbt_Core™_version->=1.3.0,_<3.0.0-orange.svg" /></a>
10-
<a alt="Maintained?">
11-
<img src="https://img.shields.io/badge/Maintained%3F-yes-green.svg" /></a>
12-
<a alt="PRs">
13-
<img src="https://img.shields.io/badge/Contributions-welcome-blueviolet" /></a>
14-
<a alt="Fivetran Quickstart Compatible"
15-
href="https://fivetran.com/docs/transformations/data-models/quickstart-management#quickstartmanagement">
16-
<img src="https://img.shields.io/badge/Fivetran_Quickstart_Compatible%3F-yes-green.svg" /></a>
17-
</p>
18-
194
This dbt package transforms data from Fivetran's Hubspot connector into analytics-ready tables.
205

216
## Resources
@@ -29,6 +14,8 @@ This dbt package transforms data from Fivetran's Hubspot connector into analytic
2914
- [dbt Docs](https://fivetran.github.io/dbt_hubspot/#!/overview)
3015
- [DAG](https://fivetran.github.io/dbt_hubspot/#!/overview?g_v=1)
3116
- [Changelog](https://github.com/fivetran/dbt_hubspot/blob/main/CHANGELOG.md)
17+
- dbt Core™ supported versions
18+
- `>=1.3.0, <3.0.0`
3219

3320
## What does this dbt package do?
3421
This package enables you to better understand your HubSpot email and engagement performance and generates comprehensive data dictionaries. It creates enriched models with metrics focused on contacts, companies, deals, and analysis-ready event tables for email and engagement activities.

‎integration_tests/ci/sample.profiles.yml‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ integration_tests:
1212
pass: "{{ env_var('CI_REDSHIFT_DBT_PASS') }}"
1313
dbname: "{{ env_var('CI_REDSHIFT_DBT_DBNAME') }}"
1414
port: 5439
15-
schema: hubspot_integration_tests_66
15+
schema: hubspot_integration_tests
1616
threads: 8
1717
bigquery:
1818
type: bigquery
1919
method: service-account-json
2020
project: 'dbt-package-testing'
21-
schema: hubspot_integration_tests_66
21+
schema: hubspot_integration_tests
2222
threads: 8
2323
keyfile_json: "{{ env_var('GCLOUD_SERVICE_KEY') | as_native }}"
2424
snowflake:
@@ -29,7 +29,7 @@ integration_tests:
2929
role: "{{ env_var('CI_SNOWFLAKE_DBT_ROLE') }}"
3030
database: "{{ env_var('CI_SNOWFLAKE_DBT_DATABASE') }}"
3131
warehouse: "{{ env_var('CI_SNOWFLAKE_DBT_WAREHOUSE') }}"
32-
schema: hubspot_integration_tests_66
32+
schema: hubspot_integration_tests
3333
threads: 8
3434
postgres:
3535
type: postgres
@@ -38,21 +38,21 @@ integration_tests:
3838
pass: "{{ env_var('CI_POSTGRES_DBT_PASS') }}"
3939
dbname: "{{ env_var('CI_POSTGRES_DBT_DBNAME') }}"
4040
port: 5432
41-
schema: hubspot_integration_tests_66
41+
schema: hubspot_integration_tests
4242
threads: 8
4343
databricks:
4444
catalog: "{{ env_var('CI_DATABRICKS_DBT_CATALOG') }}"
4545
host: "{{ env_var('CI_DATABRICKS_DBT_HOST') }}"
4646
http_path: "{{ env_var('CI_DATABRICKS_DBT_HTTP_PATH') }}"
47-
schema: hubspot_integration_tests_66
47+
schema: hubspot_integration_tests
4848
threads: 8
4949
token: "{{ env_var('CI_DATABRICKS_DBT_TOKEN') }}"
5050
type: databricks
5151
databricks-sql:
5252
catalog: "{{ env_var('CI_DATABRICKS_DBT_CATALOG') }}"
5353
host: "{{ env_var('CI_DATABRICKS_DBT_HOST') }}"
5454
http_path: "{{ env_var('CI_DATABRICKS_SQL_DBT_HTTP_PATH') }}"
55-
schema: hubspot_sqlw_tests_6
55+
schema: hubspot_sqlw_integration_tests
5656
threads: 8
5757
token: "{{ env_var('CI_DATABRICKS_SQL_DBT_TOKEN') }}"
58-
type: databricks
58+
type: databricks

‎integration_tests/dbt_project.yml‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@ profile: 'integration_tests'
55
config-version: 2
66

77
models:
8-
+schema: "{{ 'hubspot_sqlw_tests_6' if target.name == 'databricks-sql' else 'hubspot' }}"
8+
+persist_docs:
9+
relation: true
10+
columns: "{{ false if target.type in ('databricks') else true }}"
11+
+schema: "{{ 'hubspot_sqlw_integration_tests' if target.name == 'databricks-sql' else 'hubspot' }}"
912
# +schema: "hubspot_{{ var('directed_schema','dev') }}" ## To be used for validation testing
1013

1114
vars:
@@ -27,7 +30,7 @@ vars:
2730
# hubspot_role_enabled: true # @docs-include
2831
# hubspot_team_enabled: true # @docs-include
2932

30-
hubspot_schema: hubspot_integration_tests_66
33+
hubspot_schema: hubspot_integration_tests
3134

3235
# hubspot__pass_through_all_columns: true
3336
hubspot__company_pass_through_columns: # @docs-ignore
@@ -281,4 +284,4 @@ dispatch:
281284

282285
flags:
283286
send_anonymous_usage_stats: False
284-
use_colors: True
287+
use_colors: True

0 commit comments

Comments
 (0)