cancel
Showing results for 
Search instead for 
Did you mean: 

apoc.refactor.cloneNodes withRelationships = true - hangs and does not complete call

mark-sts
Node

With APOC 4.4.0.6 does anybody experience hanging of the call when using cloneNodes with relationships, as per the following simple example.  Or am I doing something wrong?

// Query 1
CREATE (a:Person {name: "Mark", city: "London"})
CREATE (b:Person {name: "Dan", city: "Hull"})
CREATE (a)-[r:FRIENDS_WITH]->(b)
RETURN a,b

// Query 2
MATCH (p:Person)
WITH collect(p) AS people
CALL apoc.refactor.cloneNodes(people, true)
YIELD input, output
RETURN input, output;

I raised an issue, if it helps
https://github.com/neo4j-contrib/neo4j-apoc-procedures/issues/3000

1 ACCEPTED SOLUTION

giuseppe_villan
Graph Fellow

@mark-sts @dcsts 

It's a regression introduced with the latest version.

I just created a pr to fix it https://github.com/neo4j-contrib/neo4j-apoc-procedures/pull/3005

View solution in original post

3 REPLIES 3

dcsts
Node

I am also experiencing this issue using this APOC 4.4.0.6.

My queries worked fine when on APOC 4.4.0.3, but now hang as described above

giuseppe_villan
Graph Fellow

@mark-sts @dcsts 

It's a regression introduced with the latest version.

I just created a pr to fix it https://github.com/neo4j-contrib/neo4j-apoc-procedures/pull/3005

mark-sts
Node

Thank you! 😀