public ClickHouseVersion getVersion(ClickHouseConfig config) {
        return this.config.hasOption(ClickHouseClientOption.SERVER_VERSION) ? this.config.getServerVersion()
                : ClickHouseChecker.nonNull(config, ClickHouseConfig.TYPE_NAME).getServerVersion();
    }
Gets version of the node. When not defined, it will use server version from
the given configuration.

@param config non-null configuration to get server version
@return version of the node
clickhouse-client/src/main/java/com/clickhouse/client/ClickHouseNode.java