-
Notifications
You must be signed in to change notification settings - Fork 493
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
Fixes #1064: Add procedure to compare graphs #3041
Conversation
7d18375
to
16804b9
Compare
@@ -77,7 +81,7 @@ public Stream<RowResult> loadFromLocal(String localStatement, String remoteState | |||
String withColumns = "WITH " + localResult.columns().stream() | |||
.map(c -> "$" + c + " AS " + c) | |||
.collect(Collectors.joining(", ")) + "\n"; | |||
Map<Long, Object> nodesCache = new HashMap<>(); | |||
Map<Long, VirtualNode> nodesCache = new HashMap<>(); |
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.
Can we use Node
here?
Does this still support diffing two node-sets in the same graph? And it would be good if there was a way from the Java API to diff to a second multi-db database. But I'm not sure how easily this is possible. |
Yes, we can compare 2 set in the same db, I added a test And now I added the possibility to compare 2 graph using bolt protocol (via boltConfig param), Also, I added some other tests and docs and var. small code improvements. |
Fixes #1064
Cherry pick of: 1064
Differences from cherry-picked pr:
added class
DiffFull
becauseBolt
located infull
in 4.x.in
BoltConnection.java
(located inBolt.java
in the cherry-picked pr), changedtoMap(Session session..
,toCollection(Session session...
etc totoMap(Transaction tx..
,toCollection(Transaction tx...
added
systemUpdates
inNeo4jContainerExtension