Skip to content

[engine] Select.json(JSONObject) condition parsing/round-trip is broken #8180

Closed

Description

@github-actions

Automated consolidation of related issues in engine, carrying the highest severity of the issues it replaces (severity:major).

Each issue above was closed as a duplicate of this one. If a grouping is wrong, reopen that issue and strike it from this list.

Opened by the merge-related-issues workflow (run).

Activity

  1. added
    parent-issue
    engine
    severity:major
    on Sep 22, 2026
  2. added this to the 26.10.1 milestone on Sep 22, 2026
  3. added
    in progress
    on Sep 22, 2026
  4. self-assigned this
    on Sep 22, 2026
  5. lvca commented on Sep 22, 2026

    @lvca
    Member

    Fixed in #8198, released in 26.10.1. Covers #8167 and #8173.

    Two problems in the native Select API's JSON form:

    Grouping was silently lost. A nested condition was re-flattened through the builder's operator-precedence rules, so the brackets you wrote were discarded. a = 2 and (b = 1 or b = 3) ran as (a = 2 and b = 1) or b = 3 - a different predicate, returning different rows, with no error. A nested array is now treated as a parenthesis and kept intact, so the native answer matches the equivalent SQL.

    json() produced documents its own reader rejected. A not condition was written as a two-element array that Select.json(JSONObject) refused with a generic "Invalid condition" message. between and in had the same problem: their list of values was mistaken for a nested condition. All three now round-trip, so serialising a compiled query and reading it back gives the query you started with. Error messages for a malformed condition now name the actual cause.

    The format itself is unchanged - existing JSON keeps working, and queries that were already correct are unaffected. The Java Select API documentation now describes the condition format, including how nesting is interpreted.


    ❤️ Thanks for helping make ArcadeDB better! ArcadeDB is free and open source, sustained by its community. If it's useful to you or your company, please consider becoming a sponsor to keep development going.

  6. removed
    in progress
    on Sep 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

engineparent-issueseverity:major

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions