presto-hive/src/main/java/io/prestosql/plugin/hive/coercions/VarcharToIntegerNumberCoercer.java/VarcharToIntegerNumberCoercer/applyCoercedValue
class VarcharToIntegerNumberCoercer:    @Override
    protected void applyCoercedValue(BlockBuilder blockBuilder, Block block, int position)
    {
        try {
            long value = Long.parseLong(fromType.getSlice(block, position).toStringUtf8());
            if (minValue <= value && value <= maxValue) {
                toType.writeLong(blockBuilder, value);
            }
            else {
                blockBuilder.appendNull();
            }
        }
        catch (NumberFormatException e) {
            blockBuilder.appendNull();
        }
    }