OpenSearch/server
Zachary Tong 3c2d2a7d4a
Fix NPE when CumulativeSum agg encounters null/empty bucket (#29641)
Fix NPE when CumulativeSum agg encounters null/empty bucket

If the cusum agg encounters a null value, it's because the value is
missing (like the first value from a derivative agg), the path is
not valid, or the bucket in the path was empty.

Previously cusum would just explode on the null, but this changes it
so we only increment the sum if the value is non-null and finite.
This is safe because even if the cusum encounters all null or empty
buckets, the cumulative sum is still zero (like how the sum agg returns
zero even if all the docs were missing values)

I went ahead and tweaked AggregatorTestCase to allow testing pipelines,
so that I could delete the IT test and reimplement it as AggTests.

Closes #27544
2018-05-02 12:22:55 -07:00
..
cli Add useful message when no input from terminal (#29369) 2018-04-10 21:50:39 -04:00
licenses Upgrade to lucene 7.3.0 (#29387) 2018-04-05 10:34:44 +01:00
src Fix NPE when CumulativeSum agg encounters null/empty bucket (#29641) 2018-05-02 12:22:55 -07:00
build.gradle Build: Split distributions into oss and default 2018-04-20 15:33:57 -07:00