Hi everyone,
Am trying to rename a few thousand relationship types using apoc.refactor.rename.type but keep getting error and am wondering whether this is a bug but wanted to check here first before posting to Github.
This is the query am running ...
MATCH ()-[r:LABELED_AS]->()
WITH collect(r) AS relationships
CALL apoc.refactor.rename.type('LABELED_AS', 'TAGGED_AS', relationships)
YIELD errorMessages AS eMessages
RETURN eMessages
Which keeps producing following error ...
Neo.ClientError.Procedure.ProcedureCallFailed: Failed to invoke procedure `apoc.refactor.rename.type`: Caused by: java.lang.AssertionError: assertion failed
I did a bit of research but only found the following post which was about apoc.refactor.rename.label but it sounds similar so am now wondering if this is related ...
I ran EXPLAIN, see below, and also tried to run PROFILE but getting same error there.
I also tried to run this as apoc.periodic.iterate but then Neo4j desktop simply crashes ...
CALL apoc.periodic.iterate("MATCH ()-[r:LABELED_AS]->() RETURN r", "CALL apoc.refactor.rename.type('LABELED_AS', 'TAGGED_AS', r) YIELD errorMessages AS eMessages RETURN eMessages", {batchSize:1000, parallel:true})
I also tried to narrow down the MATCH phrase using below but same outcome ...
MATCH (n:Project)-[r:LABELED_AS]->()
Am running Neo4j 3.4.10 on Google Compute Engine with 4 vCPUs, 32 GB memory
Any ideas anyone? What am I doing wrong or is this a bug?