[
https://issues.apache.org/jira/browse/ATLAS-3032?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ashutosh Mestry updated ATLAS-3032:
-----------------------------------
Description:
# In source cluster , created a tag with float attribute.
2. Created an hive_db and associated the tag to the hive_db with value
"-3.4028235E+38"
3. On importing the exported hive_db entity, exception is seen and import
fails.
Following stack trace is generated:
{code:java}
org.apache.atlas.repository.graphdb.AtlasSchemaViolationException:
com.thinkaurelius.titan.core.SchemaViolationException: Value [-3.4028235E+38]
is not an instance of the expected data type for property key [tag_float.float]
and cannot be converted. Expected: class java.lang.Float, found: class
java.math.BigDecimal{code}
was:
# In source cluster , created a tag with float attribute.
2. Created an hive_db and associated the tag to the hive_db with value
"-3.4028235E+38"
3. On importing the exported hive_db entity, exception is seen and import
fails.
Following stack trace is generated:
org.apache.atlas.repository.graphdb.AtlasSchemaViolationException:
com.thinkaurelius.titan.core.SchemaViolationException: Value [-3.4028235E+38]
is not an instance of the expected data type for property key [tag_float.float]
and cannot be converted. Expected: class java.lang.Float, found: class
java.math.BigDecimal
> Importing an entity with tag attribute of type float data type fails with an
> BigDecimal Exception
> -------------------------------------------------------------------------------------------------
>
> Key: ATLAS-3032
> URL: https://issues.apache.org/jira/browse/ATLAS-3032
> Project: Atlas
> Issue Type: Bug
> Reporter: Kapildeo Nayak
> Priority: Critical
> Attachments: ATLAS-3032.patch
>
>
> # In source cluster , created a tag with float attribute.
> 2. Created an hive_db and associated the tag to the hive_db with value
> "-3.4028235E+38"
> 3. On importing the exported hive_db entity, exception is seen and import
> fails.
> Following stack trace is generated:
> {code:java}
> org.apache.atlas.repository.graphdb.AtlasSchemaViolationException:
> com.thinkaurelius.titan.core.SchemaViolationException: Value [-3.4028235E+38]
> is not an instance of the expected data type for property key
> [tag_float.float] and cannot be converted. Expected: class java.lang.Float,
> found: class java.math.BigDecimal{code}
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)