Details
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}
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
- relates to
-
MB-14905 GeoSpatial GeoJSON Value Error not in mapreduce log
- Closed
For Gerrit Dashboard: MB-14779 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
50564,2 | MB-14779: Throw error when key is not an array or GeoJSON geometry | master | geocouch | Status: MERGED | +2 | +1 |