Mihai Budiu created CALCITE-7696:
------------------------------------
Summary: 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
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)