For AI agents: a Markdown version of this page is at https://docs.snowplow.io/docs/modeling-your-data/modeling-your-data-with-dbt/migration-guides/utils.md. The index of all documentation pages is at https://docs.snowplow.io/llms.txt, and the index for this section is at https://docs.snowplow.io/docs/cdi/llms.txt.
Migration guide for Utils
Upgrading to 1.1.0
If your project overrides base_create_snowplow_events_this_run and a model passes the new event_filter argument, add event_filter=none as the last parameter of your dispatched macro. Calls that omit the filter still use the original signature.
If your override delegates to the package implementation, forward event_filter to that implementation. If it builds its own SQL, apply snowplow_utils.event_scan_filter(event_filter) when a filter is set. On PostgreSQL and Redshift, apply the predicate after calculating the event's duplicate rank and count. The shredded entity join uses that count to match entity rows to events.
Upgrading to 1.0.0
- Version 1.10.6 of
dbt-corenow required - for a full upgrade walkthrough, please follow official dbt guide
- Generic test arguments must be nested under arguments: (see dbt’s guidance on the require_generic_test_arguments_property behavior change here)
- Adapter dbt-redshift 1.10.0+ is required for Redshift users
- Users unable to upgrade immediately may remain on v0.x, which receives critical bug fixes only
Upgrading to 0.14.0
- Version 1.4.0 of
dbt-corenow required - Any custom models using the
snowplow_incrementalmaterialization should be changed to use theincrementalmaterialization withsnowplow_optimize=trueset in the model config.snowplow_incrementalhas been deprecated - BigQuery incremental models now require the
upsert_date_keyconfig snowplow_utils.type_stringit has been deprecated and should be replaced withdbt.type_string()for non-length specific calls, andsnowplow_utils.type_max_stringfor redshift strings above 256 characters.snowplow_utils.get_cluster_byandsnowplow_utils.get_partition_bythey have been deprecated and should be replaced withsnowplow_utils.get_value_by_target_typewith arg namesbigquery_val,databricks_valetc.snowplow_utils.snowplow_is_incrementalhas been deprecated and should be replaced with standardis_incremental()to align with removal of the custom materialization- You must add the following to the top level of your project yaml to take advantage of our optimized incremental materialization
ymldbt_project.ymldispatch:- macro_namespace: dbtsearch_order: ['snowplow_utils', 'dbt']
Upgrading to 0.13.0
- Version 1.3.0 of
dbt-corenow required