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 — SQL: aggregate functions with single argument not processing modifiers · Issue #1037 · ArcadeData/arcadedb

SQL: aggregate functions with single argument not processing modifiers #1037

New issue
Copy link
New issue
Copy link
Closed
Bug
Closed
SQL: aggregate functions with single argument not processing modifiers#1037
Bug
Copy link
Assignees
lvca
Milestone
25.8.1

Description

@gramian
gramian
opened on Apr 17, 2023
Issue body actions

ArcadeDB Server v23.3.1 (build da609e4/1680693032550/main)

Running on Mac OS X 12.6.4 - OpenJDK 64-Bit Server VM Homebrew

The results of aggregate functions with a single argument (either literal or type) do not handle modifiers. It works as expected when using two arguments.

Expected behavior

LIST
1
INTEGER
INTEGER

Actual behavior

[1,2,3,4]
[1,2,3,4]
10
4

Steps to reproduce

CREATE DOCUMENT TYPE doc;
INSERT INTO doc (num) VALUES (1), (2), (3), (4);
SELECT unionall(num).type() FROM doc;
SELECT unionall(num)[0] FROM doc;
SELECT sum(num).type() FROM doc;
SELECT max(num).type() FROM doc;

Activity

Next
  1. gramian commented on Apr 25, 2023

    @gramian
    gramian
    on Apr 25, 2023
    CollaboratorAuthor
    More actions

    I tried looking into a selection of aggregating SQL functions to look for a pattern, but I couldn't find any explaining this error definitely. Here are my findings:

    • sum (execute) returns an Object holding a:
      • Single parameter: Number
      • Multiple parameters: Number
    • max (execute) returns an Object holding a:
      • Single parameter: Object
      • Multiple parameters: Object
    • unionAll (execute) returns an Object holding a:
      • Single parameter: ArrayList<Object>
      • Multiple parameters: MultiIterator<>
  2. lvca
    self-assigned this
    on May 2, 2023
  3. lvca
    added
    bug
    on May 2, 2023
  4. lvca
    added this to the 23.4.1 milestone on May 2, 2023
  5. lvca commented on May 2, 2023

    @lvca
    lvca
    on May 2, 2023
    Member
    More actions

    Reproduced.

  6. lvca
    modified the milestones: 23.4.1, 23.5.1 on May 2, 2023
  7. lvca
    modified the milestones: 23.5.1, 23.6.1 on Jun 9, 2023
  8. lvca
    modified the milestones: 23.6.1, 23.7.1 on Jun 27, 2023
  9. lvca
    modified the milestones: 23.7.1, 23.8.1 on Aug 9, 2023
  10. lvca
    modified the milestones: 23.9.1, 23.10.1 on Sep 27, 2023
  11. 19 remaining items

  12. lvca
    added this to the 25.7.1 milestone on Jul 4, 2025
  13. robfrank
    modified the milestones: 25.7.1, 25.8.1 on Aug 11, 2025
  14. lvca
    added
    in progressThe team is actively working on this issue
    on Sep 9, 2025
  15. lvca
    added a commit that references this issue on Sep 9, 2025

    fix: aggregated projection now support method calling

    8135d51
  16. lvca commented on Sep 9, 2025

    @lvca
    lvca
    on Sep 9, 2025
    Member
    More actions

    This has been fixed. In the case of aggregation, the modifier wasn't copied.

  17. lvca
    closed this as completedon Sep 9, 2025
  18. lvca
    added
    fixed / implemented
    and removed
    in progressThe team is actively working on this issue
    on Sep 9, 2025
  19. lvca
    added the
    Bug
    issue type on Sep 9, 2025
  20. gramian commented on Sep 9, 2025

    @gramian
    gramian
    on Sep 9, 2025
    CollaboratorAuthor
    More actions

    Works for me. Great, thank you!

  21. robfrank
    added a commit that references this issue on Sep 10, 2025

    fix: aggregated projection now support method calling

    bbb44f0
  22. tae898
    added a commit that references this issue on Jun 28, 2026

    fix: aggregated projection now support method calling

    63b0640
  23. mergify
    added a commit that references this issue on Jul 26, 2026

    build(deps): bump the github-actions group across 1 directory with 6 …

    778dd5a
  24. mergify
    added a commit that references this issue on Aug 16, 2026

    chore(deps): bump io.github.ascopes:protobuf-maven-plugin from 5.1.7 …

    97a4dae
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

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