File tree 5 files changed +101
-79
lines changed 5 files changed +101
-79
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,9 @@ export DBT_DATA_SOURCE_ODDRN=//dbt/host/localhost
47
47
```
48
48
49
49
### 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.
51
53
``` commandline
52
54
odd_dbt_test create-datasource --name=my_local_dbt --dbt-host=localhost
53
55
```
@@ -56,6 +58,17 @@ odd_dbt_test create-datasource --name=my_local_dbt --dbt-host=localhost
56
58
``` commandline
57
59
odd_dbt_test ingest-test --profile=my_profile
58
60
```
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
+ ```
59
72
60
73
` test ` - Proxy command to ` dbt test ` , then reads results_run file under the target folder to parse and ingest metadata.
61
74
``` commandline
Original file line number Diff line number Diff line change 1
1
from odd_models .api_client .v2 .odd_api_client import Client
2
- from pydantic import BaseSettings
2
+ from pydantic_settings import BaseSettings
3
3
4
4
5
5
class Config (BaseSettings ):
Original file line number Diff line number Diff line change 6
6
7
7
class Project (BaseModel ):
8
8
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" )
You can’t perform that action at this time.
0 commit comments