Skip to content

Commit

Permalink
Merge pull request #61 from ABCurado/patch-1
Browse files Browse the repository at this point in the history
Adds missing is_deleted field when using custom columns
  • Loading branch information
fivetran-joemarkiewicz authored Apr 27, 2022
2 parents 55e2c80 + 3ab8481 commit ad239fb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
# dbt_hubspot_source v0.5.4
## Fixes
- Updated the README to reference the proper `hubspot_email_event_spam_report_enabled` variable name. ([#59](https://github.com/fivetran/dbt_hubspot_source/pull/59))
- Adds missing `is_deleted` field when using custom columns. ([#61](https://github.com/fivetran/dbt_hubspot_source/pull/61))

## Contributors
- [@cmcau](https://github.com/cmcau) ([#59](https://github.com/fivetran/dbt_hubspot_source/pull/59))
- [@ABCurado](https://github.com/ABCurado) ([#61](https://github.com/fivetran/dbt_hubspot_source/pull/61))
# dbt_hubspot_source v0.5.3

## Under the Hood
Expand Down
3 changes: 2 additions & 1 deletion models/stg_hubspot__company.sql
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ with base as (
{% else %}
-- just default columns + explicitly configured passthrough columns
_fivetran_synced,
is_deleted,
property_name as company_name,
property_description as description,
property_createdate as created_at,
Expand All @@ -59,4 +60,4 @@ with base as (
)

select *
from fields
from fields
1 change: 1 addition & 0 deletions models/stg_hubspot__deal.sql
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ with base as (
{% else %}
-- just default columns + explicitly configured passthrough columns
_fivetran_synced,
is_deleted,
deal_id,
cast(deal_pipeline_id as {{ dbt_utils.type_string() }}) as deal_pipeline_id,
cast(deal_pipeline_stage_id as {{ dbt_utils.type_string() }}) as deal_pipeline_stage_id,
Expand Down

0 comments on commit ad239fb

Please sign in to comment.