Uploaded image for project: 'Couchbase Go SDK'
  1. Couchbase Go SDK
  2. GOCBC-1067

Analytics query_context on Scope query doesn't work with backtick-separated bucket

    XMLWordPrintable

Details

    • Bug
    • Resolution: Not a Bug
    • Major
    • None
    • None
    • None
    • None
    • Impediment
    • 1

    Description

      With this collection:

      This code:

      bucket := cluster.Bucket("travel-sample")
      scope := bucket.Scope("inventory")        
      results, err := scope.AnalyticsQuery("SELECT airportname, country FROM `airports-collection` WHERE country='France' LIMIT 2", nil) 

      gives the error:

      panic: dataverse not found | {"statement":"SELECT airportname, country FROM `airports-collection` WHERE country='France' LIMIT 2","client_context_id":"7052e7be-c842-4675-8f19-9a185db41ad3","errors":[{"Code":24034,"Message":"Cannot find dataverse with name `travel-sample`.inventory"} 

      I'd expect the dataverse to be concatenated from the query_context as `travel-sample.inventory` as it is in the Java and dotNet SDKs.

      (See DOC-7628 for links to PRs for those SDKs)

      Attachments

        Issue Links

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

          Activity

            People

              charles.dixon Charles Dixon
              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