Ayub Khan created ATLAS-756: ------------------------------- Summary: UI: Hive lineage is not properly rendered when source table has multiple edges Key: ATLAS-756 URL: https://issues.apache.org/jira/browse/ATLAS-756 Project: Atlas Issue Type: Bug Affects Versions: 0.7-incubating Reporter: Ayub Khan Assignee: Erik Bergenholtz Priority: Critical Fix For: 0.7-incubating
Follow below steps: create table source (name string); create table source_as_select as select * from source; create view source_view as select * from source; Take a look at lineage of source table. lineage snapshot: https://monosnap.com/file/mBcAUjdrt0dHJRaZpTGyyiVEtmMx7P Lineage API response seems to be fine. {noformat} curl 'http://os-r6-apathan-atlas-erie-nosec-3.openstacklocal:21000/api/atlas/lineage/hive/table/default.source@cl1/outputs/graph' -H 'Cookie: JSESSIONID=1k06n72ew9ltc17tp62zjrv7eq' -H 'Accept-Encoding: gzip, deflate, sdch' -H 'Accept-Language: en-US,en;q=0.8' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.94 Safari/537.36' -H 'Accept: application/json, text/javascript, */*; q=0.01' -H 'Referer: http://os-r6-apathan-atlas-erie-nosec-3.openstacklocal:21000/index.html' -H 'X-Requested-With: XMLHttpRequest' -H 'Connection: keep-alive' --compressed | python -m json.tool % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 1734 0 1734 0 0 972 0 --:--:-- 0:00:01 --:--:-- 971 { "requestId": "qtp1007251739-64812 - 8747b792-e181-47d4-8057-29240d2f5ed4", "results": { "jsonClass": "org.apache.atlas.typesystem.json.InstanceSerialization$_Struct", "typeName": "__tempQueryResultStruct541", "values": { "edges": { "388d67da-0211-4033-a57e-3fadd89b0df6": [ "9ec42ecd-5749-41b6-950b-ca5626195767" ], "4eb1e18e-b9e5-4fe6-89af-a3bfc0a7e5a1": [ "388d67da-0211-4033-a57e-3fadd89b0df6", "d48abe3f-da89-4e80-b281-b579dc3c16e9" ], "d48abe3f-da89-4e80-b281-b579dc3c16e9": [ "da268dfc-6cf9-4307-be7e-a7874ae4ad0a" ] }, "vertices": { "4eb1e18e-b9e5-4fe6-89af-a3bfc0a7e5a1": { "jsonClass": "org.apache.atlas.typesystem.json.InstanceSerialization$_Struct", "typeName": "__tempQueryResultStruct540", "values": { "name": "default.source@cl1", "vertexId": { "jsonClass": "org.apache.atlas.typesystem.json.InstanceSerialization$_Struct", "typeName": "__IdType", "values": { "guid": "4eb1e18e-b9e5-4fe6-89af-a3bfc0a7e5a1", "typeName": "hive_table" } } } }, "9ec42ecd-5749-41b6-950b-ca5626195767": { "jsonClass": "org.apache.atlas.typesystem.json.InstanceSerialization$_Struct", "typeName": "__tempQueryResultStruct540", "values": { "name": "default.source_view@cl1", "vertexId": { "jsonClass": "org.apache.atlas.typesystem.json.InstanceSerialization$_Struct", "typeName": "__IdType", "values": { "guid": "9ec42ecd-5749-41b6-950b-ca5626195767", "typeName": "hive_table" } } } }, "da268dfc-6cf9-4307-be7e-a7874ae4ad0a": { "jsonClass": "org.apache.atlas.typesystem.json.InstanceSerialization$_Struct", "typeName": "__tempQueryResultStruct540", "values": { "name": "default.source_as_select@cl1", "vertexId": { "jsonClass": "org.apache.atlas.typesystem.json.InstanceSerialization$_Struct", "typeName": "__IdType", "values": { "guid": "da268dfc-6cf9-4307-be7e-a7874ae4ad0a", "typeName": "hive_table" } } } } } } }, "tableName": "default.source@cl1" } {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)