You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ko...@apache.org on 2017/03/01 16:38:17 UTC
[43/43] couch-mrview commit: updated refs/heads/2971-count-distinct
to f7c3c24
Add _distinct as a built-in reduce
COUCHDB-2971
Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch-mrview/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch-mrview/commit/f7c3c24d
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch-mrview/tree/f7c3c24d
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-couch-mrview/diff/f7c3c24d
Branch: refs/heads/2971-count-distinct
Commit: f7c3c24db17db5908894447e1822936212d61fcd
Parents: e1d13a9
Author: Adam Kocoloski <ko...@apache.org>
Authored: Wed Mar 1 10:37:00 2017 -0500
Committer: Adam Kocoloski <ko...@apache.org>
Committed: Wed Mar 1 11:37:04 2017 -0500
----------------------------------------------------------------------
src/couch_mrview.erl | 2 ++
1 file changed, 2 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/couchdb-couch-mrview/blob/f7c3c24d/src/couch_mrview.erl
----------------------------------------------------------------------
diff --git a/src/couch_mrview.erl b/src/couch_mrview.erl
index 088327c..7449e5a 100644
--- a/src/couch_mrview.erl
+++ b/src/couch_mrview.erl
@@ -184,6 +184,8 @@ validate(DbName, DDoc) ->
ok;
({_RedName, <<"_stats", _/binary>>}) ->
ok;
+ ({_RedName, <<"_distinct", _/binary>>}) ->
+ ok;
({_RedName, <<"_", _/binary>> = Bad}) ->
Msg = ["`", Bad, "` is not a supported reduce function."],
throw({invalid_design_doc, Msg});