[
https://issues.apache.org/jira/browse/CALCITE-6547?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Mihai Budiu resolved CALCITE-6547.
----------------------------------
Fix Version/s: 1.38.0
Resolution: Fixed
Fixed in
https://github.com/apache/calcite/commit/a19bb8224fc54b35a4a2f0e5f594ce2e3544dfe9
Thank you for the review [~nobigo] and for finding more related bugs
> Result type inferred for STDDEV_SAMP is incorrect
> -------------------------------------------------
>
> Key: CALCITE-6547
> URL: https://issues.apache.org/jira/browse/CALCITE-6547
> Project: Calcite
> Issue Type: Bug
> Components: core
> Affects Versions: 1.37.0
> Reporter: Mihai Budiu
> Assignee: Mihai Budiu
> Priority: Minor
> Labels: pull-request-available
> Fix For: 1.38.0
>
>
> STDDEV_SAMP can return NULL even if the input is non-null and non-empty - it
> returns NULL when the input set has only one element. E.g. see the Oracle
> documentation:
> https://docs.oracle.com/en/database/oracle/oracle-database/21/sqlrf/VAR_SAMP.html
--
This message was sent by Atlassian Jira
(v8.20.10#820010)