kyuubi-hive-jdbc/src/main/java/org/apache/kyuubi/jdbc/hive/common/IntervalDayTimeUtils.java [28:40]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  public static int parseNumericValueWithRange(
      String fieldName, String strVal, int minValue, int maxValue) throws IllegalArgumentException {
    int result = 0;
    if (strVal != null) {
      result = Integer.parseInt(strVal);
      if (result < minValue || result > maxValue) {
        throw new IllegalArgumentException(
            String.format(
                "%s value %d outside range [%d, %d]", fieldName, result, minValue, maxValue));
      }
    }
    return result;
  }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



kyuubi-hive-jdbc/src/main/java/org/apache/kyuubi/jdbc/hive/common/DateUtils.java [24:36]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  public static int parseNumericValueWithRange(
      String fieldName, String strVal, int minValue, int maxValue) throws IllegalArgumentException {
    int result = 0;
    if (strVal != null) {
      result = Integer.parseInt(strVal);
      if (result < minValue || result > maxValue) {
        throw new IllegalArgumentException(
            String.format(
                "%s value %d outside range [%d, %d]", fieldName, result, minValue, maxValue));
      }
    }
    return result;
  }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



