You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by "Robert Newson (JIRA)" <ji...@apache.org> on 2011/01/28 13:40:44 UTC
[jira] Created: (COUCHDB-1047) endkey ignored when
inclusive_end=false for reduce view calls
endkey ignored when inclusive_end=false for reduce view calls
-------------------------------------------------------------
Key: COUCHDB-1047
URL: https://issues.apache.org/jira/browse/COUCHDB-1047
Project: CouchDB
Issue Type: Bug
Affects Versions: 1.0.2, 1.0.1, 1.0
Reporter: Robert Newson
Assignee: Robert Newson
Fix For: 1.0.3, 1.1
curl 'localhost:5984/db1/_design/cl-test/_view/foo?group=true&descending=false&startkey=4&endkey=6&inclusive_end=true'
{"rows":[
{"key":4,"value":18},
{"key":5,"value":18},
{"key":6,"value":17}
]}
curl 'localhost:5984/db1/_design/cl-test/_view/foo?group=true&descending=false&startkey=4&endkey=6&inclusive_end=false'
{"rows":[
{"key":4,"value":18},
{"key":5,"value":18},
{"key":6,"value":17},
{"key":7,"value":17},
{"key":8,"value":17},
{"key":9,"value":17}
]}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (COUCHDB-1047) endkey ignored when
inclusive_end=false for reduce view calls
Posted by "Robert Newson (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/COUCHDB-1047?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Robert Newson resolved COUCHDB-1047.
------------------------------------
Resolution: Fixed
Fixed by passing end_key_gt or end_key to fold_reduce (whichever is actually present).
This is sufficient because the view keys are really {Key, DocId} and couch_httpd_view passes ?MIN_STR for end_key_gt and ?MAX_STR for end_key, which makes inclusive_end work as expected.
> endkey ignored when inclusive_end=false for reduce view calls
> -------------------------------------------------------------
>
> Key: COUCHDB-1047
> URL: https://issues.apache.org/jira/browse/COUCHDB-1047
> Project: CouchDB
> Issue Type: Bug
> Affects Versions: 1.0, 1.0.1, 1.0.2
> Reporter: Robert Newson
> Assignee: Robert Newson
> Fix For: 1.0.3, 1.1
>
>
> curl 'localhost:5984/db1/_design/cl-test/_view/foo?group=true&descending=false&startkey=4&endkey=6&inclusive_end=true'
> {"rows":[
> {"key":4,"value":18},
> {"key":5,"value":18},
> {"key":6,"value":17}
> ]}
> curl 'localhost:5984/db1/_design/cl-test/_view/foo?group=true&descending=false&startkey=4&endkey=6&inclusive_end=false'
> {"rows":[
> {"key":4,"value":18},
> {"key":5,"value":18},
> {"key":6,"value":17},
> {"key":7,"value":17},
> {"key":8,"value":17},
> {"key":9,"value":17}
> ]}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.