You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Mihai Budiu (Jira)" <ji...@apache.org> on 2026/08/06 20:20:00 UTC
[jira] [Created] (CALCITE-7696) COVAR result type is derived only from first argument type
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)