public QuerySettings waitEndOfQuery(Boolean waitEndOfQuery) {
        serverSetting(ServerSettings.WAIT_END_OF_QUERY,  waitEndOfQuery ? "1" : "0");
        return this;
    }
Requests the server to wait for the and of the query before sending response. Useful for getting accurate summary.
client-v2/src/main/java/com/clickhouse/client/api/query/QuerySettings.java