From c42fc0f22b781d6fd1adaa0b861e3ca7d46ce2f7 Mon Sep 17 00:00:00 2001 From: Colin Date: Tue, 23 Apr 2024 11:24:20 -0700 Subject: [PATCH] Stop adding aliases to render_limited output --- dbt/adapters/redshift/relation.py | 1 + tests/functional/adapter/empty/test_empty.py | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/dbt/adapters/redshift/relation.py b/dbt/adapters/redshift/relation.py index e120a2fac..eaf60f54c 100644 --- a/dbt/adapters/redshift/relation.py +++ b/dbt/adapters/redshift/relation.py @@ -27,6 +27,7 @@ class RedshiftRelation(BaseRelation): include_policy = RedshiftIncludePolicy # type: ignore quote_policy = RedshiftQuotePolicy # type: ignore + require_alias: bool = False relation_configs = { RelationType.MaterializedView.value: RedshiftMaterializedViewConfig, } diff --git a/tests/functional/adapter/empty/test_empty.py b/tests/functional/adapter/empty/test_empty.py index 3368a90f9..27f36f1df 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 TestRedshiftEmpty(BaseTestEmpty): pass + + +class TestRedshiftEmptyInlineSourceRef(BaseTestEmptyInlineSourceRef): + pass