This is an automated email from the ASF dual-hosted git repository.
madhan pushed a commit to branch atlas-2.5
in repository https://gitbox.apache.org/repos/asf/atlas.git
The following commit(s) were added to refs/heads/atlas-2.5 by this push:
new c19c33c39 ATLAS-4990: Deleting the attribute def from type def vertex
after deletion of attribute
c19c33c39 is described below
commit c19c33c39b0791c7feba075beb938b4b604f9017
Author: Mohd Nadeem <[email protected]>
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 <[email protected]>
(cherry picked from commit ce22cf0ed1ee95e83c0e99ed285a99b0549ccca2)
---
.../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);
+ }
}
}