integer vs long
See original GitHub issue@GraphId is Long
why does
...RETURN ID(node) AS nodeId
return object of type Integer?
(neo4j 3.0.0 + spring-data-neo4j 4.1.1)
Issue Analytics
- State:
- Created 7 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Long vs Integer, long vs int, what to use and when?
Long is the Object form of long , and Integer is the object form of int . The long uses 64 bits. The...
Read more >Difference Between int and long - Tutorialspoint
int · It is a datatype. · It has 32-bits. · In terms of bytes, it takes up 4 bytes. · In Java,...
Read more >Difference Between int and long
The long is a larger data type than int. The difference between int and long is that int is 32 bits in width...
Read more >Difference Between Long and Int Data Types in Java
The major difference between the int or long and Integer and Long is the data types are primitive types while the wrapper classes...
Read more >Difference between long int and long long int in C/C++
Integer: The keyword used for integer data types is int. Integers typically require 4 bytes of memory space and range from -2147483648 to ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
No, Neo4j uses a long for id.
Neo.ClientError.Statement.TypeError
is produced by Neo4j and not SDN so it would be helpful to have your query and small dataset. Looks like a Neo4j issue at this point.As for
row.get("id")
being Integer, that is possible because the result only knows that you’ve returned a numeric value for column “id”. There is no other data type information available. So smaller numbers will appear as integers. You can do a longValue() on that.Closing this issue as it is not an OGM issue. @CrazyChris75 if you can reproduce this Neo.ClientError.Statement.TypeError directly in Neo4j, please log an issue with Neo4j, thanks.