Skip to content

Commit

Permalink
Stop adding aliases to render_limited output (#782)
Browse files Browse the repository at this point in the history
* Stop adding aliases to render_limited output

* add changie

(cherry picked from commit 6031b23)
  • Loading branch information
colin-rogers-dbt authored and github-actions[bot] committed May 10, 2024
1 parent 89e8ee7 commit 0eb507d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .changes/unreleased/Fixes-20240423-131503.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
kind: Fixes
body: Stop adding aliases to subqueries when calling with `--empty`
time: 2024-04-23T13:15:03.118968-07:00
custom:
Author: colin-rogers-dbt
Issue: "782"
1 change: 1 addition & 0 deletions dbt/adapters/redshift/relation.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
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 TestRedshiftEmpty(BaseTestEmpty):
pass


class TestRedshiftEmptyInlineSourceRef(BaseTestEmptyInlineSourceRef):
pass

0 comments on commit 0eb507d

Please sign in to comment.