Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions sqlmesh/dbt/target.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
"name",
"database",
"schema_",
"warehouse",
}

SCHEMA_DIFFER_OVERRIDES = {
Expand Down
12 changes: 12 additions & 0 deletions tests/dbt/test_transformation.py
Original file line number Diff line number Diff line change
Expand Up @@ -1014,6 +1014,18 @@ def test_target_jinja(sushi_test_project: Project):
assert context.render("{{ target.path }}") == "None"
assert context.render("{{ target.profile_name }}") == "None"

context = DbtContext()
context._target = SnowflakeConfig(
name="target",
schema="test",
database="test",
account="account",
user="user",
password="password",
warehouse="warehouse",
)
assert context.render("{{ target.warehouse }}") == "warehouse"


@pytest.mark.xdist_group("dbt_manifest")
def test_project_name_jinja(sushi_test_project: Project):
Expand Down
Loading