Details
-
Bug
-
Resolution: Fixed
-
Critical
-
6.6.0
-
Enterprise Edition 6.6.0 build 7792
-
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
For Gerrit Dashboard: MB-40605 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
133161,6 | MB-40605: Use the correct dataverse when creating remote links | mad-hatter | cbas-core | Status: MERGED | +2 | +1 |