Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot retrieve node with :: in label name? #20

Open
kuzeko opened this issue Aug 6, 2020 · 8 comments
Open

Cannot retrieve node with :: in label name? #20

kuzeko opened this issue Aug 6, 2020 · 8 comments

Comments

@kuzeko
Copy link

kuzeko commented Aug 6, 2020

I have a node with some label that contains ::

But when I run

gts.V().hasLabel("home::simple").count().next();

it returns 0.

Is this a known issue?

Thanks

@ldaug
Copy link

ldaug commented Aug 6, 2020 via email

@kuzeko
Copy link
Author

kuzeko commented Aug 7, 2020

Tried that, does not work

@spmallette
Copy link
Collaborator

I'd guess that has something to do with how TinkerPop tried to handle multi-label support :/

https://tinkerpop.apache.org/docs/current/reference/#_multi_label

@kuzeko
Copy link
Author

kuzeko commented Aug 7, 2020

I don't get it ... ?

@spmallette
Copy link
Collaborator

I just meant that TinkerPop uses the double colon for special meaning with multi-label support for neo4j. Perhaps it is interfering with your label that happens to have a double colon. Perhaps that is why your query does not work.

@kuzeko
Copy link
Author

kuzeko commented Aug 7, 2020

uh, that is unexpected

@spmallette
Copy link
Collaborator

I think I was able to confirm that this is an issue in TinkerPop and related to the special double colon usage I described in previous comments. Labels that have that delimiter added with addV() end up being split automatically. Making the delimiter configurable is an option but given the way things are implemented I think that ends up being "hard" for various reasons. If this issue is of continued concern perhaps it would be best to create an issue in TinkerPop:

https://issues.apache.org/jira/projects/TINKERPOP

@kuzeko
Copy link
Author

kuzeko commented Aug 13, 2020

Ok, I've tried to open the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants