Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 732C3200B6F for ; Wed, 10 Aug 2016 06:31:25 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 71AFD160AAD; Wed, 10 Aug 2016 04:31:25 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id B7835160AA5 for ; Wed, 10 Aug 2016 06:31:24 +0200 (CEST) Received: (qmail 74320 invoked by uid 500); 10 Aug 2016 04:31:23 -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 74309 invoked by uid 99); 10 Aug 2016 04:31:23 -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; Wed, 10 Aug 2016 04:31:23 +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 243911A1393 for ; Wed, 10 Aug 2016 04:31:23 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -2.645 X-Spam-Level: X-Spam-Status: No, score=-2.645 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_BADIPHTTP=2, 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=-1.426, WEIRD_PORT=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 2fDSOU15lwHk for ; Wed, 10 Aug 2016 04:31:22 +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 BE9FD5F5D3 for ; Wed, 10 Aug 2016 04:31:21 +0000 (UTC) Received: (qmail 74303 invoked by uid 99); 10 Aug 2016 04:31:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Aug 2016 04:31:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 6C0C32C02A1 for ; Wed, 10 Aug 2016 04:31:20 +0000 (UTC) Date: Wed, 10 Aug 2016 04:31:20 +0000 (UTC) From: "Hemanth Yamijala (JIRA)" To: dev@atlas.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (ATLAS-1110) Improve Atlas Entity Rest API to show Hive column type (e.g int) as a JSON Object. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 10 Aug 2016 04:31:25 -0000 [ https://issues.apache.org/jira/browse/ATLAS-1110?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15414684#comment-15414684 ] Hemanth Yamijala commented on ATLAS-1110: ----------------------------------------- The entity definition for a hive column already defines the column type as an attribute. When we GET the entity using Atlas REST API, we should be seeing a *values* attribute which is a map that contains all the attributes defined for a type with the values of the specific entity being retrieved. In the report above, I am not sure if the entire response is captured. Can you please check the entire response, or paste it here for reference? > Improve Atlas Entity Rest API to show Hive column type (e.g int) as a JSON Object. > ----------------------------------------------------------------------------------- > > Key: ATLAS-1110 > URL: https://issues.apache.org/jira/browse/ATLAS-1110 > Project: Atlas > Issue Type: Improvement > Reporter: David Radley > > Issuing a REST call to see the details of an entity which is a Hive column I issue: > curl h --user admin:admin http://127.0.0.1:21000/api/atlas/v1/entities/d4e349c4-353b-4f03-8bc0-e894d559b74e > I get > "href": "http://127.0.0.1:21000/api/atlas/v1/entities/d4e349c4-353b-4f03-8bc0-e894d559b74e", > "name": "total_emp", > "id": "d4e349c4-353b-4f03-8bc0-e894d559b74e", > "type": "hive_column", > "creation_time": "2016-06-24:00:20:13", > "entityText": "hive_column type int table hive_table createTime Fri Jun 24 00:20:10 UTC 2016 lastAccessTime Fri Jun 24 00:20:10 UTC 2016 retention 0 parameters numFiles 1 COLUMN_STATS_ACCURATE true transient_lastDdlTime 1466727619 totalSize 46069 tableType MANAGED_TABLE temporary false qualifiedName default.sample_08@Sandbox name sample_08 owner hive qualifiedName default.sample_08.total_emp@Sandbox name total_emp owner hive", > "modified_time": "2016-06-24:00:20:24", > "owner": "hive", > "qualifiedName": "default.sample_08.total_emp@Sandbox", > "state": "ACTIVE", > "version": 0, > "super_types": [ > "Asset", > "Referenceable" > ], > I am looking to get hold of the real type (int in this case) - I can see that in the entityText there as an int. It would be really helpful if this type (and the other information) was properly exposed in the API as json objects; not a text string that I need to parse which potentially could change its content. -- This message was sent by Atlassian JIRA (v6.3.4#6332)