JanusGraph/janusgraph

hasId does not convert int to Long

Open

#1,554 opened on May 6, 2019

View on GitHub
 (2 comments) (0 reactions) (0 assignees)Java (4,985 stars) (1,137 forks)batch import
area/corehelp wantedkind/enhancement

Description

If an int is passed instead of a String or a Long to hasId() it does not get converted and results won't be yielded. This behavior has been report in issue #706, but I think this would be a nice improvement.

I think looking at the HasStepFolder.foldInIds() method might be a good place to start.

Additional info can be found in this stack overflow question and this tinkerpop issue

Contributor guide