【发布时间】:2020-05-07 02:37:08
【问题描述】:
neo4j 4中无法索引列表参数。每当您尝试从列表类型的参数中获取元素时,都会抛出此错误:
Neo.DatabaseError.General.UnknownError
Did not find any type information for expression ContainerIndex(Parameter(r,Any),SignedDecimalIntegerLiteral(0))
Neo4j 版本:4.0.3
操作系统:Ubuntu 18.04.3 LTS
数据库模式:因果集群
重现问题的示例查询是:
MATCH (user:User)
WHERE ($range[0] > user.id OR user.id > $range[1])
return user
limit 1
$range 是有问题的参数,具有示例值[100, 200]
在之前的 neo4j 版本 3.5 中不会发生此错误,因为我们目前正在迁移到 neo4j 4。它发生在 neo4j 浏览器中,并通过驱动程序发生。我目前使用python驱动1.7.6
【问题讨论】: