presto-spi/src/main/java/io/prestosql/spi/type/Decimals.java/Decimals/overflows
class Decimals:    public static boolean overflows(BigInteger value)
    {
        return value.compareTo(MAX_DECIMAL_UNSCALED_VALUE) > 0 || value.compareTo(MIN_DECIMAL_UNSCALED_VALUE) < 0;
    }