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 #1037DescriptionArcadeDB 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
Actual behavior
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;
Activitygramian commented 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<>
lvca commented on May 2, 2023 lvca commented on Sep 9, 2025 This has been fixed. In the case of aggregation, the modifier wasn't copied. gramian commented on Sep 9, 2025 CollaboratorAuthor More actions Works for me. Great, thank you!
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|