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
Description of the problem including expected versus actual behavior:
bucket_script / bucket_selector aggregation with a bucket_path pointing to cumulative_sum or serial_diff result may fail or become zero.
The major problem comes from in date_histogram, we may have some empty buckets but the cumulative_sum and serial_diff values are still meaningful and shall be used in bucket_script, for example, let elasticsearch do the unit conversation and provide the result together.
when bucket doc_count==0, here will always use gapPolicy even there is some meaningful value with that bucket_path, but this assumption is incorrect siince cumulative_sum / serial_diff / moving_avg aggregations will still provide meaningful values even it's an empty bucket.
Steps to reproduce:
Please include a minimal but complete recreation of the problem, including
(e.g.) index creation, mappings, settings, query etc. The easier you make for
us to reproduce it, the more likely that somebody will take the time to look at it.
The text was updated successfully, but these errors were encountered:
voidlps
changed the title
bucket_script & bucket_selector fail to reference bucket_path with meaningful cumulative_su,serial_diff and moving_avg aggregtaion
bucket_script & bucket_selector fail to get reference from bucket_path with meaningful cumulative_sum,serial_diff and moving_avg aggregtaion
Nov 30, 2017
Elasticsearch version: 5.6.3
Plugins installed: []
JVM version: 1.8.0_151
OS version: official docker image
Description of the problem including expected versus actual behavior:
bucket_script / bucket_selector aggregation with a bucket_path pointing to cumulative_sum or serial_diff result may fail or become zero.
The major problem comes from in date_histogram, we may have some empty buckets but the cumulative_sum and serial_diff values are still meaningful and shall be used in bucket_script, for example, let elasticsearch do the unit conversation and provide the result together.
It seems related to 3rd OR in this line:
elasticsearch/core/src/main/java/org/elasticsearch/search/aggregations/pipeline/BucketHelpers.java
Line 174 in 64ca0fe
when bucket doc_count==0, here will always use gapPolicy even there is some meaningful value with that bucket_path, but this assumption is incorrect siince cumulative_sum / serial_diff / moving_avg aggregations will still provide meaningful values even it's an empty bucket.
Steps to reproduce:
Please include a minimal but complete recreation of the problem, including
(e.g.) index creation, mappings, settings, query etc. The easier you make for
us to reproduce it, the more likely that somebody will take the time to look at it.
2.try the aggregation with empty bucket:
Provide logs (if relevant):
The text was updated successfully, but these errors were encountered: