public boolean hasFormat() {
        return format != null;
    }
Checks if the data format is defined or not.

@return true if the data format is defined; false otherwise
clickhouse-data/src/main/java/com/clickhouse/data/ClickHousePassThruStream.java