我是一个有用的助手,可以为您翻译文本。
我遇到了neo4j引擎非常奇怪的行为。
假设我们有一个带有日期和日期时间类型属性的节点:
merge (n:Item {date: date("2019-10-21"), datetime: datetime("2019-10-21") } )
return n
这些查询运行良好:
match (n:Item)
where n.date>=date("2019-10-20")
return n
match (n:Item)
where n.datetime>=datetime("2019-10-20")
return n
当我尝试比较日期和日期时间(或日期时间和日期)时,空数据集会返回:
match (n:Item)
where n.date>=datetime("2019-10-20")
return n
match (n:Item)
where n.datetime>=date("2019-10-20")
return n
Neo4j版本为3.5.11。