mirror of
https://github.com/dbt-labs/dbt-project-evaluator.git
synced 2025-12-18 02:11:27 +00:00
add generate_ to all surrogate key calls
This commit is contained in:
@@ -65,7 +65,7 @@ direct_relationships as (
|
||||
|
||||
final as (
|
||||
select
|
||||
{{ dbt_utils.surrogate_key(['resource_id', 'direct_parent_id']) }} as unique_id,
|
||||
{{ dbt_utils.generate_surrogate_key(['resource_id', 'direct_parent_id']) }} as unique_id,
|
||||
*
|
||||
from direct_relationships
|
||||
)
|
||||
|
||||
@@ -9,7 +9,7 @@ with relationships as (
|
||||
|
||||
final as (
|
||||
select
|
||||
{{ dbt_utils.surrogate_key(['resource_id', 'direct_parent_id']) }} as unique_id,
|
||||
{{ dbt_utils.generate_surrogate_key(['resource_id', 'direct_parent_id']) }} as unique_id,
|
||||
*
|
||||
from relationships
|
||||
)
|
||||
|
||||
@@ -9,7 +9,7 @@ with relationships as (
|
||||
|
||||
final as (
|
||||
select
|
||||
{{ dbt_utils.surrogate_key(['resource_id', 'direct_parent_id']) }} as unique_id,
|
||||
{{ dbt_utils.generate_surrogate_key(['resource_id', 'direct_parent_id']) }} as unique_id,
|
||||
*
|
||||
from relationships
|
||||
)
|
||||
|
||||
@@ -9,7 +9,7 @@ with relationships as (
|
||||
|
||||
final as (
|
||||
select
|
||||
{{ dbt_utils.surrogate_key(['resource_id', 'direct_parent_id']) }} as unique_id,
|
||||
{{ dbt_utils.generate_surrogate_key(['resource_id', 'direct_parent_id']) }} as unique_id,
|
||||
*
|
||||
from relationships
|
||||
)
|
||||
|
||||
@@ -24,7 +24,7 @@ from vars_prefix_table
|
||||
final as (
|
||||
|
||||
select
|
||||
{{ dbt_utils.surrogate_key(['model_type', 'prefix_value']) }} as unique_id,
|
||||
{{ dbt_utils.generate_surrogate_key(['model_type', 'prefix_value']) }} as unique_id,
|
||||
*
|
||||
from parsed
|
||||
|
||||
|
||||
Reference in New Issue
Block a user