When calling the following using gds
1.1 and neo4j
3.5.14:
CALL gds.graph.create.cypher(
'project_name',
'MATCH (p:Project{name:"project_name"})-[:HAS]->(s:Surface) where s.stable <> 0 return id(s) as id',
'MATCH (p:Project{name:"project_name"})-[:HAS]->(s:Surface)-[c:CONFIDENCE]->(t:Surface) WHERE c.confidence <= 15.0 RETURN id(s) as source, id(t) as target'
)
YIELD graphName, nodeCount, relationshipCount, createMillis;
I get the error:
Neo.ClientError.Procedure.ProcedureCallFailed
Failed to invoke procedure `gds.graph.create.cypher`: Caused by: java.lang.IndexOutOfBoundsException: index 243
Also the same error for a similar call when using algo
3.5.14:
MATCH (p:Project {name: 'project_name'})-[:HAS_START]->(start:Surface)
CALL algo.dfs.stream(
'MATCH (p:Project{name:"project_name"})-[:HAS]->(s:Surface) where s.stable <> 0 return id(s) as id',
'MATCH (p:Project{name:"project_name"})-[:HAS]->(s:Surface)-[c:CONFIDENCE]->(t:Surface) WHERE c.confidence <= 15.0 RETURN id(s) as source, id(t) as target',
'>',
id(start),
{
graph: 'cypher'
}
)
YIELD nodeIds
With the error:
Failed to invoke procedure `algo.dfs.stream`: Caused by: java.lang.IndexOutOfBoundsException: index 243
What is wrong here? Each of the MATCH
queries works fine outside of the algo
or gds
call, and this calls work for some projects and not others.