Commit 466f15a
committed
Fix matrix_stats aggregation cache conflict by including multiValueMode in equals/hashCode
- Added multiValueMode to equals() and hashCode() of MatrixStatsAggregationBuilder
- Added serialization/deserialization logic for multiValueMode in writeTo/readFrom
- Prevents incorrect aggregator reuse when aggregation mode changes (e.g. AVG ↔ MIN)1 parent 58c281f commit 466f15a
File tree
1 file changed
+18
-6
lines changed- modules/aggs-matrix-stats/src/main/java/org/opensearch/search/aggregations/matrix/stats
1 file changed
+18
-6
lines changedLines changed: 18 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
48 | 49 | | |
49 | 50 | | |
50 | 51 | | |
| |||
74 | 75 | | |
75 | 76 | | |
76 | 77 | | |
| 78 | + | |
77 | 79 | | |
78 | 80 | | |
79 | 81 | | |
80 | | - | |
81 | | - | |
| 82 | + | |
| 83 | + | |
82 | 84 | | |
83 | 85 | | |
84 | 86 | | |
85 | 87 | | |
86 | 88 | | |
87 | 89 | | |
88 | 90 | | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | 91 | | |
94 | 92 | | |
95 | 93 | | |
| |||
110 | 108 | | |
111 | 109 | | |
112 | 110 | | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
113 | 125 | | |
0 commit comments