我正试图导入'|'将csv文件分隔成neo4j并返回下面提到的错误。 “试图读取一个大于缓冲区大小2097152的字段。一个常见的原因是字段有一个未终止的引用,因此将尝试搜索直到下一个引用,它可能会打开。这不应该发生在多个如果字段不包含换行符,则禁用行字段。此字段从C:\ Users \ 10077 \ Documents \ Neo4j \ default.graphdb \ import \ customer.csv:0开始“请帮我修复此字段....
答案 0 :(得分:0)
以下内容肯定有效:
USING PERIODIC COMMIT
LOAD CSV WITH HEADERS FROM "file:///orders.csv" AS row FIELDTERMINATOR ','
CREATE (:ORDERS {OORDERKEY : row.O_ORDERKEY , OCUSTKEY: row.O_CUSTKEY, OORDERSTATUS: row.O_ORDERSTATUS,OTOTALPRICE: row.O_TOTALPRICE, OORDERDATE: row.O_ORDERDATE, OORDERPRIORITY: row.O_ORDERPRIORITY,OCLERK: row.O_CLERK, OSHIPPRIORITY: row.O_SHIPPRIORITY,OCOMMENT: row.O_COMMENT});
有了这些数据:
O_ORDERKEY,O_CUSTKEY,O_ORDERSTATUS,O_TOTALPRICE,O_ORDERDATE,O_ORDERPRIORITY,O_CLERK,O_SHIPPRIORITY,O_COMMENT
1,36901,O,173665.47,02-01-1996,5-LOW,Clerk#000000951,0,nstructions sleep furiously among
2,78002,O,46929.18,01-12-1996,1-URGENT,Clerk#000000880,0, foxes. pending accounts at the pending silent asymptot
3,123314,F,193846.25,14-10-1993,5-LOW,Clerk#000000955,0,sly final accounts boost. carefully regular ideas cajole carefully. depos
4,136777,O,32151.78,11-10-1995,5-LOW,Clerk#000000124,0,sits. slyly regular warthogs cajole. regular regular theodolites acro
你能检查你的行尾字符吗?
希望这有帮助,
此致 汤姆