You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@atlas.apache.org by "Sharmadha Sainath (JIRA)" <ji...@apache.org> on 2017/06/15 12:13:00 UTC

[jira] [Updated] (ATLAS-1876) Import/Export : AtlasSchemaViolationException during Import of entity associated to a tag with tag attribute value of datatype float

     [ https://issues.apache.org/jira/browse/ATLAS-1876?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sharmadha Sainath updated ATLAS-1876:
-------------------------------------
    Description: 
1.In cluster1, created a tag float_tag with attribute float_max of datatype float.
2. In the same cluster , created table table1 and associated the tag float_tag to table1 , with attribute value for float_max as 3.4028235e+38 (maximum value for float).
3.Creation and tag association are successful.
4.Created table1.zip  by using Export API 
5. Using Import API , tried to import table1.zip to cluster2. Import failed with 
{code}
{"errorCode":"ATLAS-500-00-001","errorMessage":"org.apache.atlas.exception.AtlasBaseException: org.apache.atlas.repository.graphdb.AtlasSchemaViolationException: com.thinkaurelius.titan.core.SchemaViolationException: Value [3.4028235E38] is not an instance of the expected data type for property key [float_tag.float_max] and cannot be converted. Expected: class java.lang.Float, found: class java.lang.Double"}
{code}

Attached the error stack trace found in cluster2 application logs.

This exception is seen only when the value for float attribute is given as 3.4028235e+38 . Other values like 0 , 2.5 , 1.4e+10 etc., are accepted and import is done successfully.

  was:
1.In cluster1, created a tag float_tag with attribute float_max of datatype float.
2. In the same cluster , created table table1 and associated the tag float_tag to table1 , with attribute value for float_max as 3.4028235e+38 (maximum value for float).
3.Creation and tag association are successful.
4.Created table1.zip  by using Export API 
5. Using Import API , tried to import table1.zip to cluster2. Import failed with 
{code}
{"errorCode":"ATLAS-500-00-001","errorMessage":"org.apache.atlas.exception.AtlasBaseException: org.apache.atlas.repository.graphdb.AtlasSchemaViolationException: com.thinkaurelius.titan.core.SchemaViolationException: Value [3.4028235E38] is not an instance of the expected data type for property key [float_tag.float_max] and cannot be converted. Expected: class java.lang.Float, found: class java.lang.Double"}
{code}

Attached the error stack trace found in cluster2 application logs.


> Import/Export : AtlasSchemaViolationException during Import of entity associated to a tag with tag attribute value of datatype float
> ------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: ATLAS-1876
>                 URL: https://issues.apache.org/jira/browse/ATLAS-1876
>             Project: Atlas
>          Issue Type: Bug
>          Components:  atlas-core
>    Affects Versions: 0.9-incubating
>            Reporter: Sharmadha Sainath
>         Attachments: AtlasSchemaViolationException_ExportImport.txt
>
>
> 1.In cluster1, created a tag float_tag with attribute float_max of datatype float.
> 2. In the same cluster , created table table1 and associated the tag float_tag to table1 , with attribute value for float_max as 3.4028235e+38 (maximum value for float).
> 3.Creation and tag association are successful.
> 4.Created table1.zip  by using Export API 
> 5. Using Import API , tried to import table1.zip to cluster2. Import failed with 
> {code}
> {"errorCode":"ATLAS-500-00-001","errorMessage":"org.apache.atlas.exception.AtlasBaseException: org.apache.atlas.repository.graphdb.AtlasSchemaViolationException: com.thinkaurelius.titan.core.SchemaViolationException: Value [3.4028235E38] is not an instance of the expected data type for property key [float_tag.float_max] and cannot be converted. Expected: class java.lang.Float, found: class java.lang.Double"}
> {code}
> Attached the error stack trace found in cluster2 application logs.
> This exception is seen only when the value for float attribute is given as 3.4028235e+38 . Other values like 0 , 2.5 , 1.4e+10 etc., are accepted and import is done successfully.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)