**Is your feature request related to a problem? Please describe.** Currently stats aggregate function support is missing in both SQL and PPL. **Describe the solution you'd like** Add support for the following stats aggregate function in SQL. MySQL reference: https://dev.mysql.com/doc/refman/8.0/en/aggregate-functions.html#function_std 1.STD 2.STDDEV 3.STDDEV_POP 4.STDDEV_SAMP 5.VAR_POP 6.VAR_SAMP 7.VARIANCE PPL also needs to support some of them. Reference: https://docs.splunk.com/Documentation/SCS/current/SearchReference/Aggregatefunctions#stdev.28.26lt.3Bvalue.26gt.3B.29 Note that these functions may be optimized by pushing down to OpenSearch stats/extended_stats aggregation API: https://docs-beta.opensearch.org/docs/opensearch/metric-agg/#stats-extended_stats-matrix_stats. This can be part of https://github.com/opensearch-project/sql/issues/44 so this task can focus on basic implementation without pushdown. **Describe alternatives you've considered** N/A
Activity
penghuo commentedon Jun 2, 2021
SQL Requirements
Refer https://dev.mysql.com/doc/refman/8.0/en/aggregate-functions.html#function_std。
PPL Requirements
Refer https://docs.splunk.com/Documentation/SCS/current/SearchReference/Aggregatefunctions#stdev.28.26lt.3Bvalue.26gt.3B.29
penghuo commentedon Jun 4, 2021
Task breakdown