static CompletableFuture<ClickHouseResponseSummary> load(ClickHouseNode server, String table,
            ClickHousePassThruStream stream) {
        if (server == null || table == null || stream == null) {
            throw new IllegalArgumentException("Non-null server, table, and pass-thru stream are required");
        }

        // in case the protocol is ANY
        final ClickHouseNode theServer = server.probe();

        return submit(() -> {
            try (ClickHouseClient client = newInstance(theServer.getProtocol());
                    ClickHouseResponse response = client.write(theServer).table(table).data(stream)
                            .executeAndWait()) {
                return response.getSummary();
            }
        });
    }
Loads data from the given pass-thru stream into a table. Pass
{@link com.clickhouse.data.ClickHouseFile} to load data from a file, which
may or may not be compressed.

@param server non-null server to connect to
@param table  non-null target table
@param stream non-null pass-thru stream
@return future object to get result
@throws IllegalArgumentException if any of server, table, and input is null
@throws CompletionException      when error occurred during execution
clickhouse-client/src/main/java/com/clickhouse/client/ClickHouseClient.java