Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions modules/ROOT/content-nav.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@
**** xref:errors/gql-errors/42I60.adoc[]
**** xref:errors/gql-errors/42I61.adoc[]
**** xref:errors/gql-errors/42I62.adoc[]
**** xref:errors/gql-errors/42I64.adoc[]
**** xref:errors/gql-errors/42N00.adoc[]
**** xref:errors/gql-errors/42N01.adoc[]
**** xref:errors/gql-errors/42N02.adoc[]
Expand Down
37 changes: 37 additions & 0 deletions modules/ROOT/pages/errors/gql-errors/42I64.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
= 42I64

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

== Example scenario

For example, when aggregating in a `UNION` query after a `NEXT`:

[source,cypher]
----
UNWIND [1, 2] AS x
RETURN x
NEXT
RETURN COUNT(x)
UNION ALL
RETURN COUNT(x)
----

You will receive an error with GQLSTATUS xref:errors/gql-errors/42001.adoc[42001].
This error has a cause detailed in xref:errors/gql-errors/42I64.adoc[42I64] and status description:


[source]
----
error: syntax error or access rule violation - unsupported aggregation. Aggregations are currently not supported in `NEXT` when used in a `UNION`.
----


Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be good to have an example scenario and an example as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done!

ifndef::backend-pdf[]
[discrete.glossary]
== Glossary

include::partial$glossary.adoc[]
endif::[]
4 changes: 4 additions & 0 deletions modules/ROOT/pages/errors/gql-errors/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -1034,6 +1034,10 @@ Status description:: error: syntax error or access rule violation - missing LOOK

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

=== xref:errors/gql-errors/42I64.adoc[42I64]

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

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

Expand Down