Skip to content

Commit b34eddb

Browse files
Update modules/ROOT/pages/queries/composed-queries/sequential-queries.adoc
Co-authored-by: Jens Pryce-Åklundh <[email protected]>
1 parent 14d2029 commit b34eddb

File tree

1 file changed

+22
-2
lines changed

1 file changed

+22
-2
lines changed

modules/ROOT/pages/queries/composed-queries/sequential-queries.adoc

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -474,8 +474,28 @@ ELSE {
474474
The query above calculates the total price of products purchased per customer and then only applies the customer discount to sums below 1000.
475475

476476

477-
[[next-aggregations-in-union-and-call]]
478-
== `NEXT` and aggregations in the context of `UNION` and `CALL`
477+
[[issues-fixes]]
478+
== Known issues and fixes
479+
480+
`NEXT` initially did not correctly handle aggregations in the context of `UNION` branches and `CALL` subqueries.
481+
As of Neo4j 2025.08, this issue has been fixed.
482+
The table below summarizes the behavior changes across versions.
483+
484+
[[%header,cols="a,5a"]
485+
|===
486+
| Neo4j version
487+
| Behavior
488+
489+
| 2025.06
490+
| `NEXT` yields incorrect results when using aggregations in the context of `UNION` branches and `CALL` subqueries.
491+
492+
| 2025.07
493+
| Using aggregations with `NEXT` in the context of `UNION` branches and `CALL` subqueries throws an error.
494+
495+
| 2025.08+
496+
| `NEXT` correctly supports aggregations in the context of `UNION` branches and `CALL` subqueries.
497+
See above for more details.
498+
|===
479499

480500
As of Neo4j 2025.08, `NEXT` correctly supports aggregations in the context of `UNION` and `CALL`.
481501
In Neo4j 2025.06, such queries yielded incorrect results while they created an error in Neo4j 2025.07.

0 commit comments

Comments
 (0)