rich-machine-24265
08/29/2022, 5:46 PMparent
attached. Two datasets test-primary
and test-secondary
has upstream to it. test-primary and test-secondary are siblings - should they be collapsed into one node if compress lineage is enabled? Entity info in threadrich-machine-24265
08/29/2022, 5:47 PM{
"value": {
"com.linkedin.metadata.snapshot.DatasetSnapshot": {
"urn": "urn:li:dataset:(urn:li:dataPlatform:mssql,parent,PROD)",
"aspects": [
{
"com.linkedin.metadata.key.DatasetKey": {
"origin": "PROD",
"name": "parent",
"platform": "urn:li:dataPlatform:mssql"
}
},
{
"com.linkedin.common.DataPlatformInstance": {
"platform": "urn:li:dataPlatform:mssql"
}
},
{
"com.linkedin.common.BrowsePaths": {
"paths": [
"/prod/mssql/parent"
]
}
}
]
}
}
}
test-primary
{
"value": {
"com.linkedin.metadata.snapshot.DatasetSnapshot": {
"urn": "urn:li:dataset:(urn:li:dataPlatform:mssql,test-primary,PROD)",
"aspects": [
{
"com.linkedin.metadata.key.DatasetKey": {
"origin": "PROD",
"name": "test-primary",
"platform": "urn:li:dataPlatform:mssql"
}
},
{
"com.linkedin.dataset.UpstreamLineage": {
"upstreams": [
{
"type": "COPY",
"dataset": "urn:li:dataset:(urn:li:dataPlatform:mssql,parent,PROD)"
}
]
}
},
{
"com.linkedin.common.DataPlatformInstance": {
"platform": "urn:li:dataPlatform:mssql"
}
},
{
"com.linkedin.common.Siblings": {
"siblings": [
"urn:li:dataset:(urn:li:dataPlatform:mssql,test-primary,PROD)",
"urn:li:dataset:(urn:li:dataPlatform:mssql,test-secondary,PROD)"
],
"primary": true
}
},
{
"com.linkedin.common.BrowsePaths": {
"paths": [
"/prod/mssql/test-primary"
]
}
}
]
}
}
}
test-secondary
{
"value": {
"com.linkedin.metadata.snapshot.DatasetSnapshot": {
"urn": "urn:li:dataset:(urn:li:dataPlatform:mssql,test-secondary,PROD)",
"aspects": [
{
"com.linkedin.metadata.key.DatasetKey": {
"origin": "PROD",
"name": "test-secondary",
"platform": "urn:li:dataPlatform:mssql"
}
},
{
"com.linkedin.common.BrowsePaths": {
"paths": [
"/prod/mssql/test-secondary"
]
}
},
{
"com.linkedin.dataset.UpstreamLineage": {
"upstreams": [
{
"type": "COPY",
"dataset": "urn:li:dataset:(urn:li:dataPlatform:mssql,parent,PROD)"
}
]
}
},
{
"com.linkedin.common.Siblings": {
"siblings": [
"urn:li:dataset:(urn:li:dataPlatform:mssql,test-primary,PROD)",
"urn:li:dataset:(urn:li:dataPlatform:mssql,test-secondary,PROD)"
],
"primary": false
}
},
{
"com.linkedin.common.DataPlatformInstance": {
"platform": "urn:li:dataPlatform:mssql"
}
}
]
}
}
}
green-football-43791
08/29/2022, 6:59 PMgreen-football-43791
08/29/2022, 6:59 PMrich-machine-24265
08/30/2022, 10:36 AM{
dataset(urn: "urn:li:dataset:(urn:li:dataPlatform:mssql,parent,PROD)") {
name
downstream: lineage(
input: {direction: DOWNSTREAM, start: 0, count: 100, separateSiblings: false}
) {
relationships {
type
entity {
urn
}
}
}
}
}
Please note that urn is parent
, which has no siblings. Request is handled in SiblingGraphService#getLineage . Thus, at L56 siblingAspectOfEntity appears to be null, and no lineage nodes (test-primary and test-secondary) are merged. I suppose siblings should be fetched not only for requested entity, but for it's lineage as wellgreen-football-43791
08/31/2022, 5:37 AMgreen-football-43791
08/31/2022, 5:38 AMgreen-football-43791
08/31/2022, 5:38 AMgreen-football-43791
08/31/2022, 5:39 AMgreen-football-43791
08/31/2022, 5:39 AMrich-machine-24265
08/31/2022, 7:28 AMrich-machine-24265
09/22/2022, 9:18 AMrich-state-73859
06/14/2023, 7:16 PMgreen-football-43791
06/14/2023, 9:28 PMrich-state-73859
06/15/2023, 7:50 AMgreen-football-43791
06/15/2023, 9:58 PMrich-state-73859
06/16/2023, 5:13 PM