You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hugegraph.apache.org by "llooFlashooll (via GitHub)" <gi...@apache.org> on 2023/03/16 15:46:24 UTC

[GitHub] [incubator-hugegraph] llooFlashooll opened a new issue, #2171: [Bug] Throw MissingMethodException for E() syntax

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

   ### Bug Type (问题类型)
   
   other exception / error (其他异常报错)
   
   ### Before submit
   
   - [X] 我已经确认现有的 [Issues](https://github.com/apache/hugegraph/issues) 与 [FAQ](https://hugegraph.apache.org/docs/guides/faq/) 中没有相同 / 重复问题 (I have confirmed and searched that there are no similar problems in the historical issue and documents)
   
   ### Environment (环境信息)
   
   - HugeGraph Version: 0.12.0
   - Storage Backend: inmemory
   - Mixed Index Backend: none
   - Link to discussed bug: none
   - Operating system: macOS 13.2.1
   - API/Driver: Java
   
   ### Expected & Actual behavior (期望与实际表现)
   
   I first randomly create a graph. Then when I run the following query: `g.E().inV().bothE('el0').fold().as('x').E().where(__.count()).where(within('x'))` is thrown with an exception. I think this query is syntactically correct, but I keep triggering this kind of problem.
   
   **Expected behavior:**
   No exception should be expected to throw. Or futher messages or prompts should be thrown.
   
   **Actual behavior:**
   A `groovy.lang.MissingMethodException` is thrown. And I'm not really sure whether this problem should happen so I report this. I succeed this kind of collection transition when replacing `g.E()` with `g.V()`. So I guess there's some problems of `g.E()` syntax, and maybe it doesn't support midterm `E()` syntax.
   
   ```
   HugeGraph exception :
   groovy.lang.MissingMethodException: No signature of method: org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.DefaultGraphTraversal.E() is applicable for argument types: () values: []
   Possible solutions: by(groovy.lang.Closure), is(java.lang.Object), use([Ljava.lang.Object;), use(java.util.List, groovy.lang.Closure), use(java.lang.Class, groovy.lang.Closure), any()
   ```
   
   
   ### Vertex/Edge example (问题点 / 边数据举例)
   
   ```javascript
   Steps to reproduce:
   We create a graph with 10 nodes and 20 edges. We try to make it clear to reproduce the bugs, {}hope{} to not cause much inconvenience to your reviewing, but we believe the problem does exist.
   Following the following graph data generation query, we can reproduce the bugs:
   ```
   
   
   ### 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: issues-unsubscribe@hugegraph.apache.org.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For additional commands, e-mail: issues-help@hugegraph.apache.org


[GitHub] [incubator-hugegraph] llooFlashooll commented on issue #2171: [Bug] Throw MissingMethodException for E() syntax

Posted by "llooFlashooll (via GitHub)" <gi...@apache.org>.
llooFlashooll commented on issue #2171:
URL: https://github.com/apache/incubator-hugegraph/issues/2171#issuecomment-1477817692

   I think is the middle `E()` here.
   ```
   g.E().inV().bothE('el0').fold().as('x').E().where(__.count()).where(within('x'))
                                           ^
   ```


-- 
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: issues-unsubscribe@hugegraph.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For additional commands, e-mail: issues-help@hugegraph.apache.org


[GitHub] [incubator-hugegraph] javeme commented on issue #2171: [Bug] Throw MissingMethodException for E() syntax

Posted by "javeme (via GitHub)" <gi...@apache.org>.
javeme commented on issue #2171:
URL: https://github.com/apache/incubator-hugegraph/issues/2171#issuecomment-1477799532

   Sorry, not sure which is the key step in your reproduction process.


-- 
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: issues-unsubscribe@hugegraph.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For additional commands, e-mail: issues-help@hugegraph.apache.org