Fix SQL schema selection in default-sql template (#1471)

## Changes

This fixes a last-minute regression that snuck into
https://github.com/databricks/cli/pull/1463: unfortunately we need to
use `USE IDENTIFIER('schema')` to select a schema for now. In the future
we expect we can just use `USE SCHEMA 'schema'`.
This commit is contained in:
Lennart Kats (databricks) 2024-06-04 17:40:40 +02:00 committed by GitHub
parent f8b2cb89d5
commit 4bc0ea0af3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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