RuntimeException with MATCH and IN operator #390

Closed
jexp opened this Issue Dec 26, 2012 · 0 comments

Projects

None yet

2 participants

@jexp
Neo4j member
START n = node(0) 
MATCH n-->me 
WHERE me.name IN ['Neo'] 
RETURN me.name

see:

http://console.neo4j.org/r/52dbcy

works without the MATCH also works when adding has(me.name)

 Caused by: java.lang.RuntimeException
   at org.neo4j.cypher.internal.pipes.matching.MiniMap.newWith(ExpanderStep.scala:167)
   at org.neo4j.cypher.internal.pipes.matching.MiniMap.newWith(ExpanderStep.scala:150)
   at org.neo4j.cypher.internal.commands.InCollection$$anonfun$isMatch$1.apply(InCollection.scala:38)
   at scala.collection.Iterator$$anon$19.hasNext(Iterator.scala:334)
   at org.neo4j.cypher.internal.pipes.matching.FilteringIterable$FilteringIterator.spoolToNextInLine(FilteringIterable.scala:55)
   at org.neo4j.cypher.internal.commands.And.isMatch(Predicate.scala:78)
   at scala.collection.immutable.List.exists(List.scala:45)
   at org.neo4j.cypher.internal.ClosingIterator.hasNext(ClosingIterator.scala:35)
   at scala.collection.Iterator$class.foreach(Iterator.scala:660)
   at scala.collection.LinearSeqOptimized$class.exists(LinearSeqOptimized.scala:79)
   at scala.collection.JavaConversions$IterableWrapperTrait$class.iterator(JavaConversions.scala:557)
   at org.neo4j.cypher.internal.commands.AnyInCollection$$anonfun$seqMethod$2.apply(InCollection.scala:72)
   at scala.collection.JavaConversions$IterableWrapper.iterator(JavaConversions.scala:583)
   at org.neo4j.cypher.internal.commands.AnyInCollection$$anonfun$seqMethod$2.apply(InCollection.scala:72)
   at scala.collection.JavaConversions$IterableWrapper.iterator(JavaConversions.scala:583)
   at org.neo4j.cypher.internal.ClosingIterator.foreach(ClosingIterator.scala:31)
   at scala.collection.generic.Growable$class.$plus$plus$eq(Growable.scala:48)
   at scala.collection.mutable.ListBuffer.$plus$plus$eq(ListBuffer.scala:128)
   at scala.collection.Iterator$$anon$21.hasNext(Iterator.scala:371)
   at org.neo4j.helpers.collection.PrefetchingIterator.hasNext(PrefetchingIterator.java:55)
   at scala.collection.Iterator$$anon$22.hasNext(Iterator.scala:388)
   at org.neo4j.kernel.impl.traversal.AsOneStartBranch.next(AsOneStartBranch.java:100)
   at org.neo4j.kernel.PreorderDepthFirstSelector.next(PreorderDepthFirstSelector.java:52)
   at org.neo4j.kernel.impl.traversal.TraverserIterator.fetchNextOrNull(TraverserIterator.java:65)
   at org.neo4j.cypher.internal.ClosingIterator$$anonfun$hasNext$1.apply$mcZ$sp(ClosingIterator.scala:36)
   at scala.collection.TraversableOnce$class.toList(TraversableOnce.scala:242)
   at org.neo4j.kernel.impl.traversal.TraversalBranchWithState.expandRelationshipsWithoutChecks(TraversalBranchWithState.java:70)
   at org.neo4j.cypher.internal.pipes.matching.FilteringIterable$FilteringIterator.<init>(FilteringIterable.scala:34)
   at org.neo4j.kernel.impl.traversal.TraversalBranchImpl.expandRelationships(TraversalBranchImpl.java:104)
   at org.neo4j.cypher.internal.ClosingIterator$$anonfun$hasNext$1.apply(ClosingIterator.scala:35)
   at org.neo4j.cypher.internal.commands.InCollection.isMatch(InCollection.scala:38)
   at java.lang.reflect.Method.invoke(Method.java:616)
   at org.neo4j.community.console.CypherQueryExecutor.createTimedResults(CypherQueryExecutor.java:202)
   at org.neo4j.kernel.impl.traversal.StartNodeTraversalBranch.next(StartNodeTraversalBranch.java:47)
   at org.neo4j.cypher.internal.ClosingIterator$$anonfun$hasNext$1.apply(ClosingIterator.scala:35)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at org.neo4j.cypher.internal.pipes.matching.FilteringIterable.iterator(FilteringIterable.scala:27)
   at org.neo4j.cypher.internal.pipes.matching.FilteringIterable.iterator(FilteringIterable.scala:72)
   at org.neo4j.kernel.impl.traversal.TraverserIterator.fetchNextOrNull(TraverserIterator.java:34)
 2012-12-26 22:44:57,801 DEBUG - MatcherFilter              - Time for request: 44
   at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
   at org.neo4j.cypher.internal.ClosingIterator.toList(ClosingIterator.scala:31)
   at scala.collection.JavaConversions$JIteratorWrapper.hasNext(JavaConversions.scala:574)
   at scala.collection.Iterator$$anon$21.hasNext(Iterator.scala:371)
   at scala.collection.Iterator$$anon$19.hasNext(Iterator.scala:334)
   at org.neo4j.cypher.PipeExecutionResult.createTimedResults(PipeExecutionResult.scala:73)
   at org.neo4j.cypher.internal.ClosingIterator.failIfThrows(ClosingIterator.scala:87)
@systay systay added a commit to systay/neo4j that referenced this issue Jan 7, 2013
@systay systay Fixes #390 - IN/ANY/NONE/ANY/SINGLE causes RuntimeException for some …
…patterns
183ba17
@systay systay closed this in 99211a5 Jan 7, 2013
@systay systay added a commit that referenced this issue Jan 8, 2013
@systay systay This is a backport of several bug fixes:
 o Clearer error message for when aggregations are used in ORDER BY and not in RETURN
 o Fixes #390 - IN/ANY/NONE/ANY/SINGLE causes RuntimeException for some patterns
 o Fixes #394 - Identifiers inside of FOREACH get the wrong type
f26e970
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment