Return-Path: X-Original-To: apmail-atlas-dev-archive@minotaur.apache.org Delivered-To: apmail-atlas-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7572D186D5 for ; Fri, 20 Nov 2015 09:13:13 +0000 (UTC) Received: (qmail 11167 invoked by uid 500); 20 Nov 2015 09:13:13 -0000 Delivered-To: apmail-atlas-dev-archive@atlas.apache.org Received: (qmail 11126 invoked by uid 500); 20 Nov 2015 09:13:13 -0000 Mailing-List: contact dev-help@atlas.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@atlas.incubator.apache.org Delivered-To: mailing list dev@atlas.incubator.apache.org Received: (qmail 11115 invoked by uid 99); 20 Nov 2015 09:13:13 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Nov 2015 09:13:13 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id E7F24180A2A for ; Fri, 20 Nov 2015 09:13:12 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.77 X-Spam-Level: * X-Spam-Status: No, score=1.77 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, T_RP_MATCHES_RCVD=-0.01] autolearn=disabled Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id DNDSCOrfgQWK for ; Fri, 20 Nov 2015 09:13:12 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with SMTP id 050A92031C for ; Fri, 20 Nov 2015 09:13:12 +0000 (UTC) Received: (qmail 10384 invoked by uid 99); 20 Nov 2015 09:13:11 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Nov 2015 09:13:11 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id EEC842C1F5E for ; Fri, 20 Nov 2015 09:13:10 +0000 (UTC) Date: Fri, 20 Nov 2015 09:13:10 +0000 (UTC) From: "Hemanth Yamijala (JIRA)" To: dev@atlas.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (ATLAS-274) No lineage is recorded for creating a table using LIKE MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/ATLAS-274?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15015466#comment-15015466 ] Hemanth Yamijala commented on ATLAS-274: ---------------------------------------- I am able to replicate this behavior. However, thinking through more, a LIKE is a different clause than, say a CTAS. LIKE doesn't copy the data of the parent table, it only copies the table definition and attributes. Quote from the [Hive manual|https://cwiki.apache.org/confluence/display/Hive/LanguageManual+DDL#LanguageManualDDL-Create/Drop/TruncateTable]: bq. The LIKE form of CREATE TABLE allows you to copy an existing table definition exactly (without copying its data). Given this, and my understanding that lineage captures how *data* is transformed from one form to another, I don't think it is appropriate to show the relationship between the two tables linked by lineage. If we are interested in capturing the fact that one table's definition is derived from the other, there is value in that, but it should be expressed as another relationship in Atlas possibly. Don't know what that relationship should be. Can we discuss and take this forward? > 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)