-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Neo4j multihop support #6104
Neo4j multihop support #6104
Conversation
@djordje-mijatovic running tests now! |
metadata-io/src/test/java/com/linkedin/metadata/graph/neo4j/Neo4jGraphServiceTest.java
Outdated
Show resolved
Hide resolved
metadata-io/src/main/java/com/linkedin/metadata/graph/neo4j/Neo4jGraphService.java
Outdated
Show resolved
Hide resolved
metadata-io/src/main/java/com/linkedin/metadata/graph/neo4j/Neo4jGraphService.java
Outdated
Show resolved
Hide resolved
metadata-io/src/main/java/com/linkedin/metadata/graph/neo4j/Neo4jGraphService.java
Outdated
Show resolved
Hide resolved
metadata-io/src/main/java/com/linkedin/metadata/graph/neo4j/Neo4jGraphService.java
Show resolved
Hide resolved
metadata-io/src/main/java/com/linkedin/metadata/graph/neo4j/Neo4jGraphService.java
Show resolved
Hide resolved
metadata-io/src/main/java/com/linkedin/metadata/graph/neo4j/Neo4jGraphService.java
Show resolved
Hide resolved
metadata-io/src/main/java/com/linkedin/metadata/graph/neo4j/Neo4jGraphService.java
Outdated
Show resolved
Hide resolved
metadata-io/src/main/java/com/linkedin/metadata/graph/neo4j/Neo4jGraphService.java
Outdated
Show resolved
Hide resolved
metadata-io/src/test/java/com/linkedin/metadata/graph/dgraph/DgraphGraphServiceTest.java
Show resolved
Hide resolved
} | ||
}); | ||
|
||
EntityLineageResult result = new EntityLineageResult().setStart(offset) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor formatting:
new EntityLineageResult()
.setStart(offset)
final String statementIndirect = String.format(multiHopTemplateIndirect, entityUrn, dowStreamRel, maxHops, allowedEntityTypes); | ||
|
||
String statement = null; | ||
if (upstreamRel.length() > 0 && dowStreamRel.length() > 0) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
naming nit: dowStreamRel -> downStreamRel
|
||
downstreamLineage = service.getLineage(datasetThreeUrn, LineageDirection.DOWNSTREAM, 0, 1000, 2); | ||
assertEquals(downstreamLineage.getTotal().intValue(), 0); | ||
assertEquals(downstreamLineage.getRelationships().size(), 0); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice test.
Any cases for when there are no downstream or upstream edges for the source urn?
...data-io/src/test/java/com/linkedin/metadata/graph/elastic/ElasticSearchGraphServiceTest.java
Show resolved
Hide resolved
Most important piece is around removing tests. Ready to submit as soon as I hear back |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thank you
Checklist
resolves #5994