Skip to content

Commit 3213b93

Browse files
JoelBergstrandrsill-neo4jhvubJPryce-Aklundh
authored
Added section on by-table semantics (#1345)
Adding section on by-table semantics for NEXT, removing the section on known limitations. --------- Co-authored-by: Richard Sill <[email protected]> Co-authored-by: Hannes Voigt <[email protected]> Co-authored-by: hvub <[email protected]> Co-authored-by: Richard Sill <[email protected]> Co-authored-by: Jens Pryce-Åklundh <[email protected]>
1 parent 219ff14 commit 3213b93

File tree

2 files changed

+267
-138
lines changed

2 files changed

+267
-138
lines changed

modules/ROOT/pages/deprecations-additions-removals-compatibility.adoc

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,31 @@ For more information, see xref:queries/select-version.adoc[].
3232
| Feature
3333
| Details
3434

35+
a|
36+
label:functionality[]
37+
label:updated[]
38+
[source, cypher]
39+
----
40+
MATCH (p:Product) WHERE p.name <> "Coffee"
41+
CALL (p) {
42+
MATCH (p)<-[:BUYS]-(c:Customer)-[:BUYS]->(otherProduct)
43+
RETURN c, otherProduct
44+
NEXT
45+
RETURN count(DISTINCT c) AS customers, 0 AS customersAlsoBuyingCoffee
46+
UNION
47+
FILTER otherProduct.name = "Coffee"
48+
RETURN 0 as customers, count(DISTINCT c) AS customersAlsoBuyingCoffee
49+
NEXT
50+
RETURN max(customers) AS customers, max(customersAlsoBuyingCoffee) AS customersAlsoBuyingCoffee
51+
}
52+
RETURN p.name AS product,
53+
round(toFloat(customersAlsoBuyingCoffee) * 100 / customers, 1) AS percentageOfCustomersAlsoBuyingCoffee
54+
ORDER BY product
55+
----
56+
57+
| `NEXT` now correctly supports aggregations in the context of `UNION` and `CALL`.
58+
For more information, see xref:queries/composed-queries/sequential-queries.adoc#issues-fixes[Sequential queries (`NEXT`) > Known issues and fixes].
59+
3560
a|
3661
label:functionality[]
3762
label:updated[]

0 commit comments

Comments
 (0)