chore: fix GraphOfTheMoviesExample exception by simon824 · Pull Request #1953 · apache/hugegraph

Conversation

@simon824

This pr will fix these exception:

Exception in thread "main" java.lang.IllegalArgumentException: No need to build index on properties [name], because they contains all primary keys [name] for vertex label 'person'
Exception in thread "main" java.lang.IllegalStateException: Stop the current transaction before opening another

@codecov

imbajin

.sourceLabel("person").targetLabel("movie")
.create();

schema.indexLabel("personByName").onV("person").by("name")

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

THX, could add & run it in test/CI?

javeme

imbajin

@imbajin imbajin changed the title chore: fix GraphOfTheMoviesExample Exception chore: fix GraphOfTheMoviesExample exception

Oct 8, 2022