rhythmic-stone-77840
07/07/2022, 2:56 PMrhythmic-stone-77840
07/07/2022, 2:58 PMquery searchAcrossLineage($input: SearchAcrossLineageInput!) {
searchAcrossLineage(input: $input) {
start
count
total
searchResults {
degree
entity {
type
... on Dataset {
urn
platform {
name
}
matchedFields {
name
value
}
}
}
}
-----
{
"input": {
"count": 100,
"urn": "<urn>",
"direction": "DOWNSTREAM",
"types": "DATASET",
"filters": {"field": "name", "value": "bigquery"}
}
}
I've tried name
,platform.name
, entity.platform.name
, entity.Dataset.platform.name
and then all result in 0 mathchesbig-carpet-38439
07/07/2022, 4:45 PMbig-carpet-38439
07/07/2022, 4:46 PM"filters": {"field": "platform", "value": "urn:li:dataPlatform:bigquery"}
rhythmic-stone-77840
07/07/2022, 5:06 PMrhythmic-stone-77840
07/07/2022, 5:07 PMbig-carpet-38439
07/07/2022, 7:38 PMrhythmic-stone-77840
07/07/2022, 9:13 PM{
"field": "type",
"value": "urn:li:schemaField:STRING"
}
But that doesn't seem to be working.tall-butcher-30509
07/22/2022, 8:02 AMquery {
searchAcrossLineage(input: {urn: <URN1>, direction: DOWNSTREAM, types: [DATASET], count: 100 }) {
searchResults {
entity {
... on Dataset {
urn
name
}
}
}
}
}
Result:
{
"errors": [
{
"message": "An unknown error occurred.",
"locations": [
{
"line": 3,
"column": 3
}
],
"path": [
"searchAcrossLineage"
],
"extensions": {
"code": 500,
"type": "SERVER_ERROR",
"classification": "DataFetchingException"
}
}
],
"data": {
"searchAcrossLineage": null
}
}
Successful similar query:
query {
dataset(urn: <URN1>) {
lineage(input:{direction:DOWNSTREAM, start:0}){
relationships{
type
entity{
urn
type
}
degree
}
}
}
}
Result:
{
"data": {
"dataset": {
"lineage": {
"relationships": [
{
"type": "Consumes",
"entity": {
"urn": <URN2>,
"type": "DATA_JOB"
},
"degree": 1
}
]
}
}
}
}
rhythmic-stone-77840
07/22/2022, 1:16 PM[]
on types
- if I remove those then your query runsrhythmic-stone-77840
07/22/2022, 1:19 PM[]
- so weird.rhythmic-stone-77840
07/22/2022, 1:25 PMsearchAcrossLineage
gives you all downstream nodes, but the dataset-lineage
of the other query will only give you the nodes directly downstream. So maybe there's an issue traversing further than 1 level?tall-butcher-30509
07/28/2022, 8:48 AMsome-mouse-2910
04/27/2023, 3:19 PM