-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
26 changed files
with
314 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
e2e_correctness/refactor_test/test_delete_and_reconnect_1/input.cyp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
CREATE (n1:Node {id: 1, name: "Node 1"})-[:CONNECTED_TO {relationship_id: 1, name: "Rel1"}]->(n2:Node {id: 2, name: "Node 2"})-[:CONNECTED_TO {relationship_id: 2, name: "Rel2"}]->(n3:Node {id: 3, name: "Node 3"})-[:CONNECTED_TO {relationship_id: 3, name: "Rel3"}]->(n4:Node {id: 4, name: "Node 4"})-[:CONNECTED_TO {relationship_id: 4, name: "Rel4"}]->(n5:Node {id: 5, name: "Node 5"}); |
7 changes: 7 additions & 0 deletions
7
e2e_correctness/refactor_test/test_delete_and_reconnect_1/test.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
memgraph_query: > | ||
MATCH p=(a:Node)-->(b:Node)-->(c:Node)-->(d:Node)-->(e:Node) | ||
WITH p, [b,d] as l CALL refactor.delete_and_reconnect(p, l) YIELD nodes, relationships RETURN nodes, relationships; | ||
neo4j_query: > | ||
MATCH p=(a:Node)-->(b:Node)-->(c:Node)-->(d:Node)-->(e:Node) | ||
WITH p, [b,d] as l CALL apoc.refactor.deleteAndReconnect(p, l) YIELD nodes, relationships RETURN nodes, relationships; |
1 change: 1 addition & 0 deletions
1
e2e_correctness/refactor_test/test_delete_and_reconnect_2/input.cyp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
CREATE (n1:Node {id: 1, name: "Node 1"})-[:CONNECTED_TO {relationship_id: 1, name: "Rel1"}]->(n2:Node {id: 2, name: "Node 2"})-[:CONNECTED_TO {relationship_id: 2, name: "Rel2"}]->(n3:Node {id: 3, name: "Node 3"})-[:CONNECTED_TO {relationship_id: 3, name: "Rel3"}]->(n4:Node {id: 4, name: "Node 4"})-[:CONNECTED_TO {relationship_id: 4, name: "Rel4"}]->(n5:Node {id: 5, name: "Node 5"}); |
7 changes: 7 additions & 0 deletions
7
e2e_correctness/refactor_test/test_delete_and_reconnect_2/test.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
memgraph_query: > | ||
MATCH p=(a:Node)-->(b:Node)-->(c:Node)-->(d:Node)-->(e:Node) | ||
WITH p, [b,d] as l CALL refactor.delete_and_reconnect(p, l, {relationshipSelectionStrategy: "incoming"}) YIELD nodes, relationships RETURN nodes, relationships; | ||
neo4j_query: > | ||
MATCH p=(a:Node)-->(b:Node)-->(c:Node)-->(d:Node)-->(e:Node) | ||
WITH p, [b,d] as l CALL apoc.refactor.deleteAndReconnect(p, l, {relationshipSelectionStrategy: "incoming"}) YIELD nodes, relationships RETURN nodes, relationships; |
1 change: 1 addition & 0 deletions
1
e2e_correctness/refactor_test/test_delete_and_reconnect_3/input.cyp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
CREATE (n1:Node {id: 1, name: "Node 1"})-[:CONNECTED_TO {relationship_id: 1, name: "Rel1"}]->(n2:Node {id: 2, name: "Node 2"})-[:CONNECTED_TO {relationship_id: 2, name: "Rel2"}]->(n3:Node {id: 3, name: "Node 3"})-[:CONNECTED_TO {relationship_id: 3, name: "Rel3"}]->(n4:Node {id: 4, name: "Node 4"})-[:CONNECTED_TO {relationship_id: 4, name: "Rel4"}]->(n5:Node {id: 5, name: "Node 5"}); |
7 changes: 7 additions & 0 deletions
7
e2e_correctness/refactor_test/test_delete_and_reconnect_3/test.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
memgraph_query: > | ||
MATCH p=(a:Node)-->(b:Node)-->(c:Node)-->(d:Node)-->(e:Node) | ||
WITH p, [b,d] as l CALL refactor.delete_and_reconnect(p, l, {relationshipSelectionStrategy: "outgoing"}) YIELD nodes, relationships RETURN nodes, relationships; | ||
neo4j_query: > | ||
MATCH p=(a:Node)-->(b:Node)-->(c:Node)-->(d:Node)-->(e:Node) | ||
WITH p, [b,d] as l CALL apoc.refactor.deleteAndReconnect(p, l, {relationshipSelectionStrategy: "outgoing"}) YIELD nodes, relationships RETURN nodes, relationships; |
1 change: 1 addition & 0 deletions
1
e2e_correctness/refactor_test/test_delete_and_reconnect_4/input.cyp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
CREATE (n1:Node {id: 1, name: "Node 1"})-[:CONNECTED_TO {relationship_id: 1, name: "Rel1"}]->(n2:Node {id: 2, name: "Node 2"})-[:CONNECTED_TO {relationship_id: 2, name: "Rel2"}]->(n3:Node {id: 3, name: "Node 3"})-[:CONNECTED_TO {relationship_id: 3, name: "Rel3"}]->(n4:Node {id: 4, name: "Node 4"})-[:CONNECTED_TO {relationship_id: 4, name: "Rel4"}]->(n5:Node {id: 5, name: "Node 5"}); |
7 changes: 7 additions & 0 deletions
7
e2e_correctness/refactor_test/test_delete_and_reconnect_4/test.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
memgraph_query: > | ||
MATCH p=(a:Node)-->(b:Node)-->(c:Node)-->(d:Node)-->(e:Node) | ||
WITH p, [b,d] as l CALL refactor.delete_and_reconnect(p, l, {relationshipSelectionStrategy: "merge"}) YIELD nodes, relationships RETURN nodes, relationships; | ||
neo4j_query: > | ||
MATCH p=(a:Node)-->(b:Node)-->(c:Node)-->(d:Node)-->(e:Node) | ||
WITH p, [b,d] as l CALL apoc.refactor.deleteAndReconnect(p, l, {relationshipSelectionStrategy: "merge"}) YIELD nodes, relationships RETURN nodes, relationships; |
1 change: 1 addition & 0 deletions
1
e2e_correctness/refactor_test/test_delete_and_reconnect_5/input.cyp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
CREATE (n1:Node {id: 1, name: "Node 1"})-[:CONNECTED_TO {relationship_id: 1, name: "Rel1"}]->(n2:Node {id: 2, name: "Node 2"})-[:CONNECTED_TO {relationship_id: 2, name: "Rel2"}]->(n3:Node {id: 3, name: "Node 3"})-[:CONNECTED_TO {relationship_id: 3, name: "Rel3"}]->(n4:Node {id: 4, name: "Node 4"})-[:CONNECTED_TO {relationship_id: 4, name: "Rel4"}]->(n5:Node {id: 5, name: "Node 5"}); |
7 changes: 7 additions & 0 deletions
7
e2e_correctness/refactor_test/test_delete_and_reconnect_5/test.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
memgraph_query: > | ||
MATCH p=(a:Node)-->(b:Node)-->(c:Node)-->(d:Node)-->(e:Node) | ||
WITH p, [b,d] as l CALL refactor.delete_and_reconnect(p, l, {relationshipSelectionStrategy: "merge", properties: "discard"}) YIELD nodes, relationships RETURN nodes, relationships; | ||
neo4j_query: > | ||
MATCH p=(a:Node)-->(b:Node)-->(c:Node)-->(d:Node)-->(e:Node) | ||
WITH p, [b,d] as l CALL apoc.refactor.deleteAndReconnect(p, l, {relationshipSelectionStrategy: "merge", properties: "discard"}) YIELD nodes, relationships RETURN nodes, relationships; |
1 change: 1 addition & 0 deletions
1
e2e_correctness/refactor_test/test_delete_and_reconnect_6/input.cyp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
CREATE (n1:Node {id: 1, name: "Node 1"})-[:CONNECTED_TO {relationship_id: 1, name: "Rel1"}]->(n2:Node {id: 2, name: "Node 2"})-[:CONNECTED_TO {relationship_id: 2, name: "Rel2"}]->(n3:Node {id: 3, name: "Node 3"})-[:CONNECTED_TO {relationship_id: 3, name: "Rel3"}]->(n4:Node {id: 4, name: "Node 4"})-[:CONNECTED_TO {relationship_id: 4, name: "Rel4"}]->(n5:Node {id: 5, name: "Node 5"}); |
7 changes: 7 additions & 0 deletions
7
e2e_correctness/refactor_test/test_delete_and_reconnect_6/test.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
memgraph_query: > | ||
MATCH p=(a:Node)-->(b:Node)-->(c:Node)-->(d:Node)-->(e:Node) | ||
WITH p, [b,d] as l CALL refactor.delete_and_reconnect(p, l, {relationshipSelectionStrategy: "merge", properties: "combine"}) YIELD nodes, relationships RETURN nodes, relationships; | ||
neo4j_query: > | ||
MATCH p=(a:Node)-->(b:Node)-->(c:Node)-->(d:Node)-->(e:Node) | ||
WITH p, [b,d] as l CALL apoc.refactor.deleteAndReconnect(p, l, {relationshipSelectionStrategy: "merge", properties: "combine"}) YIELD nodes, relationships RETURN nodes, relationships; |
1 change: 1 addition & 0 deletions
1
e2e_correctness/refactor_test/test_delete_and_reconnect_7/input.cyp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
CREATE (n1:Node {id: 1, name: "Node 1"})-[:CONNECTED_TO {relationship_id: 1, name: "Rel1"}]->(n2:Node {id: 2, name: "Node 2"})-[:CONNECTED_TO {relationship_id: 2, name: "Rel2"}]->(n3:Node {id: 3, name: "Node 3"})-[:CONNECTED_TO {relationship_id: 3, name: "Rel3"}]->(n4:Node {id: 4, name: "Node 4"})-[:CONNECTED_TO {relationship_id: 4, name: "Rel4"}]->(n5:Node {id: 5, name: "Node 5"}); |
7 changes: 7 additions & 0 deletions
7
e2e_correctness/refactor_test/test_delete_and_reconnect_7/test.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
memgraph_query: > | ||
MATCH p=(a:Node)-->(b:Node)-->(c:Node)-->(d:Node)-->(e:Node) | ||
WITH p, [b,d] as l CALL refactor.delete_and_reconnect(p, l, {relationshipSelectionStrategy: "merge", properties: "overwrite"}) YIELD nodes, relationships RETURN nodes, relationships; | ||
neo4j_query: > | ||
MATCH p=(a:Node)-->(b:Node)-->(c:Node)-->(d:Node)-->(e:Node) | ||
WITH p, [b,d] as l CALL apoc.refactor.deleteAndReconnect(p, l, {relationshipSelectionStrategy: "merge", properties: "overwrite"}) YIELD nodes, relationships RETURN nodes, relationships; |
Oops, something went wrong.