public static boolean readBoolean(ClickHouseInputStream input) throws IOException {
        return ClickHouseChecker.between(input.readByte(), ClickHouseValues.TYPE_BOOLEAN, 0, 1) == 1;
    }
Read boolean from given input stream. It uses
{@link ClickHouseInputStream#readByte()}
to get value and return {@code true} only when the value is {@code 1}.

@param input non-null input stream
@return boolean
@throws IOException when failed to read value from input stream or reached
                    end of the stream
clickhouse-data/src/main/java/com/clickhouse/data/format/BinaryStreamUtils.java