GitHub user okram opened a pull request:

    https://github.com/apache/incubator-tinkerpop/pull/155

    TINKERPOP3-941: Improve error message for wrong order().by() arguments

    https://issues.apache.org/jira/browse/TINKERPOP3-941
    
    Instead of fixing the error message, I simply made it such that if you 
don't provide a comparator, it assumes you mean `Order.incr`. Added a test for 
both `OrderLocalStep` and `OrderGlobalStep` that demonstrate things working. 
Finally, I also realized we didn't have a proper `clone()` method for 
`OrderLobalStep`. Eek! Added it.
    
    Ran `mvn clean install` and `SparkGraphComputerIntegrationTest` (for 
`OrderTest` only) and all is golden.
    
    VOTE +1.


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/apache/incubator-tinkerpop TINKERPOP3-941

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/incubator-tinkerpop/pull/155.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #155
    
----
commit 5231a7195fc8bdcecff89e7c4e965cf173883c65
Author: Marko A. Rodriguez <[email protected]>
Date:   2015-11-23T22:27:21Z

    added support for order().by('age'). If you don't provide a Comparator, 
Order.incr is assumed. Thus, no more error message about 
OrderGlobalStep.addComparator(). Also, the test case I added demonstrated that 
TINKERPOP3-979 passes with Spark... uh...thus, the ticket is invalid. I don't 
know what caused the Spark error I got. Will close that ticket.

----


---
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