Skip to content

Commit

Permalink
fix(pipeline): bridge tables depend on main tables
Browse files Browse the repository at this point in the history
Currently, the bridge tables are updated concurrently
to the main tables. This can make bridge & main tables
inconsistent and hence dbt contracts on fk fail.
  • Loading branch information
vmttn committed Aug 13, 2024
1 parent 01b6dd4 commit c1d004d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% macro unnest_jsonb_list_to_table(resource_type, nested_column) %}

WITH {{ resource_type }}s AS (
SELECT * FROM {{ ref('int__union_{}s__enhanced'.format(resource_type) ) }}
SELECT * FROM {{ ref('marts_inclusion__{}s'.format(resource_type) ) }}
),

final AS (
Expand Down

0 comments on commit c1d004d

Please sign in to comment.