mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-17 02:14:54 +00:00
[TEST] fix histogram test when extended bounds overlaps data
Closes #19221
This commit is contained in:
parent
cbbc8790a5
commit
84efaf4579
@ -858,7 +858,7 @@ public class HistogramTests extends ESIntegTestCase {
|
||||
|
||||
// constructing the newly expected bucket list
|
||||
int bucketsCount = (int) ((boundsMaxKey - boundsMinKey) / interval) + 1;
|
||||
long[] extendedValueCounts = new long[bucketsCount];
|
||||
long[] extendedValueCounts = new long[valueCounts.length + addedBucketsLeft + addedBucketsRight];
|
||||
System.arraycopy(valueCounts, 0, extendedValueCounts, addedBucketsLeft, valueCounts.length);
|
||||
|
||||
SearchResponse response = null;
|
||||
|
Loading…
x
Reference in New Issue
Block a user