Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stop adding aliases to render_limited output #782

Merged
merged 5 commits into from
May 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading