fix(monitor): diffTagKeys are empty when only one series in results (#23310)

This commit is contained in:
Zexi Li
2025-09-18 07:49:04 +08:00
committed by GitHub
parent d7f0a6f065
commit 614b13cd13
@@ -164,6 +164,10 @@ func translateResponse(resp *Response, query *tsdb.Query) (*tsdb.QueryResult, er
}
}
}
} else if len(results) == 1 {
for tagKey := range results[0].Metric {
diffTagKeys.Insert(tagKey)
}
}
if !isUnionResult {