You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ReQL proposal: add the optional "base" argument back to .reduce() #3395
Back before the new aggregation APIs were introduced, .groupedMapReduce() used to take an optional base argument that allowed you to set the initial reduction value. Since it's been removed, I find myself having to map over all the rows before the reduction. For example:
Thanks for the suggestion @marshall007!
We actually already have some discussion about it in #2629 . The running proposal is to have an if_empty opt arg to reduce (see #2629 (comment) ), which seems like it would work in your case.
Activity
thelinuxlich commentedon Dec 3, 2014
+1 for this, very useful
danielmewes commentedon Dec 3, 2014
Thanks for the suggestion @marshall007!
We actually already have some discussion about it in #2629 . The running proposal is to have an
if_emptyopt arg toreduce(see #2629 (comment) ), which seems like it would work in your case.(closing as duplicate of #2629 )