Revert "[Fix](variance) Fix sample variance/stddev NaN res for single value"#64099
Revert "[Fix](variance) Fix sample variance/stddev NaN res for single value"#64099linrrzqqq wants to merge 1 commit into
Conversation
… value (…" This reverts commit d7c033f.
|
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
|
run buildall |
|
/review |
There was a problem hiding this comment.
Review result: request changes. The PR reverts the previous behavior but introduces a data correctness regression for variance_samp/stddev_samp on singleton groups: BE writes 0.0 for count < 2 in common grouped/non-null paths, which is not the SQL NULL result expected for sample variance/stddev.
Critical checkpoint conclusions:
- Goal/test: The goal appears to revert #63605 and update expected outputs, but the new outputs demonstrate incorrect singleton sample aggregate results as 0.0. Existing tests were updated to accept the regression rather than prove correct behavior.
- Scope: The implementation change is small, but it changes core aggregate semantics.
- Concurrency/lifecycle/config/compatibility: No new concurrency, lifecycle, config, storage format, or FE-BE protocol compatibility concerns found.
- Parallel paths: The issue affects grouped aggregate/window/intermediate aggregate-state paths where the result column is non-nullable or only the nested column is passed.
- Test coverage/results: Regression outputs were modified, but they now encode the incorrect 0.0 singleton result; the removed one-row aggregate assertion also reduces direct coverage.
- Observability/transactions/persistence: Not applicable.
- Performance: No material performance issue found in this diff.
User focus: no additional user-provided review focus was specified.
BE UT Coverage ReportIncrement line coverage Increment coverage report
|
BE Regression && UT Coverage ReportIncrement line coverage Increment coverage report
|
TPC-H: Total hot run time: 29062 ms |
TPC-DS: Total hot run time: 169320 ms |
BE Regression && UT Coverage ReportIncrement line coverage Increment coverage report
|
Reverts #63605