Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-40605

CREATE DATASET AT dataverse.link does not recognize dataverse

    XMLWordPrintable

Details

    • Untriaged
    • 1
    • Unknown
    • CX Sprint 209

    Description

      Assume that the Test dataverse exists.

      Create a remote link in the Test dataverse using the REST API:

      $ curl -v -u Administrator:password -X POST "http://localhost:8095/analytics/link?dataverse=Test&name=myCbLink&type=couchbase&hostname=remote:8091&username=Administrator&password=password&encryption=none"
      

      On localhost, create a dataset on the remote link:

      CREATE DATASET airports ON `travel-sample` AT Test.myCbLink WHERE `type` = "airport";
      

      The dataset is not created:

      [
        {
          "code": 24006,
          "msg": "Link Default.myCbLink does not exist",
          "query_from_user": "CREATE DATASET airports ON `travel-sample` AT Test.myCbLink WHERE `type` = \"airport\";"
        }
      ]
      

      Note that the error message states Default.myCbLink does not exist even though we specified AT Test.myCbLink.

      However, changing the default dataverse with USE works:

      USE Test;
      CREATE DATASET airports ON `travel-sample` AT Test.myCbLink WHERE `type` = "airport";
      

      Attachments

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

        Activity

          People

            umang.agrawal Umang
            simon.dew Simon Dew
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty