[ 
https://issues.apache.org/jira/browse/CALCITE-6548?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17942248#comment-17942248
 ] 

Mihai Budiu commented on CALCITE-6548:
--------------------------------------

Your issue is about the type but your example is about the runtime result.

These are not the same thing.

> Result type inferred for COVAR_SAMP、COVAR_POP is incorrect
> ----------------------------------------------------------
>
>                 Key: CALCITE-6548
>                 URL: https://issues.apache.org/jira/browse/CALCITE-6548
>             Project: Calcite
>          Issue Type: Improvement
>            Reporter: xiong duan
>            Assignee: xiong duan
>            Priority: Major
>              Labels: pull-request-available
>
> COVAR_SAMP can return NULL. If the function is applied to an empty set, it 
> returns null. E.g. see the Oracle documentation: 
> [https://docs.oracle.com/en/database/oracle/oracle-database/21/sqlrf/VAR_SAMP.html|https://docs.oracle.com/en/database/oracle/oracle-database/21/sqlrf/COVAR_SAMP.html]
>  .
> COVAR_POP see the Oracle documentation:  
> [https://docs.oracle.com/en/database/oracle/oracle-database/21/sqlrf/COVAR_POP.html|https://docs.oracle.com/en/database/oracle/oracle-database/21/sqlrf/COVAR_POP.html].



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to