You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tinkerpop.apache.org by "Matt Frantz (JIRA)" <ji...@apache.org> on 2015/04/15 20:15:59 UTC

[jira] [Updated] (TINKERPOP3-628) {{as}} step should never be ignored

     [ https://issues.apache.org/jira/browse/TINKERPOP3-628?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Matt Frantz updated TINKERPOP3-628:
-----------------------------------
    Description: 
M8 repro:

{noformat}
gremlin> g = TinkerFactory.createModern()
==>tinkergraph[vertices:6 edges:6]
gremlin> g.traversal().V(1).as('a').as('b').select('a')
The step with label a  does not exist
{noformat}

My use case involves building complex traversals that use step labels as symbolic references for certain subsets of the traversal.  It is often desirable to point several references at the same location.

  was:
M8 repro:

{{noformat}}
gremlin> g = TinkerFactory.createModern()
==>tinkergraph[vertices:6 edges:6]
gremlin> g.traversal().V(1).as('a').as('b').select('a')
The step with label a  does not exist
{{noformat}}

My use case involves building complex traversals that use step labels as symbolic references for certain subsets of the traversal.  It is often desirable to point several references at the same location.


> {{as}} step should never be ignored
> -----------------------------------
>
>                 Key: TINKERPOP3-628
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP3-628
>             Project: TinkerPop 3
>          Issue Type: Bug
>            Reporter: Matt Frantz
>
> M8 repro:
> {noformat}
> gremlin> g = TinkerFactory.createModern()
> ==>tinkergraph[vertices:6 edges:6]
> gremlin> g.traversal().V(1).as('a').as('b').select('a')
> The step with label a  does not exist
> {noformat}
> My use case involves building complex traversals that use step labels as symbolic references for certain subsets of the traversal.  It is often desirable to point several references at the same location.



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

Re: [jira] [Updated] (TINKERPOP3-628) {{as}} step should never be ignored

Posted by Marko Rodriguez <ok...@gmail.com>.
Hello,

This ticket is a recommendation. It still needs to be evaluated whether this is a desired behavior or not. --- and the simple fix for this ticket is to insert an IdentityStep and name it if the current step trying to be named is already named.

Take care,
Marko.

On Apr 15, 2015, at 1:11 PM, Christos Oikonomou <ch...@gmail.com> wrote:

> Thanks but then in this issue we have to have more labels for the some
> step!
> 
> On Wed, Apr 15, 2015 at 10:06 PM, Marko Rodriguez <ok...@gmail.com>
> wrote:
> 
>> Hi,
>> 
>> as() will name the step. If the step is already named, it renames it. If
>> there is no step, then it creates an IdentityStep and names it.
>> 
>> HTH,
>> Marko.
>> 
>> http://markorodriguez.com
>> 
>> On Apr 15, 2015, at 12:30 PM, Christos Oikonomou <ch...@gmail.com>
>> wrote:
>> 
>>> Hello,
>>> I believe I have find the problem in the code but I really want to
>> discuss
>>> the solution! Because as function has no description of what we want to
>> do
>>> specifically with it. As I read the code, I understand that as is use to
>>> create a step if no step exists and to rename it if so. The solution is
>>> obvious if the use of {{as}} is to add steps. Can someone explain me?
>>> Sorry for my question, but I like to take all precautions before I change
>>> the code.
>>> 
>>> Regards,
>>> Christos
>>> 
>>> On Wed, Apr 15, 2015 at 9:15 PM, Matt Frantz (JIRA) <ji...@apache.org>
>> wrote:
>>> 
>>>> 
>>>>    [
>>>> 
>> https://issues.apache.org/jira/browse/TINKERPOP3-628?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
>>>> ]
>>>> 
>>>> Matt Frantz updated TINKERPOP3-628:
>>>> -----------------------------------
>>>>   Description:
>>>> M8 repro:
>>>> 
>>>> {noformat}
>>>> gremlin> g = TinkerFactory.createModern()
>>>> ==>tinkergraph[vertices:6 edges:6]
>>>> gremlin> g.traversal().V(1).as('a').as('b').select('a')
>>>> The step with label a  does not exist
>>>> {noformat}
>>>> 
>>>> My use case involves building complex traversals that use step labels as
>>>> symbolic references for certain subsets of the traversal.  It is often
>>>> desirable to point several references at the same location.
>>>> 
>>>> was:
>>>> M8 repro:
>>>> 
>>>> {{noformat}}
>>>> gremlin> g = TinkerFactory.createModern()
>>>> ==>tinkergraph[vertices:6 edges:6]
>>>> gremlin> g.traversal().V(1).as('a').as('b').select('a')
>>>> The step with label a  does not exist
>>>> {{noformat}}
>>>> 
>>>> My use case involves building complex traversals that use step labels as
>>>> symbolic references for certain subsets of the traversal.  It is often
>>>> desirable to point several references at the same location.
>>>> 
>>>> 
>>>>> {{as}} step should never be ignored
>>>>> -----------------------------------
>>>>> 
>>>>>               Key: TINKERPOP3-628
>>>>>               URL:
>>>> https://issues.apache.org/jira/browse/TINKERPOP3-628
>>>>>           Project: TinkerPop 3
>>>>>        Issue Type: Bug
>>>>>          Reporter: Matt Frantz
>>>>> 
>>>>> M8 repro:
>>>>> {noformat}
>>>>> gremlin> g = TinkerFactory.createModern()
>>>>> ==>tinkergraph[vertices:6 edges:6]
>>>>> gremlin> g.traversal().V(1).as('a').as('b').select('a')
>>>>> The step with label a  does not exist
>>>>> {noformat}
>>>>> My use case involves building complex traversals that use step labels
>> as
>>>> symbolic references for certain subsets of the traversal.  It is often
>>>> desirable to point several references at the same location.
>>>> 
>>>> 
>>>> 
>>>> --
>>>> This message was sent by Atlassian JIRA
>>>> (v6.3.4#6332)
>>>> 
>> 
>> 


Re: [jira] [Updated] (TINKERPOP3-628) {{as}} step should never be ignored

Posted by Christos Oikonomou <ch...@gmail.com>.
Thanks but then in this issue we have to have more labels for the some
step!

On Wed, Apr 15, 2015 at 10:06 PM, Marko Rodriguez <ok...@gmail.com>
wrote:

> Hi,
>
> as() will name the step. If the step is already named, it renames it. If
> there is no step, then it creates an IdentityStep and names it.
>
> HTH,
> Marko.
>
> http://markorodriguez.com
>
> On Apr 15, 2015, at 12:30 PM, Christos Oikonomou <ch...@gmail.com>
> wrote:
>
> > Hello,
> > I believe I have find the problem in the code but I really want to
> discuss
> > the solution! Because as function has no description of what we want to
> do
> > specifically with it. As I read the code, I understand that as is use to
> > create a step if no step exists and to rename it if so. The solution is
> > obvious if the use of {{as}} is to add steps. Can someone explain me?
> > Sorry for my question, but I like to take all precautions before I change
> > the code.
> >
> > Regards,
> > Christos
> >
> > On Wed, Apr 15, 2015 at 9:15 PM, Matt Frantz (JIRA) <ji...@apache.org>
> wrote:
> >
> >>
> >>     [
> >>
> https://issues.apache.org/jira/browse/TINKERPOP3-628?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
> >> ]
> >>
> >> Matt Frantz updated TINKERPOP3-628:
> >> -----------------------------------
> >>    Description:
> >> M8 repro:
> >>
> >> {noformat}
> >> gremlin> g = TinkerFactory.createModern()
> >> ==>tinkergraph[vertices:6 edges:6]
> >> gremlin> g.traversal().V(1).as('a').as('b').select('a')
> >> The step with label a  does not exist
> >> {noformat}
> >>
> >> My use case involves building complex traversals that use step labels as
> >> symbolic references for certain subsets of the traversal.  It is often
> >> desirable to point several references at the same location.
> >>
> >>  was:
> >> M8 repro:
> >>
> >> {{noformat}}
> >> gremlin> g = TinkerFactory.createModern()
> >> ==>tinkergraph[vertices:6 edges:6]
> >> gremlin> g.traversal().V(1).as('a').as('b').select('a')
> >> The step with label a  does not exist
> >> {{noformat}}
> >>
> >> My use case involves building complex traversals that use step labels as
> >> symbolic references for certain subsets of the traversal.  It is often
> >> desirable to point several references at the same location.
> >>
> >>
> >>> {{as}} step should never be ignored
> >>> -----------------------------------
> >>>
> >>>                Key: TINKERPOP3-628
> >>>                URL:
> >> https://issues.apache.org/jira/browse/TINKERPOP3-628
> >>>            Project: TinkerPop 3
> >>>         Issue Type: Bug
> >>>           Reporter: Matt Frantz
> >>>
> >>> M8 repro:
> >>> {noformat}
> >>> gremlin> g = TinkerFactory.createModern()
> >>> ==>tinkergraph[vertices:6 edges:6]
> >>> gremlin> g.traversal().V(1).as('a').as('b').select('a')
> >>> The step with label a  does not exist
> >>> {noformat}
> >>> My use case involves building complex traversals that use step labels
> as
> >> symbolic references for certain subsets of the traversal.  It is often
> >> desirable to point several references at the same location.
> >>
> >>
> >>
> >> --
> >> This message was sent by Atlassian JIRA
> >> (v6.3.4#6332)
> >>
>
>

Re: [jira] [Updated] (TINKERPOP3-628) {{as}} step should never be ignored

Posted by Marko Rodriguez <ok...@gmail.com>.
Hi,

as() will name the step. If the step is already named, it renames it. If there is no step, then it creates an IdentityStep and names it.

HTH,
Marko.

http://markorodriguez.com

On Apr 15, 2015, at 12:30 PM, Christos Oikonomou <ch...@gmail.com> wrote:

> Hello,
> I believe I have find the problem in the code but I really want to discuss
> the solution! Because as function has no description of what we want to do
> specifically with it. As I read the code, I understand that as is use to
> create a step if no step exists and to rename it if so. The solution is
> obvious if the use of {{as}} is to add steps. Can someone explain me?
> Sorry for my question, but I like to take all precautions before I change
> the code.
> 
> Regards,
> Christos
> 
> On Wed, Apr 15, 2015 at 9:15 PM, Matt Frantz (JIRA) <ji...@apache.org> wrote:
> 
>> 
>>     [
>> https://issues.apache.org/jira/browse/TINKERPOP3-628?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
>> ]
>> 
>> Matt Frantz updated TINKERPOP3-628:
>> -----------------------------------
>>    Description:
>> M8 repro:
>> 
>> {noformat}
>> gremlin> g = TinkerFactory.createModern()
>> ==>tinkergraph[vertices:6 edges:6]
>> gremlin> g.traversal().V(1).as('a').as('b').select('a')
>> The step with label a  does not exist
>> {noformat}
>> 
>> My use case involves building complex traversals that use step labels as
>> symbolic references for certain subsets of the traversal.  It is often
>> desirable to point several references at the same location.
>> 
>>  was:
>> M8 repro:
>> 
>> {{noformat}}
>> gremlin> g = TinkerFactory.createModern()
>> ==>tinkergraph[vertices:6 edges:6]
>> gremlin> g.traversal().V(1).as('a').as('b').select('a')
>> The step with label a  does not exist
>> {{noformat}}
>> 
>> My use case involves building complex traversals that use step labels as
>> symbolic references for certain subsets of the traversal.  It is often
>> desirable to point several references at the same location.
>> 
>> 
>>> {{as}} step should never be ignored
>>> -----------------------------------
>>> 
>>>                Key: TINKERPOP3-628
>>>                URL:
>> https://issues.apache.org/jira/browse/TINKERPOP3-628
>>>            Project: TinkerPop 3
>>>         Issue Type: Bug
>>>           Reporter: Matt Frantz
>>> 
>>> M8 repro:
>>> {noformat}
>>> gremlin> g = TinkerFactory.createModern()
>>> ==>tinkergraph[vertices:6 edges:6]
>>> gremlin> g.traversal().V(1).as('a').as('b').select('a')
>>> The step with label a  does not exist
>>> {noformat}
>>> My use case involves building complex traversals that use step labels as
>> symbolic references for certain subsets of the traversal.  It is often
>> desirable to point several references at the same location.
>> 
>> 
>> 
>> --
>> This message was sent by Atlassian JIRA
>> (v6.3.4#6332)
>> 


Re: [jira] [Updated] (TINKERPOP3-628) {{as}} step should never be ignored

Posted by Christos Oikonomou <ch...@gmail.com>.
Hello,
I believe I have find the problem in the code but I really want to discuss
the solution! Because as function has no description of what we want to do
specifically with it. As I read the code, I understand that as is use to
create a step if no step exists and to rename it if so. The solution is
obvious if the use of {{as}} is to add steps. Can someone explain me?
Sorry for my question, but I like to take all precautions before I change
the code.

Regards,
Christos

On Wed, Apr 15, 2015 at 9:15 PM, Matt Frantz (JIRA) <ji...@apache.org> wrote:

>
>      [
> https://issues.apache.org/jira/browse/TINKERPOP3-628?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
> ]
>
> Matt Frantz updated TINKERPOP3-628:
> -----------------------------------
>     Description:
> M8 repro:
>
> {noformat}
> gremlin> g = TinkerFactory.createModern()
> ==>tinkergraph[vertices:6 edges:6]
> gremlin> g.traversal().V(1).as('a').as('b').select('a')
> The step with label a  does not exist
> {noformat}
>
> My use case involves building complex traversals that use step labels as
> symbolic references for certain subsets of the traversal.  It is often
> desirable to point several references at the same location.
>
>   was:
> M8 repro:
>
> {{noformat}}
> gremlin> g = TinkerFactory.createModern()
> ==>tinkergraph[vertices:6 edges:6]
> gremlin> g.traversal().V(1).as('a').as('b').select('a')
> The step with label a  does not exist
> {{noformat}}
>
> My use case involves building complex traversals that use step labels as
> symbolic references for certain subsets of the traversal.  It is often
> desirable to point several references at the same location.
>
>
> > {{as}} step should never be ignored
> > -----------------------------------
> >
> >                 Key: TINKERPOP3-628
> >                 URL:
> https://issues.apache.org/jira/browse/TINKERPOP3-628
> >             Project: TinkerPop 3
> >          Issue Type: Bug
> >            Reporter: Matt Frantz
> >
> > M8 repro:
> > {noformat}
> > gremlin> g = TinkerFactory.createModern()
> > ==>tinkergraph[vertices:6 edges:6]
> > gremlin> g.traversal().V(1).as('a').as('b').select('a')
> > The step with label a  does not exist
> > {noformat}
> > My use case involves building complex traversals that use step labels as
> symbolic references for certain subsets of the traversal.  It is often
> desirable to point several references at the same location.
>
>
>
> --
> This message was sent by Atlassian JIRA
> (v6.3.4#6332)
>