[
https://issues.apache.org/jira/browse/ATLAS-1876?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ashutosh Mestry updated ATLAS-1876:
-----------------------------------
Attachment: ATLAS-1876-Type-range-check-added.patch
> 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
> Assignee: Ashutosh Mestry
> Attachments: ATLAS-1876-Type-range-check-added.patch,
> 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)