@HiveDecimalWritableVersionV2
  public static boolean isPrecisionDecimal64(int precision) {
    return (precision <= DECIMAL64_DECIMAL_DIGITS);
  }
See the comments for HiveDecimal.serializationUtilsWrite.
storage-api/src/java/org/apache/hadoop/hive/serde2/io/HiveDecimalWritable.java