[FR] [Firestore] Statistics aggregation function #1956
Labels
api: firestore
Issues related to the googleapis/nodejs-firestore API.
priority: p3
Desirable enhancement or fix. May not be included in next release.
type: feature request
‘Nice-to-have’ improvement, new feature or different behavior or design.
Is your feature request related to a problem? Please describe.
Since firestore now has aggregate function. In addition to
sum()
count()
andaverage()
I would like to propose that we should have an aggregate function that will return both.count
.sum
.sumSquare
in the same query. And so we can calculated both average and standard deviation along with presenting all statistics related value in one queryDescribe the solution you'd like
There should be
stats()
function that return.count
.sum
.sumSquare
and maybe.min
.max
in the returned aggregated objectDescribe alternatives you've considered
Without aggregated function there are no optimal way to calculate standard deviation
Or could there possibly be custom aggregate function like couchdb in firebase system?
Additional context
This is actually borrowed idea from couchdb
_stats
functionThe text was updated successfully, but these errors were encountered: