在neo4j中导入csv时是什么导致ArrayIndexOutOfBoundsException?

时间:2021-06-29 13:55:27

标签: neo4j neo4j-apoc

我想从 twitter 导入带有推文的 csv 表。但我收到错误消息:

<块引用>

无法调用过程 apoc.load.csv:引起:java.lang.ArrayIndexOutOfBoundsException:索引 4 超出长度 4 的边界

我的代码是:

CALL apoc.load.csv("conversations_until_2021_06_18.tsv", {
  sep: "TAB",
  arraySep: ",",
  skip: 100000,
  mapping: {
    hashtags: {array: true},
    mentions: {array: true},
    ref_id: {array: true},
    reply_count: {type: "int"},
    retweet_count: {type: "int"},
    quote_count: {type: "int"},
    like_count: {type: "int"}
    }
  }
)
YIELD map AS tweet
CREATE (t:Tweet)
SET t = tweet

如果您遇到更严重的问题,请提供以下信息:

我使用的是 Neo4j v4.3.1,桌面 v1.4.5

示例:

comment_type    conversatoin_id text    author_id   tweet_id    ref_type    ref_id  in_reply_to_user_id created_at  mentions    url hashtags    like_count  quote_count reply_count retweet_count   reply_settings
side    1234  @url https://t.co/...   345  5678  replied_to 564465   4566   2021-04-28T15:55:42.000Z    ABaerbock, ArminLaschet https://twitter.com/...     NaN 0   0   0   0   everyone

我的一个文件工作正常,但第二个文件产生此错误。根据这个 this 问题,文件中的一行有问题。但是如何找到那条线呢?我不知道长度为 4 的数组在哪里。

0 个答案:

没有答案
相关问题