Skip to content

Commit 9a69c4b

Browse files
authored
Merge pull request #15 from opendatadiscovery/bump_packages
Bump packages
2 parents 6d3927a + 52f0552 commit 9a69c4b

File tree

5 files changed

+101
-79
lines changed

5 files changed

+101
-79
lines changed

README.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,9 @@ export DBT_DATA_SOURCE_ODDRN=//dbt/host/localhost
4747
```
4848

4949
### Commands
50-
`create-datasource` - helps to register dbt as data source at OpenDataDiscovery platform. User later for ingesting metadata.
50+
`create-datasource` - helps to register dbt as data source at OpenDataDiscovery platform. Used later for ingesting metadata.
51+
Despite in the logs you can see something like: `export DBT_DATA_SOURCE_ODDRN=//dbt/host/http://localhost:8080` it doesn't
52+
mean that script have exported it for you in terminal, so don't forget to do this command manually.
5153
```commandline
5254
odd_dbt_test create-datasource --name=my_local_dbt --dbt-host=localhost
5355
```
@@ -56,6 +58,17 @@ odd_dbt_test create-datasource --name=my_local_dbt --dbt-host=localhost
5658
```commandline
5759
odd_dbt_test ingest-test --profile=my_profile
5860
```
61+
If you are not in the directory that is a targeted dbt_project you should specify absolute paths for parameters:
62+
`--project-dir` and `--profiles-dir`, like this:
63+
```commandline
64+
odd_dbt_test ingest-test --project-dir=absolute_path_for_dbt_project --profiles-dir=absolute_path_for_dbt_profiles --profile=my_profile
65+
```
66+
67+
`ingest-lineage` - Builds and ingest a lineage for tests into platform.
68+
Executing style is simular to `ingest-test` command:
69+
```commandline
70+
odd_dbt_test ingest-lineage- --project-dir=absolute_path_for_dbt_project --profiles-dir=absolute_path_for_dbt_profiles --profile=my_profile
71+
```
5972

6073
`test` - Proxy command to `dbt test`, then reads results_run file under the target folder to parse and ingest metadata.
6174
```commandline

odd_dbt/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from odd_models.api_client.v2.odd_api_client import Client
2-
from pydantic import BaseSettings
2+
from pydantic_settings import BaseSettings
33

44

55
class Config(BaseSettings):

odd_dbt/domain/project.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66

77
class Project(BaseModel):
88
name: str
9-
profile: Optional[str]
10-
models_paths: Optional[List[str]] = Field(alias="models-paths")
11-
seed_paths: Optional[List[str]] = Field(alias="seed-paths")
12-
test_paths: Optional[List[str]] = Field(alias="test-paths")
13-
analysis_paths: Optional[List[str]] = Field(alias="analysis-paths")
14-
macro_paths: Optional[List[str]] = Field(alias="macro-paths")
15-
snapshot_paths: Optional[List[str]] = Field(alias="snapshot-paths")
16-
docs_paths: Optional[List[str]] = Field(alias="docs-paths")
17-
asset_paths: Optional[List[str]] = Field(alias="asset-paths")
18-
target_path: Optional[Path] = Field(alias="target-path")
9+
profile: Optional[str] = None
10+
models_paths: Optional[List[str]] = Field(None, alias="models-paths")
11+
seed_paths: Optional[List[str]] = Field(None, alias="seed-paths")
12+
test_paths: Optional[List[str]] = Field(None, alias="test-paths")
13+
analysis_paths: Optional[List[str]] = Field(None, alias="analysis-paths")
14+
macro_paths: Optional[List[str]] = Field(None, alias="macro-paths")
15+
snapshot_paths: Optional[List[str]] = Field(None, alias="snapshot-paths")
16+
docs_paths: Optional[List[str]] = Field(None, alias="docs-paths")
17+
asset_paths: Optional[List[str]] = Field(None, alias="asset-paths")
18+
target_path: Optional[Path] = Field(None, alias="target-path")

0 commit comments

Comments
 (0)