JoverZhang commented on code in PR #55940:
URL: https://github.com/apache/doris/pull/55940#discussion_r2343933333
##########
regression-test/data/query_p0/aggregate/support_type/regr_slope/regr_slope.out:
##########
@@ -6,17 +6,17 @@
1.0
-- !regr_slope_int --
--0.0
+1.0
Review Comment:
### Verification
PostgreSQL
```sql
select regr_slope(col_int, col_bigint) from d_table;
+------------+
| regr_slope |
|------------|
| 1.0 |
+------------+
select covar_pop(col_bigint, col_int) / var_pop(col_bigint) from d_table;
+----------+
| ?column? |
|----------|
| 1.0 |
+----------+
```
Clickhouse (stable covariance/variance)
```sql
SELECT covarPopStable(col_bigint, col_int) / varPopStable(col_bigint)
FROM d_table
┌─divide(covar⋯ol_bigint))─┐
1. │ 1 │
└──────────────────────────┘
```
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]