[Feature] 通过属性值(非主键属性)创建关系

Open
#444 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
java
Domain
data

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.

Description

feature
Search before asking
  • I had searched in the feature 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
Dominant language
Java
Stars
121
Forks
125
Avg merge
8d 14h
Merged PRs (30d)
2

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from apache/hugegraph-toolchain

All issues in apache/hugegraph-toolchain

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.