We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 607bb98 commit d76e137Copy full SHA for d76e137
macros/tables/synapse/ref_table.sql
@@ -71,16 +71,11 @@ dates AS (
71
{% elif snapshot_relation is not none %}
72
73
{%- set date_column = sdts_alias -%}
74
-
+
75
SELECT
76
- {{ date_column }}
77
- FROM (
78
79
- SELECT
80
- {{ sdts_alias }}
81
- FROM {{ ref(snapshot_relation) }}
82
- WHERE {{ snapshot_trigger_column }} = 1
83
- )
+ {{ sdts_alias }}
+ FROM {{ ref(snapshot_relation) }}
+ WHERE {{ snapshot_trigger_column }} = 1
84
85
{%- endif %}
86
@@ -92,7 +87,6 @@ dates AS (
92
87
)
93
88
{%- endif -%}
94
89
95
96
90
),
97
91
98
ref_table AS (
0 commit comments