Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Incomplete
-
3.4.13
-
None
-
None
-
Ubuntu 20.04
Description
First, create graph using following queries:
g.addV('L1').as('n0').property(single, 'k9', -320457824).select('n0').project('n0').by(__.valueMap().with('~tinkerpop.valueMap.tokens'))
g.addV('L2').as('n1').property(single, 'k12', 720372984).property(single, 'k15', -1767423704).select('n1').project('n1').by(__.valueMap().with('~tinkerpop.valueMap.tokens'))
g.addV('L1').project('n2').by(__.valueMap().with('~tinkerpop.valueMap.tokens'))
g.addV('L2').as('n3').property(single, 'k11', -1516384460).property(single, 'k13', false).property(single, 'k15', 720372984).select('n3').project('n3').by(__.valueMap().with('~tinkerpop.valueMap.tokens'))
g.addV('L4').as('n4').property(single, 'k24', true).select('n4').project('n4').by(__.valueMap().with('~tinkerpop.valueMap.tokens'))
g.addV('L0').as('n5').property(single, 'k1', -1235359674).select('n5').project('n5').by(__.valueMap().with('~tinkerpop.valueMap.tokens'))
g.addV('L3').as('n6').property(single, 'k19', 'gA').select('n6').project('n6').by(__.valueMap().with('~tinkerpop.valueMap.tokens'))
g.addV('L2').as('n7').property(single, 'k15', -320457824).select('n7').project('n7').by(__.valueMap().with('~tinkerpop.valueMap.tokens'))
g.addV('L1').project('n8').by(__.valueMap().with('~tinkerpop.valueMap.tokens'))
g.addV('L0').project('n9').by(__.valueMap().with('~tinkerpop.valueMap.tokens'))
g.addV('L2').project('n10').by(__.valueMap().with('~tinkerpop.valueMap.tokens'))
g.addV('L0').as('n11').property(single, 'k1', 1471719211).property(single, 'k2', 'NF').select('n11').project('n11').by(__.valueMap().with('~tinkerpop.valueMap.tokens'))
The following query should return 12 records, but get 0 instead:
g.V().as('n0').choose(_.V().as('n1').as(' cypher.path.start.GENERATED1').repeat(.bothE().dedup().by(.path()).as('r0').otherV()).emit().times(10).simplePath().from(' cypher.path.start.GENERATED1').as('n2').optional(.select(all, 'r0').as('r0')), __.V().as('n1').as(' cypher.path.start.GENERATED1').repeat(.bothE().dedup().by(.path()).as('r0').otherV()).emit().times(10).simplePath().from(' cypher.path.start.GENERATED1').as('n2').optional(.select(all, 'r0').as('r0')), __.constant(' cypher.null').as('n1').as('r0').as('n2')).choose(.V().as('n3').where(.choose(.or(.constant(false).is(eq(' cypher.null')), __.constant(false).is(eq(' cypher.null'))), __.constant(' cypher.null'), __.choose(.constant(false).as(' GENERATED2').constant(false).where(neq(' GENERATED2')), __.constant(true), __.constant(false))).is(neq(' cypher.null'))), __.V().as('n3').where(.choose(.or(.constant(false).is(eq(' cypher.null')), __.constant(false).is(eq(' cypher.null'))), __.constant(' cypher.null'), __.choose(.constant(false).as(' GENERATED2').constant(false).where(neq(' GENERATED2')), __.constant(true), __.constant(false))).is(neq(' cypher.null'))), __.constant(' cypher.null').as('n3')).choose(.select('n2').is(neq(' cypher.null')), __.select('n2').is(neq(' cypher.null')), __.constant(' cypher.null')).choose(.select('n2').is(neq(' cypher.null')).V().as('n4').repeat(.inE('T4').as(' UNNAMED133').outV()).emit().times(10).as('n5').optional(.select(all, ' UNNAMED133').as(' UNNAMED133')), __.select('n2').is(neq(' cypher.null')).V().as('n4').repeat(.inE('T4').as(' UNNAMED133').outV()).emit().times(10).as('n5').optional(.select(all, ' UNNAMED133').as(' UNNAMED133')), __.constant(' cypher.null')).select('n0', 'n1', 'n2', 'n3', 'n4', 'n5', 'r0').project('n0', 'n1', 'n2', 'n3', 'n4', 'n5', 'r0').by(.select('n0')).by(.select('n1')).by(.select('n2')).by(.select('n3')).by(.select('n4')).by(.select('n5')).by(.select('r0')).as(' GENERATED8').select('n0').as('n0').select(' GENERATED8').select('n1').as('n1').select(' GENERATED8').select('n2').as('n2').select(' GENERATED8').select('n3').as('n3').select(' GENERATED8').select('n4').as('n4').select(' GENERATED8').select('n5').as('n5').select(' GENERATED8').select('r0').as('r0').project('5').by(_.constant(5))