When i include a metric in the rollup, with sum, and value_count and avg, and later on try to use those fields in search, i get an error back for value_count and avg. sum, min, and max seem to work.
To Reproduce
Create rollup on populated index
Try to query based on avg
In my data, its not entirely unlikely, that for a given customer there will be months where he has no orders, and some buckets will therefore be empty based on the range query for date.
Describe the bug
When i include a metric in the rollup, with
sum
, andvalue_count
andavg
, and later on try to use those fields in search, i get an error back for value_count and avg.sum
,min
, andmax
seem to work.To Reproduce Create rollup on populated index Try to query based on avg
Expected behavior Return the average value
OpenSearch Version 2.14.0
Dashboards Version
Plugins Rollup
Screenshots
(after indexing is complete search like)
Returns:
Host/Environment (please complete the following information):
Docker / Postman
Additional context
Seems related to: https://github.com/opendistro-for-elasticsearch/index-management/issues/451 which was never addressed, but does propose a fix.
In my data, its not entirely unlikely, that for a given customer there will be months where he has no orders, and some buckets will therefore be empty based on the range query for date.