[ https://issues.apache.org/jira/browse/ATLAS-1015?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Madhan Neethiraj updated ATLAS-1015: ------------------------------------ Fix Version/s: (was: 0.8-incubating) > ClassCastException: scala.math.BigInt cannot be cast to java.lang.Long for an > attribute with data type as Long. > --------------------------------------------------------------------------------------------------------------- > > Key: ATLAS-1015 > URL: https://issues.apache.org/jira/browse/ATLAS-1015 > Project: Atlas > Issue Type: Bug > Affects Versions: 0.8-incubating > Reporter: Satish Duggana > Priority: Critical > > A type is created with the below info. An entity is created with respective > attributes including the Long value for timestamp. But when that stored > entity is retrieved, it returns a Referenceable with timestamp attribute > containing scala.math.BigInt type instead of java.lang.Long type > {code:java} > TypesUtil.createClassTypeDef( > DeviceInfo.NAME_SPACE, null, > TypesUtil.createUniqueRequiredAttrDef(DeviceInfo.NAME, > DataTypes.STRING_TYPE), > TypesUtil.createUniqueRequiredAttrDef(DeviceInfo.XID, > DataTypes.STRING_TYPE), > attrDef(DeviceInfo.TIMESTAMP, DataTypes.LONG_TYPE), > attrDef(DeviceInfo.VERSION, DataTypes.STRING_TYPE) > ); > {code} > You can look at the test code > [here|https://github.com/satishd/incubator-atlas/blob/types-poc/samples/src/test/java/org/apache/atlas/sample/AtlasMetadataServiceTest.java] -- This message was sent by Atlassian JIRA (v7.6.3#76005)