We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
No response
The query is
g.V().outE('el0').hasLabel('el1')
[]
Exception in thread "main" java.lang.IllegalStateException: Illegal key 'LABEL' with more than one value
HugeClient hugeclient = HugeClient.builder("http://localhost:8080", "hugegraph").configTimeout(3000).build(); GraphManager graph = hugeclient.graph(); Vertex vertex1 = new Vertex("vl0").property("vp0", true); Vertex vertex2 = new Vertex("vl0").property("vp0", false); Vertex vertex3 = new Vertex("vl0").property("vp0", true); graph.addVertices(Arrays.asList(vertex1, vertex2, vertex3)); Edge edge1 = new Edge("el0").source(vertex1).target(vertex2).property("ep0", true); Edge edge2 = new Edge("el1").source(vertex1).target(vertex3).property("ep1", false); graph.addEdges(Arrays.asList(edge1, edge2));
HugeClient hugeclient = HugeClient.builder("http://localhost:8080", "hugegraph").configTimeout(3000).build(); hugeclient.schema().propertyKey("ep0").asBoolean().ifNotExist().create(); hugeclient.schema().propertyKey("ep1").asBoolean().ifNotExist().create(); hugeclient.schema().propertyKey("vp0").asBoolean().ifNotExist().create(); // vertex hugeclient.schema().vertexLabel("vl0").properties("vp0").nullableKeys("vp0").create(); hugeclient.schema().indexLabel("vl0Byvp0").onV("vl0").by("vp0").shard().ifNotExist().create(); // edges hugeclient.schema().edgeLabel("el0").sourceLabel("vl0").targetLabel("vl0").properties("ep0").ifNotExist().create(); hugeclient.schema().edgeLabel("el1").sourceLabel("vl0").targetLabel("vl0").properties("ep1").ifNotExist().create(); hugeclient.schema().indexLabel("el0Byep0").onE("el0").by("ep0").shard().ifNotExist().create(); hugeclient.schema().indexLabel("el1Byep0").onE("el1").by("ep1").shard().ifNotExist().create();
The text was updated successfully, but these errors were encountered:
I also found this bug.
I find that a closed issue (#1735) reported the same bug, and it seems to be fixed. Maybe it deserves further investigation?
Sorry, something went wrong.
No branches or pull requests
Bug Type (问题类型)
No response
Before submit
Environment (环境信息)
Expected & Actual behavior (期望与实际表现)
The query is
Vertex/Edge example (问题点 / 边数据举例)
Schema [VertexLabel, EdgeLabel, IndexLabel] (元数据结构)
The text was updated successfully, but these errors were encountered: