public boolean hasUnderlyingStream() {
        return stream.hasOutput();
    }
Checks if there's underlying output stream. Same as
{@code getUnderlyingStream().hasOutput()}.

@return true if there's underlying output stream; false otherwise
clickhouse-data/src/main/java/com/clickhouse/data/ClickHouseOutputStream.java