Skip to content

Commit 80c4adf

Browse files
committed
feat(models): Add edges fields to data process instance relationship aspects
1 parent d1d91d8 commit 80c4adf

File tree

2 files changed

+42
-6
lines changed

2 files changed

+42
-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: array[Edge]
3251
}

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

+21-4
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,12 @@ import com.linkedin.common.Urn
1010
}
1111
record DataProcessInstanceOutput {
1212
/**
13-
* Output datasets to be produced
13+
* Output assets produced
1414
*/
1515
@Relationship = {
1616
"/*": {
1717
"name": "Produces",
18-
"entityTypes": [ "dataset", "mlModel" ],
19-
"isLineage": true,
20-
"isUpstream": false
18+
"entityTypes": [ "dataset", "mlModel" ]
2119
}
2220
}
2321
@Searchable = {
@@ -31,4 +29,23 @@ record DataProcessInstanceOutput {
3129
}
3230
outputs: array[Urn]
3331

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

0 commit comments

Comments
 (0)