Re: _sum function in Erlang reduce doesn't work

2010-04-28 Thread Ivan Bodunov
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" wrote: Hi, I have a view in Erlan

_sum function in Erlang reduce doesn't work

2010-04-28 Thread Ivan Bodunov
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 fo

Filters in Erlang broken

2010-04-15 Thread Ivan Bodunov
Hi, After I wrote my filter in JavaScript I decided to rewrite it in Erlang and faced some problems. Even the simplest possible filter written in Erlang causes crashes in CouchDB. Filter is "filters": { "foo": "fun({Doc},Req) -> true end." } Command to trigger the filter is # curl -X GET