Skip to content

Commit

Permalink
Stop adding aliases to render_limited output (#980)
Browse files Browse the repository at this point in the history
* add test

* add changie

* add changie

* fix unit test import

* remove branch pointer from dev-requirements.txt
  • Loading branch information
colin-rogers-dbt authored Apr 22, 2024
1 parent 3dfff6b commit 0153bd0
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .changes/unreleased/Fixes-20240418-160240.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
kind: Fixes
body: Fix duplicate alias being added when running a model with inline refs and `--empty`
time: 2024-04-18T16:02:40.488967-07:00
custom:
Author: colin-rogers-dbt
Issue: "980"
2 changes: 1 addition & 1 deletion dbt/adapters/snowflake/relation.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
class SnowflakeRelation(BaseRelation):
type: Optional[SnowflakeRelationType] = None # type: ignore
quote_policy: SnowflakeQuotePolicy = field(default_factory=lambda: SnowflakeQuotePolicy())

require_alias: bool = False
renameable_relations: FrozenSet[SnowflakeRelationType] = field(
default_factory=lambda: frozenset(
{
Expand Down
6 changes: 5 additions & 1 deletion tests/functional/adapter/empty/test_empty.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
from dbt.tests.adapter.empty.test_empty import BaseTestEmpty
from dbt.tests.adapter.empty.test_empty import BaseTestEmpty, BaseTestEmptyInlineSourceRef


class TestSnowflakeEmpty(BaseTestEmpty):
pass


class TestSnowflakeEmptyInlineSourceRef(BaseTestEmptyInlineSourceRef):
pass

0 comments on commit 0153bd0

Please sign in to comment.