We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8506196 commit 52f8cebCopy full SHA for 52f8ceb
dbt/include/singlestore/macros/common.sql
@@ -201,6 +201,8 @@
201
{% set create_query = result[0][1] -%}
202
{% if create_query is none or create_query is undefined -%}
203
{%- do exceptions.raise_compiler_error('Could not get view definition for {}'.format(from_relation.identifier)) -%}
204
+ {%- else -%}
205
+ {% set create_query = "USING " ~ from_relation.database ~ " " ~ create_query %}
206
{%- endif %}
207
208
{# Remove DEFINER=... (works if DEFINER appears only once) #}
0 commit comments