Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-14779

Failure on emitting key that is not an array or GeoJSON

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Blocker
    • 4.0.0
    • 4.0.0
    • spatial
    • Security Level: Public
    • None
    • Untriaged
    • Unknown

    Description

      {markdown}
      When something that is not an array or GeoJSON gets emitted as key it results in a failure:

      {"error":"error","reason":"function_clause"}

      This should be a proper error instead like when you emit an array that contains e.g. `null`:

      {"error":"emit_key","reason":"The values of the key must be numbers or a GeoJSON geometry."}

      This issue can be reproduced with this spatial function:

      function (doc) { emit(null, null); }{markdown}

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              vmx Volker Mische
              vmx Volker Mische
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty