diff --git a/libs/template/templates/default-sql/template/{{.project_name}}/src/orders_daily.sql.tmpl b/libs/template/templates/default-sql/template/{{.project_name}}/src/orders_daily.sql.tmpl index 870fe9c0..7c86f921 100644 --- a/libs/template/templates/default-sql/template/{{.project_name}}/src/orders_daily.sql.tmpl +++ b/libs/template/templates/default-sql/template/{{.project_name}}/src/orders_daily.sql.tmpl @@ -2,7 +2,7 @@ {{- /* We can't use a materialized view here since they don't support 'create or refresh' yet.*/}} USE CATALOG {{"{{"}}catalog{{"}}"}}; -USE {{"{{"}}schema{{"}}"}}; +USE IDENTIFIER({{"{{"}}schema{{"}}"}}); CREATE OR REPLACE VIEW orders_daily diff --git a/libs/template/templates/default-sql/template/{{.project_name}}/src/orders_raw.sql.tmpl b/libs/template/templates/default-sql/template/{{.project_name}}/src/orders_raw.sql.tmpl index d5891895..c73606ef 100644 --- a/libs/template/templates/default-sql/template/{{.project_name}}/src/orders_raw.sql.tmpl +++ b/libs/template/templates/default-sql/template/{{.project_name}}/src/orders_raw.sql.tmpl @@ -4,7 +4,7 @@ -- See also https://docs.databricks.com/sql/language-manual/sql-ref-syntax-ddl-create-streaming-table.html USE CATALOG {{"{{"}}catalog{{"}}"}}; -USE {{"{{"}}schema{{"}}"}}; +USE IDENTIFIER({{"{{"}}schema{{"}}"}}); CREATE OR REFRESH STREAMING TABLE orders_raw