This is an automated email from the ASF dual-hosted git repository. madhan pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/atlas.git
The following commit(s) were added to refs/heads/master by this push: new ce22cf0ed ATLAS-4990: Deleting the attribute def from type def vertex after deletion of attribute ce22cf0ed is described below commit ce22cf0ed1ee95e83c0e99ed285a99b0549ccca2 Author: Mohd Nadeem <mohdnad...@microsoft.com> AuthorDate: Tue Mar 18 14:16:39 2025 +0530 ATLAS-4990: Deleting the attribute def from type def vertex after deletion of attribute Signed-off-by: Madhan Neethiraj <mad...@apache.org> --- .../atlas/repository/store/graph/v2/AtlasStructDefStoreV2.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/repository/src/main/java/org/apache/atlas/repository/store/graph/v2/AtlasStructDefStoreV2.java b/repository/src/main/java/org/apache/atlas/repository/store/graph/v2/AtlasStructDefStoreV2.java index dee7e0bef..b5ef5ab51 100644 --- a/repository/src/main/java/org/apache/atlas/repository/store/graph/v2/AtlasStructDefStoreV2.java +++ b/repository/src/main/java/org/apache/atlas/repository/store/graph/v2/AtlasStructDefStoreV2.java @@ -129,6 +129,12 @@ public class AtlasStructDefStoreV2 extends AtlasAbstractDefStoreV2<AtlasStructDe currAttrNames.removeAll(removedAttributes); vertex.setListProperty(encodedStructDefPropertyKey, currAttrNames); + + for (String removedAttribute : removedAttributes) { + String propertyKey = AtlasGraphUtilsV2.getTypeDefPropertyKey(structDef, removedAttribute); + + vertex.removeProperty(propertyKey); + } } }