mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-10 02:46:56 +00:00
(fix)(headless) opt checkTag for tag distribution (#930)
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user