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 — allReduce(...) may evaluate true cases as false · Issue #4043 · ArcadeData/arcadedb

allReduce(...) may evaluate true cases as false #4043

New issue
Copy link
New issue
Copy link
Closed
Bug
Closed
allReduce(...) may evaluate true cases as false#4043
Bug
Copy link
Assignees
lvca
Labels
opencypher
Milestone
26.5.1

Description

@Silence6666668
Silence6666668
opened on May 2, 2026
Issue body actions

ArcadeDB version
Observed on Docker images:

  • arcadedata/arcadedb:26.3.2
  • arcadedata/arcadedb:26.4.1-SNAPSHOT
  • arcadedata/arcadedb:26.4.2

Environment

  • Host OS: Windows
  • Architecture: x86_64
  • Deployment: Docker
  • ArcadeDB endpoint: HTTP /api/v1/command/arcade
  • Request mode matches ArcadeDB Studio:
    • language: opencypher
    • serializer: studio
  • Differential comparison target: Neo4j Docker neo4j:latest

Describe the bug
ArcadeDB may evaluate allReduce(...) incorrectly and return false even when every iteration satisfies the predicate.

In the minimized repro below, the accumulator takes values 1, 3, and 6.
All of those values satisfy x > 0 for the corresponding element, so the result should be true.
Neo4j returns true.
ArcadeDB returns false.

To Reproduce

Query:

RETURN allReduce(acc = 0, x IN [1, 2, 3] | acc + x, x > 0) AS result;

Expected behavior
Observed Neo4j result:

true

Actual behavior
Observed ArcadeDB result:

false

Control cases

Plain reduce(...) works correctly on both engines:

RETURN reduce(acc = 0, x IN [1, 2, 3] | acc + x) AS total;

Observed result:

6

Plain all(...) also works correctly on both engines:

RETURN all(x IN [1, 2, 3] WHERE x > 0) AS result;

Observed result:

true

So the issue is not a general reduce(...) problem, and it is not a general all(...) problem. The failure is specific to allReduce(...).

Additional controls

If the predicate is actually false for every iteration, both engines return false:

RETURN allReduce(acc = 0, x IN [1, 2, 3] | acc + x, x > 10) AS result;

Observed result on both engines:

false

If the list is empty, Neo4j returns vacuous truth, but ArcadeDB still returns false:

RETURN allReduce(acc = 0, x IN [] | acc + x, x > 0) AS result;

Observed results:

  • Neo4j: true
  • ArcadeDB: false

This suggests ArcadeDB may be using the wrong default truth value for allReduce(...), or otherwise evaluating the construct against the wrong state.

If the predicate depends on the accumulator instead, both engines can still agree:

RETURN allReduce(acc = 0, x IN [1, 2, 3] | acc + x, acc >= 0) AS result;

Observed result on both engines:

true

So the failure is not that allReduce(...) is completely unsupported. It appears to mis-evaluate at least some valid predicate forms.

Activity

  1. lvca
    self-assigned this
    on May 2, 2026
  2. lvca
    added the
    Bug
    issue type on May 2, 2026
  3. lvca
    added this to the 26.5.1 milestone on May 2, 2026
  4. lvca
    added a commit that references this issue on May 2, 2026

    fix: Cypher -> allReduce(...) may evaluate true cases as false

    207d573
  5. lvca commented on May 2, 2026

    @lvca
    lvca
    on May 2, 2026
    Member
    More actions

    Fixed!

    Reacted by Silence6666668
  6. lvca
    closed this as completedon May 2, 2026
  7. mergify
    added a commit that references this issue on May 3, 2026

    chore(deps): bump org.postgresql:postgresql from 42.7.10 to 42.7.11 […

    03c204f
  8. robfrank
    added
    opencypher
    on May 10, 2026
  9. robfrank
    added a commit that references this issue on May 12, 2026

    fix: Cypher -> allReduce(...) may evaluate true cases as false

    f26fa30
  10. tae898
    added 2 commits that reference this issue on Jun 28, 2026

    fix: Cypher -> allReduce(...) may evaluate true cases as false

    c69981a

    chore(deps): bump org.postgresql:postgresql from 42.7.10 to 42.7.11 […

    8a485d0
  11. mergify
    added a commit that references this issue on Aug 2, 2026

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

    5b2a892
  12. mergify
    added a commit that references this issue on Aug 23, 2026

    chore(studio-deps)(deps): bump marked from 18.0.9 to 18.0.10 in /stud…

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

Metadata

Metadata

Assignees

  • @lvca
    lvca

Labels

opencypher

Type

Bug

Projects

No projects

    Milestone

    • 26.5.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.