Uploaded image for project: 'CouchDB'
  1. CouchDB
  2. COUCHDB-1372

"_stats" reduce producing errors on empty views

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.1.1
    • 1.2, 1.2.1, 1.3
    • JavaScript View Server
    • None
    • windows, most likely effects all systems

    • Regular Contributors Level (Easy to Medium)

    Description

      have a database with any number of documents in it. create a map that outputs 0 things (no emits called). use reduce : "_stats". an error should occur.
      it's very common to have views be an empty set since maps act as filters in couchdb.

      when i use my own reduce functions i don't get errors, only with the standard couchdb functions.

      this wouldn't be a problem if i could use commonJS in my reduces.

      Attachments

        Activity

          People

            rnewson Robert Newson
            boxie paul iannazzo
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 24h
                24h
                Remaining:
                Remaining Estimate - 24h
                24h
                Logged:
                Time Spent - Not Specified
                Not Specified