neo4j - Cypher Invalid Query with IN operator results in CypherTypeException but Java driver swallows it -
this on cypher 1.8.2
i have following query works ok:
start person=node:personsindex('*:*')  person.name in ['peter', 'michael']  return  person;   when run in java, with:
import org.neo4j.cypher.javacompat.executionengine; import org.neo4j.cypher.javacompat.executionresult; .... executionengine engine... executionresult result = this.engine.execute(query);   provided have data in graph, results:
assertequals("columns :", 1, result.columns().size()); iterator<node> personnodes = result.columnas("person"); asserttrue("should have results", personnodes.hasnext())   if query becomes:
start person=node:personsindex('*:*')  person.name in 'peter' // know should not return  person;   i following exception on shell, good:
cyphertypeexception: literal expected of type collection of type string   but when run in java, exception swallowed , columnset back, no data:
executionresult result = this.engine.execute(query);  assertequals("columns :", 1, result.columns().size()); iterator<node> personnodes = result.columnas("person"); assertfalse("no results", personnodes.hasnext())   is expected behaviour?
 
 
Comments
Post a Comment