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