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

ASF GitHub Bot commented on IGNITE-4724:
----------------------------------------

Github user asfgit closed the pull request at:

    https://github.com/apache/ignite/pull/1989


> AVG function always returns double type instead of the argument type
> --------------------------------------------------------------------
>
>                 Key: IGNITE-4724
>                 URL: https://issues.apache.org/jira/browse/IGNITE-4724
>             Project: Ignite
>          Issue Type: Bug
>          Components: sql
>    Affects Versions: 1.9
>            Reporter: Sergey Kozlov
>            Assignee: Sergey Kalashnikov
>              Labels: important
>             Fix For: 2.1
>
>
> For H2:
> SELECT AVG(intCol) FROM cache_part_2 AS part_2 WHERE (10*shortCol/100) > 
> longCol
> -[472]
> For Ignite:
> SELECT AVG(intCol) FROM AllTypes AS part_2 WHERE (10*shortCol/100) > longCol
> +[472.2307692307692]



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to