-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add dbt v1.8 support without pydantic v2 (#39)
* add dbt v1.8 support without pydantic v2 * change version
- Loading branch information
1 parent
e3c43da
commit 47456d3
Showing
8 changed files
with
467 additions
and
1 deletion.
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
Empty file.
36 changes: 36 additions & 0 deletions
36
src/datapilot/core/platforms/dbt/wrappers/manifest/v12/schemas.py
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,36 @@ | ||
from typing import Dict | ||
from typing import Type | ||
from typing import Union | ||
|
||
from dbt_artifacts_parser.parsers.manifest.manifest_v12 import Exposures | ||
from dbt_artifacts_parser.parsers.manifest.manifest_v12 import Macros | ||
from dbt_artifacts_parser.parsers.manifest.manifest_v12 import Node | ||
from dbt_artifacts_parser.parsers.manifest.manifest_v12 import Node1 | ||
from dbt_artifacts_parser.parsers.manifest.manifest_v12 import Node2 | ||
from dbt_artifacts_parser.parsers.manifest.manifest_v12 import Node3 | ||
from dbt_artifacts_parser.parsers.manifest.manifest_v12 import Node4 | ||
from dbt_artifacts_parser.parsers.manifest.manifest_v12 import Node5 | ||
from dbt_artifacts_parser.parsers.manifest.manifest_v12 import Node6 | ||
from dbt_artifacts_parser.parsers.manifest.manifest_v12 import Node7 | ||
from dbt_artifacts_parser.parsers.manifest.manifest_v12 import Sources | ||
|
||
from datapilot.core.platforms.dbt.constants import GENERIC | ||
from datapilot.core.platforms.dbt.constants import SINGULAR | ||
|
||
ManifestNode = Union[Node, Node1, Node2, Node3, Node4, Node5, Node6, Node7] | ||
|
||
SourceNode = Sources | ||
|
||
ExposureNode = Exposures | ||
|
||
TestNode = Union[Node6, Node2] | ||
|
||
MacroNode = Macros | ||
|
||
TEST_TYPE_TO_NODE_MAP: Dict[str, Type] = { | ||
GENERIC: [Node6], | ||
SINGULAR: [Node2], | ||
} | ||
|
||
|
||
SeedNodeMap = Node |
Oops, something went wrong.