atlas-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Radley (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ATLAS-1110) Improve Atlas Entity Rest API to show Hive column type (e.g int) as a JSON Object.
Date Wed, 10 Aug 2016 08:11:20 GMT

    [ https://issues.apache.org/jira/browse/ATLAS-1110?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15414884#comment-15414884
] 

David Radley commented on ATLAS-1110:
-------------------------------------

Hi ,
Thanks for your comments. 

I re-ran my curl command and put in the complete response- there is no values attribute. 
I am using the HDP sandbox 0.7 - so maybe the API may have changed in later code. 

curl  --user admin:admin http://127.0.0.1:21000/api/atlas/v1/entities/d4e349c4-353b-4f03-8bc0-e894d559b74e
[
    {
        "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"
        ],
        "table": [
            {
                "href": "http://127.0.0.1:21000/api/atlas/v1/entities/405079e5-dd29-41dc-98e8-49dc6f70f36d",
                "name": "sample_08",
                "id": "405079e5-dd29-41dc-98e8-49dc6f70f36d",
                "type": "hive_table"
            }
        ],
        "tags": [],
        "traits": []
    }
]



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

Mime
View raw message