From 21428bce9ea3aed7ac6900d11b158bbe80fb56b0 Mon Sep 17 00:00:00 2001 From: Thomas van Latum Date: Thu, 18 Jan 2024 02:09:43 +0100 Subject: [PATCH] quote project name (#242) --- macros/plugins/bigquery/create_external_schema.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/macros/plugins/bigquery/create_external_schema.sql b/macros/plugins/bigquery/create_external_schema.sql index 07c00b95..dc42b488 100644 --- a/macros/plugins/bigquery/create_external_schema.sql +++ b/macros/plugins/bigquery/create_external_schema.sql @@ -8,7 +8,7 @@ {%- endset -%} {% set schema_exists_query %} - select * from {{ source_node.database }}.INFORMATION_SCHEMA.SCHEMATA where schema_name = '{{ source_node.schema }}' limit 1 + select * from `{{ source_node.database }}`.INFORMATION_SCHEMA.SCHEMATA where schema_name = '{{ source_node.schema }}' limit 1 {% endset %} {% if execute %} {% set schema_exists = run_query(schema_exists_query)|length > 0 %}