Stephen Mallette created TINKERPOP-3322:
-------------------------------------------

             Summary: IdentityRemovalStrategy is overzealous in some cases
                 Key: TINKERPOP-3322
                 URL: https://issues.apache.org/jira/browse/TINKERPOP-3322
             Project: TinkerPop
          Issue Type: Bug
          Components: process
    Affects Versions: 3.7.7
            Reporter: Stephen Mallette


This: {{g.V().not(__.identity().identity()).path().by(__.id())}} returns: 
[path[1], path[2], path[3], path[4], path[5], path[6]] 

seems to be an issue with IdentityRemovalStrategy.

{code}
  ```gremlin> g.V().not(identity().identity()).explain()                        
                                     
  ==>Traversal Explanation                                                      
                                     
  
===================================================================================================
                
  Original Traversal                    [GraphStep(vertex,[]), 
NotStep([IdentityStep, IdentityStep])]                
                                                                                
                                     
  ConnectiveStrategy              [D]   [GraphStep(vertex,[]), 
NotStep([IdentityStep, IdentityStep])]                
  EarlyLimitStrategy              [O]   [GraphStep(vertex,[]), 
NotStep([IdentityStep, IdentityStep])]                
  IdentityRemovalStrategy         [O]   [GraphStep(vertex,[]), NotStep([])]     
                                     
  MatchPredicateStrategy          [O]   [GraphStep(vertex,[]), NotStep([])]     
                                     
  FilterRankingStrategy           [O]   [GraphStep(vertex,[]), NotStep([])]     
                                     
  IncidentToAdjacentStrategy      [O]   [GraphStep(vertex,[]), NotStep([])]     
                                     
  InlineFilterStrategy            [O]   [GraphStep(vertex,[]), NotStep([])]     
                                     
  AdjacentToIncidentStrategy      [O]   [GraphStep(vertex,[]), NotStep([])]     
                                     
  ByModulatorOptimizationStrategy [O]   [GraphStep(vertex,[]), NotStep([])]     
                                     
  RepeatUnrollStrategy            [O]   [GraphStep(vertex,[]), NotStep([])]     
                                     
  CountStrategy                   [O]   [GraphStep(vertex,[]), NotStep([])]     
                                     
  PathRetractionStrategy          [O]   [GraphStep(vertex,[]), NotStep([])]     
                                     
  LazyBarrierStrategy             [O]   [GraphStep(vertex,[]), NotStep([])]     
                                     
  GValueReductionStrategy         [O]   [GraphStep(vertex,[]), NotStep([])]     
                                     
  TinkerGraphCountStrategy        [P]   [GraphStep(vertex,[]), NotStep([])]     
                                     
  TinkerGraphStepStrategy         [P]   [TinkerGraphStep(vertex,[]), 
NotStep([])]                                    
  ProfileStrategy                 [F]   [TinkerGraphStep(vertex,[]), 
NotStep([])]                                    
  StandardVerificationStrategy    [V]   [TinkerGraphStep(vertex,[]), 
NotStep([])]                                    
                                                                                
                                     
  Final Traversal                       [TinkerGraphStep(vertex,[]), 
NotStep([])]``` 
{code}



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to