Skip to content

Commit 887e30f

Browse files
authored
feat(models): Add edges fields to data process instance relationship aspects (#12860)
1 parent 0176543 commit 887e30f

File tree

2 files changed

+43
-6
lines changed

2 files changed

+43
-6
lines changed

metadata-models/src/main/pegasus/com/linkedin/dataprocess/DataProcessInstanceInput.pdl

+21-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
namespace com.linkedin.dataprocess
22

3+
import com.linkedin.common.Edge
34
import com.linkedin.common.Urn
45

56
/**
@@ -15,8 +16,7 @@ record DataProcessInstanceInput {
1516
@Relationship = {
1617
"/*": {
1718
"name": "Consumes",
18-
"entityTypes": [ "dataset", "mlModel"],
19-
"isLineage": true
19+
"entityTypes": [ "dataset", "mlModel" ]
2020
}
2121
}
2222
@Searchable = {
@@ -29,4 +29,23 @@ record DataProcessInstanceInput {
2929
}
3030
}
3131
inputs: array[Urn]
32+
33+
/**
34+
* Input assets consumed by the data process instance, with additional metadata.
35+
* Counts as lineage.
36+
* Will eventually deprecate the inputs field.
37+
*/
38+
@Relationship = {
39+
"/*/destinationUrn": {
40+
"name": "DataProcessInstanceConsumes",
41+
"entityTypes": [ "dataset", "mlModel" ],
42+
"isLineage": true,
43+
"createdOn": "inputEdges/*/created/time"
44+
"createdActor": "inputEdges/*/created/actor"
45+
"updatedOn": "inputEdges/*/lastModified/time"
46+
"updatedActor": "inputEdges/*/lastModified/actor"
47+
"properties": "inputEdges/*/properties"
48+
}
49+
}
50+
inputEdges: optional array[Edge]
3251
}

metadata-models/src/main/pegasus/com/linkedin/dataprocess/DataProcessInstanceOutput.pdl

+22-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
namespace com.linkedin.dataprocess
22

3+
import com.linkedin.common.Edge
34
import com.linkedin.common.Urn
45

56
/**
@@ -10,14 +11,12 @@ import com.linkedin.common.Urn
1011
}
1112
record DataProcessInstanceOutput {
1213
/**
13-
* Output datasets to be produced
14+
* Output assets produced
1415
*/
1516
@Relationship = {
1617
"/*": {
1718
"name": "Produces",
18-
"entityTypes": [ "dataset", "mlModel" ],
19-
"isLineage": true,
20-
"isUpstream": false
19+
"entityTypes": [ "dataset", "mlModel" ]
2120
}
2221
}
2322
@Searchable = {
@@ -31,4 +30,23 @@ record DataProcessInstanceOutput {
3130
}
3231
outputs: array[Urn]
3332

33+
/**
34+
* Output assets produced by the data process instance during processing, with additional metadata.
35+
* Counts as lineage.
36+
* Will eventually deprecate the outputs field.
37+
*/
38+
@Relationship = {
39+
"/*/destinationUrn": {
40+
"name": "DataProcessInstanceProduces",
41+
"entityTypes": [ "dataset", "mlModel" ],
42+
"isUpstream": false,
43+
"isLineage": true,
44+
"createdOn": "outputEdges/*/created/time"
45+
"createdActor": "outputEdges/*/created/actor"
46+
"updatedOn": "outputEdges/*/lastModified/time"
47+
"updatedActor": "outputEdges/*/lastModified/actor"
48+
"properties": "outputEdges/*/properties"
49+
}
50+
}
51+
outputEdges: optional array[Edge]
3452
}

0 commit comments

Comments
 (0)