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 E692E19230 for ; Thu, 7 Apr 2016 06:47:27 +0000 (UTC) Received: (qmail 14339 invoked by uid 500); 7 Apr 2016 06:47:27 -0000 Delivered-To: apmail-atlas-dev-archive@atlas.apache.org Received: (qmail 14289 invoked by uid 500); 7 Apr 2016 06:47:27 -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 14278 invoked by uid 99); 7 Apr 2016 06:47:27 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Apr 2016 06:47:27 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 4B043C0F1E for ; Thu, 7 Apr 2016 06:47:27 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -5.016 X-Spam-Level: X-Spam-Status: No, score=-5.016 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.996] autolearn=disabled Received: from mx2-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id dv61i4ddez9n for ; Thu, 7 Apr 2016 06:47:26 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx2-lw-us.apache.org (ASF Mail Server at mx2-lw-us.apache.org) with SMTP id 125205F1BE for ; Thu, 7 Apr 2016 06:47:25 +0000 (UTC) Received: (qmail 14272 invoked by uid 99); 7 Apr 2016 06:47: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 06:47:25 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 687CE2C1F4E for ; Thu, 7 Apr 2016 06:47:25 +0000 (UTC) Date: Thu, 7 Apr 2016 06:47:25 +0000 (UTC) From: "Ayub Khan (JIRA)" To: dev@atlas.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (ATLAS-648) Alter view rename does not work across databases MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Ayub Khan created ATLAS-648: ------------------------------- Summary: Alter view rename does not work across databases Key: ATLAS-648 URL: https://issues.apache.org/jira/browse/ATLAS-648 Project: Atlas Issue Type: Bug Affects Versions: trunk Reporter: Ayub Khan Priority: Critical Fix For: trunk Steps to repro: create table src (x int, y int, s string); create view view3 as select * from src; alter view default.view3 rename to d2.view3; Note: No hive hook update is sent to atlas on alter view rename. {noformat} curl 'http://localhost:21000/api/atlas/entities/250d9b22-2872-44be-a68a-b461acaa7d3b' -H 'Pragma: no-cache' -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/49.0.2623.87 Safari/537.36' -H 'Accept: application/json, text/plain, */*' -H 'Referer: http://localhost:21000/' -H 'Connection: keep-alive' -H 'Cache-Control: no-cache' --compressed | python -m json.tool % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 2985 0 2985 0 0 100k 0 --:--:-- --:--:-- --:--:-- 100k { "GUID": "250d9b22-2872-44be-a68a-b461acaa7d3b", "definition": { "id": { "id": "250d9b22-2872-44be-a68a-b461acaa7d3b", "jsonClass": "org.apache.atlas.typesystem.json.InstanceSerialization$_Id", "typeName": "hive_table", "version": 0 }, "jsonClass": "org.apache.atlas.typesystem.json.InstanceSerialization$_Reference", "traitNames": [], "traits": {}, "typeName": "hive_table", "values": { "columns": [ { "id": { "id": "b369ba0a-763e-4e9e-a9d9-663038b148a8", "jsonClass": "org.apache.atlas.typesystem.json.InstanceSerialization$_Id", "typeName": "hive_column", "version": 0 }, "jsonClass": "org.apache.atlas.typesystem.json.InstanceSerialization$_Reference", "traitNames": [], "traits": {}, "typeName": "hive_column", "values": { "comment": null, "name": "x", "qualifiedName": "default.view3.x@primary", "type": "int" } }, { "id": { "id": "74e9a2d4-6b8c-4d0f-af06-ed87ecc49266", "jsonClass": "org.apache.atlas.typesystem.json.InstanceSerialization$_Id", "typeName": "hive_column", "version": 0 }, "jsonClass": "org.apache.atlas.typesystem.json.InstanceSerialization$_Reference", "traitNames": [], "traits": {}, "typeName": "hive_column", "values": { "comment": null, "name": "y", "qualifiedName": "default.view3.y@primary", "type": "int" } }, { "id": { "id": "281e9a22-19c3-42dc-b122-9e3cec86131c", "jsonClass": "org.apache.atlas.typesystem.json.InstanceSerialization$_Id", "typeName": "hive_column", "version": 0 }, "jsonClass": "org.apache.atlas.typesystem.json.InstanceSerialization$_Reference", "traitNames": [], "traits": {}, "typeName": "hive_column", "values": { "comment": null, "name": "s", "qualifiedName": "default.view3.s@primary", "type": "string" } } ], "comment": null, "createTime": 1460011279, "db": { "id": "c1402ed5-9f09-498a-ae2a-f67fa86b34c0", "jsonClass": "org.apache.atlas.typesystem.json.InstanceSerialization$_Id", "typeName": "hive_db", "version": 0 }, "description": null, "lastAccessTime": 0, "name": "default.view3@primary", "owner": "apathan", "parameters": { "transient_lastDdlTime": "1460011279" }, "partitionKeys": null, "retention": 0, "sd": { "id": { "id": "e2fb036d-bc91-41d9-8431-1e288837e49c", "jsonClass": "org.apache.atlas.typesystem.json.InstanceSerialization$_Id", "typeName": "hive_storagedesc", "version": 0 }, "jsonClass": "org.apache.atlas.typesystem.json.InstanceSerialization$_Reference", "traitNames": [], "traits": {}, "typeName": "hive_storagedesc", "values": { "bucketCols": null, "compressed": false, "inputFormat": "org.apache.hadoop.mapred.SequenceFileInputFormat", "location": null, "numBuckets": -1, "outputFormat": "org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat", "parameters": null, "qualifiedName": "default.view3@primary", "serdeInfo": { "jsonClass": "org.apache.atlas.typesystem.json.InstanceSerialization$_Struct", "typeName": "hive_serde", "values": { "name": null, "parameters": null, "serializationLib": null } }, "sortCols": null, "storedAsSubDirectories": false } }, "tableName": "view3", "tableType": "VIRTUAL_VIEW", "temporary": false, "viewExpandedText": "select `src`.`x`, `src`.`y`, `src`.`s` from `default`.`src`", "viewOriginalText": "select * from src" } }, "requestId": "qtp743462152-622 - e9172de1-69b6-45b5-a79d-67d7129eda71" } {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)