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.
2 parents 754db12 + bfe79d3 commit c51d19aCopy full SHA for c51d19a
README.md
@@ -285,7 +285,7 @@ Usage:
285
period = "day",
286
timestamp_field = "created_at",
287
start_date = "2018-01-01",
288
- stop_date = "2018-06-01"
+ stop_date = "2018-06-01")
289
}}
290
291
with events as (
macros/materializations/insert_by_period_materialization.sql
@@ -48,7 +48,7 @@
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 -%}
+ {%- if sql.find('__PERIOD_FILTER__') == -1 -%}
52
{%- set error_message -%}
53
Model '{{ model.unique_id }}' does not include the required string '__PERIOD_FILTER__' in its sql
54
{%- endset -%}
0 commit comments