You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by Ivan Bodunov <iv...@gmail.com> on 2010/04/29 03:29:00 UTC
_sum function in Erlang reduce doesn't work
Hi,
I have a view in Erlang. Its reduce() function looks like following:
fun(Keys, Values, ReReduce) -> _sum(Values) end.
>From #couchdb irc I understood that it should work (similarly to JS view).
But Couch produces crash report when such view is triggered. Crash report is
behind the following link:
http://friendpaste.com/5fAlSeKV0wpe1gWEKweVUR
Ivan
Re: _sum function in Erlang reduce doesn't work
Posted by Randall Leeds <ra...@gmail.com>.
No, you misunderstood.
The exact text of the reduce in the design doc should just be "_sum". That
is not a function call but a special sentinel that couch recognizes as
signalling a summation reduction.
If that doesn't work please file a bug report on JIRA.
On Apr 28, 2010 6:29 PM, "Ivan Bodunov" <iv...@gmail.com> wrote:
Hi,
I have a view in Erlang. Its reduce() function looks like following:
fun(Keys, Values, ReReduce) -> _sum(Values) end.
>From #couchdb irc I understood that it should work (similarly to JS view).
But Couch produces crash report when such view is triggered. Crash report is
behind the following link:
http://friendpaste.com/5fAlSeKV0wpe1gWEKweVUR
Ivan