[ 
https://issues.apache.org/jira/browse/TINKERPOP3-670?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14544605#comment-14544605
 ] 

ASF GitHub Bot commented on TINKERPOP3-670:
-------------------------------------------

Github user mhfrantz commented on the pull request:

    https://github.com/apache/incubator-tinkerpop/pull/61#issuecomment-102197382
  
    Yes, I see both SparkGraphComputerProcessIntegrateTest and 
GiraphGraphComputerProcessIntegrateTest mentioned in the test output.  I'm 
using the GREMLIN_TESTS env var to run only the `tail` and `range` tests.  Most 
of them are skipped by `ComputerVerificationStrategy`, but the one that you 
asked me to add does run on both Spark and Giraph:
    ```
    ...
    Testing: g_V_repeatXbothX_timesX3X_tailX7X
    ...
    Tests run: 18, Failures: 0, Errors: 0, Skipped: 12, Time elapsed: 24.016 
sec - in 
org.apache.tinkerpop.gremlin.hadoop.process.computer.giraph.GiraphGraphComputerProcessIntegrateTest
    ...
    Testing: g_V_repeatXbothX_timesX3X_tailX7X
    ...
    Tests run: 18, Failures: 0, Errors: 0, Skipped: 12, Time elapsed: 12.464 
sec - in 
org.apache.tinkerpop.gremlin.hadoop.process.computer.spark.SparkGraphComputerProcessIntegrateTest
    ```
    Also, the same selected tinkergraph-gremlin tests still pass.
    ```
    Tests run: 18, Failures: 0, Errors: 0, Skipped: 12, Time elapsed: 1.115 sec 
- in 
org.apache.tinkerpop.gremlin.tinkergraph.process.TinkerGraphProcessComputerTest
    ...
    Tests run: 18, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.138 sec 
- in 
org.apache.tinkerpop.gremlin.tinkergraph.process.TinkerGraphProcessStandardTest
    ```



> tail step
> ---------
>
>                 Key: TINKERPOP3-670
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP3-670
>             Project: TinkerPop 3
>          Issue Type: Improvement
>          Components: process
>            Reporter: Matt Frantz
>
> The tail step has two scopes:
> * global: emits the last N traversers that pass through it.
> * local: emits a {{List}} containing the last N elements of the inbound 
> {{List}}
> Additionally, for {{tail(local, 1)}}, it emits a single element rather than a 
> {{List}} containing a single element.
> TINKERPOP3-639 provides motivation.
> Scenario: Global scope
> {noformat}
> gremlin> g.V().order().by(T.id, incr).tail(global, 2)
> ==>v[5]
> ==>v[6]
> {noformat}
> Scenario: Default scope is global
> {noformat}
> gremlin> g.V().order().by(T.id, incr).tail(2)
> ==>v[5]
> ==>v[6]
> {noformat}
> Scenario: Local scope, {{List}} input, N>1
> {noformat}
> gremlin> g.V().as('a').out().as('a').out().as('a').select('a').tail(local, 2)
> ==>[v[4], v[5]]
> ==>[v[4], v[3]]
> {noformat}
> Scenario: Local scope, {{List}} input, N=1
> {noformat}
> gremlin> g.V().as('a').out().as('a').out().as('a').select('a').tail(local, 1)
> ==>v[5]
> ==>v[3]
> {noformat}
> Scenario: Local scope, {{Map}} input, N>1
> {noformat}
> gremlin> g.V().as('a').out().as('b').out().as('c').select().tail(local, 2)
> ==>[b:v[4], c:v[5]]
> ==>[b:v[4], c:v[3]]
> {noformat}
> Scenario: Local scope, {{Map}} input, N=1
> {noformat}
> gremlin> g.V().as('a').out().as('b').out().as('c').select().tail(local, 1)
> ==>[c:v[5]]
> ==>[c:v[3]]
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to