Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Won't Do
-
3.2.0-incubating
-
None
-
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).