Skip to content

Commit 502b509

Browse files
update
1 parent 73c86ba commit 502b509

File tree

4 files changed

+44
-9
lines changed

4 files changed

+44
-9
lines changed

modules/ROOT/pages/appendix/gql-conformance/index.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
:description: Overview of Cypher's conformance to GQL.
22
= GQL conformance
33

4-
*Last updated*: 24 October 2024 +
5-
*Neo4j version*: 5.25
4+
*Last updated*: 13 November 2024 +
5+
*Neo4j version*: 2025.01
66

77
GQL is the new link:https://www.iso.org/home.html[ISO] International Standard query language for graph databases.
88

modules/ROOT/pages/appendix/gql-conformance/supported-mandatory.adoc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ The below table is instead listed in order of their appearance in the link:https
2828

2929
Cypher supports the boolean type predicate for `TRUE`, `FALSE`, and `NULL` but does not support the GQL keyword `UNKNOWN`.
3030

31+
| 9.1
32+
| <nested procedure specification>
33+
| xref:clauses/union.adoc#combining-union-and-union-all[Combining `UNION` and `UNION ALL`].
34+
|
35+
3136
| 13.2
3237
| <insert statement>
3338
| xref:clauses/create.adoc#insert-as-synonym-of-create[`INSERT`]

modules/ROOT/pages/clauses/union.adoc

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -124,14 +124,14 @@ The combined result is returned, without duplicates.
124124
|Rows: 3
125125
|===
126126

127-
[[union-combining-distinct-and-all]]
128-
== Combining UNION DISTINCT and UNION ALL
127+
[role=label--new-2025.01]
128+
[[combining-union-and-union-all]]
129+
== Combining UNION and UNION ALL
129130

130-
It is not allowed to mix `UNION DISTINCT` and `UNION ALL` in the same chain of clauses.
131-
This can be solved by enclosing one or more `UNION` of the same type in curly braces
132-
allowing the enclosed query to be used as an argument to the outer `UNION`.
131+
To combine `UNION` (or `UNION DISTINCT`) and `UNION ALL` in the same query, enclose one or more `UNION` operations of the same type in curly braces.
132+
This allows the enclosed query to act as an argument that can be combined with an outer `UNION` operation of any type.
133133

134-
.Query
134+
.Combine `UNION` and `UNION ALL` using curly braces
135135
[source, cypher]
136136
----
137137
{
@@ -160,7 +160,6 @@ The combined result is returned.
160160
|===
161161

162162

163-
164163
[[post-union-processing]]
165164
== Post-union processing
166165

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

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,37 @@ Several xref:clauses/transaction-clauses.adoc#query-listing-transactions[`SHOW
134134
* The current query-related columns — `currentQuery`, `currentQueryId`, `parameters`, `planner`, `runtime`, `indexes`, `currentQueryStartTime`, `currentQueryElapsedTime`, `currentQueryCpuTime`, `currentQueryIdleTime`, and `currentQueryStatus` — now return `null` when no query is executing.
135135
|===
136136

137+
138+
=== New features
139+
140+
[cols="2", options="header"]
141+
|===
142+
| Feature
143+
| Details
144+
145+
a|
146+
label:functionality[]
147+
label:updated[]
148+
[source, cypher, role="noheader"]
149+
----
150+
{
151+
MATCH (n:Actor)
152+
RETURN n.name AS name
153+
UNION
154+
MATCH (n:Director)
155+
RETURN n.name AS name
156+
}
157+
UNION ALL
158+
MATCH (n:Movie)
159+
RETURN n.title AS name
160+
----
161+
162+
a| `UNION` (or `UNION DISTINCT`) and `UNION ALL` can now be combined in the same query through the use of curly braces.
163+
This was introduced as part of Cypher's xref:appendix/gql-conformance/index.adoc[].
164+
For more information, see xref:clauses/union.adoc#combining-union-and-union-all[Combining `UNION` and `UNION ALL`].
165+
|===
166+
167+
137168
[[cypher-deprecations-additions-removals-5.26]]
138169
== Neo4j 5.26
139170

0 commit comments

Comments
 (0)