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

Parser Error in Studio executing MATCH query with negative pattern (NOT) #8401

Closed
avitaleOPEN opened this issue Jul 13, 2018 · 1 comment
Closed

Comments

@avitaleOPEN
Copy link

avitaleOPEN commented Jul 13, 2018

OrientDB Version: 3.0.3

Java Version: 1.8

OS: Docker version

When I try to execute a MATCH query with negative pattern in Studio I get a parser error. I dont know if it's ok it does not work because NOT is an experimental feature...

Expected behavior

Executing the query

Actual behavior

Not executing the query due to parser error.

Steps to reproduce

I create a simple example to reproduce the case:

create vertex Node set name='node1'
create vertex Node set name='node2'
create vertex Node set name='node3'
create edge Relation from #20:0 to #21:0 -- change your @Rid
create edge Relation from #21:0 to #22:0 -- change your @Rid

In Studio I execute:

match {class: Node, as:node1}-Relation->{as:node2}-Relation->{as:node3},
not {as:node1}-Relation->{as:node2}
return $matches

Parser error:
Error parsing query: match {class: Node, as:node1}-Relation->{as:node2}-Relation->{as:node3}, not {as:node1}-Relation->{as:node2} return $matches ^ Encountered " "not "" at line 1, column 74. Was expecting: "{" ... DB name="testingDB" Error Code="1"

@avitaleOPEN
Copy link
Author

Problem fixed. It was a misunderstanding with the ops team and running docker image. It works. I'm sorry.

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

No branches or pull requests

1 participant