Skip to content

Commit 52f0552

Browse files
author
Valerii Mironchenko
committed
Update README
1 parent 14fbf8c commit 52f0552

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
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

0 commit comments

Comments
 (0)