public ClickHouseConfig getConfig() {
        if (config == null) {
            ClickHouseConfig clientConfig = getClient().getConfig();
            ClickHouseNode node = getServer();
            if (options.isEmpty()
                    && clientConfig.getDefaultCredentials().equals(node.getCredentials(clientConfig))) {
                config = clientConfig;
            } else {
                Map<ClickHouseOption, Serializable> merged = new HashMap<>();
                merged.putAll(clientConfig.getAllOptions());
                merged.putAll(options);

                ClickHouseCredentials credentials = node.getCredentials(clientConfig);
                if (merged.containsKey(ClickHouseDefaults.USER) && merged.containsKey(ClickHouseDefaults.PASSWORD)) {
                    credentials = ClickHouseCredentials.fromUserAndPassword((String) merged.get(ClickHouseDefaults.USER),
                            (String) merged.get(ClickHouseDefaults.PASSWORD));
                }
                config = new ClickHouseConfig(merged, credentials,
                        clientConfig.getNodeSelector(), clientConfig.getMetricRegistry().orElse(null));
            }
        }

        return config;
    }
Gets request configuration.

@return request configuration
clickhouse-client/src/main/java/com/clickhouse/client/ClickHouseRequest.java