Github user twilmes commented on the pull request:

    
https://github.com/apache/incubator-tinkerpop/pull/155#issuecomment-159109545
  
    Tests all ran fine.  I did run into an issue trying the decr behavior.  
Query with modern graph was:
    ```
    gremlin> g.V().hasLabel("person").order().by("age", valueDecr)
    java.lang.Integer cannot be cast to java.util.Map$Entry
    Display stack trace? [yN] y
    java.lang.ClassCastException: java.lang.Integer cannot be cast to 
java.util.Map$Entry
        at 
org.apache.tinkerpop.gremlin.process.traversal.Order$6.compare(Order.java:83)
        at 
org.apache.tinkerpop.gremlin.process.traversal.step.util.ElementValueComparator.compare(ElementValueComparator.java:49)
        at 
org.apache.tinkerpop.gremlin.process.traversal.step.util.ElementValueComparator.compare(ElementValueComparator.java:29)
        at 
org.apache.tinkerpop.gremlin.process.traversal.step.map.OrderGlobalStep$ComparatorTraverser.compare(OrderGlobalStep.java:123)
        at 
org.apache.tinkerpop.gremlin.process.traversal.step.map.OrderGlobalStep$ComparatorTraverser.compare(OrderGlobalStep.java:113)
        at 
org.apache.tinkerpop.gremlin.util.function.ChainedComparator.compare(ChainedComparator.java:42)
    ```
    
    It works if I do `order(local)` but I expected it to behave the same way 
your test for the incrementing version worked 
`g.V().hasLabel("person").order().by("age")`


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to