Skip to content

Commit

Permalink
Merge pull request #413 from duckdb/jwills_dont_require_alias
Browse files Browse the repository at this point in the history
Fixes #412 by not requiring aliases for limit 0 clauses in dbt-duckdb
  • Loading branch information
jwills authored Jul 11, 2024
2 parents 5d680c1 + 7cee3f8 commit cdf0e82
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions dbt/adapters/duckdb/relation.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

@dataclass(frozen=True, eq=False, repr=False)
class DuckDBRelation(BaseRelation):
require_alias: bool = False
external: Optional[str] = None

@classmethod
Expand Down
9 changes: 9 additions & 0 deletions tests/functional/adapter/test_empty.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
from dbt.tests.adapter.empty.test_empty import BaseTestEmpty, BaseTestEmptyInlineSourceRef


class TestDuckDBEmpty(BaseTestEmpty):
pass


class TestDuckDBEmptyInlineSourceRef(BaseTestEmptyInlineSourceRef):
pass

0 comments on commit cdf0e82

Please sign in to comment.