You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@atlas.apache.org by "David Radley (JIRA)" <ji...@apache.org> on 2016/08/09 16:05:20 UTC

[jira] [Updated] (ATLAS-1110) Improve Atlas Entity Rest API to show Hive column type (e.g int) as a JSON Object.

     [ https://issues.apache.org/jira/browse/ATLAS-1110?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Radley updated ATLAS-1110:
--------------------------------
    Summary: Improve Atlas Entity Rest API to show Hive column type (e.g int) as a JSON Object.   (was: Imrpove Atlas Entity Rest API to show Hive column type (e.g int) as a JSON Object. )

> 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)