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 — Cypher: only first case seems to be considered in subroutine when using UNION · Issue #3772 · ArcadeData/arcadedb

Cypher: only first case seems to be considered in subroutine when using UNION #3772

New issue
Copy link
New issue
Copy link
Closed
Bug
Closed
Cypher: only first case seems to be considered in subroutine when using UNION#3772
Bug
Copy link
Assignees
lvca
Milestone
26.4.2

Description

@Orkie
Orkie
opened on Apr 2, 2026
Issue body actions

Sorry, last one for today! I have been trying to get one particular query working and working through the issues one by one.

# returns no results (wrong, neo4j returns success2 = 1)
WITH [] as toRemove
CALL {
  WITH toRemove WITH toRemove
  WHERE SIZE(toRemove) > 0
  RETURN 2 AS success2
  UNION
  WITH toRemove WITH toRemove
  WHERE SIZE(toRemove) = 0
  RETURN 1 AS success2
}
RETURN success2

# returns success2 = 2 (correct)
WITH ["a"] as toRemove
CALL {
  WITH toRemove WITH toRemove
  WHERE SIZE(toRemove) > 0
  RETURN 2 AS success2
  UNION
  WITH toRemove WITH toRemove
  WHERE SIZE(toRemove) = 0
  RETURN 1 AS success2
}
RETURN success2
Reacted by Luca Garulli

Activity

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

    fix: Cypher -> only first case seems to be considered in subroutine w…

    aeb3cff
  5. lvca commented on Apr 2, 2026

    @lvca
    lvca
    on Apr 2, 2026
    Member
    More actions

    FIxed

  6. lvca
    closed this as completedon Apr 2, 2026
  7. Orkie commented on Apr 2, 2026

    @Orkie
    Orkie
    on Apr 2, 2026
    Author
    More actions

    Verified working, thanks!

    Reacted by Luca Garulli
  8. tae898
    added a commit that references this issue on Apr 7, 2026

    fix: Cypher -> only first case seems to be considered in subroutine w…

    aa4aa1d
  9. robfrank
    added a commit that references this issue on May 12, 2026

    fix: Cypher -> only first case seems to be considered in subroutine w…

    decfa56
  10. tae898
    added 3 commits that reference this issue on Jun 28, 2026

    fix: Cypher -> only first case seems to be considered in subroutine w…

    2e4657d

    fix: Cypher -> only first case seems to be considered in subroutine w…

    6c6e8d1

    fix: Cypher -> only first case seems to be considered in subroutine w…

    dcb2ae0
  11. mergify
    added a commit that references this issue on Aug 18, 2026

    chore(deps): bump the go-modules group across 1 directory with 3 upda…

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

Metadata

Metadata

Assignees

  • @lvca
    lvca

Labels

No labels
No labels

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.