Releases: fivetran/dbt_marketo
v0.12.1 dbt_marketo
PR #42 includes the following updates:
Documentation
- Updated README formatting.
Internal Updates (Maintainers Only)
- Removed
marketo__campaigns
andmarketo__programs
from the public models list inquickstart.yml
since they are disabled by default. This serves as a temporary measure until the models and the upstream sources are updated to be enabled by default.
Full Changelog: v0.12.0...v0.12.1
v0.12.0 dbt_marketo
PR #39 includes the following updates:
Breaking Changes:
- The
action_result
field is now included in the following models, allowing users to filter records based on theaction_result
value.stg_marketo__activity_send_email
marketo__email_sends_deduped
marketo__email_sends
- Note: If you have previously added this field via the
marketo__activity_send_email_passthrough_columns
variable, remove or alias it there to prevent duplicate column errors.
- To minimize customer impact, we limited adding
action_result
to models where it does not alter the grain. Users needingaction_result
in aggregate models can derive it from themarketo__email_sends
model using custom aggregation logic. For more details, refer to the DECISIONLOG entry.
Documentation updates:
- Added missing definitions to dbt documentation.
Under the Hood:
- Added consistency integration tests for the models listed above.
- Removed all tests from intermediate models as they were unnecessary and to optimize resource usage.
- Updated seed data to include
action_result
.
Full Changelog: v0.11.0...v0.12.0
v0.11.0 dbt_marketo
PR #33 includes the following updates:
Bug Fix
- Removed the use of
ignore nulls
statements inmarketo__lead_history
andmarketo__change_data_scd
, which was incompatible with PostgreSQL and Databricks Runtime. The logic has been updated with a new approach but produces the same results as before. - Updated model
marketo__change_data_pivot
to use theactivity_id
as a tie-breaker to remove randomness when ordering events having the sameactivity_timestamp
.- Previously if two events happened at the same timestamp, results would be inconsistent, which propagated to downstream models. Now, this model will produce consistent results.
Under the hood
- Added additional variable configurations to integration tests to account for a wider range of situations.
PR #32 and Marketo Source PR #35 include the following updates:
Feature Updates (includes 🚨 breaking changes 🚨)
- Ensures that
stg_marketo__lead
(and thereforemarketo__leads
) has and documents the below columns, all standard fields from Marketo. Previously, peristed all fields found in yourLEAD
source table but only ensured that theid
,created_at
,updated_at
,email
,first_name
,last_name
, and_fivetran_synced
fields were included. If any of the following default columns are missing from yourLEAD
table,stg_marketo__lead
will create a NULL version with the proper data type:phone
main_phone
mobile_phone
company
inferred_company
address_lead
address
city
state
state_code
country
country_code
postal_code
billing_street
billing_city
billing_state
billing_state_code
billing_country
billing_country_code
billing_postal_code
inferred_city
inferred_state_region
inferred_country
inferred_postal_code
inferred_phone_area_code
anonymous_ip
unsubscribed
-> aliased asis_unsubscribed
(🚨 breaking change 🚨)email_invalid
-> aliased asis_email_invalid
(🚨 breaking change 🚨)do_not_call
Under the Hood
- Updated the maintainer PR template to resemble the most up to date format.
- Included auto-releaser GitHub Actions workflow to automate future releases.
Full Changelog: v0.10.0...v0.11.0
v0.10.0 dbt_marketo
🚨 Breaking Changes 🚨 (recommend --full-refresh):
PR #28 includes the following updates:
- The source package was updated in connection with the Fivetran Marketo connector's June 2023 and May 2023 releases. This affects the columns created for the following tables:
- marketo__campaigns
- marketo__email_sends
- marketo__programs
- marketo__leads
- See the source package changelog for more details.
- We recommend using
dbt run --full-refresh
the next time you run your project due to changes affecting incremental models.
🚘 Under the Hood:
PR #28 includes the following updates:
- Update documentation and testing seed data
PR #27 includes the following updates:
- Incorporated the new
fivetran_utils.drop_schemas_automation
macro into the end of each Buildkite integration test job. - Updated the pull request templates.
Full Changelog: v0.9.1...v0.10.0
v0.9.1 dbt_marketo
Happy international ditch new years resolution day!
This year I wanted to cook dinner more often, looks like I am ordering in tonight! 🍔 One resolution I am not giving up is providing a comprehensive overview of the changes that took place within the latestet release of dbt_marketo
. These changes include:
Bug Fix
PR #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 samelead_id
in theint_marketo__lead
which can cause the downstream testmarketo__leads.lead_id.unique
to fail. The bug fix adds adistinct lead_id
to thedeleted_leads
CTE in theint_marketo__lead
model (#25).
Contributors
Full Changelog: v0.9.0...v0.9.1
dbt_marketo v0.9.0
🚨 Breaking Changes 🚨:
PR #24 includes the following breaking changes:
- Dispatch update for dbt-utils to dbt-core cross-db macros migration. Specifically
{{ dbt_utils.<macro> }}
have been updated to{{ dbt.<macro> }}
for the below macros:any_value
bool_or
cast_bool_to_text
concat
date_trunc
dateadd
datediff
escape_single_quotes
except
hash
intersect
last_day
length
listagg
position
replace
right
safe_cast
split_part
string_literal
type_bigint
type_float
type_int
type_numeric
type_string
type_timestamp
array_append
array_concat
array_construct
- For
current_timestamp
andcurrent_timestamp_in_utc
macros, the dispatch AND the macro names have been updated to the below, respectively:dbt.current_timestamp_backcompat
dbt.current_timestamp_in_utc_backcompat
dbt_utils.surrogate_key
has also been updated todbt_utils.generate_surrogate_key
. Since the method for creating surrogate keys differ, we suggest all users do afull-refresh
for the most accurate data. For more information, please refer to dbt-utils release notes for this update.packages.yml
has been updated to reflect new defaultfivetran/fivetran_utils
version, previously[">=0.3.0", "<0.4.0"]
now[">=0.4.0", "<0.5.0"]
.
dbt_marketo v0.8.0
Hello again, friends! 😸
PR #22 incorporates the following updates:
🚨 Breaking Changes 🚨
Some of the more complex transformation logic has been moved from the Marketo source package to the transform package. This was done so the delineation between staging and intermediate models is in line with Fivetran's other packages. This does not affect the final tables created by the transform package, but this will affect the staging tables as outlined below.
- Model
stg_marketo__lead_base
fromdbt_marketo_source
has been rolled intostg_marketo__lead
. - Parts from model
stg_marketo__lead
fromdbt_marketo_source
have been moved to a new modelint_marketo__lead
indbt_marketo
. - Because of the above changes, model
marketo__lead_adapter
is now redundant and has been removed.
Features
- 🎉 Databricks and Postgres compatibility 🎉
- The starting date of the date range for the leads data can now be adjusted (see README for instructions).
- Ability to disable
activity_delete_lead
model if necessary (see README for instructions).
Under the Hood
- Updates structure of config default variables for enabling
campaigns
andprogram
models to avoid conflicting with a user's settings. - Updates the incremental strategy used by Postgres and Redshift adapters to
delete+insert
.
dbt_marketo v0.7.0
Bug Fixes
- Previously,
merged_into_lead_id
andlead_id
were erroneously switched instg_marketo__lead
. This release switches them back, appropriately castingmerged_into_lead_id
as a string (it can have multiple comma-separated values) andlead_id
as an integer (#17).
This is a BREAKING CHANGE as you will need to run a full refresh due to the columns' differing data types.
marketo 0.6.0
🎉 dbt v1.0.0 Compatibility 🎉
🚨 Breaking Changes 🚨
- Adjusts the
require-dbt-version
to now be within the range [">=1.0.0", "<2.0.0"]. Additionally, the package has been updated for dbt v1.0.0 compatibility. If you are using a dbt version <1.0.0, you will need to upgrade in order to leverage the latest version of the package.- For help upgrading your package, I recommend reviewing this GitHub repo's Release Notes on what changes have been implemented since your last upgrade.
- For help upgrading your dbt project to dbt v1.0.0, I recommend reviewing dbt-labs upgrading to 1.0.0 docs for more details on what changes must be made.
- Upgrades the package dependency to refer to the latest
dbt_marketo_source
. Additionally, the latestdbt_marketo_source
package has a dependency on the latestdbt_fivetran_utils
. Further, the latestdbt_fivetran_utils
package also has a dependency ondbt_utils
[">=0.8.0", "<0.9.0"].- Please note, if you are installing a version of
dbt_utils
in yourpackages.yml
that is not in the range above then you will encounter a package dependency error.
- Please note, if you are installing a version of
Under the Hood
- Redshift recently included pivot as a reserved word within the warehouse. As such, the
pivot
CTE within themarketo__change_data_pivot
andmarketo__change_data_details
models have been changed topivots
to avoid the Redshift error.
dbt 0.20.0 Compatibility
🎉 dbt 0.20.0 Compatibility 🎉
🚨 This is a breaking change! 🚨 dbt v0.20.0 or greater is required for this release. If you are not ready to upgrade, consider using a previous release of this package.
Additional considerations when upgrading to this package:
- This package utilizes the latest
v0.7.0
release of thedbt-labls/dbt_utils
package. If your project also utilizes a version of thefishtown-analytics/dbt_utils
package then you will receive a duplicate package error. If this is the case you will need to consider upgrading your other packages to be compatible with this update or use a previous release of this package. - Similar to the above point, all previous Fivetran dbt packages utilize the
fishtown-analytics/dbt_utils
package and you will need to upgrade all Fivetran dbt packages to the latest dbt 0.20.0 compatibility releases in order for your packages to run without package conflicts.