This commit is contained in:
parent
88fb1faceb
commit
283a860165
|
|
@ -49,6 +49,7 @@
|
|||
* Bump up graphql-java to 21.0.
|
||||
* Apply MQE on Virtual-Cache layer UI-templates
|
||||
* Add Echo component ID(5015) language: Golang.
|
||||
* Fix `index out of bounds exception` in `aggregate_labels` MQE function.
|
||||
|
||||
#### UI
|
||||
|
||||
|
|
|
|||
|
|
@ -32,6 +32,7 @@ import org.apache.skywalking.oap.query.graphql.type.mql.ExpressionResult;
|
|||
import org.apache.skywalking.oap.query.graphql.type.mql.MQEValue;
|
||||
import org.apache.skywalking.oap.query.graphql.type.mql.MQEValues;
|
||||
import org.apache.skywalking.oap.query.graphql.type.mql.Metadata;
|
||||
import org.apache.skywalking.oap.server.library.util.CollectionUtils;
|
||||
|
||||
public class AggregateLabelsOp {
|
||||
|
||||
|
|
@ -54,6 +55,9 @@ public class AggregateLabelsOp {
|
|||
private static ExpressionResult aggregateLabeledValueResult(ExpressionResult expResult,
|
||||
AggregateLabelsFuncFactory factory) {
|
||||
List<MQEValues> results = expResult.getResults();
|
||||
if (CollectionUtils.isEmpty(results)) {
|
||||
return expResult;
|
||||
}
|
||||
|
||||
List<MQEValue> combineTo = results.get(0).getValues();
|
||||
for (int i = 0; i < combineTo.size(); i++) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue