[ https://issues.apache.org/jira/browse/TINKERPOP-2923?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Stephen Mallette closed TINKERPOP-2923. --------------------------------------- Resolution: Not A Bug > Connected predicates with where() not returning results > ------------------------------------------------------- > > Key: TINKERPOP-2923 > URL: https://issues.apache.org/jira/browse/TINKERPOP-2923 > Project: TinkerPop > Issue Type: Bug > Components: process > Affects Versions: 3.5.5 > Reporter: Stephen Mallette > Priority: Minor > > There may be nothing wrong here, but I couldn't get this to work so needs > some investigation. I unfortunately didn't have time for a more simple > example. Given: > {code} > g.addV('Question'). > as('40964128'). > property(single, 'code', "0004"). > property(single, 'difficultyInPattern', 4). > property(single, 'pattern', "適語補充"). > addV('Question'). > as('40968224'). > property(single, 'code', "0005"). > property(single, 'difficultyInPattern', 5). > property(single, 'pattern', "適語補充"). > addV('LearningElement'). > as('40972320'). > property(single, 'name', "ダミー学習要素"). > addV('Question'). > as('4144'). > property(single, 'code', "0006"). > property(single, 'difficultyInPattern', 1). > property(single, 'pattern', "記述"). > addV('Question'). > as('8240'). > property(single, 'code', "0010"). > property(single, 'difficultyInPattern', 5). > property(single, 'pattern', "記述"). > addV('LearningElement'). > as('12336'). > property(single, 'name', "ダミー学習要素"). > addV('LearningElement'). > as('16432'). > property(single, 'name', "ダミー学習要素"). > addV('Question'). > as('4192'). > property(single, 'code', "0001"). > property(single, 'difficultyInPattern', 1). > property(single, 'pattern', "適語補充"). > addV('Question'). > as('8288'). > property(single, 'code', "0007"). > property(single, 'difficultyInPattern', 2). > property(single, 'pattern', "記述"). > addV('Question'). > as('12384'). > property(single, 'code', "0008"). > property(single, 'difficultyInPattern', 3). > property(single, 'pattern', "記述"). > addV('Question'). > as('4216'). > property(single, 'code', "0003"). > property(single, 'difficultyInPattern', 3). > property(single, 'pattern', "適語補充"). > addV('Question'). > as('4256'). > property(single, 'code', "0009"). > property(single, 'difficultyInPattern', 4). > property(single, 'pattern', "記述"). > addV('LearningElement'). > as('8352'). > property(single, 'name', "ダミー学習要素"). > addV('LearningElement'). > as('12448'). > property(single, 'name', "ダミー学習要素"). > addV('LearningElement'). > as('4320'). > property(single, 'name', "過去進行形"). > addV('Question'). > as('8416'). > property(single, 'code', "0002"). > property(single, 'difficultyInPattern', 2). > property(single, 'pattern', "適語補充"). > addV('LearningElement'). > as('12512'). > property(single, 'name', "ダミー学習要素"). > addE('has').from('40964128').to('4320'). > addE('has').from('40968224').to('4320'). > addE('has').from('4144').to('4320'). > addE('has').from('8240').to('4320'). > addE('include').from('12336').to('12512'). > addE('include').from('12336').to('16432'). > addE('has').from('4192').to('4320'). > addE('has').from('8288').to('4320'). > addE('has').from('12384').to('4320'). > addE('has').from('4216').to('4320'). > addE('has').from('4256').to('4320'). > addE('include').from('8352').to('12448'). > addE('include').from('8352').to('40972320'). > addE('include').from('4320').to('8352'). > addE('include').from('4320').to('12336'). > addE('has').from('8416').to('4320') > {code} > I would expect this: > {code} > g.V().has('Question','code','0003').as('a'). > out('has').in('has').as('b'). > where('b', eq('a').and(neq('a')).and(gt('a'))). > by('pattern'). > by('pattern'). > by(). > by('difficultyInPattern'). > bothE() > {code} > to return the same as: > {code} > gremlin> g.V().has('Question','code','0003').as('a'). > ......1> out('has').in('has').as('b'). > ......2> where('b', eq('a').and(neq('a'))). > ......3> by('pattern'). > ......4> by('pattern'). > ......5> by(). > ......6> where('b', gt('a')).by('difficultyInPattern'). > ......7> bothE() > ==>e[54][0-has->46] > ==>e[55][4-has->46] > {code} > It currently returns no results so it's over-filtering for some reason. > Perhaps has some connection to {{gt}} because even this doesn't work: > {code} > g.V().has('Question','code','0003').as('a'). > out('has').in('has').as('b'). > where('b', neq('a')). > where('b', eq('a').and(gt('a'))). > by('pattern'). > by('pattern'). > by('difficultyInPattern'). > bothE() > {code} -- This message was sent by Atlassian Jira (v8.20.10#820010)