Neo4j 中的 64 位整数 [英] 64 Bit Integers in Neo4j

查看:11
本文介绍了Neo4j 中的 64 位整数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我阅读了 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 的网络控制台.

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 位 long 和 double.在 3.2.1 和 3.2.2 版本中,我们确实有一个影响浏览器显示某些长值的错误,但您应该会在 python bolt 驱动程序上看到正确的值.

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆