Skip to content

Commit 12056ec

Browse files
JoelBergstrandrenetapopova
authored andcommitted
Adding 42I63 wrong clause order (neo4j#347)
Related [PR](neo-technology/neo4j#31804) --------- Co-authored-by: Reneta Popova <[email protected]>
1 parent 36cd224 commit 12056ec

File tree

4 files changed

+80
-0
lines changed

4 files changed

+80
-0
lines changed

modules/ROOT/content-nav.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,8 @@
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/42I63.adoc[]
258+
**** xref:errors/gql-errors/42I64.adoc[]
257259
**** xref:errors/gql-errors/42N00.adoc[]
258260
**** xref:errors/gql-errors/42N01.adoc[]
259261
**** xref:errors/gql-errors/42N02.adoc[]
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
= 42I63
2+
3+
== Status description
4+
error: syntax error or access rule violation - wrong subclause order. `ORDER BY`, `{ <<clause>> }` and `LIMIT` can only be used in this order in `RETURN`.
5+
6+
== Example scenario
7+
8+
For example, try to use `ORDER BY` after `SKIP` and `LIMIT`:
9+
10+
[source,cypher]
11+
----
12+
UNWIND [3,5,1,3,7,10] AS x
13+
RETURN x
14+
SKIP 2
15+
ORDER BY x
16+
----
17+
18+
You will receive an error with GQLSTATUS xref:errors/gql-errors/42000.adoc[42000].
19+
This error has a cause detailed in xref:errors/gql-errors/42I63.adoc[42I63] and status description:
20+
21+
22+
[source]
23+
----
24+
error: syntax error or access rule violation - wrong subclause order. `ORDER BY`, `SKIP` and `LIMIT` can only be used in this order in `RETURN`.
25+
----
26+
27+
28+
ifndef::backend-pdf[]
29+
[discrete.glossary]
30+
== Glossary
31+
32+
include::partial$glossary.adoc[]
33+
endif::[]
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: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1036,6 +1036,14 @@ Status description:: error: syntax error or access rule violation - missing LOOK
10361036

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

1039+
=== xref:errors/gql-errors/42I63.adoc[42I63]
1040+
1041+
Status description:: error: syntax error or access rule violation - wrong subclause order. `ORDER BY`, `{ <<clause>> }` and `LIMIT` can only be used in this order in `RETURN`.
1042+
1043+
=== xref:errors/gql-errors/42I64.adoc[42I64]
1044+
1045+
Status description:: error: syntax error or access rule violation - unsupported aggregation. `{ <<msg>> }` currently not supported after `+NEXT+` `{ <<context>> }`.
1046+
10391047
[role=label--changed-2025.03]
10401048
=== xref:errors/gql-errors/42N00.adoc[42N00]
10411049

0 commit comments

Comments
 (0)