You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tinkerpop.apache.org by "Cole Greer (Jira)" <ji...@apache.org> on 2024/11/29 22:54:00 UTC

[jira] [Created] (TINKERPOP-3122) hasId() does not correctly unroll primitive arrays

Cole Greer created TINKERPOP-3122:
-------------------------------------

             Summary: hasId() does not correctly unroll primitive arrays
                 Key: TINKERPOP-3122
                 URL: https://issues.apache.org/jira/browse/TINKERPOP-3122
             Project: TinkerPop
          Issue Type: Improvement
          Components: process
            Reporter: Cole Greer


hasId() is configured to unroll lists/arrays of ids which are passed as arguments (see TINKERPOP-2863). The current implementation works for Object[] and Collections of ids, but fails for primitive arrays (int[]...)

Currently `hasId(new Integer[]{1,2,3}) == hasId(1, 2, 3)` but `hasId(new int[]{1,2,3}) != hasId(1, 2, 3)`.

The existing Object[] behaviour should be extended to handle all primitive array types as well.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)