This is an automated email from the ASF dual-hosted git repository.
pinal pushed a commit to branch branch-2.0
in repository https://gitbox.apache.org/repos/asf/atlas.git
The following commit(s) were added to refs/heads/branch-2.0 by this push:
new 226a034b5 ATLAS-4679: Improving entity updates by not including
deleted edges
226a034b5 is described below
commit 226a034b59d124608a5b269c97d723b4312ff327
Author: Sheetal Shah <[email protected]>
AuthorDate: Tue Sep 20 18:22:03 2022 +0530
ATLAS-4679: Improving entity updates by not including deleted edges
Signed-off-by: Pinal Shah <[email protected]>
(cherry picked from commit e3a6d238e3e0358b1f397968b1db1355c4818768)
---
.../org/apache/atlas/repository/store/graph/v2/EntityGraphMapper.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/repository/src/main/java/org/apache/atlas/repository/store/graph/v2/EntityGraphMapper.java
b/repository/src/main/java/org/apache/atlas/repository/store/graph/v2/EntityGraphMapper.java
index 68d331dfd..c670740c9 100644
---
a/repository/src/main/java/org/apache/atlas/repository/store/graph/v2/EntityGraphMapper.java
+++
b/repository/src/main/java/org/apache/atlas/repository/store/graph/v2/EntityGraphMapper.java
@@ -1464,7 +1464,7 @@ public class EntityGraphMapper {
for (int index = 0; allArrayElements != null && index <
allArrayElements.size(); index++) {
Object element = allArrayElements.get(index);
- if (element instanceof AtlasEdge) {
+ if (element instanceof AtlasEdge &&
GraphHelper.getEdgeStatus((AtlasEdge)element) ==
AtlasRelationship.Status.ACTIVE) {
AtlasGraphUtilsV2.setEncodedProperty((AtlasEdge) element,
ATTRIBUTE_INDEX_PROPERTY_KEY, index);
}
}