[ https://issues.apache.org/jira/browse/ATLAS-1780?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Madhan Neethiraj updated ATLAS-1780: ------------------------------------ Affects Version/s: 0.8-incubating Request participants: (was: ) Fix Version/s: (was: 0.8-incubating) 0.8.1-incubating > Type deletion blocks ability to redefine same type with different attribute > --------------------------------------------------------------------------- > > Key: ATLAS-1780 > URL: https://issues.apache.org/jira/browse/ATLAS-1780 > Project: Atlas > Issue Type: Bug > Affects Versions: 0.8-incubating > Reporter: Apoorv Naik > Assignee: Apoorv Naik > Fix For: 0.9-incubating, 0.8.1-incubating > > > This change supports the use-case where the user creates a type and deletes > it sometime later, now the redefinition of the type is restricted to use the > same data type for the attributes used during the initial creation. > Solution: Rename the propertyKey corresponding to that attribute using the > titan management API by suffing _deleted_xxx where xxx is an increasing > integer sequence starting from 0. The reason for increment of xxx is that the > type create, delete and re-create can be done multiple times without any > conflicting key in Titan. > Use case: Create a Tag/Trait with atleast one attribute, delete the tag, > recreate the exact same tag with a different data type for the attribute. > Creation will be a success, try associating the Tag/trait with any entity > with the attribute value (new data type) this should fail with a > ClassCastException -- This message was sent by Atlassian JIRA (v6.3.15#6346)