[ 
https://issues.apache.org/jira/browse/CALCITE-5604?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

logan.zheng updated CALCITE-5604:
---------------------------------
    Description: 
Currently,when the avg input is int type,the return type is int type, but  

RelDataTypeSystemImpl
{code:java}
// code placeholder
@Override public RelDataType deriveAvgAggType(RelDataTypeFactory typeFactory,
    RelDataType argumentType) {
  return argumentType;
} {code}

  was:
Currently,when the avg input is int type,the return type is int type.

RelDataTypeSystemImpl
{code:java}
// code placeholder
@Override public RelDataType deriveAvgAggType(RelDataTypeFactory typeFactory,
    RelDataType argumentType) {
  return argumentType;
} {code}


> Avg function should infer correct data type
> -------------------------------------------
>
>                 Key: CALCITE-5604
>                 URL: https://issues.apache.org/jira/browse/CALCITE-5604
>             Project: Calcite
>          Issue Type: Improvement
>          Components: core
>            Reporter: logan.zheng
>            Priority: Minor
>              Labels: patch
>
> Currently,when the avg input is int type,the return type is int type, but  
> RelDataTypeSystemImpl
> {code:java}
> // code placeholder
> @Override public RelDataType deriveAvgAggType(RelDataTypeFactory typeFactory,
>     RelDataType argumentType) {
>   return argumentType;
> } {code}



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

Reply via email to