pgj commented on code in PR #4984: URL: https://github.com/apache/couchdb/pull/4984#discussion_r1495063152
########## src/fabric/src/fabric_rpc.erl: ########## @@ -491,14 +491,21 @@ view_cb({meta, Meta}, Acc) -> % Map function starting ok = rexi:stream2({meta, Meta}), {ok, Acc}; -view_cb({row, Row}, Acc) -> +view_cb({row, Row}, #mrargs{extra = Options} = Acc) -> % Adding another row - ViewRow = #view_row{ + ViewRow0 = #view_row{ id = couch_util:get_value(id, Row), key = couch_util:get_value(key, Row), value = couch_util:get_value(value, Row), doc = couch_util:get_value(doc, Row) }, + ViewRow = + case couch_util:get_value(view_row_map, Options, false) of + true -> + fabric_util:to_view_row_map(ViewRow0); + false -> + ViewRow0 + end, Review Comment: Yes, that sounds like a good idea. I will explore it. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@couchdb.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org