Skip to content

Commit

Permalink
Allowing partitions in external table to be a list (#5930)
Browse files Browse the repository at this point in the history
* Allowing partitions in external table to be a list

* Adding changelog entry
  • Loading branch information
pgoslatara committed Oct 12, 2022
1 parent 87db12d commit 6de1d29
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .changes/unreleased/Features-20220925-211651.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
kind: Features
body: Allow partitions in external tables to be supplied as a list
time: 2022-09-25T21:16:51.051239654+02:00
custom:
Author: pgoslatara
Issue: "5929"
PR: "5930"
2 changes: 1 addition & 1 deletion core/dbt/contracts/graph/unparsed.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ class ExternalTable(AdditionalPropertiesAllowed, Mergeable):
file_format: Optional[str] = None
row_format: Optional[str] = None
tbl_properties: Optional[str] = None
partitions: Optional[List[ExternalPartition]] = None
partitions: Optional[Union[List[str], List[ExternalPartition]]] = None

def __bool__(self):
return self.location is not None
Expand Down

0 comments on commit 6de1d29

Please sign in to comment.