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
[engine] Select.json(JSONObject) condition parsing/round-trip is broken #8180
engineCore engine: document/schema APIparent-issueLabel to mark issues used to group related topicsseverity:majorA feature is broken or returns wrong results, with no practical workaround
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.
engineCore engine: document/schema APIparent-issueLabel to mark issues used to group related topicsseverity:majorA feature is broken or returns wrong results, with no practical workaround
Activity
lvca commentedon Sep 22, 2026
Fixed in #8198, released in 26.10.1. Covers #8167 and #8173.
Two problems in the native
SelectAPI'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. Anotcondition was written as a two-element array thatSelect.json(JSONObject)refused with a generic "Invalid condition" message.betweenandinhad 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.