generated from dbt-labs/dbt-oss-template
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into foreign-ref-column-constraint
- Loading branch information
Showing
38 changed files
with
1,033 additions
and
376 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
kind: Under the Hood | ||
body: Allow dynamic selection of record types when recording. | ||
time: 2024-05-28T11:05:18.290107-05:00 | ||
custom: | ||
Author: emmyoop | ||
Issue: "140" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
kind: Under the Hood | ||
body: Move StatsItem, StatsDict, TableMetadata to dbt-common | ||
time: 2024-05-29T14:31:54.854468+01:00 | ||
custom: | ||
Author: aranke | ||
Issue: "141" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
kind: Under the Hood | ||
body: Move CatalogKey, ColumnMetadata, ColumnMap, CatalogTable to dbt-common | ||
time: 2024-06-03T12:36:31.542118+02:00 | ||
custom: | ||
Author: aranke | ||
Issue: "147" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
kind: Under the Hood | ||
body: Add support for basic diff of run recordings. | ||
time: 2024-06-17T20:45:41.123374-05:00 | ||
custom: | ||
Author: emmyoop | ||
Issue: "144" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
kind: Under the Hood | ||
body: Deserialize Record objects on a just-in-time basis. | ||
time: 2024-06-18T15:50:25.985387-04:00 | ||
custom: | ||
Author: peterallenwebb | ||
Issue: "151" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
version = "1.1.0" | ||
version = "1.5.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
from dataclasses import dataclass | ||
from typing import Dict, Optional, Union, NamedTuple | ||
|
||
from dbt_common.dataclass_schema import dbtClassMixin | ||
from dbt_common.utils.formatting import lowercase | ||
|
||
|
||
@dataclass | ||
class StatsItem(dbtClassMixin): | ||
id: str | ||
label: str | ||
value: Union[bool, str, float, None] | ||
include: bool | ||
description: Optional[str] = None | ||
|
||
|
||
StatsDict = Dict[str, StatsItem] | ||
|
||
|
||
@dataclass | ||
class TableMetadata(dbtClassMixin): | ||
type: str | ||
schema: str | ||
name: str | ||
database: Optional[str] = None | ||
comment: Optional[str] = None | ||
owner: Optional[str] = None | ||
|
||
|
||
CatalogKey = NamedTuple( | ||
"CatalogKey", [("database", Optional[str]), ("schema", str), ("name", str)] | ||
) | ||
|
||
|
||
@dataclass | ||
class ColumnMetadata(dbtClassMixin): | ||
type: str | ||
index: int | ||
name: str | ||
comment: Optional[str] = None | ||
|
||
|
||
ColumnMap = Dict[str, ColumnMetadata] | ||
|
||
|
||
@dataclass | ||
class CatalogTable(dbtClassMixin): | ||
metadata: TableMetadata | ||
columns: ColumnMap | ||
stats: StatsDict | ||
# the same table with two unique IDs will just be listed two times | ||
unique_id: Optional[str] = None | ||
|
||
def key(self) -> CatalogKey: | ||
return CatalogKey( | ||
lowercase(self.metadata.database), | ||
self.metadata.schema.lower(), | ||
self.metadata.name.lower(), | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.