zclllyybb opened a new issue, #38974: URL: https://github.com/apache/doris/issues/38974
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/doris/issues?q=is%3Aissue) and found no similar issues. ### Description We are going to support all regression functions in pg. You can see them in https://www.postgresql.org/docs/16/functions-aggregate.html with `regr_` prefix. And considring the difficulty of this task, it will be nice for community as "good first issue". In this issue, you should implement function `regr_avgx`, `regr_avgy` and `regr_count` If you'd like to work on it, please comment to let me know. I'll help you to achieve this. ### Solution you can found an example of implementation of a aggregate function [here](https://github.com/apache/doris/pull/33265) for `regr_avgx` and `regr_avgy`, you could only impl the FE function signature, and add a rule in `ExpressionOptimization.java` to rewrite them to `avg()` function because it has equivalent form of it. you can see `ArrayContainToArrayOverlap` rule to learn to write your own. for `regr_count` you should completely impl it execution logic. ### Are you willing to submit PR? - [ ] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct) -- 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.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