atlas-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hemanth Yamijala (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ATLAS-220) Gets on Enum attribute should return EnumValue
Date Fri, 20 Nov 2015 15:57:11 GMT

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

Hemanth Yamijala commented on ATLAS-220:
----------------------------------------

Interestingly, I don't seem to be able to see this through the REST API. I thought the Hive
schema has a tableType registered as a Enum type, but the schema and instances of hive_table
are properly fetched via the API. 

[~shwethags] / [~suma.shivaprasad] - would you know whether there's a case to reproduce this
from the API?

> Gets on Enum attribute should return EnumValue
> ----------------------------------------------
>
>                 Key: ATLAS-220
>                 URL: https://issues.apache.org/jira/browse/ATLAS-220
>             Project: Atlas
>          Issue Type: Bug
>            Reporter: Suma Shivaprasad
>            Assignee: Hemanth Yamijala
>
>         Referenceable tableDefinition = InstanceSerialization.fromJsonReferenceable(tableDefinitionJson,
true);
>         EnumValue enumStr = (EnumValue) tableDefinition.get("tableType");
> The cast fails with
> {noformat}
> java.lang.ClassCastException: scala.collection.convert.Wrappers$MapWrapper cannot be
cast to org.apache.atlas.typesystem.types.EnumValue
> 	at org.apache.atlas.service.DefaultMetadataServiceTest.testUpdateEnums(DefaultMetadataServiceTest.java:172)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message