public Optional<String> getSessionId() {
        String sessionId = getConfig().getStrOption(ClickHouseClientOption.SESSION_ID);
        return ClickHouseChecker.isNullOrEmpty(sessionId) ? Optional.empty() : Optional.of(sessionId);
    }
Gets session id.

@return session id
clickhouse-client/src/main/java/com/clickhouse/client/ClickHouseRequest.java