-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/71113/
-----------------------------------------------------------
Review request for atlas.
Bugs: ATLAS-3319
https://issues.apache.org/jira/browse/ATLAS-3319
Repository: atlas
Description
-------
This patch add the follow api to support getting lineage by uniqueAttributes,
also add the api to AtlasClientV2 accordingly:
/v2/lineage/uniqueAttribute/type/{typeName}
Diffs
-----
client/client-v2/src/main/java/org/apache/atlas/AtlasClientV2.java f582fbd
webapp/src/main/java/org/apache/atlas/web/rest/LineageREST.java 4210077
Diff: https://reviews.apache.org/r/71113/diff/1/
Testing
-------
link used:
localhost:21000/api/atlas/v2/lineage/uniqueAttribute/type/hive_table?attr:qualifiedName=sample.test2@bd
Request Type : GET
JSON :
{
"baseEntityGuid": "0c583c2b-d378-4a7b-98aa-be6c621f11b6",
"lineageDirection": "BOTH",
"lineageDepth": 3,
"guidEntityMap": {
"4ed7fb2e-e7bc-4384-86cd-fba9303879ae": {
"typeName": "hive_process_v1",
"attributes": {
"qualifiedName":
"QUERY:sample.test3@bd->:INSERT:sample.test2@bd",
"name": "insert overwrite table test2 select * from test3"
},
"guid": "4ed7fb2e-e7bc-4384-86cd-fba9303879ae",
"status": "ACTIVE",
"displayText": "insert overwrite table test2 select * from test3",
"classificationNames": [],
"meaningNames": [],
"meanings": []
},
"ac6f5856-5881-4055-99de-8ecf874b74ee": {
"typeName": "hive_table",
"attributes": {
"owner": "cloud_service",
"createTime": 1562205245000,
"qualifiedName": "sample.test3@bd",
"name": "test3"
},
"guid": "ac6f5856-5881-4055-99de-8ecf874b74ee",
"status": "ACTIVE",
"displayText": "test3",
"classificationNames": [],
"meaningNames": [],
"meanings": []
},
"0c583c2b-d378-4a7b-98aa-be6c621f11b6": {
"typeName": "hive_table",
"attributes": {
"owner": "cloud_service",
"createTime": 1562145763000,
"qualifiedName": "sample.test2@bd",
"name": "test2"
},
"guid": "0c583c2b-d378-4a7b-98aa-be6c621f11b6",
"status": "ACTIVE",
"displayText": "test2",
"classificationNames": [],
"meaningNames": [],
"meanings": []
}
},
"relations": [
{
"fromEntityId": "ac6f5856-5881-4055-99de-8ecf874b74ee",
"toEntityId": "4ed7fb2e-e7bc-4384-86cd-fba9303879ae",
"relationshipId": "1a6f0644-cf51-485b-a1ea-0918f7652605"
},
{
"fromEntityId": "4ed7fb2e-e7bc-4384-86cd-fba9303879ae",
"toEntityId": "0c583c2b-d378-4a7b-98aa-be6c621f11b6",
"relationshipId": "7031e072-928e-4b8c-b7b9-6f368dc1be90"
}
]
}
Thanks,
jiaqi shan