presto-spi/src/main/java/io/prestosql/spi/type/AbstractIntType.java/AbstractIntType/writeLong
class AbstractIntType:    @Override
    public void writeLong(BlockBuilder blockBuilder, long value)
    {
        blockBuilder.writeInt((int) value).closeEntry();
    }