Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
Valerii Mironchenko committed Jun 21, 2024
1 parent 14fbf8c commit 52f0552
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ export DBT_DATA_SOURCE_ODDRN=//dbt/host/localhost
```

### Commands
`create-datasource` - helps to register dbt as data source at OpenDataDiscovery platform. User later for ingesting metadata.
`create-datasource` - helps to register dbt as data source at OpenDataDiscovery platform. Used later for ingesting metadata.
Despite in the logs you can see something like: `export DBT_DATA_SOURCE_ODDRN=//dbt/host/http://localhost:8080` it doesn't
mean that script have exported it for you in terminal, so don't forget to do this command manually.
```commandline
odd_dbt_test create-datasource --name=my_local_dbt --dbt-host=localhost
```
Expand All @@ -56,6 +58,17 @@ odd_dbt_test create-datasource --name=my_local_dbt --dbt-host=localhost
```commandline
odd_dbt_test ingest-test --profile=my_profile
```
If you are not in the directory that is a targeted dbt_project you should specify absolute paths for parameters:
`--project-dir` and `--profiles-dir`, like this:
```commandline
odd_dbt_test ingest-test --project-dir=absolute_path_for_dbt_project --profiles-dir=absolute_path_for_dbt_profiles --profile=my_profile
```

`ingest-lineage` - Builds and ingest a lineage for tests into platform.
Executing style is simular to `ingest-test` command:
```commandline
odd_dbt_test ingest-lineage- --project-dir=absolute_path_for_dbt_project --profiles-dir=absolute_path_for_dbt_profiles --profile=my_profile
```

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

0 comments on commit 52f0552

Please sign in to comment.