From 69f4c0e72c6602fa115030fc3f357c615322322e Mon Sep 17 00:00:00 2001 From: Alice Naghshineh Date: Sat, 14 Dec 2024 10:09:35 -0700 Subject: [PATCH] fix: Do not require alias to avoid duplicate aliasing during dry runs --- dbt/adapters/spark/relation.py | 1 + tests/functional/adapter/empty/test_empty.py | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/dbt/adapters/spark/relation.py b/dbt/adapters/spark/relation.py index 860935cbd..b98544a19 100644 --- a/dbt/adapters/spark/relation.py +++ b/dbt/adapters/spark/relation.py @@ -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: diff --git a/tests/functional/adapter/empty/test_empty.py b/tests/functional/adapter/empty/test_empty.py index 1ea2c8866..90f32953a 100644 --- a/tests/functional/adapter/empty/test_empty.py +++ b/tests/functional/adapter/empty/test_empty.py @@ -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