in kyuubi-relocated-hive-metastore-client/src/main/java/org/apache/kyuubi/shaded/hive/metastore/conf/SizeValidator.java [39:49]
public void validate(String value) {
long size = toSizeBytes(value);
if (min != null && (minInclusive ? size < min : size <= min)) {
throw new IllegalArgumentException(
value + " is smaller than minimum " + min + sizeString(min));
}
if (max != null && (maxInclusive ? size > max : size >= max)) {
throw new IllegalArgumentException(
value + " is larger than maximum " + max + sizeString(max));
}
}