You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-29 08:21:15 +03:00
Welford algorithm for STD and VAR
Naive algorithm for calculating STD and VAR is subject to catastrophic cancellation. A well-known Welford's algorithms is used instead.
This commit is contained in:
@ -33,7 +33,7 @@ q5 floor(STD(u_custKey))
|
||||
q5 6749
|
||||
SELECT 'q6', floor(STD(u_bigcustKey)) FROM customer;
|
||||
q6 floor(STD(u_bigcustKey))
|
||||
q6 6688
|
||||
q6 6749
|
||||
SELECT 'q7', AVG(u_custKey) FROM customer;
|
||||
q7 AVG(u_custKey)
|
||||
q7 4294007575.1667
|
||||
|
Reference in New Issue
Block a user