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 4BD381929F for ; Thu, 7 Apr 2016 20:21:28 +0000 (UTC) Received: (qmail 10872 invoked by uid 500); 7 Apr 2016 20:21:28 -0000 Delivered-To: apmail-atlas-dev-archive@atlas.apache.org Received: (qmail 10833 invoked by uid 500); 7 Apr 2016 20:21:28 -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 10817 invoked by uid 99); 7 Apr 2016 20:21:28 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Apr 2016 20:21:28 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id AAA101A00BE for ; Thu, 7 Apr 2016 20:21:27 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -4.021 X-Spam-Level: X-Spam-Status: No, score=-4.021 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-0.001] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id WnCpi-JA5-zi for ; Thu, 7 Apr 2016 20:21:26 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with SMTP id 4E25D5F1F7 for ; Thu, 7 Apr 2016 20:21:26 +0000 (UTC) Received: (qmail 9050 invoked by uid 99); 7 Apr 2016 20:21:25 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Apr 2016 20:21:25 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 7FDAF2C1F5A for ; Thu, 7 Apr 2016 20:21:25 +0000 (UTC) Date: Thu, 7 Apr 2016 20:21:25 +0000 (UTC) From: "Suma Shivaprasad (JIRA)" To: dev@atlas.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (ATLAS-528) support drop table, view 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-528?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15230983#comment-15230983 ] Suma Shivaprasad commented on ATLAS-528: ---------------------------------------- @Hemanth yamijala Thanks for the review. The handling of truncate table will create a single process with no inputs and a single table as output. We should validate if this type of lineage view is OK for a end user. I agree though that capturing the information is important. --> Raised ATLAS-653 to track this. On the same note, is the query string captured correctly for the process. Can we enhance the truncate test to validate this? --> HiveHookIT.validateProcess already check this by querying with the same exact query If a table / view being dropped is not present in Atlas, this would generate a 404 and we would loose the information. Maybe we can file a bug and track this for later? --> Raised ATLAS-652 to track this. We should also test what happens if a user executes a drop table if exists non_existent_table - do we get called? --> I observed that the hooks is being called and the hook is ignoring this since there are no outputs for this query. Added a testcase HiveHookIT.testDropNonExistingTable to test this. There are break statements missing after ALTERTABLE_LOCATION and DROPTABLE/DROPVIEW. While the latter are the last branches of the switch, it is still safer to add IMO. --> Added > support drop table, view > ------------------------ > > Key: ATLAS-528 > URL: https://issues.apache.org/jira/browse/ATLAS-528 > Project: Atlas > Issue Type: Sub-task > Affects Versions: 0.7-incubating > Reporter: Suma Shivaprasad > Assignee: Suma Shivaprasad > Fix For: 0.7-incubating > > Attachments: ATLAS-528.1.patch, ATLAS-528.patch > > > Drop table and view requires soft deletes. The reason is whenever a table is dropped , it also may have an associated lineage which consists of a hive_process which N input tables and an output table. If the table is dropped, the lineage edge is also dropped resulting in incorrect lineage history. > With soft deletes, the expected behaviour is to changes the table status to "deleted" and when the table is recreated through a create table statement, then create another vertex/entity for that table with the new state. Also, the lineage for this newly recreated table should be a new hive_process and should not reuse the existing entity/vertex even though the hive statement for that process is the same. -- This message was sent by Atlassian JIRA (v6.3.4#6332)