Neo4j 加载 CSV 错误大量
Neo4j Load CSV Errors Galore
我已经尝试了以下所有变体,并梳理并尝试了为此处发布的类似问题提供的许多解决方案。
我试试:
LOAD CSV WITH HEADERS
FROM "file:///C:/neo/coordinates.csv"
AS Line
CREATE (c:Church {id: toInteger(Line.id), name: Line.name, address: toInteger(Line.address), city: line.city, state: toInteger(Line.state) long: toInteger(Line.long), lat: toInteger(Line.lat), g: toInteger(Line.g)})
并得到这样的错误 -
Neo.ClientError.Statement.SyntaxError: Invalid input 'l': expected whitespace, comment, '.', node labels, '[', "=~", IN, STARTS, ENDS, CONTAINS, IS, '^', '*', '/', '%', '+', '-', '=', '~', "<>", "!=", '<', '>', "<=", ">=", AND, XOR, OR, ',' or '}' (line 4, column 140 (offset: 209))
帮忙?我对此很陌生。哦,我在 windows 10。谢谢!
在 属性 长之前添加一个逗号 (,)。
这部分:
state: toInteger(Line.state) , long: toInteger(Line.long)
此外,将 line 更改为 Line
city: line.city
我在此处添加带有更正的查询:
LOAD CSV WITH HEADERS
FROM "file:///C:/neo/coordinates.csv"
AS Line
CREATE (c:Church {id: toInteger(Line.id), name: Line.name, address: toInteger(Line.address), city: Line.city, state: toInteger(Line.state), long: toInteger(Line.long), lat: toInteger(Line.lat), g: toInteger(Line.g)})
我已经尝试了以下所有变体,并梳理并尝试了为此处发布的类似问题提供的许多解决方案。 我试试:
LOAD CSV WITH HEADERS
FROM "file:///C:/neo/coordinates.csv"
AS Line
CREATE (c:Church {id: toInteger(Line.id), name: Line.name, address: toInteger(Line.address), city: line.city, state: toInteger(Line.state) long: toInteger(Line.long), lat: toInteger(Line.lat), g: toInteger(Line.g)})
并得到这样的错误 -
Neo.ClientError.Statement.SyntaxError: Invalid input 'l': expected whitespace, comment, '.', node labels, '[', "=~", IN, STARTS, ENDS, CONTAINS, IS, '^', '*', '/', '%', '+', '-', '=', '~', "<>", "!=", '<', '>', "<=", ">=", AND, XOR, OR, ',' or '}' (line 4, column 140 (offset: 209))
帮忙?我对此很陌生。哦,我在 windows 10。谢谢!
在 属性 长之前添加一个逗号 (,)。
这部分:
state: toInteger(Line.state) , long: toInteger(Line.long)
此外,将 line 更改为 Line
city: line.city
我在此处添加带有更正的查询:
LOAD CSV WITH HEADERS
FROM "file:///C:/neo/coordinates.csv"
AS Line
CREATE (c:Church {id: toInteger(Line.id), name: Line.name, address: toInteger(Line.address), city: Line.city, state: toInteger(Line.state), long: toInteger(Line.long), lat: toInteger(Line.lat), g: toInteger(Line.g)})