Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

loader 不支持 AUTOMATIC id strategy? #127

Closed
chencjiajy opened this issue Jan 13, 2020 · 1 comment
Closed

loader 不支持 AUTOMATIC id strategy? #127

chencjiajy opened this issue Jan 13, 2020 · 1 comment

Comments

@chencjiajy
Copy link

文档中没有明确说明hugegraph loader 不支持AUTOMATIC Id 策略,但是当设计schema时,如果不指定顶点Id策略(默认为AUTOMATIC Id 策略), 会报如下错误:

vertices has been loaded : 3279
ERROR: Failed to load
Exception in thread "main" java.lang.IllegalArgumentException: Unsupported AUTOMATIC id strategy for hugegraph-loader
at com.baidu.hugegraph.loader.builder.VertexBuilder.checkIdField(VertexBuilder.java:134)
at com.baidu.hugegraph.loader.builder.VertexBuilder.(VertexBuilder.java:45)
at com.baidu.hugegraph.loader.builder.ElementBuilder.of(ElementBuilder.java:78)
at com.baidu.hugegraph.loader.HugeGraphLoader.load(HugeGraphLoader.java:159)
at com.baidu.hugegraph.loader.HugeGraphLoader.load(HugeGraphLoader.java:132)
at com.baidu.hugegraph.loader.HugeGraphLoader.load(HugeGraphLoader.java:89)
at com.baidu.hugegraph.loader.HugeGraphLoader.main(HugeGraphLoader.java:66)

@javeme
Copy link
Contributor

javeme commented Jan 14, 2020

@chencjiajy 是的,自动生成id目前loader还不支持,自动生成id时建议使用client或api的方式插入数据。

imbajin pushed a commit that referenced this issue Apr 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants