-
Notifications
You must be signed in to change notification settings - Fork 261
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8370 from mandy-chessell/oak2024
Fixes to open lineage connectors
- Loading branch information
Showing
28 changed files
with
1,384 additions
and
5,109 deletions.
There are no files selected for viewing
537 changes: 537 additions & 0 deletions
537
...onnectors/integration-connectors/openlineage-integration-connectors/OpenLineage-demo.http
Large diffs are not rendered by default.
Oops, something went wrong.
348 changes: 348 additions & 0 deletions
348
...ctors/integration-connectors/openlineage-integration-connectors/openLineage requests.http
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,348 @@ | ||
# openLineage requests | ||
|
||
#@openLineageBackend=http://localhost:5000 | ||
@openLineageBackend=https://localhost:9443/servers/integration-daemon/open-metadata/integration-services/lineage-integrator/users/airflownpa | ||
@openLineageNamespace=restTestNameSpace | ||
@openLineageRunId=001 | ||
|
||
### | ||
# @name Onboard Data File Start | ||
POST {{openLineageBackend}}/api/v1/lineage | ||
Content-Type: application/json | ||
|
||
{ | ||
"eventTime": "{{$isoTimestamp}}", | ||
"eventType": "START", | ||
"inputs": [ | ||
{ | ||
"name": "landing-area-file", | ||
"namespace": "{{openLineageNamespace}}" | ||
} | ||
], | ||
"job": { | ||
"name": "onboard-data-file", | ||
"namespace": "{{openLineageNamespace}}" | ||
}, | ||
"outputs": [], | ||
"producer": "https://www.postman.com/", | ||
"run": { | ||
"runId": "304e5f23-4667-4d26-9499-2f30d8e17{{openLineageRunId}}" | ||
} | ||
} | ||
|
||
### | ||
# @name Job1 Run Quality Analysis Start | ||
POST {{openLineageBackend}}/api/v1/lineage | ||
Content-Type: application/json | ||
|
||
{ | ||
"eventTime": "{{$isoTimestamp}}", | ||
"eventType": "START", | ||
"inputs": [ | ||
{ | ||
"name": "landing-area-file", | ||
"namespace": "{{openLineageNamespace}}" | ||
} | ||
], | ||
"job": { | ||
"name": "run-quality-analysis", | ||
"namespace": "{{openLineageNamespace}}" | ||
}, | ||
"outputs": [], | ||
"producer": "https://www.postman.com/", | ||
"run": { | ||
"runId": "4cb8a46b-6271-4791-925c-9ae7123d1{{openLineageRunId}}" | ||
} | ||
} | ||
|
||
### | ||
# @name Job1 Quality Report | ||
POST {{openLineageBackend}}/api/v1/lineage | ||
Content-Type: application/json | ||
|
||
{ | ||
"eventTime": "{{$isoTimestamp}}", | ||
"eventType": "OTHER", | ||
"inputs": [ | ||
{ | ||
"facets": { | ||
"dataQualityAssertions": { | ||
"_producer": "https://www.postman.com/", | ||
"_schemaURL": "#/definitions/DataQualityAssertionsDatasetFacet", | ||
"assertions": [ | ||
{ | ||
"column": "id", | ||
"assertion": "not_null", | ||
"success": true | ||
}, | ||
{ | ||
"column": "second_id", | ||
"assertion": "not_null", | ||
"success": true | ||
}, | ||
{ | ||
"column": "id", | ||
"assertion": "unique", | ||
"success": true | ||
}, | ||
{ | ||
"column": "second_id", | ||
"assertion": "unique", | ||
"success": true | ||
} | ||
] | ||
} | ||
}, | ||
"name": "landing-area-file", | ||
"namespace": "{{openLineageNamespace}}" | ||
} | ||
], | ||
"job": { | ||
"facets": {}, | ||
"name": "run-quality-analysis", | ||
"namespace": "{{openLineageNamespace}}" | ||
}, | ||
"outputs": [], | ||
"producer": "https://www.postman.com/", | ||
"run": { | ||
"facets": { | ||
"parent": { | ||
"_producer": "https://www.postman.com/", | ||
"_schemaURL": "https://raw.githubusercontent.com/OpenLineage/OpenLineage/main/spec/OpenLineage.json#/definitions/ParentRunFacet", | ||
"job": {"name": "onboard-data-file", "namespace": "{{openLineageNamespace}}"}, | ||
"run": {"runId": "304e5f23-4667-4d26-9499-2f30d8e17{{openLineageRunId}}"} | ||
} | ||
}, | ||
"runId": "4cb8a46b-6271-4791-925c-9ae7123d1{{openLineageRunId}}" | ||
} | ||
} | ||
|
||
### | ||
# @name Job1 Run Quality Analysis End | ||
POST {{openLineageBackend}}/api/v1/lineage | ||
Content-Type: application/json | ||
|
||
{ | ||
"eventTime": "{{$isoTimestamp}}", | ||
"eventType": "COMPLETE", | ||
"inputs": [ | ||
{ | ||
"facets": {}, | ||
"name": "landing-area-file", | ||
"namespace": "{{openLineageNamespace}}" | ||
} | ||
], | ||
"job": { | ||
"facets": {}, | ||
"name": "run-quality-analysis", | ||
"namespace": "{{openLineageNamespace}}" | ||
}, | ||
"outputs": [], | ||
"producer": "https://www.postman.com/", | ||
"run": { | ||
"facets": { | ||
"parent": { | ||
"_producer": "https://www.postman.com/", | ||
"_schemaURL": "https://raw.githubusercontent.com/OpenLineage/OpenLineage/main/spec/OpenLineage.json#/definitions/ParentRunFacet", | ||
"job": {"name": "onboard-data-file", "namespace": "{{openLineageNamespace}}"}, | ||
"run": {"runId": "304e5f23-4667-4d26-9499-2f30d8e17{{openLineageRunId}}"} | ||
} | ||
}, | ||
"runId": "4cb8a46b-6271-4791-925c-9ae7123d1{{openLineageRunId}}" | ||
} | ||
} | ||
|
||
### | ||
# @name Job2 Categorise Data File Start | ||
POST {{openLineageBackend}}/api/v1/lineage | ||
Content-Type: application/json | ||
|
||
{ | ||
"eventTime": "{{$isoTimestamp}}", | ||
"eventType": "START", | ||
"inputs": [ | ||
{ | ||
"name": "landing-area-file", | ||
"namespace": "{{openLineageNamespace}}" | ||
} | ||
], | ||
"job": { | ||
"name": "categorise-data-file", | ||
"namespace": "{{openLineageNamespace}}" | ||
}, | ||
"outputs": [], | ||
"producer": "https://www.postman.com/", | ||
"run": { | ||
"runId": "ecea439e-228c-4264-82d9-4a82576d5{{openLineageRunId}}" | ||
} | ||
} | ||
|
||
### | ||
# @name Job2 Categorise Data File End | ||
POST {{openLineageBackend}}/api/v1/lineage | ||
Content-Type: application/json | ||
|
||
{ | ||
"eventTime": "{{$isoTimestamp}}", | ||
"eventType": "COMPLETE", | ||
"inputs": [ | ||
{ | ||
"facets": {}, | ||
"name": "landing-area-file", | ||
"namespace": "{{openLineageNamespace}}" | ||
} | ||
], | ||
"job": { | ||
"name": "categorise-data-file", | ||
"namespace": "{{openLineageNamespace}}" | ||
}, | ||
"outputs": [], | ||
"producer": "https://www.postman.com/", | ||
"run": { | ||
"facets": { | ||
"parent": { | ||
"_producer": "https://www.postman.com/", | ||
"_schemaURL": "https://raw.githubusercontent.com/OpenLineage/OpenLineage/main/spec/OpenLineage.json#/definitions/ParentRunFacet", | ||
"job": {"name": "onboard-data-file", "namespace": "{{openLineageNamespace}}"}, | ||
"run": {"runId": "304e5f23-4667-4d26-9499-2f30d8e17{{openLineageRunId}}"} | ||
} | ||
}, | ||
"runId": "ecea439e-228c-4264-82d9-4a82576d5{{openLineageRunId}}" | ||
} | ||
} | ||
|
||
### | ||
# @name Job3 Move Data File Start | ||
POST {{openLineageBackend}}/api/v1/lineage | ||
Content-Type: application/json | ||
|
||
{ | ||
"eventTime": "{{$isoTimestamp}}", | ||
"eventType": "START", | ||
"inputs": [ | ||
{ | ||
"name": "landing-area-file", | ||
"namespace": "{{openLineageNamespace}}" | ||
} | ||
], | ||
"job": { | ||
"name": "move-data-file", | ||
"namespace": "{{openLineageNamespace}}" | ||
}, | ||
"outputs": [], | ||
"producer": "https://www.postman.com/", | ||
"run": { | ||
"runId": "d4736e42-125d-436f-97ce-34b11940d{{openLineageRunId}}" | ||
} | ||
} | ||
|
||
### | ||
# @name Job3 Move Data File End | ||
POST {{openLineageBackend}}/api/v1/lineage | ||
Content-Type: application/json | ||
|
||
{ | ||
"eventTime": "{{$isoTimestamp}}", | ||
"eventType": "COMPLETE", | ||
"inputs": [ | ||
{ | ||
"facets": {}, | ||
"name": "landing-area-file", | ||
"namespace": "{{openLineageNamespace}}" | ||
} | ||
], | ||
"job": { | ||
"facets": {}, | ||
"name": "move-data-file", | ||
"namespace": "{{openLineageNamespace}}" | ||
}, | ||
"outputs": [ | ||
{ | ||
"facets": {}, | ||
"name": "data-lake-file", | ||
"namespace": "{{openLineageNamespace}}" | ||
} | ||
], | ||
"producer": "https://www.postman.com/", | ||
"run": { | ||
"facets": { | ||
"parent": { | ||
"_producer": "https://www.postman.com/", | ||
"_schemaURL": "https://raw.githubusercontent.com/OpenLineage/OpenLineage/main/spec/OpenLineage.json#/definitions/ParentRunFacet", | ||
"job": {"name": "onboard-data-file", "namespace": "{{openLineageNamespace}}"}, | ||
"run": {"runId": "304e5f23-4667-4d26-9499-2f30d8e17{{openLineageRunId}}"} | ||
} | ||
}, | ||
"runId": "d4736e42-125d-436f-97ce-34b11940d{{openLineageRunId}}" | ||
} | ||
} | ||
|
||
### | ||
# @name Onboard Data File Complete | ||
POST {{openLineageBackend}}/api/v1/lineage | ||
Content-Type: application/json | ||
|
||
{ | ||
"eventTime": "{{$isoTimestamp}}", | ||
"eventType": "COMPLETE", | ||
"inputs": [ | ||
{ | ||
"facets": {}, | ||
"name": "landing-area-file", | ||
"namespace": "{{openLineageNamespace}}" | ||
} | ||
], | ||
"job": { | ||
"facets": {}, | ||
"name": "onboard-data-file", | ||
"namespace": "{{openLineageNamespace}}" | ||
}, | ||
"outputs": [ | ||
{ | ||
"facets": {}, | ||
"name": "data-lake-file", | ||
"namespace": "{{openLineageNamespace}}" | ||
} | ||
], | ||
"producer": "https://www.postman.com/", | ||
"run": { | ||
"facets": {}, | ||
"runId": "304e5f23-4667-4d26-9499-2f30d8e17{{openLineageRunId}}" | ||
} | ||
} | ||
|
||
### | ||
# @name Test | ||
POST {{openLineageBackend}}/api/v1/lineage | ||
Content-Type: application/json | ||
|
||
{ | ||
"producer": "https://egeria-project.org/", | ||
"schemaURL": "https://openlineage.io/spec/1-0-2/OpenLineage.json#/$defs/RunEvent", | ||
"eventType": "COMPLETE", | ||
"eventTime": "2021-11-05T10:28:18.969066Z[Europe/London]", | ||
"run": { | ||
"runId": "ce649429-2b5d-4897-899d-0e3a0c1fef44", | ||
"facets": { | ||
"nominalTime": { | ||
"_producer": "https://egeria-project.org/", | ||
"_schemaURL": "https://openlineage.io/spec/facets/1-0-0/NominalTimeRunFacet.json#/$defs/NominalTimeRunFacet", | ||
"nominalStartTime": "2021-11-05T10:28:10.076Z[Europe/London]", | ||
"nominalEndTime": "2021-11-05T10:28:13.502Z[Europe/London]" | ||
}, | ||
"additionalProperties": {} | ||
}, | ||
"additionalProperties": {} | ||
}, | ||
"job": { | ||
"namespace": "initiateGovernanceAction", | ||
"name": "AssetGovernance:copy-file" | ||
}, | ||
"inputs": [], | ||
"outputs": [ | ||
{ | ||
"namespace": "initiateGovernanceAction", | ||
"name": "provisioning-complete" | ||
} | ||
] | ||
} |
Oops, something went wrong.