Skip to content

Commit a29b0be

Browse files
pontusmelkerenetapopova
authored andcommitted
Add notification when aggregation skips a null value (#170)
Notification added here neo-technology/neo4j#26847 --------- Co-authored-by: Reneta Popova <[email protected]>
1 parent 3ec64fe commit a29b0be

File tree

2 files changed

+58
-3
lines changed

2 files changed

+58
-3
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: 57 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1154,6 +1154,61 @@ If you plan to create that property key in the future, no change is needed.
11541154
======
11551155
=====
11561156

1157+
[#_neo_clientnotification_statement_AggregationSkippedNull]
1158+
=== Aggregation skipped null
1159+
1160+
.Notification details
1161+
[cols="<1s,<4"]
1162+
|===
1163+
|Neo4j code
1164+
m|Neo.ClientNotification.Statement.AggregationSkippedNull
1165+
|Title
1166+
a|The query contains an aggregation function that skips null values.
1167+
|Description
1168+
|The query contains an aggregation function that skips null values.
1169+
|Category
1170+
m|UNRECOGNIZED
1171+
|GQLSTATUS code
1172+
m|01G11
1173+
|Status description
1174+
a|warn: null value eliminated in set function.
1175+
|Classification
1176+
m|UNRECOGNIZED
1177+
|SeverityLevel
1178+
m|WARNING
1179+
|===
1180+
1181+
.Aggregation skipping a NULL value
1182+
[.tabbed-example]
1183+
=====
1184+
[.include-with-neo4j-code]
1185+
======
1186+
Query::
1187+
1188+
[source,cypher]
1189+
----
1190+
UNWIND [1, NULL, 2] AS i RETURN count(i) AS sum
1191+
----
1192+
Description of the returned code::
1193+
The query contains an aggregation function that skips null values.
1194+
======
1195+
[.include-with-GQLSTATUS-code]
1196+
======
1197+
Query::
1198+
+
1199+
[source,cypher]
1200+
----
1201+
UNWIND [1, NULL, 2] AS i RETURN count(i) AS sum
1202+
----
1203+
1204+
Returned GQLSTATUS code::
1205+
01G11
1206+
1207+
Returned status description::
1208+
warn: null value eliminated in set function.
1209+
======
1210+
=====
1211+
11571212
[#_unsupported_notifications]
11581213
== `UNSUPPORTED` category
11591214

@@ -3894,9 +3949,9 @@ Query::
38943949
MATCH ()-[r*]->()<-[r*]-() RETURN count(*) AS count
38953950
----
38963951
Description of the returned code::
3897-
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)
3898-
3952+
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)
38993953
======
3954+
39003955
[.include-with-GQLSTATUS-code]
39013956
======
39023957
Query::
@@ -3914,4 +3969,3 @@ warn: repeated relationship reference.
39143969
`r` is repeated in `()-[r*]->()<-[r*]-()`, which leads to no results.
39153970
======
39163971
=====
3917-

0 commit comments

Comments
 (0)