Skip to content

Commit

Permalink
call relationshipLookup only the fetchEdgeLabels condition meets
Browse files Browse the repository at this point in the history
  • Loading branch information
sriram-atlan committed Mar 6, 2025
1 parent 94c8f4d commit f63491c
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1024,14 +1024,12 @@ private Map<String, Object> preloadProperties(AtlasVertex entityVertex, AtlasEnt
// Execute the traversal to fetch properties
Iterator<VertexProperty<Object>> traversal = ((AtlasJanusVertex)entityVertex).getWrappedElement().properties();

// retrieve all the valid relationships for this entityType
Map<String, Set<String>> relationshipsLookup = fetchEdgeNames(entityType);

// Fetch edges in both directions

// if the vertex in scope is root then call below otherwise skip
// we don't support relation attributes of a relation
if (fetchEdgeLabels) {
// retrieve all the valid relationships for this entityType
Map<String, Set<String>> relationshipsLookup = fetchEdgeNames(entityType);
retrieveEdgeLabels(entityVertex, attributes, relationshipsLookup, propertiesMap);
}

Expand Down

0 comments on commit f63491c

Please sign in to comment.