You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hugegraph.apache.org by GitBox <gi...@apache.org> on 2022/08/20 11:01:41 UTC

[GitHub] [incubator-hugegraph] zhengyingying opened a new issue, #1950: [Bug] hasLabel() cannot be queried after inE()

zhengyingying opened a new issue, #1950:
URL: https://github.com/apache/incubator-hugegraph/issues/1950

   ### Bug Type (问题类型)
   
   _No response_
   
   ### Before submit
   
   - [X] 我已经确认现有的 [Issues](https://github.com/hugegraph/hugegraph/issues) 与 [FAQ](https://hugegraph.github.io/hugegraph-doc/guides/faq.html) 中没有相同 / 重复问题
   
   ### Environment (环境信息)
   
   - Server Version: v0.12.0
   - Backend: memory
   - OS: CentOS
   - Data Size:  100 vertices, 200 edges
   
   
   ### Expected & Actual behavior (期望与实际表现)
   
   We execute the query `g.V().inE('el0').hasLabel('el0','el1')` and expect it returns some edges. 
   
   But it throws an exception `java.lang.IllegalStateException: Illegal key 'LABEL' with more than one value`.
   
   ### Reproduce
   
   The schema of the simplify graph as follows.
   
   ```
   connection.getHugespecial().schema().propertyKey("ep0").asBoolean().ifNotExist().create();
   connection.getHugespecial().schema().propertyKey("ep1").asBoolean().ifNotExist().create();
   connection.getHugespecial().schema().edgeLabel("el0").sourceLabel("vl0").targetLabel("vl0").properties("ep0").ifNotExist().create();     
   connection.getHugespecial().schema().edgeLabel("el1").sourceLabel("vl0").targetLabel("vl0").properties("ep1").ifNotExist().create();
   connection.getHugespecial().schema().indexLabel("el0Byep0").onE("el0").by("ep0").shard().ifNotExist().create();
   connection.getHugespecial().schema().indexLabel("el1Byep0").onE("el1").by("ep1").shard().ifNotExist().create();
   
   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));
   
   GremlinManager gremlin = connection.getHugespecial().gremlin();
   
   String query = "g.V().inE('el0').hasLabel('el0','el1')";
   
   ### Vertex/Edge example (问题点 / 边数据举例)
   
   _No response_
   
   ### Schema [VertexLabel, EdgeLabel, IndexLabel] (元数据结构)
   
   _No response_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@hugegraph.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-hugegraph] javeme commented on issue #1950: [Bug] hasLabel() cannot be queried after inE()

Posted by GitBox <gi...@apache.org>.
javeme commented on issue #1950:
URL: https://github.com/apache/incubator-hugegraph/issues/1950#issuecomment-1256042895

   @zhengyingying Yes it looks fixed, but due to v0.12.0 version does not contain the latest code, you can try cherry-pick [that commit](https://github.com/apache/incubator-hugegraph/pull/1737) and execute `mvn package` manually to get a bugfix tar.
   
   how to cherry-pick and package manually:
   ```js
   git checkout master
   git pull
   git checkout -b release-0.12 origin/release-0.12
   git cherry-pick cadeade476e5e9773471cbc67b1a65ed505eba77
   mvn package -DskipTests
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@hugegraph.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-hugegraph] zhengyingying commented on issue #1950: [Bug] hasLabel() cannot be queried after inE()

Posted by GitBox <gi...@apache.org>.
zhengyingying commented on issue #1950:
URL: https://github.com/apache/incubator-hugegraph/issues/1950#issuecomment-1257384293

   @javeme Thanks! I will try to do it.
   
   In addition, may I ask the cause of this bug?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@hugegraph.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-hugegraph] zhengyingying commented on issue #1950: [Bug] hasLabel() cannot be queried after inE()

Posted by GitBox <gi...@apache.org>.
zhengyingying commented on issue #1950:
URL: https://github.com/apache/incubator-hugegraph/issues/1950#issuecomment-1257398948

   @javeme 
   Hi, I have tried to build the project. But an exception was thrown on the package `hugegraph-dist`.
   ```
   org.codehaus.plexus.component.repository.exception.ComponentLookupException: java.util.NoSuchElementException
         role: org.apache.maven.artifact.resolver.ArtifactResolver
     roleHint: project-cache-aware
   ```
   
   How can I solve it?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@hugegraph.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-hugegraph] zhengyingying commented on issue #1950: [Bug] hasLabel() cannot be queried after inE()

Posted by GitBox <gi...@apache.org>.
zhengyingying commented on issue #1950:
URL: https://github.com/apache/incubator-hugegraph/issues/1950#issuecomment-1253391219

   @imbajin 
   I have opened a new issue https://github.com/apache/incubator-hugegraph/issues/1969 because the incorrect return results when executing outE().hasLabel() with multiple edge labels. 
   
   It seems to be similar with this issue. Maybe the reasons for these two issues are the same, and you can investigate these two issues together. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@hugegraph.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-hugegraph] zhengyingying commented on issue #1950: [Bug] hasLabel() cannot be queried after inE()

Posted by GitBox <gi...@apache.org>.
zhengyingying commented on issue #1950:
URL: https://github.com/apache/incubator-hugegraph/issues/1950#issuecomment-1231597252

   The exception can also be triggered when we remove the label `el0` in `hasLabel('el0','el1')`. Maybe the reason is not the multiple labels.
   
   In addition, I find that if I execute this query as the following way, it does not throw exception but return the correct result. 
   ```
   g.V().inE('el0');   -- {e:{1}}
   g.E(1).hasLabel('el0','el1');  -- {e:{1}}
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@hugegraph.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-hugegraph] zhengyingying commented on issue #1950: [Bug] hasLabel() cannot be queried after inE()

Posted by GitBox <gi...@apache.org>.
zhengyingying commented on issue #1950:
URL: https://github.com/apache/incubator-hugegraph/issues/1950#issuecomment-1254424966

   @imbajin 
   I find this issue is similar to https://github.com/apache/incubator-hugegraph/issues/1951. Maybe the reasons for these two issues are the same, and you can investigate them together. 
   
   I also find that a closed issue (https://github.com/apache/incubator-hugegraph/issues/1735) reported the similar bug, and it seems to be fixed. But we still found it. Maybe it deserves further investigation?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@hugegraph.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org