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

Unrolling of collection for ids

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Do
    • 3.2.0-incubating
    • None
    • process
    • None

    Description

      In GraphStep, TinkerPop does this:

      this.ids = (ids.length == 1 && ids[0] instanceof Collection) ? ((Collection) ids[0]).toArray(new Object[((Collection) ids[0]).size()]) : ids;
      

      which means that collections are automatically unrolled when there is only one element. This breaks TP implementations that use collections to represent ids, for instance, because their id representation has multiple components (like a primary key in an RDMBS).

      Attachments

        Activity

          People

            Unassigned Unassigned
            mbroecheler Matthias Broecheler
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: