presto-hive/src/main/java/io/prestosql/plugin/hive/coercions/VarcharToIntegerNumberCoercer.java/VarcharToIntegerNumberCoercer/VarcharToIntegerNumberCoercer
class VarcharToIntegerNumberCoercer:    public VarcharToIntegerNumberCoercer(VarcharType fromType, T toType)
    {
        super(fromType, toType);

        if (toType.equals(TINYINT)) {
            minValue = Byte.MIN_VALUE;
            maxValue = Byte.MAX_VALUE;
        }
        else if (toType.equals(SMALLINT)) {
            minValue = Short.MIN_VALUE;
            maxValue = Short.MAX_VALUE;
        }
        else if (toType.equals(INTEGER)) {
            minValue = Integer.MIN_VALUE;
            maxValue = Integer.MAX_VALUE;
        }
        else if (toType.equals(BIGINT)) {
            minValue = Long.MIN_VALUE;
            maxValue = Long.MAX_VALUE;
        }
        else {
            throw new PrestoException(NOT_SUPPORTED, format("Could not create Coercer from from varchar to %s", toType));
        }
    }