我正在Neo4j中导入csv文件,代码如下:
LOAD CSV WITH HEADERS FROM "file:///datafile.csv" AS row
MERGE (u:User {id: toInt(row[0])})
MERGE (t:Team {id: toInt(row[1])})
MERGE (c:TeamChatSession {id: toInt(row[2])})
MERGE (u)-[:CreatesSession{timeStamp: row[3]}]->(c)
MERGE (c)-[:OwnedBy{timeStamp: row[3]}]->(t)
我得到了这个错误:
Neo.ClientError.Statement.TypeError: Expected Long(0) to be a
org.neo4j.values.storable.TextValue, but it was a
org.neo4j.values.storable.LongValue
下面是我正在导入的文件的概述。
1588,177,6776,1464233999.0
350,188,6777,1464234000.0
1588,177,6776,1464233999.0
350,188,6777,1464234000.0
740,81,6778,1464234001.0
1068,66,6779,1464234002.0
1554,52,6780,1464234003.0
请帮忙。