apache / incubator-hugegraph

A graph database that supports more than 100+ billion data, high performance and scalability (Include OLTP Engine & REST-API & Backends)
https://hugegraph.apache.org
Apache License 2.0
2.63k stars 517 forks source link

[Bug] 使用Loader仅导入关系,出现主键是否为空 #1986

Open turkeymz opened 1 year ago

turkeymz commented 1 year ago

Bug Type (问题类型)

other exception / error (其他异常报错)

Before submit

Environment (环境信息)

Expected & Actual behavior (期望与实际表现)

使用HugeGraph-Loader仅导入边的时候,出现主主键为空。 可以保证双方每一个主键都存在值,且创建关系的两边节点均未使用主键的字段作为关联。 作为关联的字段均存在值且能作为限制语句在图数据库中能找到对应的节点。 压缩包存在4个任务的配置文件,以及Loader对任务的导入日志

我创建的案例的配置文件如下:

下面是创建基础节点和边的任务(正常) 1580735006019420162 1580735404365053954 1580735812122705922 下面是基于上述3个任务仅创建边的任务(异常) 1580735987054542849

task.zip

Vertex/Edge example (问题点 / 边数据举例)

No response

Schema [VertexLabel, EdgeLabel, IndexLabel] (元数据结构)

No response

javeme commented 1 year ago

描述信息看起来不是很明白,报错信息是否可以提供一下?

turkeymz commented 1 year ago

描述信息看起来不是很明白,报错信息是否可以提供一下? 全部都是类似这样的错误。经过测试,关联时必须要用主键关联。不过显示情况下,主键和外键不一定是同一个字段。

PARSE ERROR: Make sure the the primary key fields [BUSINESS_ID] are not empty, or check whether the headers or field_mapping are configured correctly

{"source_name": "4139b0ec-eb75-44b1-8e71-f6d00c370c9e", "target_name": "2edec9dd-0160-1000-e009-8a3c0a0d0114"}