> On 七月 18, 2019, 9:33 a.m., Nixon Rodrigues wrote: > > webapp/src/main/java/org/apache/atlas/web/rest/LineageREST.java > > Lines 110 (patched) > > <https://reviews.apache.org/r/71113/diff/1/?file=2155888#file2155888line110> > > > > Can you add java doc here with usage of this API here > > > > eg : > > v2/lineage/uniqueAttribute/type/hive_table?attr:qualifiedName=sample.test2@bd > > > > So that it is be availabe in API documentation. > > > > > > http://atlas.apache.org/api/v2/resource_EntityREST.html#resource_EntityREST_getEntitiesByUniqueAttributes_GET
ok, I've update the java doc - jiaqi ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/71113/#review216715 ----------------------------------------------------------- On 七月 18, 2019, 1:01 p.m., jiaqi shan wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/71113/ > ----------------------------------------------------------- > > (Updated 七月 18, 2019, 1:01 p.m.) > > > 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 7c8caee > webapp/src/main/java/org/apache/atlas/web/rest/LineageREST.java 8b0316b > > > Diff: https://reviews.apache.org/r/71113/diff/2/ > > > 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 > >
