Lack of certain Neo4j scalar functions

101 views Asked by At

Using Neo4j 3.2.0 community edition.

Properties types in Neo4j ought to match the Java primitives. Why are there only scalar functions for integer (i.e. toInteger) and float? When importing (LOAD CSV) it would be useful to do string conversion into bytes, shorts and doubles rather than specifying types in the header. APOC doesn't have any scalar functions for these types either. Would have expected these since there is a big memory difference between number types. Any technical reason or workaround (i.e. to convert string to byte|short|double under load CSV?

Also, the import tool allows for all the number types in the header metadata.

1

There are 1 answers

2
Tom Geudens On

Not sure what you mean exactly with property types ought to match Java primitives. As far as I know there are no obligations to do anything when you write a software.

You can find the types Neo4j has and how they map to the different languages in this document : https://neo4j.com/docs/developer-manual/current/drivers/cypher-values/.

Hope this helps.

Regards, Tom