Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Number type storage error. What is the maximum length of the integer? #681

Closed
gkorland opened this issue May 15, 2024 · 2 comments
Closed
Labels
question Further information is requested

Comments

@gkorland
Copy link
Contributor

Source: RedisGraph/RedisGraph#3230

GRAPH.QUERY "asset" "return toInteger('17904604414841528')"

1) 1) "toInteger('17904604414841528')"
2) 1) 1) "17904604414841528"

Modules

module:name=graph,ver=20821,api=1,filters=0,usedby=[],using=[],options=[]

@gkorland gkorland added the question Further information is requested label May 15, 2024
@swilly22
Copy link
Contributor

127.0.0.1:6379> GRAPH.QUERY "asset" "return toInteger('17904604414841528')"
1) 1) "toInteger('17904604414841528')"
2) 1) 1) (integer) 17904604414841528
3) 1) "Cached execution: 0"
   2) "Query internal execution time: 0.456500 milliseconds"

In FalkorDB an integer is 64bit. So the max value is 9,223,372,036,854,775,807.

@zhangliang-zl
Copy link

Sorry, there is an issue with my example. Please take a look at the example here

GRAPH.QUERY "asset" "return toInteger('1790460441484152222')"

1) 1) "toInteger('1790460441484152222')"
2) 1) 1) "1790460441484152300"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants