You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Sudheesh Katkam (JIRA)" <ji...@apache.org> on 2016/03/31 20:52:25 UTC

[jira] [Commented] (CALCITE-1149) Derive AVG’s return type by a customizable policy

    [ 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/%3CC75EC28B-13BF-44CB-8730-E3E1E359386D@apache.org%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)