GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — reduce(...) over an inline aggregate expression may be evaluated incorrectly · Issue #4107 · ArcadeData/arcadedb Closed DescriptionArcadeDB version
Environment
Describe the bug The problem is not
So the issue appears to be specific to inline aggregate expressions nested directly inside the To Reproduce Setup: CREATE (:Person {name:'Alice', age:30}); CREATE (:Person {name:'Bob', age:25}); CREATE (:Person {name:'Charlie', age:35}); Query: MATCH (p:Person) RETURN p.name AS name, reduce(total = 0, n IN collect(p.age) | total + n) AS total_age_sum ORDER BY name; Expected behavior Observed Neo4j result: Actual behavior So the inline Control case MATCH (p:Person) WITH p.name AS name, collect(p.age) AS ages RETURN name, reduce(total = 0, n IN ages | total + n) AS total_age_sum ORDER BY name; Observed result on Neo4j and ArcadeDB This makes the boundary clear: Stronger reproducer For example: MATCH (p:Person) RETURN p.name AS name, reduce(total = 0, n IN [sum(p.age)] | total + n) AS s ORDER BY name; Observed Neo4j result: Observed ArcadeDB The same cumulative pattern also appears with MATCH (p:Person) RETURN p.name AS name, reduce(total = 0, n IN [count(*)] | total + n) AS s ORDER BY name; Observed Neo4j result: Observed ArcadeDB So this is not limited to Additional failure mode MATCH (p:Person) RETURN reduce(total = 0, n IN collect(p.age) | total + n) AS total_age_sum; Observed Neo4j result: Observed ArcadeDB This suggests the same underlying issue can show up either as a wrong numeric result or as a dropped projection value, depending on the aggregation shape. Activity
MetadataMetadataAssigneesLabelsTypeProjectsMilestoneRelationshipsDevelopmentIssue 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. |