therehello opened a new pull request, #39278:
URL: https://github.com/apache/doris/pull/39278

   ## Proposed changes
   
   Issue Number: close #38974 
   
   ```sql
   mysql> select regr_avgx(y, x) from t;
   +--------------------+
   | regr_avgx(y, x)    |
   +--------------------+
   | 10.872839868571429 |
   +--------------------+
   1 row in set (0.044 sec)
   ```
   
   ```sql
   mysql> select regr_avgy(y, x) from t;
   +--------------------+
   | regr_avgy(y, x)    |
   +--------------------+
   | 60.417901200833334 |
   +--------------------+
   1 row in set (0.046 sec)
   ```
   
   ```sql
   mysql> select * from t;
   +------+------+------+
   | id   | x    | y    |
   +------+------+------+
   |    3 |   13 |    3 |
   |    5 |    4 |    7 |
   |    1 |    1 |   18 |
   |    2 |    6 | NULL |
   |    4 | NULL |    6 |
   +------+------+------+
   5 rows in set (0.034 sec)
   
   mysql> select regr_count(x, y) from t;
   +------------------+
   | regr_count(x, y) |
   +------------------+
   |                3 |
   +------------------+
   1 row in set (0.026 sec)
   ```
   
   doc:https://github.com/apache/doris-website/pull/1042


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to