atlas-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Satish Duggana (JIRA)" <j...@apache.org>
Subject [jira] [Created] (ATLAS-1015) ClassCastException: scala.math.BigInt cannot be cast to java.lang.Long for an attribute with data type as Long.
Date Wed, 13 Jul 2016 05:23:20 GMT
Satish Duggana created ATLAS-1015:
-------------------------------------

             Summary: 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
             Fix For: 0.8-incubating


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
(v6.3.4#6332)

Mime
View raw message