Skip to content

Commit ed47192

Browse files
pontusmelkerenetapopova
authored andcommitted
Add notification when aggregation skips a null value
1 parent e958617 commit ed47192

File tree

2 files changed

+9
-15
lines changed

2 files changed

+9
-15
lines changed

modules/ROOT/pages/changelogs.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Neo.ClientNotification.Statement.RedundantOptionalProcedure
1111
Neo.ClientNotification.Statement.RedundantOptionalSubquery
1212
Neo.ClientNotification.Security.AuthProviderNotDefined
1313
Neo.ClientNotification.Security.ExternalAuthNotEnabled
14+
Neo.ClientNotification.Statement.AggregationSkippedNull
1415
-----
1516

1617
== Neo4j 5.23

modules/ROOT/pages/notifications/all-notifications.adoc

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4049,24 +4049,17 @@ Query::
40494049
MATCH ()-[r*]->()<-[r*]-() RETURN count(*) AS count
40504050
----
40514051
Description of the returned code::
4052-
A variable-length relationship variable is bound more than once, which leads to no results because relationships must not occur more than once in each result. (Relationship `r` was repeated)
4052+
A variable-length relationship variable is bound more than once, which leads to no results because relationships must not occur more than once in each result. (Relationship r was repeated)
4053+
====
40534054
4054-
======
4055-
[.include-with-GQLSTATUS-code]
4056-
======
4055+
.Aggregation skipping a NULL value(when run on version 5.24 or newer)
4056+
====
40574057
Query::
40584058
+
40594059
[source,cypher]
40604060
----
4061-
MATCH ()-[r*]->()<-[r*]-() RETURN count(*) AS count
4061+
UNWIND [1, NULL, 2] AS i RETURN count(i)
40624062
----
4063-
4064-
Returned GQLSTATUS code::
4065-
01N63
4066-
4067-
Returned status description::
4068-
warn: repeated relationship reference.
4069-
`r` is repeated in `()-[r*]->()<-[r*]-()`, which leads to no results.
4070-
======
4071-
=====
4072-
4063+
Description of the returned code::
4064+
null value eliminated in set function.
4065+
====

0 commit comments

Comments
 (0)