public boolean hasInputStream() {
        return this.input != null || this.writer != null || !this.externalTables.isEmpty();
    }
Checks if the request contains any input stream or custom writer.

@return true if there's input stream or customer writer; false otherwise
clickhouse-client/src/main/java/com/clickhouse/client/ClickHouseRequest.java