On Fri, Aug 26, 2011 at 6:32 AM, Giancarlo Frison <gfri...@chelab.com> wrote:
> If i serialize the body as Json I catch errors any more instead of protobuf
> object representation (application/octet-stream).
> Would be an mapreduce bug?
> Is it possibile to skirt any body parsing during the mapreduce? Just for
> evaluating headers values?

All objects passed through Javascript map or reduce phases must be
valid UTF-8-encoded JSON.  There is no way to change that at this
time.  Erlang map/reduce phases do not have such requirements.

The fact that your earlier ProtocolBuffer-encoded object made it
through a Javascript phase was probably a fluke, based on the encoding
containing nothing that was completely invalid UTF-8.  It probably
came through as a string, maybe with one or two odd characters
prepended.

Hope that helps,
Bryan

_______________________________________________
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

Reply via email to