Uploaded image for project: 'Couchbase Ruby client library'
  1. Couchbase Ruby client library
  2. RCBC-311

Analytics query with scope doesn't work

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 3.2.0
    • None
    • None
    • None
    • 1

    Description

      While documenting DOC-7628 https://github.com/couchbase/docs-sdk-ruby/pull/20 it looks like the Analytics query under Scope fails with an error like:

      .../.rvm/gems/ruby-3.0.0/gems/couchbase-3.0.3/lib/couchbase/scope.rb:102:in `analytics_query': uninitialized constant Couchbase::Scope::AnalyticsResult (NameError)
      	from modules/howtos/examples/analytics.rb:91:in `<main>' 

      This is with the following dataverses created;

      CREATE DATAVERSE `travel-sample.inventory`;
        USE `travel-sample.inventory`;
        CREATE DATASET `airports-collection` ON `travel-sample`.inventory.airport; 

      That seems to match the RFC, and looks like it's what's implemented in the Java SDK, so raising as bug - although it could be my misunderstanding of how the feature should work?

      (In either case, the relevant documentation section is commented out for now).

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              avsej Sergey Avseyev
              hakim.cassimally Hakim Cassimally
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty