You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tinkerpop.apache.org by "Stephen Mallette (Jira)" <ji...@apache.org> on 2022/09/13 14:16:00 UTC
[jira] [Commented] (TINKERPOP-2778) Wrong result in executing queries
[ https://issues.apache.org/jira/browse/TINKERPOP-2778?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17603596#comment-17603596 ]
Stephen Mallette commented on TINKERPOP-2778:
---------------------------------------------
Sorry, but it appears as though this one was missed. Do you still have this problem? Or is it resolved? if it's still a problem, then I'd say this issue seems a bit incomplete. It describes a scenario but not what the expected output should be. It's also a very complex sort of scenario - it would be helpful if you could distill the problem into a more simple setup that is easier to reason about if possible. have you tried that?
> Wrong result in executing queries
> ---------------------------------
>
> Key: TINKERPOP-2778
> URL: https://issues.apache.org/jira/browse/TINKERPOP-2778
> Project: TinkerPop
> Issue Type: Bug
> Components: tinkergraph
> Affects Versions: 3.4.13
> Environment: Ubuntu 20.04
> Reporter: Ziyue Hua
> Priority: Major
>
> 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))
--
This message was sent by Atlassian Jira
(v8.20.10#820010)