Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to latest surrogate key macro #298

Merged
merged 3 commits into from
Apr 28, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Replace reference to surrogate_key
Gemma Down committed Apr 28, 2023
commit e76581c1367ace827de8c8a48eb0ee8e4b861278
2 changes: 1 addition & 1 deletion models/staging/stg_dbt__exposures.sql
Original file line number Diff line number Diff line change
@@ -8,7 +8,7 @@ with base as (
enhanced as (

select
{{ dbt_artifacts.surrogate_key(['command_invocation_id', 'node_id']) }} as exposure_execution_id,
{{ dbt_artifacts.generate_surrogate_key(['command_invocation_id', 'node_id']) }} as exposure_execution_id,
command_invocation_id,
node_id,
run_started_at,
2 changes: 1 addition & 1 deletion models/staging/stg_dbt__model_executions.sql
Original file line number Diff line number Diff line change
@@ -8,7 +8,7 @@ with base as (
enhanced as (

select
{{ dbt_artifacts.surrogate_key(['command_invocation_id', 'node_id']) }} as model_execution_id,
{{ dbt_artifacts.generate_surrogate_key(['command_invocation_id', 'node_id']) }} as model_execution_id,
command_invocation_id,
node_id,
run_started_at,
2 changes: 1 addition & 1 deletion models/staging/stg_dbt__models.sql
Original file line number Diff line number Diff line change
@@ -8,7 +8,7 @@ with base as (
enhanced as (

select
{{ dbt_artifacts.surrogate_key(['command_invocation_id', 'node_id']) }} as model_execution_id,
{{ dbt_artifacts.generate_surrogate_key(['command_invocation_id', 'node_id']) }} as model_execution_id,
command_invocation_id,
node_id,
run_started_at,
2 changes: 1 addition & 1 deletion models/staging/stg_dbt__seed_executions.sql
Original file line number Diff line number Diff line change
@@ -8,7 +8,7 @@ with base as (
enhanced as (

select
{{ dbt_artifacts.surrogate_key(['command_invocation_id', 'node_id']) }} as seed_execution_id,
{{ dbt_artifacts.generate_surrogate_key(['command_invocation_id', 'node_id']) }} as seed_execution_id,
command_invocation_id,
node_id,
run_started_at,
2 changes: 1 addition & 1 deletion models/staging/stg_dbt__seeds.sql
Original file line number Diff line number Diff line change
@@ -8,7 +8,7 @@ with base as (
enhanced as (

select
{{ dbt_artifacts.surrogate_key(['command_invocation_id', 'node_id']) }} as seed_execution_id,
{{ dbt_artifacts.generate_surrogate_key(['command_invocation_id', 'node_id']) }} as seed_execution_id,
command_invocation_id,
node_id,
run_started_at,
2 changes: 1 addition & 1 deletion models/staging/stg_dbt__snapshot_executions.sql
Original file line number Diff line number Diff line change
@@ -8,7 +8,7 @@ with base as (
enhanced as (

select
{{ dbt_artifacts.surrogate_key(['command_invocation_id', 'node_id']) }} as snapshot_execution_id,
{{ dbt_artifacts.generate_surrogate_key(['command_invocation_id', 'node_id']) }} as snapshot_execution_id,
command_invocation_id,
node_id,
run_started_at,
2 changes: 1 addition & 1 deletion models/staging/stg_dbt__snapshots.sql
Original file line number Diff line number Diff line change
@@ -8,7 +8,7 @@ with base as (
enhanced as (

select
{{ dbt_artifacts.surrogate_key(['command_invocation_id', 'node_id']) }} as snapshot_execution_id,
{{ dbt_artifacts.generate_surrogate_key(['command_invocation_id', 'node_id']) }} as snapshot_execution_id,
command_invocation_id,
node_id,
run_started_at,
2 changes: 1 addition & 1 deletion models/staging/stg_dbt__sources.sql
Original file line number Diff line number Diff line change
@@ -8,7 +8,7 @@ with base as (
enhanced as (

select
{{ dbt_artifacts.surrogate_key(['command_invocation_id', 'node_id']) }} as source_execution_id,
{{ dbt_artifacts.generate_surrogate_key(['command_invocation_id', 'node_id']) }} as source_execution_id,
command_invocation_id,
node_id,
run_started_at,
2 changes: 1 addition & 1 deletion models/staging/stg_dbt__test_executions.sql
Original file line number Diff line number Diff line change
@@ -8,7 +8,7 @@ with base as (
enhanced as (

select
{{ dbt_artifacts.surrogate_key(['command_invocation_id', 'node_id']) }} as test_execution_id,
{{ dbt_artifacts.generate_surrogate_key(['command_invocation_id', 'node_id']) }} as test_execution_id,
command_invocation_id,
node_id,
run_started_at,
2 changes: 1 addition & 1 deletion models/staging/stg_dbt__tests.sql
Original file line number Diff line number Diff line change
@@ -8,7 +8,7 @@ with base as (
enhanced as (

select
{{ dbt_artifacts.surrogate_key(['command_invocation_id', 'node_id']) }} as test_execution_id,
{{ dbt_artifacts.generate_surrogate_key(['command_invocation_id', 'node_id']) }} as test_execution_id,
command_invocation_id,
node_id,
run_started_at,