You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tinkerpop.apache.org by "Bryn Cooke (JIRA)" <ji...@apache.org> on 2015/04/27 13:04:39 UTC

[jira] [Created] (TINKERPOP3-644) Compute IDs changing from Long to Integer in groovy script

Bryn Cooke created TINKERPOP3-644:
-------------------------------------

             Summary: Compute IDs changing from Long to Integer in groovy script
                 Key: TINKERPOP3-644
                 URL: https://issues.apache.org/jira/browse/TINKERPOP3-644
             Project: TinkerPop 3
          Issue Type: Bug
            Reporter: Bryn Cooke


ElementHelper.idExists is used to detect if an ID is present in an array of IDs.
However when executing a groovy compute script an ID that is of type long gets magically transformed in to an integer.

long v1Id = 23892384L
ComputerTestHelper.compute("g.V(${v1Id}).hasNot('${propertyKey}')", g);

This means that when the vertex program eventually runs it won't work because the providedIDs in ElementHelper.idExists are of a differing type to the underlying element ID. ElementHelper.idExists will always return false.






--
This message was sent by Atlassian JIRA
(v6.3.4#6332)