atlas-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Madhan Neethiraj (Jira)" <>
Subject [jira] [Resolved] (ATLAS-362) Non-String map keys allowed in type definition but cause error when storing entity
Date Mon, 18 May 2020 01:36:00 GMT


Madhan Neethiraj resolved ATLAS-362.
    Resolution: Cannot Reproduce

This issue doesn't reproduce any more; and the referenced code is no more present in Atlas.

> Non-String map keys allowed in type definition but cause error when storing entity
> ----------------------------------------------------------------------------------
>                 Key: ATLAS-362
>                 URL:
>             Project: Atlas
>          Issue Type: Bug
>    Affects Versions: 0.6-incubating
>            Reporter: Dave Kantor
>            Priority: Minor
> Atlas currently lets you define map types as having an arbitrary type for the key and
the value.  A type with map attribute with a non-string key can be registered without any
problem.  However, if you use anything other than a string as the key type and try to store
a value in the map type you get an exception.  Atlas should either correctly handle non-string
keys or throw an exception when trying to register a type with a map attribute that uses a
non-string key type.
> In our case, we created a type with an attribute of type map<byte,byte> without
any error.  However, storing entities with this attribute set fails with the following exception:
>  java.lang.ClassCastException: java.lang.Byte incompatible with java.lang.String
> 	at org.apache.atlas.repository.graph.GraphBackedMetadataRepository$GraphToTypedInstanceMapper.mapVertexToMapInstance(
> 	at org.apache.atlas.repository.graph.GraphBackedMetadataRepository$GraphToTypedInstanceMapper.mapVertexToAttribute(
> 	at org.apache.atlas.repository.graph.GraphBackedMetadataRepository$GraphToTypedInstanceMapper.mapVertexToInstance(
> 	at org.apache.atlas.repository.graph.GraphBackedMetadataRepository$GraphToTypedInstanceMapper.mapGraphToTypedInstance(
> 	at org.apache.atlas.repository.graph.GraphBackedMetadataRepository$TypedInstanceToGraphMapper.getFullTextForVertex(
> 	at org.apache.atlas.repository.graph.GraphBackedMetadataRepository$TypedInstanceToGraphMapper.addFullTextProperty(
> 	at org.apache.atlas.repository.graph.GraphBackedMetadataRepository$TypedInstanceToGraphMapper.mapTypedInstanceToGraph(
> 	at org.apache.atlas.repository.graph.GraphBackedMetadataRepository$TypedInstanceToGraphMapper.access$100(
> 	at org.apache.atlas.repository.graph.GraphBackedMetadataRepository.createEntities(
> 	at org.apache.atlas.GraphTransactionInterceptor.invoke(
> 	at

This message was sent by Atlassian Jira

View raw message