From a9994fc655d016493f2423119f2290c7cfe806f8 Mon Sep 17 00:00:00 2001 From: David Date: Wed, 23 Oct 2024 15:48:18 +0100 Subject: [PATCH 1/3] 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/3] 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 From 5967de5140ee22d796f98cd3693af54fe53959cf Mon Sep 17 00:00:00 2001 From: David Date: Tue, 26 Nov 2024 15:17:49 +0000 Subject: [PATCH 3/3] fix linter --- dbt-athena/tests/functional/adapter/test_empty.py | 1 + 1 file changed, 1 insertion(+) diff --git a/dbt-athena/tests/functional/adapter/test_empty.py b/dbt-athena/tests/functional/adapter/test_empty.py index e557b71a..c79fdfc2 100644 --- a/dbt-athena/tests/functional/adapter/test_empty.py +++ b/dbt-athena/tests/functional/adapter/test_empty.py @@ -4,5 +4,6 @@ class TestAthenaEmpty(BaseTestEmpty): pass + class TestAthenaEmptyInlineSourceRef(BaseTestEmptyInlineSourceRef): pass