static CompletableFuture<ClickHouseResponseSummary> dump(ClickHouseNode server, String tableOrQuery, String file,
            ClickHouseCompression compression, ClickHouseFormat format) {
        return dump(server, tableOrQuery, ClickHouseFile.of(file, compression, format));
    }
Dumps a table or query result from server into a file. File will be
created/overwrited as needed.

@param server       non-null server to connect to
@param tableOrQuery table name or a select query
@param file         output file
@param compression  compression algorithm to use
@param format       output format to use
@return non-null future object to get result
@throws IllegalArgumentException if any of server, tableOrQuery, and output
                                 is null
@throws CompletionException      when error occurred during execution
clickhouse-client/src/main/java/com/clickhouse/client/ClickHouseClient.java