Cross-bucket N1QL queries fail even with "add_bucket_creds"

Description

The following query fails in the above mentioned environment:

Interestingly, the same code snippet works just fine on my laptop with lcb 2.6 and pycb 2.1.0.

Environment

Ubuntu 16.04.1 lcb 2.7.1

Gerrit Reviews

None

Release Notes Description

None

Activity

Pavel Paulau February 1, 2017 at 6:40 PM

Yeah, cross_bucket helps.

Mark Nunberg February 1, 2017 at 4:29 PM
Edited

You need to set the "cross_bucket" attribute on the query object itself. This feature was added in 2.2.0 I believe. See
http://docs.couchbase.com/sdk-api/couchbase-python-client-2.2.0/api/n1ql.html#couchbase.n1ql.N1QLQuery.cross_bucket

The reason is that a regular query is not by default a "Cross Bucket" query.

Pavel Paulau January 30, 2017 at 11:10 PM

Huh, something is wrong with the text formatting in JIRA :/

Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Components

Affects versions

Priority

Instabug

Open Instabug

PagerDuty

Sentry

Zendesk Support

Created January 30, 2017 at 11:06 PM
Updated February 24, 2017 at 7:34 PM
Resolved February 1, 2017 at 8:25 PM
Instabug