GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [BUG] Syntax error using logical operator OR · Issue #931 · ArcadeData/arcadedb

[BUG] Syntax error using logical operator OR #931

New issue
Copy link
New issue
Copy link
Closed
Closed
[BUG] Syntax error using logical operator OR#931
Copy link
Assignees
lvca
Labels
invalidThis doesn't seem rightwontfixThis will not be worked on
Milestone
23.3.1

Description

@llooFlashooll
llooFlashooll
opened on Mar 10, 2023
Issue body actions

We 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.

  1. g.V().in('el2','el4') is a correct query.
  2. g.V().has('vp1') is a correct query.
  3. 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

Activity

  1. lvca commented on Mar 10, 2023

    @lvca
    lvca
    on Mar 10, 2023
    Member
    More actions

    I see from the Gremlin manual this example using the OR (source: https://tinkerpop.apache.org/docs/current/reference/#or-step):

    g.V().or(
                __.outE('created'),
                __.inE('created').count().is(gt(1))).
                  values('name')
    

    Did you already try this?

    g.V().or(__.in('el2','el4'),__.has('vp1'))
    
  2. lvca
    self-assigned this
    on Mar 10, 2023
  3. lvca commented on Mar 10, 2023

    @lvca
    lvca
    on Mar 10, 2023
    Member
    More actions

    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

  4. llooFlashooll commented on Mar 11, 2023

    @llooFlashooll
    llooFlashooll
    on Mar 11, 2023
    Author
    More actions

    OK, received with thanks! Give me some time, I'll carefully re-check these.

  5. joyemang33 commented on Mar 12, 2023

    @joyemang33
    joyemang33
    on Mar 12, 2023
    More actions

    I think you should use union instead of or since or is a filter step

    Reacted by Luca Garulli
  6. lvca commented on Mar 14, 2023

    @lvca
    lvca
    on Mar 14, 2023
    Member
    More actions

    I think @joyemang33 is right. Closing the issue.

    Reacted by Qiuyang Mang
  7. lvca
    closed this as completedon Mar 14, 2023
  8. lvca
    added
    invalidThis doesn't seem right
    wontfixThis will not be worked on
    on Mar 14, 2023
  9. lvca
    added this to the 23.3.1 milestone on Mar 14, 2023
  10. mergify
    added 2 commits that reference this issue on Feb 15, 2026

    chore(deps): bump the github-actions group with 2 updates [skip ci]

    c20f623

    chore(deps): bump the github-actions group with 3 updates [skip ci]

    a0d401d
  11. tae898
    added 2 commits that reference this issue on Jun 28, 2026

    chore(deps): bump the github-actions group with 2 updates [skip ci]

    1115a4c

    chore(deps): bump the github-actions group with 3 updates [skip ci]

    1ba3567
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @lvca
    lvca

Labels

invalidThis doesn't seem rightwontfixThis will not be worked on

Type

No type

Projects

No projects

    Milestone

    • 23.3.1

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.