-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main' into feature/add_union_types
- Loading branch information
Showing
34 changed files
with
33,898 additions
and
7,821 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
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 |
---|---|---|
|
@@ -17,4 +17,4 @@ | |
""" | ||
A dbt artifacts parser in python | ||
""" | ||
__version__ = "0.5.1" | ||
__version__ = "0.6.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,83 +1,74 @@ | ||
# generated by datamodel-codegen: | ||
# filename: catalog_v1.json | ||
# timestamp: 2022-03-01T06:21:30+00:00 | ||
|
||
from __future__ import annotations | ||
|
||
from datetime import datetime | ||
from typing import Dict, List, Optional, Union | ||
|
||
from pydantic import Extra, Field | ||
from pydantic import AwareDatetime, ConfigDict, Field | ||
|
||
from dbt_artifacts_parser.parsers.base import BaseParserModel | ||
|
||
|
||
class CatalogMetadata(BaseParserModel): | ||
|
||
class Config: | ||
extra = Extra.forbid | ||
|
||
dbt_schema_version: Optional[ | ||
str] = 'https://schemas.getdbt.com/dbt/catalog/v1.json' | ||
model_config = ConfigDict( | ||
extra='forbid', | ||
) | ||
dbt_schema_version: Optional[str] = 'https://schemas.getdbt.com/dbt/catalog/v1.json' | ||
dbt_version: Optional[str] = '0.19.0' | ||
generated_at: Optional[datetime] = '2021-02-10T04:42:33.680487Z' | ||
invocation_id: Optional[Optional[str]] = None | ||
generated_at: Optional[AwareDatetime] = '2021-02-10T04:42:33.680487Z' | ||
invocation_id: Optional[str] = None | ||
env: Optional[Dict[str, str]] = {} | ||
|
||
|
||
class TableMetadata(BaseParserModel): | ||
|
||
class Config: | ||
extra = Extra.forbid | ||
|
||
model_config = ConfigDict( | ||
extra='forbid', | ||
) | ||
type: str | ||
database: Optional[Optional[str]] = None | ||
database: Optional[str] = None | ||
schema_: str = Field(..., alias='schema') | ||
name: str | ||
comment: Optional[Optional[str]] = None | ||
owner: Optional[Optional[str]] = None | ||
comment: Optional[str] = None | ||
owner: Optional[str] = None | ||
|
||
|
||
class ColumnMetadata(BaseParserModel): | ||
|
||
class Config: | ||
extra = Extra.forbid | ||
|
||
model_config = ConfigDict( | ||
extra='forbid', | ||
) | ||
type: str | ||
comment: Optional[Optional[str]] = None | ||
comment: Optional[str] = None | ||
index: int | ||
name: str | ||
|
||
|
||
class StatsItem(BaseParserModel): | ||
|
||
class Config: | ||
extra = Extra.forbid | ||
|
||
model_config = ConfigDict( | ||
extra='forbid', | ||
) | ||
id: str | ||
label: str | ||
value: Optional[Optional[Union[bool, str, float]]] = None | ||
description: Optional[Optional[str]] = None | ||
value: Optional[Union[bool, str, float]] = None | ||
description: Optional[str] = None | ||
include: bool | ||
|
||
|
||
class CatalogTable(BaseParserModel): | ||
|
||
class Config: | ||
extra = Extra.forbid | ||
|
||
model_config = ConfigDict( | ||
extra='forbid', | ||
) | ||
metadata: TableMetadata | ||
columns: Dict[str, ColumnMetadata] | ||
stats: Dict[str, StatsItem] | ||
unique_id: Optional[Optional[str]] = None | ||
unique_id: Optional[str] = None | ||
|
||
|
||
class CatalogV1(BaseParserModel): | ||
|
||
class Config: | ||
extra = Extra.forbid | ||
|
||
model_config = ConfigDict( | ||
extra='forbid', | ||
) | ||
metadata: CatalogMetadata | ||
nodes: Dict[str, CatalogTable] | ||
sources: Dict[str, CatalogTable] | ||
errors: Optional[Optional[List[str]]] = None | ||
errors: Optional[List[str]] = None |
Oops, something went wrong.