presto-record-decoder/src/main/java/io/prestosql/decoder/raw/RawColumnDecoder.java/RawValueProvider/getBoolean
class RawValueProvider:        @Override
        public boolean getBoolean()
        {
            checkEnoughBytes();
            switch (fieldType) {
                case BYTE:
                    return value.get() != 0;
                case SHORT:
                    return value.getShort() != 0;
                case INT:
                    return value.getInt() != 0;
                case LONG:
                    return value.getLong() != 0;
                default:
                    throw new PrestoException(DECODER_CONVERSION_NOT_SUPPORTED, format("conversion '%s' to boolean not supported", fieldType));
            }
        }