首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >Cypher联合查询

Cypher联合查询
EN

Stack Overflow用户
提问于 2013-04-15 15:06:10
回答 1查看 2K关注 0票数 2

我有一个简单的图表:

http://console.neo4j.org/?id=v0cvwn

我想知道为什么会有以下问题:

代码语言:javascript
运行
复制
 START n=node(2) 
 match n-[:KNOWS]-node 
 return node.name as name 
 UNION 
 START n=node(2) 
 match n-[:ACTS_IN]-node 
 return node.name as name

抛出异常:

代码语言:javascript
运行
复制
java.lang.AssertionError: assertion failed: Can't profile the same pipe twice
at scala.Predef$.assert(Predef.scala:179)
at org.neo4j.cypher.internal.profiler.Profiler.decorate(Profiler.scala:47)
at org.neo4j.cypher.internal.pipes.Pipe$class.createResults(Pipe.scala:35)
at org.neo4j.cypher.internal.pipes.NullPipe$.createResults(Pipe.scala:47)
at org.neo4j.cypher.internal.pipes.PipeWithSource.createResults(Pipe.scala:61)
at org.neo4j.cypher.internal.pipes.PipeWithSource.createResults(Pipe.scala:61)
at org.neo4j.cypher.internal.pipes.PipeWithSource.createResults(Pipe.scala:61)
at org.neo4j.cypher.internal.pipes.UnionIterator.loadNextIterator$1(UnionIterator.scala:60)
at org.neo4j.cypher.internal.pipes.UnionIterator.step$1(UnionIterator.scala:68)
at org.neo4j.cypher.internal.pipes.UnionIterator.stepIfNeccessary(UnionIterato

关于联合的几个问题:

是否可以对结果集中的所有数据执行另一个最后匹配子句,这些数据是UNION在以前的子查询中积累的结果?

是否有可能根据这些数据执行订单?

谢谢。

EN

回答 1

Stack Overflow用户

发布于 2013-04-19 16:26:35

根据这些github注释,UNION只支持2.0或更高版本。

https://github.com/neo4j/neo4j/issues/125

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/16018607

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档