vesoft-inc / nebula-graph

A distributed, fast open-source graph database featuring horizontal scalability and high availability. This is an archived repo for v2.5 only, from 2.6.0 +, NebulaGraph switched back to https://github.com/vesoft-inc/nebula

Home Page:https://nebula-graph.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

2.0.1 toInteger has a bug

zhilinglike opened this issue · comments

NebulaGraph 2.0.1

"-9223372036854775807" and "-9223372036854775808" toInteger all is -9223372036854775808 ,, Why?

(root@nebula) [t1]> return toInteger("-9223372036854775808")
+-----------------------------------+
| toInteger("-9223372036854775808") |
+-----------------------------------+
| -9223372036854775808              |
+-----------------------------------+
Got 1 rows (time spent 173/536 us)

Sat, 24 Jul 2021 16:53:07 CST

(root@nebula) [t1]> 
(root@nebula) [t1]> 
(root@nebula) [t1]> 
(root@nebula) [t1]> return toInteger("-9223372036854775807")
+-----------------------------------+
| toInteger("-9223372036854775807") |
+-----------------------------------+
| -9223372036854775808              |
+-----------------------------------+
Got 1 rows (time spent 153/453 us)

Sat, 24 Jul 2021 16:53:12 CST