couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Filipe Manana (Updated) (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (COUCHDB-1413) Reduce queries with ?inclusive_end=false and endkey/endkey_docid or startkey/startkey_docid (if ?descending=true) produce incorrect reductions
Date Mon, 20 Feb 2012 00:28:34 GMT

     [ https://issues.apache.org/jira/browse/COUCHDB-1413?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Filipe Manana updated COUCHDB-1413:
-----------------------------------

    Attachment: 0001-Fix-fold-reduce-with-non-inclusive-end-key.patch
    
> Reduce queries with ?inclusive_end=false and endkey/endkey_docid or startkey/startkey_docid
(if ?descending=true) produce incorrect reductions
> ----------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: COUCHDB-1413
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-1413
>             Project: CouchDB
>          Issue Type: Bug
>    Affects Versions: 1.1.1
>            Reporter: Filipe Manana
>            Assignee: Filipe Manana
>             Fix For: 1.2.1
>
>         Attachments: 0001-Fix-fold-reduce-with-non-inclusive-end-key.patch, 0001-Fix-fold-reduce-with-non-inclusive-end-key.patch,
COUCHDB-1413.sh
>
>
> COUCHDB-1047 attempted to fix endkey being ignored for reduce queries. It works but it's
busted when endkey_docid is also present, as it produces wrong results. Using end_key_gt as
an endkey in the btree fold reduce operation is not enough to guarantee correct results for
all cases.
> The following script reproduces the issue and the following patch fixes it.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message