Uploaded image for project: 'TinkerPop'
  1. TinkerPop
  2. TINKERPOP-2972

ProjectStep will produce an unexpected output when dealing with duplicate keys

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Done
    • 3.6.4
    • 3.6.6, 3.7.1
    • process
    • None

    Description

      g.V().project("a", "b", "b").by("lang").by(T.id).by("age")
      TP:
      1 {'b': 29}
      2 {'b': 27}
      3 {'a': 'java', 'b': '3'}
      4 {'b': 32}
      5 {'a': 'java', 'b': '5'}
      6 {'b': 35}

      TinkerPop erroneously generates an output from the final 'productive' by-traversal when a key is used more than once, a situation that should not occur. A proposed solution is to throw an exception when a redundant key is detected.

      Attachments

        Activity

          People

            Unassigned Unassigned
            ljz512187207 Jianzhong Liu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: