-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add new category field #132
Changes from 7 commits
932edc0
99afc0d
5e315e6
2957030
7822cec
d57c075
4bda432
5a97f6e
ad968f8
cebe8a6
1ab6ea3
e4505bd
e0b3439
f184aad
64f3544
2974eb2
db77823
65feffa
35f0438
3a1ca0f
34dc093
6ff3090
567ab91
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,28 @@ | ||
# dbt_hubspot_source v0.17.0 | ||
|
||
## Breaking Change (`--full-refresh` required after upgrading) | ||
- Introduced a new `category` column to the below models. This association field differentiates records by either HUBSPOT_DEFINED (default label) or USER_DEFINED (custom label) and was introduced to the connector in October 2024. | ||
fivetran-joemarkiewicz marked this conversation as resolved.
Show resolved
Hide resolved
|
||
- `stg_hubspot__deal_company` | ||
- `stg_hubspot__deal_contact` | ||
- `stg_hubspot__merged_deal` | ||
- `stg_hubspot__engagement_company` | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @fivetran-reneeli I do not see the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Great question! So these models leverage a macro to bring through all the columns and therefore the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah makes sense! Thanks for that. |
||
- `stg_hubspot__engagement_contact` | ||
- `stg_hubspot__engagement_deal` | ||
- `stg_hubspot__ticket_company` | ||
- `stg_hubspot__ticket_contact` | ||
- `stg_hubspot__ticket_deal` | ||
- `stg_hubspot__ticket_engagement` | ||
|
||
- This will be a breaking change and will require a `--full-refresh`. | ||
fivetran-joemarkiewicz marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
## Bug Fixes | ||
- Updated the unique key to include the new `category` field for the following models in order for the uniqueness tests to pass: | ||
- `stg_hubspot__deal_contact` | ||
- `stg_hubspot__deal_company` | ||
|
||
## Under the Hood | ||
- Updated the seed files, `get_column` macros, and documentation of the mentioned models to include the `category` field. | ||
fivetran-joemarkiewicz marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
# dbt_hubspot_source v0.16.0 | ||
[PR #129](https://github.com/fivetran/dbt_hubspot_source/pull/129) includes the following updates: | ||
|
||
|
Large diffs are not rendered by default.
Large diffs are not rendered by default.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Looked into this. But I saw some like the below: And I couldn't figure out where the error was coming from because I don't see |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
company_id,deal_id,type_id | ||
12345,6789,101112 | ||
56789,1234,101112 | ||
company_id,deal_id,type_id,category | ||
12345,6789,101112,HUBSPOT_DEFINED | ||
56789,1234,101112,HUBSPOT_DEFINED |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
contact_id,deal_id,_fivetran_synced,type_id | ||
1499466,86133127,2022-04-14 4:30:42,101112 | ||
1499466,86134193,2022-04-14 4:45:43,123456 | ||
1499368,86014324,2022-04-14 5:30:45,567891 | ||
1499468,86136486,2022-04-14 6:30:45,101112 | ||
1499469,86139887,2022-04-14 7:45:44,123456 | ||
1499469,86142279,2022-04-14 8:30:44,101112 | ||
1499596,86324169,2022-04-16 5:00:42,123456 | ||
1499595,86318106,2022-04-16 4:45:44,567891 | ||
1499597,86328114,2022-04-16 6:45:43,101112 | ||
1499597,86325643,2022-04-16 6:45:43,567891 | ||
1499598,86326974,2022-04-16 8:00:44,123456 | ||
contact_id,deal_id,_fivetran_synced,type_id,category | ||
1499466,86133127,2022-04-14 4:30:42,101112,HUBSPOT_DEFINED | ||
1499466,86134193,2022-04-14 4:45:43,123456,HUBSPOT_DEFINED | ||
1499368,86014324,2022-04-14 5:30:45,567891,HUBSPOT_DEFINED | ||
1499468,86136486,2022-04-14 6:30:45,101112,HUBSPOT_DEFINED | ||
1499469,86139887,2022-04-14 7:45:44,123456,HUBSPOT_DEFINED | ||
1499469,86142279,2022-04-14 8:30:44,101112,HUBSPOT_DEFINED | ||
1499596,86324169,2022-04-16 5:00:42,123456,HUBSPOT_DEFINED | ||
1499595,86318106,2022-04-16 4:45:44,567891,HUBSPOT_DEFINED | ||
1499597,86328114,2022-04-16 6:45:43,101112,HUBSPOT_DEFINED | ||
1499597,86325643,2022-04-16 6:45:43,567891,HUBSPOT_DEFINED | ||
1499598,86326974,2022-04-16 8:00:44,123456,HUBSPOT_DEFINED |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
company_id,engagement_id,engagement_type,type_id,_fivetran_synced | ||
9991774791,31479928586,TASK,192,2023-06-08 23:22:50.829000 | ||
company_id,engagement_id,engagement_type,type_id,_fivetran_synced,category | ||
9991774791,31479928586,TASK,192,2023-06-08 23:22:50.829000,HUBSPOT_DEFINED |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
contact_id,engagement_id,engagement_type,type_id,_fivetran_synced | ||
501,19732910159,CALL,194,2023-06-08 23:22:49.869000 | ||
contact_id,engagement_id,engagement_type,type_id,_fivetran_synced,category | ||
501,19732910159,CALL,194,2023-06-08 23:22:49.869000,HUBSPOT_DEFINED |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
deal_id,engagement_id,engagement_type,type_id,_fivetran_synced | ||
10828857779,31479928586,TASK,216,2023-06-08 23:22:50.768000 | ||
deal_id,engagement_id,engagement_type,type_id,_fivetran_synced,category | ||
10828857779,31479928586,TASK,216,2023-06-08 23:22:50.768000,HUBSPOT_DEFINED |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
deal_id,merged_deal_id,_fivetran_synced | ||
9089908390,9014070905,2023-06-22 11:37:07.210000 | ||
9089908390,9077310858,2023-06-22 11:37:07.210000 | ||
9089908390,9077311778,2023-06-22 11:37:07.210000 | ||
9089908390,9014071335,2023-06-22 11:37:07.210000 | ||
1364146343,10829010820,2023-06-22 11:37:07.220000 | ||
1364146343,10828874842,2023-06-22 11:37:07.220000 | ||
1368273549,10829051678,2023-06-22 11:37:07.227000 | ||
1368273549,10829028256,2023-06-22 11:37:07.227000 | ||
1373595330,10879517198,2023-06-22 11:37:07.227000 | ||
1373595330,10828874855,2023-06-22 11:37:07.227000 | ||
1006463008,10064581040,2023-06-22 11:37:07.213000 | ||
1006463008,9351825260,2023-06-22 11:37:07.213000 | ||
1389291069,12351788138,2023-06-28 11:18:32.940000 | ||
1389291069,13817889862,2023-06-28 11:18:32.939000 | ||
deal_id,merged_deal_id,_fivetran_synced,category | ||
9089908390,9014070905,2023-06-22 11:37:07.210000,HUBSPOT_DEFINED | ||
9089908390,9077310858,2023-06-22 11:37:07.210000,HUBSPOT_DEFINED | ||
9089908390,9077311778,2023-06-22 11:37:07.210000,HUBSPOT_DEFINED | ||
9089908390,9014071335,2023-06-22 11:37:07.210000,HUBSPOT_DEFINED | ||
1364146343,10829010820,2023-06-22 11:37:07.220000,HUBSPOT_DEFINED | ||
1364146343,10828874842,2023-06-22 11:37:07.220000,HUBSPOT_DEFINED | ||
1368273549,10829051678,2023-06-22 11:37:07.227000,HUBSPOT_DEFINED | ||
1368273549,10829028256,2023-06-22 11:37:07.227000,HUBSPOT_DEFINED | ||
1373595330,10879517198,2023-06-22 11:37:07.227000,HUBSPOT_DEFINED | ||
1373595330,10828874855,2023-06-22 11:37:07.227000,HUBSPOT_DEFINED | ||
1006463008,10064581040,2023-06-22 11:37:07.213000,HUBSPOT_DEFINED | ||
1006463008,9351825260,2023-06-22 11:37:07.213000,HUBSPOT_DEFINED | ||
1389291069,12351788138,2023-06-28 11:18:32.940000,HUBSPOT_DEFINED | ||
1389291069,13817889862,2023-06-28 11:18:32.939000,HUBSPOT_DEFINED |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
_fivetran_synced,ticket_id,company_id | ||
2020-07-09 11:06:21.056,1,1 | ||
2020-07-09 11:06:21.056,2,1 | ||
2020-07-09 11:06:21.056,3,1 | ||
2020-07-09 11:06:21.056,4,1 | ||
2020-07-09 11:06:21.056,5,1 | ||
2020-07-09 11:06:21.056,6,1 | ||
2020-07-09 11:06:21.056,7,2 | ||
2020-07-09 11:06:21.056,8,2 | ||
2020-07-09 11:06:21.056,9,2 | ||
_fivetran_synced,ticket_id,company_id,category | ||
2020-07-09 11:06:21.056,1,1,HUBSPOT_DEFINED | ||
2020-07-09 11:06:21.056,2,1,HUBSPOT_DEFINED | ||
2020-07-09 11:06:21.056,3,1,HUBSPOT_DEFINED | ||
2020-07-09 11:06:21.056,4,1,HUBSPOT_DEFINED | ||
2020-07-09 11:06:21.056,5,1,HUBSPOT_DEFINED | ||
2020-07-09 11:06:21.056,6,1,HUBSPOT_DEFINED | ||
2020-07-09 11:06:21.056,7,2,HUBSPOT_DEFINED | ||
2020-07-09 11:06:21.056,8,2,HUBSPOT_DEFINED | ||
2020-07-09 11:06:21.056,9,2,HUBSPOT_DEFINED |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
_fivetran_synced,ticket_id,contact_id | ||
2020-07-09 11:06:21.056,1,1 | ||
2020-07-09 11:06:21.056,2,2 | ||
2020-07-09 11:06:21.056,3,3 | ||
2020-07-09 11:06:21.056,4,1 | ||
2020-07-09 11:06:21.056,5,2 | ||
2020-07-09 11:06:21.056,6,3 | ||
2020-07-09 11:06:21.056,7,1 | ||
2020-07-09 11:06:21.056,8,2 | ||
2020-07-09 11:06:21.056,9,3 | ||
_fivetran_synced,ticket_id,contact_id,category | ||
2020-07-09 11:06:21.056,1,1,HUBSPOT_DEFINED | ||
2020-07-09 11:06:21.056,2,2,HUBSPOT_DEFINED | ||
2020-07-09 11:06:21.056,3,3,HUBSPOT_DEFINED | ||
2020-07-09 11:06:21.056,4,1,HUBSPOT_DEFINED | ||
2020-07-09 11:06:21.056,5,2,HUBSPOT_DEFINED | ||
2020-07-09 11:06:21.056,6,3,HUBSPOT_DEFINED | ||
2020-07-09 11:06:21.056,7,1,HUBSPOT_DEFINED | ||
2020-07-09 11:06:21.056,8,2,HUBSPOT_DEFINED | ||
2020-07-09 11:06:21.056,9,3,HUBSPOT_DEFINED |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
_fivetran_synced,ticket_id,deal_id | ||
2020-07-09 11:06:21.056,1,1 | ||
2020-07-09 11:06:21.056,2,2 | ||
2020-07-09 11:06:21.056,3,3 | ||
2020-07-09 11:06:21.056,4,1 | ||
2020-07-09 11:06:21.056,5,2 | ||
2020-07-09 11:06:21.056,6,3 | ||
2020-07-09 11:06:21.056,7,1 | ||
2020-07-09 11:06:21.056,8,2 | ||
2020-07-09 11:06:21.056,9,3 | ||
_fivetran_synced,ticket_id,deal_id,category | ||
2020-07-09 11:06:21.056,1,1,HUBSPOT_DEFINED | ||
2020-07-09 11:06:21.056,2,2,HUBSPOT_DEFINED | ||
2020-07-09 11:06:21.056,3,3,HUBSPOT_DEFINED | ||
2020-07-09 11:06:21.056,4,1,HUBSPOT_DEFINED | ||
2020-07-09 11:06:21.056,5,2,HUBSPOT_DEFINED | ||
2020-07-09 11:06:21.056,6,3,HUBSPOT_DEFINED | ||
2020-07-09 11:06:21.056,7,1,HUBSPOT_DEFINED | ||
2020-07-09 11:06:21.056,8,2,HUBSPOT_DEFINED | ||
2020-07-09 11:06:21.056,9,3,HUBSPOT_DEFINED |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
_fivetran_synced,ticket_id,engagement_id | ||
2020-07-09 11:06:21.056,1,1 | ||
2020-07-09 11:06:21.056,2,2 | ||
2020-07-09 11:06:21.056,3,3 | ||
2020-07-09 11:06:21.056,4,14 | ||
2020-07-09 11:06:21.056,5,5 | ||
2020-07-09 11:06:21.056,6,12 | ||
2020-07-09 11:06:21.056,7,1 | ||
2020-07-09 11:06:21.056,8,2 | ||
2020-07-09 11:06:21.056,9,3 | ||
_fivetran_synced,ticket_id,engagement_id,category | ||
2020-07-09 11:06:21.056,1,1,HUBSPOT_DEFINED | ||
2020-07-09 11:06:21.056,2,2,HUBSPOT_DEFINED | ||
2020-07-09 11:06:21.056,3,3,HUBSPOT_DEFINED | ||
2020-07-09 11:06:21.056,4,14,HUBSPOT_DEFINED | ||
2020-07-09 11:06:21.056,5,5,HUBSPOT_DEFINED | ||
2020-07-09 11:06:21.056,6,12,HUBSPOT_DEFINED | ||
2020-07-09 11:06:21.056,7,1,HUBSPOT_DEFINED | ||
2020-07-09 11:06:21.056,8,2,HUBSPOT_DEFINED | ||
2020-07-09 11:06:21.056,9,3,HUBSPOT_DEFINED |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,8 @@ | |
{% set columns = [ | ||
{"name": "_fivetran_synced", "datatype": dbt.type_timestamp()}, | ||
{"name": "deal_id", "datatype": dbt.type_int()}, | ||
{"name": "merged_deal_id", "datatype": dbt.type_int()} | ||
{"name": "merged_deal_id", "datatype": dbt.type_int()}, | ||
{"name": "category", "datatype": dbt.type_string()} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Category is not included in merged_deal so we should remove here as well There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. thanks for catching! |
||
] %} | ||
|
||
{{ return(columns) }} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you bump the README version up to [">=0.17.0", "<0.18.0"]?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thank you!