GeezerVison is showing github.com — [BUG] Syntax error using logical operator OR · Issue #931 · ArcadeData/arcadedb
[BUG] Syntax error using logical operator OR #931DescriptionWe discovered a bug that Syntax error using logical operator OR.
- ArcadeDB Version: 22.12.1
- Operating system: macOS 13.2.1
- JDK Version: 11
- API/Driver: Java
We want to use logical operator OR to merge two individual queries, but it trigger 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().in('el2','el4') is a correct query.
g.V().has('vp1') is a correct query.
g.V().or(in('el2','el4'),has('vp1')) 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:
Script861.groovy: 1: unexpected token: in @ line 1, column 10.
g.V().or(in('el2','el4'),has('vp1'))
^
1 error
Activitylvca commented on Mar 10, 2023 lvca commented on Mar 10, 2023 I'm not an expert with Gremlin, ArcadeDB is an implementation of the GraphTraversal, but for all the operations & queries (unless optimized -> transformed in SQL) we use the standard libraries from TinkerPop where this logic should be implemented and be the same across all the implementation.
Have you already asked to the Gremlin Discord channel https://discord.com/invite/kfebyvDM9H llooFlashooll commented on Mar 11, 2023 OK, received with thanks! Give me some time, I'll carefully re-check these. joyemang33 commented on Mar 12, 2023 I think you should use union instead of or since or is a filter step lvca commented on Mar 14, 2023
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|