[ https://issues.apache.org/jira/browse/ATLAS-274?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15018219#comment-15018219 ]
Andrew Ahn commented on ATLAS-274: ---------------------------------- Good point. We should definitely 1) track lineage for table creation with like 2) will the not the operation (sql) not show what was done to create the new entity from a visualization perspective ? Perhaps we could use a different graphic element - different color to represent this and other cases like a materialized view. AA > No lineage is recorded for creating a table using LIKE > ------------------------------------------------------ > > Key: ATLAS-274 > URL: https://issues.apache.org/jira/browse/ATLAS-274 > Project: Atlas > Issue Type: Bug > Affects Versions: 0.6-incubating > Reporter: Ayub Khan > Assignee: Hemanth Yamijala > Attachments: application.log > > > Seems like no lineage is recorded for creating a table using LIKE > example: > create table table_1242 LIKE table_1240 > Input graph query > {noformat} > curl > 'http://localhost:21000/api/atlas/lineage/hive/table/primary.default.table_1242/inputs/graph' > -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/46.0.2490.80 > Safari/537.36' -H 'Accept: application/json, text/plain, */*' -H 'Referer: > http://localhost:21000/' -H 'Cookie: JSESSIONID=15b7c1abmgzpsv2gax1e68sor' -H > 'Connection: keep-alive' --compressed | python -m json.tool > { > "requestId": "qtp983814036-14184 - f97fb1cb-be0b-4eaa-8338-5c1543803438", > "results": { > "jsonClass": > "org.apache.atlas.typesystem.json.InstanceSerialization$_Struct", > "typeName": "__tempQueryResultStruct267", > "values": { > "edges": {}, > "vertices": {} > } > }, > "tableName": "primary.default.table_1242" > } > {noformat} > Output graph query > {noformat} > curl > 'http://localhost:21000/api/atlas/lineage/hive/table/primary.default.table_1242/outputs/graph' > -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/46.0.2490.80 > Safari/537.36' -H 'Accept: application/json, text/plain, */*' -H 'Referer: > http://localhost:21000/' -H 'Cookie: JSESSIONID=15b7c1abmgzpsv2gax1e68sor' -H > 'Connection: keep-alive' --compressed | python -m json.tool > { > "requestId": "qtp983814036-14184 - 14e8cbc2-c2df-42b5-b506-51649fe2705b", > "results": { > "jsonClass": > "org.apache.atlas.typesystem.json.InstanceSerialization$_Struct", > "typeName": "__tempQueryResultStruct261", > "values": { > "edges": {}, > "vertices": {} > } > }, > "tableName": "primary.default.table_1242" > } > {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)