Uh oh!
There was an error while loading. Please reload this page.
[Enhancement](doris-future) Support REGR_SXX_SXY_SYY aggregation functions - #39187
[Enhancement](doris-future) Support REGR_SXX_SXY_SYY aggregation functions#39187wyxxxcat wants to merge 3 commits into
Conversation
doris-robot
commented
Aug 10, 2024
Thank you for your contribution to Apache Doris. Since 2024-03-18, the Document has been moved to doris-website. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
969b94a to
3bc2fcdCompareUh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
68a44ac to
a441b02CompareUh oh!
There was an error while loading. Please reload this page.
wyxxxcat
commented
Aug 13, 2024
run buildall |
doris-robot
commented
Aug 13, 2024
TPC-H: Total hot run time: 39846 ms |
zclllyybb
commented
Aug 13, 2024
测试注意这些点都得覆盖:
|
Uh oh!
There was an error while loading. Please reload this page.
wyxxxcat
commented
Aug 14, 2024
run buildall |
Uh oh!
There was an error while loading. Please reload this page.
wyxxxcat
commented
Aug 14, 2024
run buildall |
morrySnow
left a comment
There was a problem hiding this comment.
add doc in https://github.com/apache/doris-website
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
doris-robot
commented
Aug 14, 2024
TPC-H: Total hot run time: 37911 ms |
wyxxxcat
commented
Sep 29, 2024
Done |
wyxxxcat
commented
Oct 8, 2024
run buildall |
doris-robot
commented
Oct 8, 2024
TeamCity be ut coverage result: |
doris-robot
commented
Oct 8, 2024
TPC-H: Total hot run time: 40569 ms |
doris-robot
commented
Oct 8, 2024
TPC-DS: Total hot run time: 191577 ms |
doris-robot
commented
Oct 8, 2024
ClickBench: Total hot run time: 32.86 s |
ccc16f4 to
f5a0bf2Compareclang-tidy review says "All clean, LGTM! 👍" |
1 similar comment
clang-tidy review says "All clean, LGTM! 👍" |
wyxxxcat
commented
Oct 11, 2024
@zhiqiang-hhhh plz review |
| } | ||
| Float64 get_regr_sxx_result() const { | ||
| Float64 result = sum_of_x_squared - (sum_x * sum_x) / count; |
RoanHeNaN
left a comment
There was a problem hiding this comment.
We should use template to avoid redundant agg data field.
| Float64 sum_y {}; | ||
| Float64 sum_of_x_mul_y {}; | ||
| Float64 sum_of_x_squared {}; | ||
| Float64 sum_of_y_squared {}; |
There was a problem hiding this comment.
sum_of_y_squared is only needed for regr_syy, in other situations, this field is not necessary.
so we should use template to make our implementation more efficient.
clang-tidy review says "All clean, LGTM! 👍" |
RoanHeNaN
left a comment
There was a problem hiding this comment.
- Need refactor to simplify code.
- Need more test.
| Float64 get_regr_sxx_result() const { | ||
| // count == 0 | ||
| // The result of a query for an empty table is a null value | ||
| Float64 result = sum_of_x_squared - (sum_x * sum_x / count); |
There was a problem hiding this comment.
if (count == 0) {
return Nan;
}
| Float64 get_regr_sxy_result() const { | ||
| // count == 0 | ||
| // The result of a query for an empty table is a null value | ||
| Float64 result = sum_of_x_mul_y - (sum_x * sum_y / count); |
There was a problem hiding this comment.
if (count == 0 ) {
return Nan;
}
| Float64 get_regr_syy_result() const { | ||
| // count == 0 | ||
| // The result of a query for an empty table is a null value | ||
| Float64 result = sum_of_y_squared - (sum_y * sum_y / count); |
There was a problem hiding this comment.
if count == 0 {
return Nan;
}
RoanHeNaN
commented
Oct 15, 2024
@wyxxxcat Could you please contact me on wechat? 839616693 |
We're closing this PR because it hasn't been updated in a while. |
…onRegrData (#59224) ### What problem does this PR solve? Issue Number: close#38977 Problem Summary: This PR migrates regr_sxx/syy/sxy onto the shared Moment(AggregateFunctionRegrData) introduced in #55940. The original implementation and tests were done in #39187 by @wyxxxcat. This PR builds on top of that work, refactoring it to reuse the same state and merge logic. --------- Co-authored-by: wyxxxcat <1520358997@qq.com>
Proposed changes
Issue Number: #38977
doc : apache/doris-website#1014