Skip to content

Commit

Permalink
Update schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
gshank committed Feb 10, 2025
1 parent b4b2e42 commit 35f3746
Show file tree
Hide file tree
Showing 5 changed files with 61 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/dbt/artifacts/schemas/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ class BaseArtifactMetadata(dbtClassMixin):
dbt_version: str = __version__
generated_at: datetime = dataclasses.field(default_factory=datetime.utcnow)
invocation_id: Optional[str] = dataclasses.field(default_factory=get_invocation_id)
invocation_started_at: datetime = dataclasses.field(default_factory=get_invocation_started_at)
invocation_started_at: Optional[datetime] = dataclasses.field(
default_factory=get_invocation_started_at
)
env: Dict[str, str] = dataclasses.field(default_factory=get_metadata_vars)

def __post_serialize__(self, dct: Dict, context: Optional[Dict] = None):
Expand Down
10 changes: 10 additions & 0 deletions schemas/dbt/catalog/v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,16 @@
}
]
},
"invocation_started_at": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"env": {
"type": "object",
"additionalProperties": {
Expand Down
28 changes: 28 additions & 0 deletions schemas/dbt/manifest/v12.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,16 @@
}
]
},
"invocation_started_at": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"env": {
"type": "object",
"additionalProperties": {
Expand Down Expand Up @@ -8546,6 +8556,12 @@
{
"type": "string"
},
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "null"
}
Expand Down Expand Up @@ -9903,6 +9919,12 @@
{
"type": "string"
},
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "null"
}
Expand Down Expand Up @@ -18184,6 +18206,12 @@
{
"type": "string"
},
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "null"
}
Expand Down
10 changes: 10 additions & 0 deletions schemas/dbt/run-results/v6.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,16 @@
}
]
},
"invocation_started_at": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"env": {
"type": "object",
"additionalProperties": {
Expand Down
10 changes: 10 additions & 0 deletions schemas/dbt/sources/v3.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,16 @@
}
]
},
"invocation_started_at": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"env": {
"type": "object",
"additionalProperties": {
Expand Down

0 comments on commit 35f3746

Please sign in to comment.