[
https://issues.apache.org/jira/browse/ATLAS-1015?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Madhan Neethiraj resolved ATLAS-1015.
-------------------------------------
Resolution: Abandoned
Atlas no more uses Scala; the code referenced here doesn't exist any more in
Atlas.
> 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
(v8.3.4#803005)