(fix)(headless) opt checkTag for tag distribution (#930)

This commit is contained in:
daikon
2024-04-22 16:15:41 +08:00
committed by GitHub
parent eed5ba03fe
commit c4b4896f8f

View File

@@ -76,8 +76,8 @@ public class TagQueryServiceImpl implements TagQueryService {
}
private void checkTag(TagResp tag) throws Exception {
if (Objects.nonNull(tag) && TagDefineType.METRIC.equals(tag.getTagDefineType())) {
throw new Exception("do not support value distribution query for tag: " + tag.getBizName());
if (Objects.nonNull(tag) && TagDefineType.METRIC.name().equalsIgnoreCase(tag.getTagDefineType())) {
throw new Exception("do not support value distribution query for tag (from metric): " + tag.getBizName());
}
}