We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d2cf724 commit 9224fb3Copy full SHA for 9224fb3
dbt/include/clickhouse/macros/materializations/view.sql
@@ -66,7 +66,11 @@
66
{{ get_assert_columns_equivalent(sql) }}
67
{%- endif %}
68
as (
69
- {{ sql }}
+ {% if sql is none %}
70
+ {{clickhouse__create_select_query_from_schema()}}
71
+ {%- else -%}
72
+ {{ sql }}
73
+ {%- endif -%}
74
{{ adapter.get_model_query_settings(model) }}
75
)
76
{% if model.get('config').get('materialized') == 'view' %}
0 commit comments