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 — `CALL` subqueries that contain `UNION ALL` may keep only the first branch, dropping rows from later branches. · Issue #3958 · ArcadeData/arcadedb

CALL subqueries that contain UNION ALL may keep only the first branch, dropping rows from later branches. #3958

New issue
Copy link
New issue
Copy link
Closed
Bug
Closed
CALL subqueries that contain UNION ALL may keep only the first branch, dropping rows from later branches.#3958
Bug
Copy link
Assignees
lvca
Labels
opencypher
Milestone
26.4.2

Description

@Silence6666668
Silence6666668
opened on Apr 22, 2026
Issue body actions

ArcadeDB version

Observed on Docker images:

  • arcadedata/arcadedb:latest
  • arcadedata/arcadedb:26.4.1-SNAPSHOT

Environment

  • Docker on Windows host
  • ArcadeDB queried through the HTTP API: /api/v1/command/arcade
  • Requests sent in the same shape used by ArcadeDB Studio:
    • language: opencypher
    • serializer: studio

Describe the bug

CALL subqueries that contain UNION ALL may keep only the first branch, dropping rows from later branches.

This can be reproduced without any graph data at all.

To Reproduce

Query

CALL () {
  RETURN 'Jane' AS name
  UNION ALL
  RETURN 'John' AS name
  UNION ALL
  RETURN 'Inception' AS name
}
RETURN name
ORDER BY name;

Expected behavior

All three subquery branches should contribute rows:

Inception
Jane
John

Actual behavior

ArcadeDB returns only:

Jane

So the second and third UNION ALL branches are dropped.

Control cases

Control 1, the same UNION ALL outside a CALL subquery behaves correctly on ArcadeDB:

RETURN 'Jane' AS name
UNION ALL
RETURN 'John' AS name
UNION ALL
RETURN 'Inception' AS name
ORDER BY name;

Observed result on both Neo4j and ArcadeDB:

Inception
Jane
John

Control 2, the same issue also reproduces when the branches use ordinary graph matches instead of constants:

CALL {
  MATCH (p:Person)
  RETURN p.name AS name
  UNION ALL
  MATCH (m:Movie)
  RETURN m.title AS name
}
RETURN name
ORDER BY name;

With a dataset containing Jane, John, and movie Inception, Neo4j returns all three rows, while ArcadeDB returns only the Person rows.

This suggests the issue is specifically tied to UNION ALL inside CALL, not to UNION ALL in general.

Activity

  1. lvca
    self-assigned this
    on Apr 22, 2026
  2. lvca
    added the
    Bug
    issue type on Apr 22, 2026
  3. lvca
    added this to the 26.4.1 milestone on Apr 22, 2026
  4. lvca commented on Apr 22, 2026

    @lvca
    lvca
    on Apr 22, 2026
    Member
    More actions

    Already fixed, duplicate of #3772

  5. lvca
    closed this as completedon Apr 22, 2026
  6. 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
  7. robfrank
    added
    opencypher
    on May 10, 2026
  8. tae898
    added a commit that references this issue on Jun 28, 2026

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

    8a485d0
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.4.2

    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.