Skip to content
This repository has been archived by the owner on Dec 4, 2024. It is now read-only.

Commit

Permalink
Merge pull request #32 from kingfink/tf/update-surrogate-key
Browse files Browse the repository at this point in the history
Update surrogate key to single arg
  • Loading branch information
Claire Carroll authored Jul 27, 2020
2 parents 2e4be9e + 3aec24b commit 265465d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions models/stg_dbt_audit_log.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions models/stg_dbt_model_deployments.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion packages.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
packages:
- package: fishtown-analytics/dbt_utils
version: [">=0.2.4", "<0.5.0"]
version: [">=0.4.0", "<0.6.0"]

0 comments on commit 265465d

Please sign in to comment.