Skip to content

Commit

Permalink
fix: Do not require alias to avoid duplicate aliasing during dry runs
Browse files Browse the repository at this point in the history
  • Loading branch information
anaghshineh committed Dec 14, 2024
1 parent a38a288 commit 69f4c0e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions dbt/adapters/spark/relation.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ class SparkRelation(BaseRelation):
is_iceberg: Optional[bool] = None
# TODO: make this a dict everywhere
information: Optional[str] = None
require_alias: bool = False

def __post_init__(self) -> None:
if self.database != self.schema and self.database:
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 TestSparkEmpty(BaseTestEmpty):
pass


class TestSparkEmptyInlineSourceRef(BaseTestEmptyInlineSourceRef):
pass

0 comments on commit 69f4c0e

Please sign in to comment.