From a9994fc655d016493f2423119f2290c7cfe806f8 Mon Sep 17 00:00:00 2001 From: David Date: Wed, 23 Oct 2024 15:48:18 +0100 Subject: [PATCH 1/2] Stop adding aliases to render_limited output --- dbt-athena/src/dbt/adapters/athena/relation.py | 1 + dbt-athena/tests/functional/adapter/test_empty.py | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/dbt-athena/src/dbt/adapters/athena/relation.py b/dbt-athena/src/dbt/adapters/athena/relation.py index 7862c719..0de8d784 100644 --- a/dbt-athena/src/dbt/adapters/athena/relation.py +++ b/dbt-athena/src/dbt/adapters/athena/relation.py @@ -39,6 +39,7 @@ class AthenaRelation(BaseRelation): include_policy: Policy = field(default_factory=lambda: AthenaIncludePolicy()) s3_path_table_part: Optional[str] = None detailed_table_type: Optional[str] = None # table_type option from the table Parameters in Glue Catalog + require_alias: bool = False def render_hive(self) -> str: """ diff --git a/dbt-athena/tests/functional/adapter/test_empty.py b/dbt-athena/tests/functional/adapter/test_empty.py index b9523881..d8f2ccfe 100644 --- a/dbt-athena/tests/functional/adapter/test_empty.py +++ b/dbt-athena/tests/functional/adapter/test_empty.py @@ -1,5 +1,8 @@ -from dbt.tests.adapter.empty.test_empty import BaseTestEmpty +from dbt.tests.adapter.empty.test_empty import BaseTestEmpty, BaseTestEmptyInlineSourceRef class TestAthenaEmpty(BaseTestEmpty): pass + +class TestAthenaEmptyInlineSourceRef(BaseTestEmptyInlineSourceRef): + pass \ No newline at end of file From 0614650a2e21f4b9a7ea2e2062bc463f3c92a01e Mon Sep 17 00:00:00 2001 From: David Lequin Date: Wed, 30 Oct 2024 15:56:24 +0100 Subject: [PATCH 2/2] newline test_empty.py --- dbt-athena/tests/functional/adapter/test_empty.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbt-athena/tests/functional/adapter/test_empty.py b/dbt-athena/tests/functional/adapter/test_empty.py index d8f2ccfe..e557b71a 100644 --- a/dbt-athena/tests/functional/adapter/test_empty.py +++ b/dbt-athena/tests/functional/adapter/test_empty.py @@ -5,4 +5,4 @@ class TestAthenaEmpty(BaseTestEmpty): pass class TestAthenaEmptyInlineSourceRef(BaseTestEmptyInlineSourceRef): - pass \ No newline at end of file + pass