joyemang33 commented on issue #2138:
URL: 
https://github.com/apache/incubator-hugegraph/issues/2138#issuecomment-1450161771

   > Sorry, it expects a fold() step and should be: 
`g.E().order().by(values("prop10").fold().min(local))`.
   > 
   > A further question, in this scene why not use this way 
`g.E().order().by("prop10")`?
   
   Hi, Many thanks again for your valuable feedback, and the 
`g.E().order().by("prop10")` is OK to execute which helps me a lot.
    
   However, I try the 
```hugegraph.traversal().E().order().by(values("prop10").fold().min(local))``` 
where still returns an unexpected exception 
```java.lang.IllegalArgumentException```.
   
   In my opinion, there may be some bugs during the execution of the latter 
query, which could be similar to the issue encountered previously (#2124). My 
intention is to order the edges based on the minimum property value of "prop10" 
among their out-vertices. However, when I tried to execute the query 
```hugegraph.traversal().E().order().by(__.outV().values("prop10").fold().min(local))```,
 it resulted in an unexpected exception.
   
   I noticed that 
```hugegraph.traversal().E().order().by(values("prop10").min(local))``` is a 
reduction of the above query, and the above query might be applicable in some 
contexts for some users. Would it be possible for you to verify whether there 
is a bug in the execution process? Your assistance in resolving this issue 
would be greatly appreciated.


-- 
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-unsubscr...@hugegraph.apache.org

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

Reply via email to