mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-13 13:07:32 +00:00
[improvement][chat]Consider Chinese date fields in MetricCheckProcessor for data (#460)
This commit is contained in:
@@ -24,6 +24,13 @@ public enum TimeDimensionEnum {
|
||||
this.chName = chName;
|
||||
}
|
||||
|
||||
public static boolean containsTimeDimension(String fieldName) {
|
||||
if (getNameList().contains(fieldName) || getChNameList().contains(fieldName)) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public static List<String> getNameList() {
|
||||
return Arrays.stream(TimeDimensionEnum.values()).map(TimeDimensionEnum::getName).collect(Collectors.toList());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user