Skip to content

Commit e4264f5

Browse files
Added 42I64 - unsupported aggregation (#359)
Adds error for [PR](neo-technology/neo4j#31952) - unsupported aggregation in NEXT.
1 parent d349f72 commit e4264f5

File tree

3 files changed

+42
-0
lines changed

3 files changed

+42
-0
lines changed

modules/ROOT/content-nav.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,7 @@
254254
**** xref:errors/gql-errors/42I60.adoc[]
255255
**** xref:errors/gql-errors/42I61.adoc[]
256256
**** xref:errors/gql-errors/42I62.adoc[]
257+
**** xref:errors/gql-errors/42I64.adoc[]
257258
**** xref:errors/gql-errors/42N00.adoc[]
258259
**** xref:errors/gql-errors/42N01.adoc[]
259260
**** xref:errors/gql-errors/42N02.adoc[]
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
= 42I64
2+
3+
== Status description
4+
error: syntax error or access rule violation - unsupported aggregation. { <<msg>> } currently not supported after `NEXT` { <<context>> }.
5+
6+
== Example scenario
7+
8+
For example, when aggregating in a `UNION` query after a `NEXT`:
9+
10+
[source,cypher]
11+
----
12+
UNWIND [1, 2] AS x
13+
RETURN x
14+
15+
NEXT
16+
17+
RETURN COUNT(x)
18+
UNION ALL
19+
RETURN COUNT(x)
20+
----
21+
22+
You will receive an error with GQLSTATUS xref:errors/gql-errors/42001.adoc[42001].
23+
This error has a cause detailed in xref:errors/gql-errors/42I64.adoc[42I64] and status description:
24+
25+
26+
[source]
27+
----
28+
error: syntax error or access rule violation - unsupported aggregation. Aggregations are currently not supported in `NEXT` when used in a `UNION`.
29+
----
30+
31+
32+
ifndef::backend-pdf[]
33+
[discrete.glossary]
34+
== Glossary
35+
36+
include::partial$glossary.adoc[]
37+
endif::[]

modules/ROOT/pages/errors/gql-errors/index.adoc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1034,6 +1034,10 @@ Status description:: error: syntax error or access rule violation - missing LOOK
10341034

10351035
Status description:: error: syntax error or access rule violation - unsupported distance metric. Unknown distance metric: `{ <<input>> }`.
10361036

1037+
=== xref:errors/gql-errors/42I64.adoc[42I64]
1038+
1039+
Status description:: error: syntax error or access rule violation - unsupported aggregation. { <<msg>> } currently not supported in `NEXT` { <<context>> }.
1040+
10371041
[role=label--changed-2025.03]
10381042
=== xref:errors/gql-errors/42N00.adoc[42N00]
10391043

0 commit comments

Comments
 (0)