Skip to content
Open
Changes from all commits
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
4 changes: 2 additions & 2 deletions macros/tables/databricks/sat.sql
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ WITH source_data AS (
{%- else %}
SELECT {{ automate_dv.prefix(source_cols, 'a', alias_target='source') }}
{%- endif %}
FROM {{ ref(source_model) }} AS a
FROM ({{ ref(source_model) }}) AS a
WHERE {{ automate_dv.multikey(src_pk, prefix='a', condition='IS NOT NULL') }}
{%- if model.config.materialized == 'vault_insert_by_period' %}
AND __PERIOD_FILTER__
Expand Down Expand Up @@ -159,4 +159,4 @@ records_to_insert AS (

SELECT * FROM records_to_insert

{%- endmacro -%}
{%- endmacro -%}