Skip to content

Commit 179d273

Browse files
Merge branch 'dev' into dynamic_show_tx
2 parents 2a979eb + 23a5a5d commit 179d273

File tree

3 files changed

+643
-214
lines changed

3 files changed

+643
-214
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)