[
https://issues.apache.org/jira/browse/CALCITE-7695?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Mihai Budiu updated CALCITE-7695:
---------------------------------
Summary: COVAR and REGR aggregate results should be nullable if either
argument is nullable (was: COVAR_POP result should always be nullable)
> COVAR and REGR aggregate results should be nullable if either argument is
> nullable
> ----------------------------------------------------------------------------------
>
> Key: CALCITE-7695
> URL: https://issues.apache.org/jira/browse/CALCITE-7695
> Project: Calcite
> Issue Type: Bug
> Components: core
> Affects Versions: 1.42.0
> Reporter: Mihai Budiu
> Assignee: Mihai Budiu
> Priority: Minor
>
> COVAR_POP may produce NULL even when the input set is not empty.
> For non-nullable arguments and GROUP BY the result type is incorrectly
> inferred as not nullable.
> Moreover, the type inference for the entire family of functions COVAR and
> REGR does not look at the nullability of the second argument.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)