You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FOR alias_a IN avatar
FILTER alias_a.domain == "http://www.example.com/"
COLLECT AGGREGATE my_average = AVG(alias_a.value)
LET aggregates = [{ "name":"average", "value":my_average}]
FOR agg in aggregates return agg
Alternative query (same behaviour /error)
FOR alias_a IN avatar
FILTER alias_a.domain == "http://www.example.com/" AND alias_a.value !=null
COLLECT AGGREGATE my_average = AVG(alias_a.value)
LET aggregates = [{ "name":"average", "value":my_average}]
FOR agg in aggregates return agg
Replication Factor & Number of Shards (Cluster only):
Only one collection (avatar)
Replication factor:
3
s10010097
4183456
DBServer0001
DBServer0003
DBServer0002
s10010098
4183761
DBServer0001
DBServer0003
DBServer0002
s10010099
4183561
DBServer0001
DBServer0003
DBServer0002
Steps to reproduce
load the small datasets in a collection named 'avatar'
run the aggregation query
Problem:
the query returns a null value for the aggregation result
In single server the issue does not exist and the same dataset produces the expected
Expected result:
the query should ignore any null values and return the average between 100 and 200 -> 150
using MAX instead of average does work and produce the expected result (200).
The text was updated successfully, but these errors were encountered:
I'm able to reproduce the problem using 3 shards (but not with a single shard), even with an additional safeguard AVG(NOT_NULL(alias_a.value, 0)), in 3.10 but also 3.12.devel. Changing the attribute value from null to a number fixes it. You have an index on domain but the problem also occurs without it.
Uh oh!
There was an error while loading. Please reload this page.
My Environment
Component, Query & Data
Affected feature:
Aggregation query
AQL query (if applicable):
Alternative query (same behaviour /error)
AQL explain and/or profile (if applicable):
Dataset:
Size of your Dataset on disk:
N/A too small
Replication Factor & Number of Shards (Cluster only):
Only one collection (avatar)
Steps to reproduce
Problem:
the query returns a null value for the aggregation result
In single server the issue does not exist and the same dataset produces the expected
Expected result:
the query should ignore any null values and return the average between 100 and 200 -> 150
using MAX instead of average does work and produce the expected result (200).
The text was updated successfully, but these errors were encountered: