matrixorigin / matrixone

Hyperconverged cloud-edge native database
https://docs.matrixorigin.cn/en
Apache License 2.0
1.79k stars 276 forks source link

[Tech Request]: Advance aggregate functions, regression and polynomial fitting #10182

Open fengttt opened 1 year ago

fengttt commented 1 year ago

Is there an existing issue for the same feature request?

Is your feature request related to a problem?

No response

Describe the feature you'd like

Linear and higher degree polynomial fitting. PostgresSQL/Snowflake/Oracle have linear regression regr_XXX functions. For example, https://docs.snowflake.com/en/sql-reference/functions/regr_intercept or

It is also useful to fix different functions, like higher degree polynomial, exponential, log, etc etc.

Lets' start from linear

Describe implementation you've considered

No response

Documentation, Adoption, Use Case, Migration Strategy

No response

Additional information

No response

dengn commented 1 year ago

This is a very big feature and requires clarification. Needs specification about what functions are going to be implemented and their syntax.

aressu1985 commented 1 year ago

can not understand this requirement

domingozhang commented 1 year ago

y The dependent variable. This must be an expression that can be evaluated to a numeric type.

x The independent variable. This must be an expression that can be evaluated to a numeric type.