Skip to content

Commit

Permalink
Merge pull request #26 from m-feeser/bug/duplicate-deleted-lead-ids
Browse files Browse the repository at this point in the history
Bug/duplicate deleted lead ids
  • Loading branch information
fivetran-joemarkiewicz authored Jan 17, 2023
2 parents 181ab5e + 4605e36 commit 5cf1a68
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 7 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
# dbt_marketo v0.9.1

## Bug Fix
[PR #26](https://github.com/fivetran/dbt_marketo/pull/26) includes the following non-breaking change:
- Due to a "system glitch" within Marketo, the same `lead_id` can be deleted more than once. This may introduce multiple records for the same `lead_id` in the `int_marketo__lead` which can cause the downstream test `marketo__leads.lead_id.unique` to fail. The bug fix adds a `distinct lead_id` to the `deleted_leads` CTE in the `int_marketo__lead` model (https://github.com/fivetran/dbt_marketo/issues/25).

## Contributors
- [@m-feeser](https://github.com/m-feeser) ([#26](https://github.com/fivetran/dbt_marketo/pull/26))

# dbt_marketo v0.9.0

## 🚨 Breaking Changes 🚨:
Expand Down
2 changes: 1 addition & 1 deletion dbt_project.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: 'marketo'
version: '0.9.0'
version: '0.9.1'
config-version: 2
require-dbt-version: [">=1.3.0", "<2.0.0"]
on-run-start: "{{ lead_history_columns_warning() }}"
Expand Down
2 changes: 1 addition & 1 deletion docs/catalog.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/manifest.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/run_results.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion integration_tests/dbt_project.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: 'marketo_integration_tests'
version: '0.9.0'
version: '0.9.1'
profile: 'integration_tests'
config-version: 2

Expand Down
2 changes: 1 addition & 1 deletion models/intermediate/int_marketo__lead.sql
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ to False. Default is True*/
{% if var('marketo__activity_delete_lead_enabled', True) %}
), deleted_leads as (

select *
select distinct lead_id
from {{ var('activity_delete_lead') }}

{% endif %}
Expand Down

0 comments on commit 5cf1a68

Please sign in to comment.