question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

@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:closed
  • Created 7 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
luannecommented, May 4, 2016

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.

0reactions
luannecommented, May 12, 2016

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found