每次提取文件时,我都会不断收到此错误:
SEVER {db=wos1} input type not supported:: class java.lang.Integer [OETLOrientDBLoader]
这是我正在使用的数据文件的预览(试图将CSV文件提取到图形中)。我只是想获取id,wos_id:string,pubyear和issn:string,但是它一直在给我上面的错误。
id,wos_id,pubyear,issn
0,WOS:A1971I866700004,1971,0010-4817
1,WOS:A1971L278700007,1971,0022-0418
2,WOS:A1971I418100006,1971,0011-6963
我不明白为什么它会返回这样的错误?这是错误吗?
这是json
{
"source":
{
"file":
{
"path": "/Users/anantm/onedrive/docanant/work/KL/orientdb/wos_testing/wosid_publications.csv"
}
},
"extractor":
{
"csv": {
"columns": ["id:long", "wos_id:string", "pubyear:long", "issn:string"],
"columnsOnFirstLine": true
}
},
"transformers":
[
{
"command":
{
"command": "UPDATE Publication set wos_id='${input.wos_id}' UPSERT WHERE wos_id='${input.wos_id}'"
}
},
{
"field":
{
"fieldNames": ["id", "not_imp", "wos_id"],
"operation": "remove"
}
}
],
"loader":
{
"orientdb":
{
"dbAutoDropIfExists": true,
"dbURL": "plocal:../databases/wos1",
"dbType": "graph",
"classes":
[
{"name": "Publication", "extends": "V"}
],
"indexes":
[
{
"class":"Publication",
"fields":
[
"wos_id:string"
],
"type":"UNIQUE"
}
]
}
}
}