You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by "Matt Grande (JIRA)" <ji...@apache.org> on 2016/03/04 18:31:40 UTC

[jira] [Created] (COUCHDB-2962) _stats reduce causes errors if null is emitted.

Matt Grande created COUCHDB-2962:
------------------------------------

             Summary: _stats reduce causes errors if null is emitted.
                 Key: COUCHDB-2962
                 URL: https://issues.apache.org/jira/browse/COUCHDB-2962
             Project: CouchDB
          Issue Type: Bug
          Components: JavaScript View Server
            Reporter: Matt Grande


*Steps to reproduce:*

1. Create a view with the following map:

function(doc) {
    emit( doc._id, doc.some_value_that_may_be_null );
}

or even just this:

function(doc) {
    emit( doc._id, null );
}

2. Add the `_stats` reduce
3. Click "run"
4. You will get a javascript alert with the following message:

bq. Error: An error occurred querying the database
bq. no response



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)