apache / apache/hugegraph-toolchain
[Feature] 通过属性值(非主键属性)创建关系
- Dominant language
- Java
- Stars
- 121
- Forks
- 125
- Avg merge
- 10d 10h
- Merged PRs (30d)
- 3
Description
### Search before asking
- [X] I had searched in the [feature](https://github.com/apache/incubator-hugegraph-toolchain/issues?q=is%3Aissue+label%3A%22Feature%22) and found no similar feature requirement.
### Feature Description (功能描述)
使用loader时,通过属性值(非主键属性)来创建关系会报
#### PARSE ERROR: Make sure the the primary key fields [id] are not empty, or check whether the headers or field_mapping are configured correctly
也就是说,loader必须使用主键关联来创建属性。所以希望添加标题的功能。
毕竟更多的场景,就是mysql中一张关联关系表,通过非主键id做的。这时候就无法快速导入
### Are you willing to submit a PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by tracing the loader path that reports the missing primary-key fields and review how headers and field_mapping are used for relationship creation. Done should mean relationships can be imported using non-primary-key property values, including the described MySQL association-table scenario, without the current parse error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- data
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100