[
https://issues.apache.org/jira/browse/CALCITE-1149?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15220441#comment-15220441
]
Sudheesh Katkam commented on CALCITE-1149:
------------------------------------------
This policy is not required. In [this
conversation|http://mail-archives.apache.org/mod_mbox/calcite-dev/201512.mbox/%[email protected]%3E],
there was a suggested workaround, which is being used in Drill by re-defining
the function and overriding its return type inference policy (see
[TypeInferenceUtils.DrillAvgAggSqlReturnTypeInference|https://github.com/apache/drill/blob/master/exec/java-exec/src/main/java/org/apache/drill/exec/planner/sql/TypeInferenceUtils.java#L616]).
> Derive AVG’s return type by a customizable policy
> -------------------------------------------------
>
> Key: CALCITE-1149
> URL: https://issues.apache.org/jira/browse/CALCITE-1149
> Project: Calcite
> Issue Type: Improvement
> Reporter: Jacques Nadeau
> Assignee: Jacques Nadeau
>
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)