Details
-
Bug
-
Resolution: Fixed
-
Blocker
-
None
-
1.1-dp4
-
Security Level: Public
-
None
Description
Attempting to make a call to CouchbaseClient.query(view, query) with a view that has a reduce (even just "_count") results in the following exception when results are returned:
java.lang.RuntimeException: Failed to access the view
at com.couchbase.client.CouchbaseClient.query(CouchbaseClient.java:634)
Worth noting:
- If the query returns no results (ViewResponse.size() returns 0), you do not get the exception...
- If the reduce method is removed from the view, everything works fine. However, using query.setReduce(false) does not work.
Attachments
For Gerrit Dashboard: JCBC-150 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
22710,4 | JCBC-150: Implicitly add reduce = true on reduced view | master | couchbase-java-client | Status: MERGED | +2 | +1 |