在 Neo4j 2.0(社区)上,当我转储包含一些具有 Double 类型属性的节点的数据库时,我获得一个具有科学记数法值的文件: ex 1.43524185E8
导入此文件时,neo4j-shell 失败并出现以下错误:
Invalid input 'E': expected Digit, whitespace, '.', node labels, '[', "=~", IN, IS, '*', '/', '%', '^', '+', '-', '<', '>', "<=", ">=", '=', "<>", "!=", AND, XOR, OR, ',' or '}' (line 167, column 153)
"create (_30015:`organization`:`fr` {`capital`:1.43524185E8, })"
^
at org.neo4j.cypher.internal.compiler.v2_0.parser.CypherParser$$anonfun$parse$1.apply(CypherParser.scala:53)
at org.neo4j.cypher.internal.compiler.v2_0.parser.CypherParser$$anonfun$parse$1.apply(CypherParser.scala:43)
看来 Double 类型没有正确解析。
用于转储数据库的命令:
$ neo4j-shell -c "dump" > ito3.graph
用于导入它们的命令(在空的 graph.db 中):
$ neo4j-shell -file ito3.graph
受影响属性的详细信息:
neo4j-sh (__value_deleted__,30015)$ ls -v
...
*capital =[1.43524185E8] (double)
...