Neo4j中的64位整数 [英] 64 Bit Integers in Neo4j
问题描述
我在Neo4j文档中读到了几处建议Neo4j支持64位整数的地方.所以我很难理解为什么我要获取大整数属性的舍入值.例如:
I read several places in the Neo4j documents that suggest Neo4j supports 64bit integers. So I'm having trouble understanding why I'm getting rounded values for large integer properties. For example:
CREATE (t:Test {id:9223372036854775807}) return t
导致:
{"id":9223372036854776000
{ "id": 9223372036854776000
我同时使用Python 3 Bolt驱动程序和社区版本3.2.2的Web控制台.
I'm using both the Python 3 Bolt driver and the web console with community version 3.2.2.
这是怎么回事?所以我需要做一些特殊的事情来保存大整数吗?
What's going on? So I need to do something special to save large ints?
推荐答案
Neo4j在后台使用64位加长和加倍.我们确实有一个错误会影响浏览器在3.2.1和3.2.2版本中显示的一些长值,但是您应该在python螺栓驱动程序上看到正确的值.
Neo4j uses 64-bit longs and doubles under the hood. We do have a bug affecting browser display of some long values in versions 3.2.1 and 3.2.2, but you should be seeing correct values on the python bolt driver.
也影响3.2.3.
3.2.4被撤消,因此请忽略一个已确认已针对3.2.5修复的问题.
3.2.4 was pulled, so ignore that one...confirmed fixed for 3.2.5.
这篇关于Neo4j中的64位整数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!