[
https://issues.apache.org/jira/browse/CALCITE-7976?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Mihai Budiu resolved CALCITE-7976.
----------------------------------
Fix Version/s: 1.43.0
Resolution: Fixed
Fixed in
[https://github.com/apache/calcite/commit/027b8f9d8753b91fffc7ded8652fa2cff7c73ad1]
Thank you for the review [~dylanhz]
> AggregateReduceFunctionsRule produces incorrect results for DISTINCT
> covariance and regression functions
> --------------------------------------------------------------------------------------------------------
>
> Key: CALCITE-7976
> URL: https://issues.apache.org/jira/browse/CALCITE-7976
> Project: Calcite
> Issue Type: Bug
> Components: core
> Affects Versions: 1.42.0
> Reporter: Mihai Budiu
> Assignee: Mihai Budiu
> Priority: Minor
> Labels: pull-request-available
> Fix For: 1.43.0
>
>
> {{When AggregateReduceFunctionsRule runs before DISTINCT aggregates are
> expanded, COVAR_POP(DISTINCT x, y), COVAR_SAMP(DISTINCT x, y),
> REGR_SXX(DISTINCT x, y) and REGR_SYY(DISTINCT x, y) can return incorrect
> results. CALCITE-7970 fixed the same problem for VAR_POP, VAR_SAMP,
> STDDEV_POP and STDDEV_SAMP.}}
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)