You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] Syntax error using logical operator AND #929
We discovered a bug that Syntax error using logical operator AND.
ArcadeDB Version: 22.12.1
Operating system: macOS 13.2.1
JDK Version: 11
API/Driver: Java
We want to use logical operator AND to merge two individual queries, but it triggers a syntax exception which I think the query it's actually correct. And I keep triggering this kind of problem.
Here is one of our examples that triggered the bug.
g.V().not(__.out('el0')) is a correct query.
g.V().in('el1','el3').order().by(desc) is a correct query.
g.V().and(not(__.out('el0')),in('el1','el3').order().by(desc)) is supposed to be a correct query but trigger a crash.
Expected behavior:
No exception should be expected to throw.
Actual behavior:
A exception is thrown. And I'm not really sure whether this problem should happen so I report this. And I think if I replace the in into inE here, the bug may not be triggered, but I read the Gremlin manual carefully, this query syntax is correct and should be supported.
java.util.concurrent.ExecutionException: org.apache.tinkerpop.gremlin.driver.exception.ResponseException: startup failed:
Script297.groovy: 1: unexpected token: in @ line 1, column 30.
g.V().and(not(__.out('el0')),in('el1','el3').order().by(desc))
^
1 error
Activity
lvca commentedon Mar 10, 2023
Please see this comment: #931 (comment)
lvca commentedon Mar 14, 2023
Closing this issue because similar to #931.
chore(deps): bump io.github.ascopes:protobuf-maven-plugin from 4.1.2 …
chore(deps): bump the github-actions group with 2 updates [skip ci]
chore(deps): bump docker/login-action from 3.7.0 to 4.0.0 [skip ci]
chore(deps): bump io.github.ascopes:protobuf-maven-plugin from 4.1.2 …
chore(deps): bump the github-actions group with 2 updates [skip ci]
chore(deps): bump docker/login-action from 3.7.0 to 4.0.0 [skip ci]