Comments - STDDEV_SAMP

3 years, 3 months ago Guy Rouillard

Beware using this function in a view under MariaDB 10.2 up to latest version.

When creating views, those versions erroneously convert any call to STDDEV_SAMP to STD (a shortcut to STDDEV_POP). Since those functions do not behave the same, you will likely have incorrect calculations in those views.

There is a workaround: use SQRT(VAR_SAMP(expr)) instead of STDDEV_SAMP(expr).

Reference: https://jira.mariadb.org/browse/MDEV-19071

GR.

 
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.