protected void resetCache() {
        if (config != null) {
            config = null;
        }

        if (statements != null) {
            statements = null;
        }
    }
Gets query, either set by {@code query()} or {@code table()}.

@return sql query
clickhouse-client/src/main/java/com/clickhouse/client/ClickHouseRequest.java