diff --git a/models/stg_dbt_audit_log.sql b/models/stg_dbt_audit_log.sql index 7bd9c29..7b654fa 100644 --- a/models/stg_dbt_audit_log.sql +++ b/models/stg_dbt_audit_log.sql @@ -10,11 +10,11 @@ with_id as ( *, - {{ dbt_utils.surrogate_key( + {{ dbt_utils.surrogate_key([ 'event_name', 'event_model', 'invocation_id' - ) }} as event_id + ]) }} as event_id from audit diff --git a/models/stg_dbt_model_deployments.sql b/models/stg_dbt_model_deployments.sql index b5bbc48..2333083 100644 --- a/models/stg_dbt_model_deployments.sql +++ b/models/stg_dbt_model_deployments.sql @@ -8,10 +8,10 @@ aggregated as ( select - {{ dbt_utils.surrogate_key( + {{ dbt_utils.surrogate_key([ 'event_model', 'invocation_id' - ) }} as model_deployment_id, + ]) }} as model_deployment_id, invocation_id, event_model as model, diff --git a/packages.yml b/packages.yml index e2afb74..fce30bb 100644 --- a/packages.yml +++ b/packages.yml @@ -1,3 +1,3 @@ packages: - package: fishtown-analytics/dbt_utils - version: [">=0.2.4", "<0.5.0"] + version: [">=0.4.0", "<0.6.0"]