[
https://issues.apache.org/jira/browse/CALCITE-7696?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Mihai Budiu resolved CALCITE-7696.
----------------------------------
Fix Version/s: 1.43.0
Resolution: Fixed
Fixed in
[https://github.com/apache/calcite/commit/938388043ade930ca6e090c72f9c54ffb8492792]
Thank you for the review [~xuzifu666]
> COVAR result type is derived only from first argument type
> ----------------------------------------------------------
>
> Key: CALCITE-7696
> URL: https://issues.apache.org/jira/browse/CALCITE-7696
> 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
>
>
> COVAR coerces the second argument to the type of the first.
> So COVAR(INT, DOUBLE) will actually compute on INT. Perhaps leastRestrictive
> should be used instead.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)