-
Notifications
You must be signed in to change notification settings - Fork 179
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
quoting config not working with 1.8 (#1075)
* revert change for quoting policy issue * make revet in both places * update format to ignore identifier name * update test to use SnowflakeRelation and render out the schema_relation, update macros to have condtion to check based on type * remove unneeded comments from updating test * add test based on quoting schema names * update name to more generic my_model
- Loading branch information
1 parent
cc13888
commit 57285d5
Showing
4 changed files
with
57 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
kind: Fixes | ||
body: return to previous naming convention to return to quoting policy | ||
time: 2024-06-07T10:27:08.542159-05:00 | ||
custom: | ||
Author: McKnight-42 | ||
Issue: "1074" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
tests/functional/adapter/list_relations_tests/test_special_characters.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import pytest | ||
from dbt.tests.util import run_dbt | ||
|
||
|
||
TABLE_BASE_SQL = """ | ||
-- models/my_model.sql | ||
{{ config(schema = '1_contains_special*character$') }} | ||
select 1 as id | ||
""" | ||
|
||
|
||
class TestSpecialCharactersInSchema: | ||
|
||
@pytest.fixture(scope="class") | ||
def project_config_update(self): | ||
return {"quoting": {"schema": True}} | ||
|
||
@pytest.fixture(scope="class") | ||
def models(self): | ||
return { | ||
"my_model.sql": TABLE_BASE_SQL, | ||
} | ||
|
||
def test_schema_with_special_chars(self, project): | ||
run_dbt(["run", "-s", "my_model"]) |