Skip to content

Commit c524105

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

File tree

4 files changed

+40
-2
lines changed

4 files changed

+40
-2
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/42I63.adoc[]
257258
**** xref:errors/gql-errors/42I64.adoc[]
258259
**** xref:errors/gql-errors/42N00.adoc[]
259260
**** xref:errors/gql-errors/42N01.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::[]

modules/ROOT/pages/errors/gql-errors/42I64.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
= 42I64
22

33
== Status description
4-
error: syntax error or access rule violation - unsupported aggregation. { <<msg>> } currently not supported after `NEXT` { <<context>> }.
4+
error: syntax error or access rule violation - unsupported aggregation. `{ <<msg>> }` currently not supported after `+NEXT+` `{ <<context>> }`.
55

66
== Example scenario
77

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1034,9 +1034,13 @@ 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/42I63.adoc[42I63]
1038+
1039+
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`.
1040+
10371041
=== xref:errors/gql-errors/42I64.adoc[42I64]
10381042

1039-
Status description:: error: syntax error or access rule violation - unsupported aggregation. { <<msg>> } currently not supported in `NEXT` { <<context>> }.
1043+
Status description:: error: syntax error or access rule violation - unsupported aggregation. `{ <<msg>> }` currently not supported after `+NEXT+` `{ <<context>> }`.
10401044

10411045
[role=label--changed-2025.03]
10421046
=== xref:errors/gql-errors/42N00.adoc[42N00]

0 commit comments

Comments
 (0)