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 4a71ed5 commit b2c1752Copy full SHA for b2c1752
macros/materializations/insert_by_period_materialization.sql
@@ -48,6 +48,13 @@
48
{%- set stop_date = config.get('stop_date') or '' -%}}
49
{%- set period = config.get('period') or 'week' -%}
50
51
+ {%- if not '__PERIOD_FILTER__' is in sql -%}
52
+ {%- set error_message -%}
53
+ Model '{{ model.unique_id }}' does not include the required string '__PERIOD_FILTER__' in its sql
54
+ {%- endset -%}
55
+ {{ exceptions.raise_compiler_error(error_message) }}
56
+ {%- endif -%}
57
+
58
{%- set identifier = model['name'] -%}
59
60
{%- set existing_relations = adapter.list_relations(schema=schema) -%}
0 commit comments