Uploaded image for project: 'Atlas'
  1. Atlas
  2. ATLAS-1876

Import/Export : AtlasSchemaViolationException during Import of entity associated to a tag with tag attribute value of datatype float

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.0.0
    • 0.8.1, 1.0.0
    • atlas-core
    • None

    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

      {"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"}
      

      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.

      Attachments

        Issue Links

          Activity

            People

              amestry Ashutosh Mestry
              sharmadhas Sharmadha S
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: