Fix handling of collections in N1qlJoinResolver. (#1587)

Closes #1566.
This commit is contained in:
Michael Reiche
2022-10-11 09:55:57 -10:00
committed by GitHub
parent c4335de91f
commit b0d96fc52e

View File

@@ -145,7 +145,7 @@ public class N1qlJoinResolver {
// Use the lhScope and lhCollection for the entity. The rhs is just the bucket.
return new KeySpacePair(lhCollection, x(i(bucketName) + "." + i(lhScope) + "." + i(lhCollection)), //
null, i(bucketName));
} else if (lhCollection != null && rhCollection == null) {
} else if (lhCollection == null && rhCollection != null) {
// the lhs does not have a collection (or scope), but rhs does have a collection
// Using the same (default) scope for the rhs would mean specifying a
// non-default collection in a default scope - which is not allowed.