GitHub user okram opened a pull request:

    https://github.com/apache/tinkerpop/pull/477

    TINKERPOP-1473: Given PathRetractionStrategy, PathProcessorStrategy can be 
extended to support partial where() inlining.

    https://issues.apache.org/jira/browse/TINKERPOP-1473
    
    Extended `PathProcessStrategy` to support the following translations which 
expose more traversals to OLAP processing (works around local star graph 
violations).
    
    ```
    where(as(a).out().as(b)) => as(xyz).select(a).where(out().as(b)).select(xyz)
    where(as(a).out())          => as(xyz).select(a).filter(out()).select(xyz)
    ```
    
    Next, given that `PathProcessStrategy` is prior to `InlineFilterStrategy` 
you get this effect:
    
    where(as(a).has(z))          => as(xyz).select(a).has(z).select(xyz)
    ```
    
    You can see why `PathRetractionStrategy` is important. Without it `xyz` 
(which are UUIDs in practice) would remain in the traverser's path data.
    
    VOTE +1.

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

    $ git pull https://github.com/apache/tinkerpop TINKERPOP-1473

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

    https://github.com/apache/tinkerpop/pull/477.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 #477
    
----
commit a69efffef138b036581fdb8c5bcd22c8075aa846
Author: Marko A. Rodriguez <[email protected]>
Date:   2016-11-02T10:50:57Z

    Added where(a.out.b) => select(a).where(out.b) AND where(a.out) => 
select(a).filter(out) to PathProcessorStrategy (an OLAP strategy). This opens 
up more traversals that would otherwise break the star-graph local child 
constraint in OLAP.

----


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