Support for STDEV in SQL #13302
Labels
A-sql
Area: Polars SQL functionality
accepted
Ready for implementation
enhancement
New feature or an improvement of an existing feature
Description
The sql interpreter does not know STDEV or STDEVP as known functions and therefore errors out when a user attempts to use them.
SELECT *, STDEV(COLUMN_X) FROM INPUT_TABLE
errors out with the following error message:polars.exceptions.InvalidOperationError: unsupported SQL function: stdev
Please note, while you can obviously use the python methods for calculating standard deviation, it is useful to also have that capability in SQL as well. Primarily to satisfy different preferences, but also as addition of support for such important functions can lead to trivial development of an equivalent method to pandas eval, which I believe is a highly used feature for data scientists when feature engineering tabular data.
The text was updated successfully, but these errors were encountered: