Numerical values of float type without decimals appear to be automatically converter to integer during export.
Apart of the undesired type change, this will additionally cause failure when trying to import large values.
Reproducible
CREATE (x:Test {x:1000000000000000000000000.0})
MATCH (x:Test) RETURN x.x
> 1e+24.0
MATCH (x:Test) RETURN apoc.meta.type(x.x)
> "FLOAT"
CALL apoc.export.cypher.all("test.cypher")
Expected Behavior (Mandatory)
UNWIND [{_id:0, properties:{x:1000000000000000000000000.0}}] AS row
CREATE (n:`UNIQUE IMPORT LABEL`{`UNIQUE IMPORT ID`: row._id}) SET n += row.properties SET n:Test;
(Expected .0)
Actual Behavior (Mandatory)
UNWIND [{_id:0, properties:{x:1000000000000000000000000}}] AS row
CREATE (n:`UNIQUE IMPORT LABEL`{`UNIQUE IMPORT ID`: row._id}) SET n += row.properties SET n:Test;
Float type not respected in export
Numerical values of float type without decimals appear to be automatically converter to integer during export. Apart of the undesired type change, this will additionally cause failure when trying to import large values.
Reproducible
Expected Behavior (Mandatory)
(Expected .0)
Actual Behavior (Mandatory)
(Missing .0)
Versions
Test 1
Test 2