Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
eboneil committed Oct 27, 2023
1 parent 35d7770 commit 001c763
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
8 changes: 2 additions & 6 deletions docs/api/tutorials/lineage.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,12 +113,10 @@ Expected Response:

You can now see the lineage between `fct_users_deleted` and `logging_events`.


<p align="center">
<img width="70%" src="https://raw.githubusercontent.com/datahub-project/static-assets/main/imgs/apis/tutorials/lineage-added.png"/>
</p>


## Add Column-level Lineage

<Tabs>
Expand All @@ -135,12 +133,10 @@ You can now see the lineage between `fct_users_deleted` and `logging_events`.

You can now see the column-level lineage between datasets. Note that you have to enable `Show Columns` to be able to see the column-level lineage.


<p align="center">
<img width="70%" src="https://raw.githubusercontent.com/datahub-project/static-assets/main/imgs/apis/tutorials/column-level-lineage-added.png"/>
</p>


## Read Lineage

<Tabs>
Expand Down Expand Up @@ -180,15 +176,15 @@ query searchAcrossLineage {
}
```

This example shows using lineage degrees as a filter, but additional search filters can be included here as well.
This example shows using lineage degrees as a filter, but additional search filters can be included here as well.

</TabItem>
<TabItem value="curl" label="Curl">

```shell
curl --location --request POST 'http://localhost:8080/api/graphql' \
--header 'Authorization: Bearer <my-access-token>' \
--header 'Content-Type: application/json' --data-raw '{ { "query": "mutation searchAcrossLineage { searchAcrossLineage( input: { query: \"*\" urn: \"urn:li:dataset:(urn:li:dataPlatform:dbt,long_tail_companions.adoption.human_profiles,PROD)\" start: 0 count: 10 direction: DOWNSTREAM orFilters: [ { and: [ { condition: EQUAL negated: false field: \"degree\" values: [\"1\", \"2\", \"3+\"] } ] } ] } ) { searchResults { degree entity { urn type } } }}"
--header 'Content-Type: application/json' --data-raw '{ { "query": "query searchAcrossLineage { searchAcrossLineage( input: { query: \"*\" urn: \"urn:li:dataset:(urn:li:dataPlatform:dbt,long_tail_companions.adoption.human_profiles,PROD)\" start: 0 count: 10 direction: DOWNSTREAM orFilters: [ { and: [ { condition: EQUAL negated: false field: \"degree\" values: [\"1\", \"2\", \"3+\"] } ] } ] } ) { searchResults { degree entity { urn type } } }}"
}}'
```

Expand Down
2 changes: 1 addition & 1 deletion metadata-ingestion/examples/library/read_lineage_rest.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

# Query multiple aspects from entity
query = """
mutation searchAcrossLineage {
query searchAcrossLineage {
searchAcrossLineage(
input: {
query: "*"
Expand Down

0 comments on commit 001c763

Please sign in to comment.