Thespica commented on issue #2749:
URL:
https://github.com/apache/incubator-hugegraph/issues/2749#issuecomment-2777873907
`struct.jso`n 中 `edges` 的映射有点问题,需要把表中的`jykh`和`dskh`映射到`cardNumber`,因此
1. 前两个字段需要select上(或者干脆不填select,但不能忽略了);
2. 再添加两个映射。
下面的`struct.json`供参考 : )
```json
{
"version": "2.0",
"structs": [
{
"id": "1",
"skip": false,
"input": {
"type": "FILE",
"path": "/loader/dataset/transaction_data.csv",
"format": "CSV",
"delimiter": ",",
"date_format": "yyyy-MM-dd HH:mm:ss",
"time_zone": "GMT+8",
"skipped_line": {
"regex": "(^#|^//).*|"
},
"compression": "NONE",
"header": [
"jykh",
"jyhm",
"jyje",
"jysj",
"dskh",
"dshm",
"ukey"
],
"charset": "UTF-8"
},
"vertices": [
{
"label": "card",
"skip": false,
"field_mapping": {
"jykh": "cardNumber",
"jyhm": "holderName"
},
"selected": [
"jykh",
"jyhm"
],
"null_values": [
"NULL",
"null",
""
]
},
{
"label": "card",
"skip": false,
"field_mapping": {
"dskh": "cardNumber",
"dshm": "holderName"
},
"selected": [
"dskh",
"dshm"
],
"null_values": [
"NULL",
"null",
""
]
}
],
"edges": [
{
"label": "transaction",
"skip": false,
"source": [
"jykh"
],
"target": [
"dskh"
],
"field_mapping": {
"jykh": "cardNumber",
"dskh": "cardNumber",
"jyje": "amount",
"jysj": "transTime",
"ukey": "ukey"
},
"selected": [
"jykh",
"dskh",
"jyje",
"jysj",
"ukey"
],
"null_values": [
"NULL",
"null",
""
]
}
]
}
]
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]